@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
package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../../cpe/quick-actions/utils", "../../../utils/core", "./utils", "../simple-quick-action-base"], function (_____cpe_quick_actions_utils, _____utils_core, ___utils, ___simple_quick_action_base) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const pageHasControlId = _____cpe_quick_actions_utils["pageHasControlId"];
|
|
7
|
+
const getControlById = _____utils_core["getControlById"];
|
|
8
|
+
const executeToggleAction = ___utils["executeToggleAction"];
|
|
9
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
10
|
+
const ENABLE_CLEAR_FILTER_BAR_TYPE = 'enable-clear-filter-bar';
|
|
11
|
+
const PROPERTY_NAME = 'showClearButton';
|
|
12
|
+
const PROPERTY_PATH = `controlConfiguration/@com.sap.vocabularies.UI.v1.SelectionFields/${PROPERTY_NAME}`;
|
|
13
|
+
const CONTROL_TYPE = 'sap.fe.macros.controls.FilterBar';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Quick Action for toggling the visibility of "clear filter bar" button in List Report page.
|
|
17
|
+
*/
|
|
18
|
+
class ToggleClearFilterBarQuickAction extends SimpleQuickActionDefinitionBase {
|
|
19
|
+
constructor(context) {
|
|
20
|
+
super(ENABLE_CLEAR_FILTER_BAR_TYPE, [], '', context);
|
|
21
|
+
}
|
|
22
|
+
forceRefreshAfterExecution = true;
|
|
23
|
+
isClearButtonEnabled = false;
|
|
24
|
+
initialize() {
|
|
25
|
+
const controls = this.context.controlIndex[CONTROL_TYPE] ?? [];
|
|
26
|
+
for (const control of controls) {
|
|
27
|
+
const isActionApplicable = pageHasControlId(this.context.view, control.controlId);
|
|
28
|
+
const filterBar = getControlById(control.controlId);
|
|
29
|
+
if (isActionApplicable && filterBar) {
|
|
30
|
+
this.control = filterBar;
|
|
31
|
+
const value = this.context.changeService.getConfigurationPropertyValue(control.controlId, PROPERTY_NAME);
|
|
32
|
+
this.isClearButtonEnabled = value === undefined ? filterBar.getShowClearButton() : value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return Promise.resolve();
|
|
36
|
+
}
|
|
37
|
+
get textKey() {
|
|
38
|
+
return this.isClearButtonEnabled ? 'V4_QUICK_ACTION_LR_DISABLE_CLEAR_FILTER_BAR' : 'V4_QUICK_ACTION_LR_ENABLE_CLEAR_FILTER_BAR';
|
|
39
|
+
}
|
|
40
|
+
async execute() {
|
|
41
|
+
const command = await executeToggleAction(this.context, this.isClearButtonEnabled, CONTROL_TYPE, PROPERTY_PATH);
|
|
42
|
+
if (command.length) {
|
|
43
|
+
this.isClearButtonEnabled = !this.isClearButtonEnabled;
|
|
44
|
+
}
|
|
45
|
+
return command;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var __exports = {
|
|
49
|
+
__esModule: true
|
|
50
|
+
};
|
|
51
|
+
__exports.ENABLE_CLEAR_FILTER_BAR_TYPE = ENABLE_CLEAR_FILTER_BAR_TYPE;
|
|
52
|
+
__exports.ToggleClearFilterBarQuickAction = ToggleClearFilterBarQuickAction;
|
|
53
|
+
return __exports;
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=lr-toggle-clear-filter-bar.js.map
|
package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
import type FilterBar from 'sap/ui/mdc/FilterBar';
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
QuickActionContext,
|
|
6
|
+
SimpleQuickActionDefinition
|
|
7
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
8
|
+
import { pageHasControlId } from '../../../cpe/quick-actions/utils';
|
|
9
|
+
import { getControlById } from '../../../utils/core';
|
|
10
|
+
import { executeToggleAction } from './utils';
|
|
11
|
+
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
12
|
+
|
|
13
|
+
export const ENABLE_CLEAR_FILTER_BAR_TYPE = 'enable-clear-filter-bar';
|
|
14
|
+
const PROPERTY_NAME = 'showClearButton';
|
|
15
|
+
const PROPERTY_PATH = `controlConfiguration/@com.sap.vocabularies.UI.v1.SelectionFields/${PROPERTY_NAME}`;
|
|
16
|
+
const CONTROL_TYPE = 'sap.fe.macros.controls.FilterBar';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Quick Action for toggling the visibility of "clear filter bar" button in List Report page.
|
|
20
|
+
*/
|
|
21
|
+
export class ToggleClearFilterBarQuickAction
|
|
22
|
+
extends SimpleQuickActionDefinitionBase
|
|
23
|
+
implements SimpleQuickActionDefinition
|
|
24
|
+
{
|
|
25
|
+
constructor(context: QuickActionContext) {
|
|
26
|
+
super(ENABLE_CLEAR_FILTER_BAR_TYPE, [], '', context);
|
|
27
|
+
}
|
|
28
|
+
readonly forceRefreshAfterExecution = true;
|
|
29
|
+
private isClearButtonEnabled = false;
|
|
30
|
+
|
|
31
|
+
initialize(): Promise<void> {
|
|
32
|
+
const controls = this.context.controlIndex[CONTROL_TYPE] ?? [];
|
|
33
|
+
for (const control of controls) {
|
|
34
|
+
const isActionApplicable = pageHasControlId(this.context.view, control.controlId);
|
|
35
|
+
const filterBar = getControlById<FilterBar>(control.controlId);
|
|
36
|
+
if (isActionApplicable && filterBar) {
|
|
37
|
+
this.control = filterBar;
|
|
38
|
+
const value = this.context.changeService.getConfigurationPropertyValue(
|
|
39
|
+
control.controlId,
|
|
40
|
+
PROPERTY_NAME
|
|
41
|
+
);
|
|
42
|
+
this.isClearButtonEnabled = value === undefined ? filterBar.getShowClearButton() : (value as boolean);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return Promise.resolve();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
protected get textKey() {
|
|
49
|
+
return this.isClearButtonEnabled
|
|
50
|
+
? 'V4_QUICK_ACTION_LR_DISABLE_CLEAR_FILTER_BAR'
|
|
51
|
+
: 'V4_QUICK_ACTION_LR_ENABLE_CLEAR_FILTER_BAR';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async execute(): Promise<FlexCommand[]> {
|
|
55
|
+
const command = await executeToggleAction(this.context, this.isClearButtonEnabled, CONTROL_TYPE, PROPERTY_PATH);
|
|
56
|
+
if (command.length) {
|
|
57
|
+
this.isClearButtonEnabled = !this.isClearButtonEnabled;
|
|
58
|
+
}
|
|
59
|
+
return command;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../../utils/fe-v4", "../simple-quick-action-base", "../common/op-add-custom-section", "../dialog-enablement-validator", "../../../cpe/quick-actions/utils", "sap/ui/dt/OverlayRegistry", "../../dialog-factory"], function (_____utils_fe_v4, ___simple_quick_action_base, ___common_op_add_custom_section, ___dialog_enablement_validator, _____cpe_quick_actions_utils, OverlayRegistry, ____dialog_factory) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const getV4AppComponent = _____utils_fe_v4["getV4AppComponent"];
|
|
7
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
8
|
+
const OP_ADD_CUSTOM_SECTION = ___common_op_add_custom_section["OP_ADD_CUSTOM_SECTION"];
|
|
9
|
+
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
10
|
+
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
11
|
+
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
12
|
+
const DialogNames = ____dialog_factory["DialogNames"];
|
|
13
|
+
const OP_PAGE_LAYOUT = ['sap.uxap.ObjectPageLayout'];
|
|
14
|
+
/**
|
|
15
|
+
* Quick Action for adding a custom page action.
|
|
16
|
+
*/
|
|
17
|
+
class AddCustomSectionQuickAction extends SimpleQuickActionDefinitionBase {
|
|
18
|
+
get currentPageDescriptor() {
|
|
19
|
+
const appComponent = getV4AppComponent(this.context.view);
|
|
20
|
+
const projectId = this.context.flexSettings.projectId;
|
|
21
|
+
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, OP_PAGE_LAYOUT)[0];
|
|
22
|
+
const sections = objectPageLayout.getSections();
|
|
23
|
+
let anchor = null;
|
|
24
|
+
const pageId = this.context.view.getViewData()?.stableId.split('::').pop();
|
|
25
|
+
if (sections.length > 0) {
|
|
26
|
+
// Use the first section as the anchor if available
|
|
27
|
+
anchor = (this.context.view.getLocalId(sections[sections.length - 1].getId()) ?? '').split('::').pop();
|
|
28
|
+
}
|
|
29
|
+
if (!pageId) {
|
|
30
|
+
throw new Error('pageId is not defined');
|
|
31
|
+
}
|
|
32
|
+
if (!projectId) {
|
|
33
|
+
throw new Error('app reference is not defined');
|
|
34
|
+
}
|
|
35
|
+
if (!appComponent) {
|
|
36
|
+
throw new Error('appComponent is not defined');
|
|
37
|
+
}
|
|
38
|
+
if (!anchor) {
|
|
39
|
+
throw new Error('appComponent is not defined');
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
appType: 'fe-v4',
|
|
43
|
+
appComponent,
|
|
44
|
+
anchor,
|
|
45
|
+
pageId,
|
|
46
|
+
projectId
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
constructor(context) {
|
|
50
|
+
super(OP_ADD_CUSTOM_SECTION, OP_PAGE_LAYOUT, 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
51
|
+
}
|
|
52
|
+
async execute() {
|
|
53
|
+
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, OP_PAGE_LAYOUT)[0];
|
|
54
|
+
const overlay = OverlayRegistry.getOverlay(objectPageLayout) || [];
|
|
55
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_CUSTOM_FRAGMENT, undefined, {
|
|
56
|
+
propertyPath: 'content/body/sections/',
|
|
57
|
+
title: 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION',
|
|
58
|
+
appDescriptor: this.currentPageDescriptor,
|
|
59
|
+
type: 'section'
|
|
60
|
+
}, {
|
|
61
|
+
actionName: this.type,
|
|
62
|
+
telemetryEventIdentifier: this.getTelemetryIdentifier()
|
|
63
|
+
});
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var __exports = {
|
|
68
|
+
__esModule: true
|
|
69
|
+
};
|
|
70
|
+
__exports.AddCustomSectionQuickAction = AddCustomSectionQuickAction;
|
|
71
|
+
return __exports;
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=op-add-custom-section.js.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { getV4AppComponent } from '../../../utils/fe-v4';
|
|
2
|
+
import { PageDescriptorV4 } from '../../controllers/types';
|
|
3
|
+
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
4
|
+
import { QuickActionContext, SimpleQuickActionDefinition } from '../../../cpe/quick-actions/quick-action-definition';
|
|
5
|
+
import { OP_ADD_CUSTOM_SECTION } from '../common/op-add-custom-section';
|
|
6
|
+
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
7
|
+
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
8
|
+
import { getRelevantControlFromActivePage } from '../../../cpe/quick-actions/utils';
|
|
9
|
+
import ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
10
|
+
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
11
|
+
import { DialogFactory, DialogNames } from '../../dialog-factory';
|
|
12
|
+
|
|
13
|
+
const OP_PAGE_LAYOUT = ['sap.uxap.ObjectPageLayout'];
|
|
14
|
+
|
|
15
|
+
interface ViewDataType {
|
|
16
|
+
stableId: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Quick Action for adding a custom page action.
|
|
20
|
+
*/
|
|
21
|
+
export class AddCustomSectionQuickAction
|
|
22
|
+
extends SimpleQuickActionDefinitionBase
|
|
23
|
+
implements SimpleQuickActionDefinition
|
|
24
|
+
{
|
|
25
|
+
protected get currentPageDescriptor(): PageDescriptorV4 {
|
|
26
|
+
const appComponent = getV4AppComponent(this.context.view);
|
|
27
|
+
const projectId = this.context.flexSettings.projectId;
|
|
28
|
+
const objectPageLayout = getRelevantControlFromActivePage(
|
|
29
|
+
this.context.controlIndex,
|
|
30
|
+
this.context.view,
|
|
31
|
+
OP_PAGE_LAYOUT
|
|
32
|
+
)[0] as ObjectPageLayout;
|
|
33
|
+
const sections = objectPageLayout.getSections();
|
|
34
|
+
let anchor: string | null = null;
|
|
35
|
+
const pageId = (this.context.view.getViewData() as ViewDataType)?.stableId.split('::').pop() as string;
|
|
36
|
+
if (sections.length > 0) {
|
|
37
|
+
// Use the first section as the anchor if available
|
|
38
|
+
anchor = (this.context.view.getLocalId(sections[sections.length - 1].getId()) ?? '')
|
|
39
|
+
.split('::')
|
|
40
|
+
.pop() as string;
|
|
41
|
+
}
|
|
42
|
+
if (!pageId) {
|
|
43
|
+
throw new Error('pageId is not defined');
|
|
44
|
+
}
|
|
45
|
+
if (!projectId) {
|
|
46
|
+
throw new Error('app reference is not defined');
|
|
47
|
+
}
|
|
48
|
+
if (!appComponent) {
|
|
49
|
+
throw new Error('appComponent is not defined');
|
|
50
|
+
}
|
|
51
|
+
if (!anchor) {
|
|
52
|
+
throw new Error('appComponent is not defined');
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
appType: 'fe-v4',
|
|
56
|
+
appComponent,
|
|
57
|
+
anchor,
|
|
58
|
+
pageId,
|
|
59
|
+
projectId
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
constructor(context: QuickActionContext) {
|
|
63
|
+
super(OP_ADD_CUSTOM_SECTION, OP_PAGE_LAYOUT, 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION', context, [
|
|
64
|
+
DIALOG_ENABLEMENT_VALIDATOR
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async execute(): Promise<FlexCommand[]> {
|
|
69
|
+
const objectPageLayout = getRelevantControlFromActivePage(
|
|
70
|
+
this.context.controlIndex,
|
|
71
|
+
this.context.view,
|
|
72
|
+
OP_PAGE_LAYOUT
|
|
73
|
+
)[0] as ObjectPageLayout;
|
|
74
|
+
|
|
75
|
+
const overlay = OverlayRegistry.getOverlay(objectPageLayout) || [];
|
|
76
|
+
await DialogFactory.createDialog(
|
|
77
|
+
overlay,
|
|
78
|
+
this.context.rta,
|
|
79
|
+
DialogNames.ADD_CUSTOM_FRAGMENT,
|
|
80
|
+
undefined,
|
|
81
|
+
{
|
|
82
|
+
propertyPath: 'content/body/sections/',
|
|
83
|
+
title: 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION',
|
|
84
|
+
appDescriptor: this.currentPageDescriptor,
|
|
85
|
+
type: 'section'
|
|
86
|
+
},
|
|
87
|
+
{ actionName: this.type, telemetryEventIdentifier: this.getTelemetryIdentifier() }
|
|
88
|
+
);
|
|
89
|
+
return [];
|
|
90
|
+
}
|
|
91
|
+
}
|
package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../../utils/fe-v4", "../../../utils/version", "../control-types", "../table-quick-action-base", "../../../utils/core", "../common/utils", "../fe-v2/create-table-custom-column"], function (_____utils_fe_v4, _____utils_version, ___control_types, ___table_quick_action_base, _____utils_core, ___common_utils, ___fe_v2_create_table_custom_column) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const createManifestPropertyChange = _____utils_fe_v4["createManifestPropertyChange"];
|
|
7
|
+
const getUi5Version = _____utils_version["getUi5Version"];
|
|
8
|
+
const isLowerThanMinimalUi5Version = _____utils_version["isLowerThanMinimalUi5Version"];
|
|
9
|
+
const ANALYTICAL_TABLE_TYPE = ___control_types["ANALYTICAL_TABLE_TYPE"];
|
|
10
|
+
const GRID_TABLE_TYPE = ___control_types["GRID_TABLE_TYPE"];
|
|
11
|
+
const MDC_TABLE_TYPE = ___control_types["MDC_TABLE_TYPE"];
|
|
12
|
+
const TREE_TABLE_TYPE = ___control_types["TREE_TABLE_TYPE"];
|
|
13
|
+
const TableQuickActionDefinitionBase = ___table_quick_action_base["TableQuickActionDefinitionBase"];
|
|
14
|
+
const isA = _____utils_core["isA"];
|
|
15
|
+
const getTooltipsForTableEmptyRowModeAction = ___common_utils["getTooltipsForTableEmptyRowModeAction"];
|
|
16
|
+
const preprocessActionExecution = ___fe_v2_create_table_custom_column["preprocessActionExecution"];
|
|
17
|
+
const ENABLE_TABLE_EMPTY_ROW_MODE = 'enable-table-empty-row-mode';
|
|
18
|
+
const CONTROL_TYPES = [MDC_TABLE_TYPE, GRID_TABLE_TYPE, ANALYTICAL_TABLE_TYPE, TREE_TABLE_TYPE];
|
|
19
|
+
const UNSUPPORTED_TABLES = [ANALYTICAL_TABLE_TYPE, TREE_TABLE_TYPE];
|
|
20
|
+
const INLINE_CREATION_ROWS_MODE = 'InlineCreationRows';
|
|
21
|
+
/**
|
|
22
|
+
* Quick Action for enabling table filtering using table personalization settings.
|
|
23
|
+
*/
|
|
24
|
+
class EnableTableEmptyRowModeQuickAction extends TableQuickActionDefinitionBase {
|
|
25
|
+
constructor(context) {
|
|
26
|
+
super(ENABLE_TABLE_EMPTY_ROW_MODE, CONTROL_TYPES, 'QUICK_ACTION_ENABLE_TABLE_EMPTY_ROW_MODE', context);
|
|
27
|
+
}
|
|
28
|
+
forceRefreshAfterExecution = true;
|
|
29
|
+
async initialize() {
|
|
30
|
+
const version = await getUi5Version();
|
|
31
|
+
if (isLowerThanMinimalUi5Version(version, {
|
|
32
|
+
major: 1,
|
|
33
|
+
minor: 131
|
|
34
|
+
})) {
|
|
35
|
+
this.isApplicable = false;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const {
|
|
39
|
+
alreadyEnabledTooltip,
|
|
40
|
+
unsupportedCreationRowsTooltip
|
|
41
|
+
} = getTooltipsForTableEmptyRowModeAction(this.context.resourceBundle);
|
|
42
|
+
const processChild = (child, mapKey) => {
|
|
43
|
+
const table = this.tableMap[mapKey]?.table;
|
|
44
|
+
if (table) {
|
|
45
|
+
if (UNSUPPORTED_TABLES.some(t => isA(t, table))) {
|
|
46
|
+
child.enabled = false;
|
|
47
|
+
child.tooltip = unsupportedCreationRowsTooltip;
|
|
48
|
+
} else if (table.data('creationMode') === INLINE_CREATION_ROWS_MODE) {
|
|
49
|
+
child.enabled = false;
|
|
50
|
+
child.tooltip = alreadyEnabledTooltip;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
child.children.forEach((nestedChild, idx) => processChild(nestedChild, `${mapKey}/${idx.toFixed(0)}`));
|
|
54
|
+
};
|
|
55
|
+
await super.initialize();
|
|
56
|
+
|
|
57
|
+
// disable nested actions based on conditions
|
|
58
|
+
this.children.forEach((nestedChild, idx) => processChild(nestedChild, `${idx.toFixed(0)}`));
|
|
59
|
+
}
|
|
60
|
+
async execute(path) {
|
|
61
|
+
const {
|
|
62
|
+
flexSettings
|
|
63
|
+
} = this.context;
|
|
64
|
+
const {
|
|
65
|
+
table,
|
|
66
|
+
sectionInfo,
|
|
67
|
+
iconTabBarFilterKey
|
|
68
|
+
} = this.tableMap[path];
|
|
69
|
+
if (!table) {
|
|
70
|
+
return [];
|
|
71
|
+
}
|
|
72
|
+
preprocessActionExecution(table, sectionInfo, this.iconTabBar, iconTabBarFilterKey);
|
|
73
|
+
this.selectOverlay(table);
|
|
74
|
+
const command = await createManifestPropertyChange(table, flexSettings, {
|
|
75
|
+
name: INLINE_CREATION_ROWS_MODE
|
|
76
|
+
}, ['creationMode']);
|
|
77
|
+
if (command) {
|
|
78
|
+
return [command];
|
|
79
|
+
} else {
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
var __exports = {
|
|
85
|
+
__esModule: true
|
|
86
|
+
};
|
|
87
|
+
__exports.ENABLE_TABLE_EMPTY_ROW_MODE = ENABLE_TABLE_EMPTY_ROW_MODE;
|
|
88
|
+
__exports.EnableTableEmptyRowModeQuickAction = EnableTableEmptyRowModeQuickAction;
|
|
89
|
+
return __exports;
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=op-enable-empty-row-mode.js.map
|
package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
NestedQuickActionDefinition,
|
|
5
|
+
QuickActionContext
|
|
6
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
7
|
+
import { createManifestPropertyChange } from '../../../utils/fe-v4';
|
|
8
|
+
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../../utils/version';
|
|
9
|
+
import { ANALYTICAL_TABLE_TYPE, GRID_TABLE_TYPE, MDC_TABLE_TYPE, TREE_TABLE_TYPE } from '../control-types';
|
|
10
|
+
import { TableQuickActionDefinitionBase } from '../table-quick-action-base';
|
|
11
|
+
import { isA } from '../../../utils/core';
|
|
12
|
+
import { getTooltipsForTableEmptyRowModeAction } from '../common/utils';
|
|
13
|
+
import type { NestedQuickActionChild } from '@sap-ux-private/control-property-editor-common';
|
|
14
|
+
import { preprocessActionExecution } from '../fe-v2/create-table-custom-column';
|
|
15
|
+
|
|
16
|
+
export const ENABLE_TABLE_EMPTY_ROW_MODE = 'enable-table-empty-row-mode';
|
|
17
|
+
const CONTROL_TYPES = [MDC_TABLE_TYPE, GRID_TABLE_TYPE, ANALYTICAL_TABLE_TYPE, TREE_TABLE_TYPE];
|
|
18
|
+
const UNSUPPORTED_TABLES = [ANALYTICAL_TABLE_TYPE, TREE_TABLE_TYPE];
|
|
19
|
+
|
|
20
|
+
const INLINE_CREATION_ROWS_MODE = 'InlineCreationRows';
|
|
21
|
+
/**
|
|
22
|
+
* Quick Action for enabling table filtering using table personalization settings.
|
|
23
|
+
*/
|
|
24
|
+
export class EnableTableEmptyRowModeQuickAction
|
|
25
|
+
extends TableQuickActionDefinitionBase
|
|
26
|
+
implements NestedQuickActionDefinition
|
|
27
|
+
{
|
|
28
|
+
constructor(context: QuickActionContext) {
|
|
29
|
+
super(ENABLE_TABLE_EMPTY_ROW_MODE, CONTROL_TYPES, 'QUICK_ACTION_ENABLE_TABLE_EMPTY_ROW_MODE', context);
|
|
30
|
+
}
|
|
31
|
+
readonly forceRefreshAfterExecution = true;
|
|
32
|
+
|
|
33
|
+
async initialize(): Promise<void> {
|
|
34
|
+
const version = await getUi5Version();
|
|
35
|
+
if (isLowerThanMinimalUi5Version(version, { major: 1, minor: 131 })) {
|
|
36
|
+
this.isApplicable = false;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const { alreadyEnabledTooltip, unsupportedCreationRowsTooltip } = getTooltipsForTableEmptyRowModeAction(
|
|
41
|
+
this.context.resourceBundle
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const processChild = (child: NestedQuickActionChild, mapKey: string) => {
|
|
45
|
+
const table = this.tableMap[mapKey]?.table;
|
|
46
|
+
if (table) {
|
|
47
|
+
if (UNSUPPORTED_TABLES.some((t) => isA(t, table))) {
|
|
48
|
+
child.enabled = false;
|
|
49
|
+
child.tooltip = unsupportedCreationRowsTooltip;
|
|
50
|
+
} else if (table.data('creationMode') === INLINE_CREATION_ROWS_MODE) {
|
|
51
|
+
child.enabled = false;
|
|
52
|
+
child.tooltip = alreadyEnabledTooltip;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
child.children.forEach((nestedChild, idx) => processChild(nestedChild, `${mapKey}/${idx.toFixed(0)}`));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
await super.initialize();
|
|
59
|
+
|
|
60
|
+
// disable nested actions based on conditions
|
|
61
|
+
this.children.forEach((nestedChild, idx) => processChild(nestedChild, `${idx.toFixed(0)}`));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async execute(path: string): Promise<FlexCommand[]> {
|
|
65
|
+
const { flexSettings } = this.context;
|
|
66
|
+
const { table, sectionInfo, iconTabBarFilterKey } = this.tableMap[path];
|
|
67
|
+
if (!table) {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
preprocessActionExecution(table, sectionInfo, this.iconTabBar, iconTabBarFilterKey);
|
|
72
|
+
this.selectOverlay(table);
|
|
73
|
+
|
|
74
|
+
const command = await createManifestPropertyChange(
|
|
75
|
+
table,
|
|
76
|
+
flexSettings,
|
|
77
|
+
{
|
|
78
|
+
name: INLINE_CREATION_ROWS_MODE
|
|
79
|
+
},
|
|
80
|
+
['creationMode']
|
|
81
|
+
);
|
|
82
|
+
if (command) {
|
|
83
|
+
return [command];
|
|
84
|
+
} else {
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../../cpe/quick-actions/registry", "../common/add-controller-to-page", "./lr-toggle-clear-filter-bar", "./change-table-columns", "../common/op-add-header-field", "./op-add-custom-section", "./create-page-action", "./lr-enable-table-filtering", "./lr-enable-semantic-date-range-filter-bar", "./op-enable-empty-row-mode", "../common/add-new-annotation-file", "./enable-variant-management", "../fe-v4/add-new-subpage", "../fe-v4/change-table-actions", "./create-table-action-config-change", "./create-table-custom-column-config-change"], function (_____cpe_quick_actions_registry, ___common_add_controller_to_page, ___lr_toggle_clear_filter_bar, ___change_table_columns, ___common_op_add_header_field, ___op_add_custom_section, ___create_page_action, ___lr_enable_table_filtering, ___lr_enable_semantic_date_range_filter_bar, ___op_enable_empty_row_mode, ___common_add_new_annotation_file, ___enable_variant_management, ___fe_v4_add_new_subpage, ___fe_v4_change_table_actions, ___create_table_action_config_change, ___create_table_custom_column_config_change) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const QuickActionDefinitionRegistry = _____cpe_quick_actions_registry["QuickActionDefinitionRegistry"];
|
|
7
|
+
const AddControllerToPageQuickAction = ___common_add_controller_to_page["AddControllerToPageQuickAction"];
|
|
8
|
+
const ToggleClearFilterBarQuickAction = ___lr_toggle_clear_filter_bar["ToggleClearFilterBarQuickAction"];
|
|
9
|
+
const ChangeTableColumnsQuickAction = ___change_table_columns["ChangeTableColumnsQuickAction"];
|
|
10
|
+
const AddHeaderFieldQuickAction = ___common_op_add_header_field["AddHeaderFieldQuickAction"];
|
|
11
|
+
const AddCustomSectionQuickAction = ___op_add_custom_section["AddCustomSectionQuickAction"];
|
|
12
|
+
const AddPageActionQuickAction = ___create_page_action["AddPageActionQuickAction"];
|
|
13
|
+
const EnableTableFilteringQuickAction = ___lr_enable_table_filtering["EnableTableFilteringQuickAction"];
|
|
14
|
+
const ToggleSemanticDateRangeFilterBar = ___lr_enable_semantic_date_range_filter_bar["ToggleSemanticDateRangeFilterBar"];
|
|
15
|
+
const EnableTableEmptyRowModeQuickAction = ___op_enable_empty_row_mode["EnableTableEmptyRowModeQuickAction"];
|
|
16
|
+
const AddNewAnnotationFile = ___common_add_new_annotation_file["AddNewAnnotationFile"];
|
|
17
|
+
const EnableVariantManagementQuickAction = ___enable_variant_management["EnableVariantManagementQuickAction"];
|
|
18
|
+
const AddNewSubpage = ___fe_v4_add_new_subpage["AddNewSubpage"];
|
|
19
|
+
const ChangeTableActionsQuickAction = ___fe_v4_change_table_actions["ChangeTableActionsQuickAction"];
|
|
20
|
+
const AddTableActionQuickAction = ___create_table_action_config_change["AddTableActionQuickAction"];
|
|
21
|
+
const AddTableCustomColumnQuickAction = ___create_table_custom_column_config_change["AddTableCustomColumnQuickAction"];
|
|
22
|
+
const LIST_REPORT_TYPE = 'sap.fe.templates.ListReport.ListReport';
|
|
23
|
+
const OBJECT_PAGE_TYPE = 'sap.fe.templates.ObjectPage.ObjectPage';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Quick Action provider for SAP Fiori Elements V4 applications.
|
|
27
|
+
*/
|
|
28
|
+
class FEV4QuickActionRegistry extends QuickActionDefinitionRegistry {
|
|
29
|
+
PAGE_NAME_MAP = {
|
|
30
|
+
[LIST_REPORT_TYPE]: 'listReport',
|
|
31
|
+
[OBJECT_PAGE_TYPE]: 'objectPage'
|
|
32
|
+
};
|
|
33
|
+
getDefinitions(context) {
|
|
34
|
+
const activePages = this.getActivePageContent(context.controlIndex);
|
|
35
|
+
const definitionGroups = [];
|
|
36
|
+
for (let index = 0; index < activePages.length; index++) {
|
|
37
|
+
const {
|
|
38
|
+
name,
|
|
39
|
+
view
|
|
40
|
+
} = activePages[index];
|
|
41
|
+
if (name === 'listReport') {
|
|
42
|
+
definitionGroups.push({
|
|
43
|
+
title: 'LIST REPORT',
|
|
44
|
+
definitions: [AddControllerToPageQuickAction, AddPageActionQuickAction, ToggleClearFilterBarQuickAction, ToggleSemanticDateRangeFilterBar, EnableVariantManagementQuickAction, ChangeTableActionsQuickAction, ChangeTableColumnsQuickAction, AddTableActionQuickAction, AddTableCustomColumnQuickAction, EnableTableFilteringQuickAction, AddNewAnnotationFile, AddNewSubpage],
|
|
45
|
+
view,
|
|
46
|
+
key: name + index
|
|
47
|
+
});
|
|
48
|
+
} else if (name === 'objectPage') {
|
|
49
|
+
definitionGroups.push({
|
|
50
|
+
title: 'OBJECT PAGE',
|
|
51
|
+
definitions: [AddControllerToPageQuickAction, AddPageActionQuickAction, AddHeaderFieldQuickAction, AddCustomSectionQuickAction, EnableVariantManagementQuickAction, ChangeTableActionsQuickAction, ChangeTableColumnsQuickAction, AddTableActionQuickAction, AddTableCustomColumnQuickAction, EnableTableEmptyRowModeQuickAction, AddNewAnnotationFile, AddNewSubpage],
|
|
52
|
+
view,
|
|
53
|
+
key: name + index
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return definitionGroups;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return FEV4QuickActionRegistry;
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
QuickActionActivationContext,
|
|
3
|
+
QuickActionDefinitionGroup
|
|
4
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
5
|
+
import { QuickActionDefinitionRegistry } from '../../../cpe/quick-actions/registry';
|
|
6
|
+
|
|
7
|
+
import { AddControllerToPageQuickAction } from '../common/add-controller-to-page';
|
|
8
|
+
import { ToggleClearFilterBarQuickAction } from './lr-toggle-clear-filter-bar';
|
|
9
|
+
import { ChangeTableColumnsQuickAction } from './change-table-columns';
|
|
10
|
+
import { AddHeaderFieldQuickAction } from '../common/op-add-header-field';
|
|
11
|
+
import { AddCustomSectionQuickAction } from './op-add-custom-section';
|
|
12
|
+
import { AddPageActionQuickAction } from './create-page-action';
|
|
13
|
+
import { EnableTableFilteringQuickAction } from './lr-enable-table-filtering';
|
|
14
|
+
import { ToggleSemanticDateRangeFilterBar } from './lr-enable-semantic-date-range-filter-bar';
|
|
15
|
+
import { EnableTableEmptyRowModeQuickAction } from './op-enable-empty-row-mode';
|
|
16
|
+
import { AddNewAnnotationFile } from '../common/add-new-annotation-file';
|
|
17
|
+
import { EnableVariantManagementQuickAction } from './enable-variant-management';
|
|
18
|
+
import { AddNewSubpage } from '../fe-v4/add-new-subpage';
|
|
19
|
+
import { ChangeTableActionsQuickAction } from '../fe-v4/change-table-actions';
|
|
20
|
+
import { AddTableActionQuickAction } from './create-table-action-config-change';
|
|
21
|
+
import { AddTableCustomColumnQuickAction } from './create-table-custom-column-config-change';
|
|
22
|
+
|
|
23
|
+
type PageName = 'listReport' | 'objectPage';
|
|
24
|
+
|
|
25
|
+
const LIST_REPORT_TYPE = 'sap.fe.templates.ListReport.ListReport';
|
|
26
|
+
const OBJECT_PAGE_TYPE = 'sap.fe.templates.ObjectPage.ObjectPage';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Quick Action provider for SAP Fiori Elements V4 applications.
|
|
30
|
+
*/
|
|
31
|
+
export default class FEV4QuickActionRegistry extends QuickActionDefinitionRegistry<PageName> {
|
|
32
|
+
PAGE_NAME_MAP: Record<string, PageName> = {
|
|
33
|
+
[LIST_REPORT_TYPE]: 'listReport',
|
|
34
|
+
[OBJECT_PAGE_TYPE]: 'objectPage'
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
getDefinitions(context: QuickActionActivationContext): QuickActionDefinitionGroup[] {
|
|
38
|
+
const activePages = this.getActivePageContent(context.controlIndex);
|
|
39
|
+
const definitionGroups: QuickActionDefinitionGroup[] = [];
|
|
40
|
+
for (let index = 0; index < activePages.length; index++) {
|
|
41
|
+
const { name, view } = activePages[index];
|
|
42
|
+
if (name === 'listReport') {
|
|
43
|
+
definitionGroups.push({
|
|
44
|
+
title: 'LIST REPORT',
|
|
45
|
+
definitions: [
|
|
46
|
+
AddControllerToPageQuickAction,
|
|
47
|
+
AddPageActionQuickAction,
|
|
48
|
+
ToggleClearFilterBarQuickAction,
|
|
49
|
+
ToggleSemanticDateRangeFilterBar,
|
|
50
|
+
EnableVariantManagementQuickAction,
|
|
51
|
+
ChangeTableActionsQuickAction,
|
|
52
|
+
ChangeTableColumnsQuickAction,
|
|
53
|
+
AddTableActionQuickAction,
|
|
54
|
+
AddTableCustomColumnQuickAction,
|
|
55
|
+
EnableTableFilteringQuickAction,
|
|
56
|
+
AddNewAnnotationFile,
|
|
57
|
+
AddNewSubpage
|
|
58
|
+
],
|
|
59
|
+
view,
|
|
60
|
+
key: name + index
|
|
61
|
+
});
|
|
62
|
+
} else if (name === 'objectPage') {
|
|
63
|
+
definitionGroups.push({
|
|
64
|
+
title: 'OBJECT PAGE',
|
|
65
|
+
definitions: [
|
|
66
|
+
AddControllerToPageQuickAction,
|
|
67
|
+
AddPageActionQuickAction,
|
|
68
|
+
AddHeaderFieldQuickAction,
|
|
69
|
+
AddCustomSectionQuickAction,
|
|
70
|
+
EnableVariantManagementQuickAction,
|
|
71
|
+
ChangeTableActionsQuickAction,
|
|
72
|
+
ChangeTableColumnsQuickAction,
|
|
73
|
+
AddTableActionQuickAction,
|
|
74
|
+
AddTableCustomColumnQuickAction,
|
|
75
|
+
EnableTableEmptyRowModeQuickAction,
|
|
76
|
+
AddNewAnnotationFile,
|
|
77
|
+
AddNewSubpage
|
|
78
|
+
],
|
|
79
|
+
view,
|
|
80
|
+
key: name + index
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return definitionGroups;
|
|
85
|
+
}
|
|
86
|
+
}
|