@sap/ux-ui5-tooling 1.20.4 → 1.21.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 +39 -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 +15811 -9929
- 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 +43486 -41472
- package/dist/middlewares/fiori-tools-preview.js +56962 -3066
- package/dist/middlewares/fiori-tools-proxy.js +55281 -32282
- package/dist/middlewares/fiori-tools-servestatic.js +31629 -29
- 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 +162 -0
- package/dist/preview-middleware/dist/client/adp/api-handler.ts +188 -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 +102 -0
- package/dist/preview-middleware/dist/client/adp/init.ts +85 -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 +126 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.ts +150 -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 +96 -0
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.ts +99 -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 +1780 -1464
- package/dist/tasks/deploy/index.js +14857 -9062
- package/package.json +31 -34
- 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,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "sap/ui/dt/OverlayUtil", "../../cpe/quick-actions/utils", "../../utils/core", "../../utils/version", "./quick-action-base", "./control-types", "./fe-v2/utils", "../../utils/fe-v4"], function (___sap_ux_private_control_property_editor_common, OverlayUtil, ____cpe_quick_actions_utils, ____utils_core, ____utils_version, ___quick_action_base, ___control_types, ___fe_v2_utils, ____utils_fe_v4) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const NESTED_QUICK_ACTION_KIND = ___sap_ux_private_control_property_editor_common["NESTED_QUICK_ACTION_KIND"];
|
|
7
|
+
const getParentContainer = ____cpe_quick_actions_utils["getParentContainer"];
|
|
8
|
+
const getRelevantControlFromActivePage = ____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
9
|
+
const getControlById = ____utils_core["getControlById"];
|
|
10
|
+
const isA = ____utils_core["isA"];
|
|
11
|
+
const isManagedObject = ____utils_core["isManagedObject"];
|
|
12
|
+
const getUi5Version = ____utils_version["getUi5Version"];
|
|
13
|
+
const isLowerThanMinimalUi5Version = ____utils_version["isLowerThanMinimalUi5Version"];
|
|
14
|
+
const QuickActionDefinitionBase = ___quick_action_base["QuickActionDefinitionBase"];
|
|
15
|
+
const ANALYTICAL_TABLE_TYPE = ___control_types["ANALYTICAL_TABLE_TYPE"];
|
|
16
|
+
const GRID_TABLE_TYPE = ___control_types["GRID_TABLE_TYPE"];
|
|
17
|
+
const M_TABLE_TYPE = ___control_types["M_TABLE_TYPE"];
|
|
18
|
+
const MDC_TABLE_TYPE = ___control_types["MDC_TABLE_TYPE"];
|
|
19
|
+
const SMART_TABLE_TYPE = ___control_types["SMART_TABLE_TYPE"];
|
|
20
|
+
const TREE_TABLE_TYPE = ___control_types["TREE_TABLE_TYPE"];
|
|
21
|
+
const isVariantManagementEnabledOPPage = ___fe_v2_utils["isVariantManagementEnabledOPPage"];
|
|
22
|
+
const isMacroTable = ____utils_fe_v4["isMacroTable"];
|
|
23
|
+
const SMART_TABLE_ACTION_ID = 'CTX_COMP_VARIANT_CONTENT';
|
|
24
|
+
const M_TABLE_ACTION_ID = 'CTX_ADD_ELEMENTS_AS_CHILD';
|
|
25
|
+
const SETTINGS_ID = 'CTX_SETTINGS';
|
|
26
|
+
const REARRANGE_TOOLBAR_SETTINGS_ID = 'CTX_SETTINGS0';
|
|
27
|
+
const ICON_TAB_BAR_TYPE = 'sap.m.IconTabBar';
|
|
28
|
+
async function getActionId(table) {
|
|
29
|
+
const {
|
|
30
|
+
major,
|
|
31
|
+
minor
|
|
32
|
+
} = await getUi5Version();
|
|
33
|
+
if (isA(SMART_TABLE_TYPE, table)) {
|
|
34
|
+
if (major === 1 && minor === 96) {
|
|
35
|
+
return [SETTINGS_ID];
|
|
36
|
+
} else {
|
|
37
|
+
return [SMART_TABLE_ACTION_ID];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return [M_TABLE_ACTION_ID, SETTINGS_ID];
|
|
41
|
+
}
|
|
42
|
+
async function getRearrangeToolbarContentActionId() {
|
|
43
|
+
const {
|
|
44
|
+
major,
|
|
45
|
+
minor
|
|
46
|
+
} = await getUi5Version();
|
|
47
|
+
if (major === 1 && minor <= 127) {
|
|
48
|
+
return SETTINGS_ID;
|
|
49
|
+
}
|
|
50
|
+
return REARRANGE_TOOLBAR_SETTINGS_ID;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Base class for table quick actions.
|
|
54
|
+
*/
|
|
55
|
+
class TableQuickActionDefinitionBase extends QuickActionDefinitionBase {
|
|
56
|
+
isApplicable = false;
|
|
57
|
+
children = [];
|
|
58
|
+
tableMap = {};
|
|
59
|
+
get textKey() {
|
|
60
|
+
return this.defaultTextKey;
|
|
61
|
+
}
|
|
62
|
+
constructor(type, controlTypes, defaultTextKey, context, options = {}, enablementValidators = []) {
|
|
63
|
+
super(type, NESTED_QUICK_ACTION_KIND, defaultTextKey, context, enablementValidators);
|
|
64
|
+
this.type = type;
|
|
65
|
+
this.controlTypes = controlTypes;
|
|
66
|
+
this.defaultTextKey = defaultTextKey;
|
|
67
|
+
this.context = context;
|
|
68
|
+
this.options = options;
|
|
69
|
+
this.enablementValidators = enablementValidators;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Adds action id to the table map entry, if the service actions are needed.
|
|
74
|
+
*
|
|
75
|
+
* @param table - table element
|
|
76
|
+
* @param tableMapKey - map key
|
|
77
|
+
*/
|
|
78
|
+
async addSettingsActionId(table, tableMapKey) {
|
|
79
|
+
if (this.options.includeServiceAction) {
|
|
80
|
+
const actions = await this.context.actionService.get(table.getId());
|
|
81
|
+
const actionsIds = await getActionId(table);
|
|
82
|
+
const changeColumnActionId = actionsIds.find(actionId => actions.findIndex(action => action.id === actionId) > -1);
|
|
83
|
+
this.tableMap[tableMapKey].changeColumnActionId = changeColumnActionId;
|
|
84
|
+
const changeToolbarContentActionId = await getRearrangeToolbarContentActionId();
|
|
85
|
+
const changeToolbarContentAction = actions.find(action => action.id === changeToolbarContentActionId);
|
|
86
|
+
this.tableMap[tableMapKey].changeToolbarContentAction = changeToolbarContentAction ? {
|
|
87
|
+
id: changeToolbarContentAction.id,
|
|
88
|
+
enabled: changeToolbarContentAction.enabled
|
|
89
|
+
} : undefined;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Builds a map of custom tab keys to their associated table building blocks.
|
|
95
|
+
*
|
|
96
|
+
* @param iconTabBarFilterMap - A map of icon tab bar filter keys to their labels.
|
|
97
|
+
* @returns A map where each key is a combination of contextPath and metaPath, and the value is the corresponding custom tab key.
|
|
98
|
+
*/
|
|
99
|
+
getCustomViewTableBuildingBlocksMap(iconTabBarFilterMap) {
|
|
100
|
+
const customTabTableBuildingBlockMap = {};
|
|
101
|
+
const customTabs = Object.keys(iconTabBarFilterMap).filter(key => /^fe::CustomTab::\d+$/.test(key));
|
|
102
|
+
for (const key of customTabs) {
|
|
103
|
+
const items = this.iconTabBar?.getItems() ?? [];
|
|
104
|
+
const filterItem = items.find(item => isA('sap.m.IconTabFilter', item) && item.getKey() === key);
|
|
105
|
+
if (filterItem && isA('sap.m.IconTabFilter', filterItem)) {
|
|
106
|
+
filterItem.getContent().forEach(content => {
|
|
107
|
+
if (isMacroTable(content)) {
|
|
108
|
+
const {
|
|
109
|
+
metaPath,
|
|
110
|
+
contextPath
|
|
111
|
+
} = content;
|
|
112
|
+
const path = metaPath.startsWith(contextPath) ? metaPath : `${contextPath}${metaPath}`;
|
|
113
|
+
customTabTableBuildingBlockMap[path] = key;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return customTabTableBuildingBlockMap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Initializes action object instance
|
|
123
|
+
*/
|
|
124
|
+
async initialize() {
|
|
125
|
+
// No action found in control design time for version < 1.96
|
|
126
|
+
const version = await getUi5Version();
|
|
127
|
+
if (isLowerThanMinimalUi5Version(version, {
|
|
128
|
+
major: 1,
|
|
129
|
+
minor: 96
|
|
130
|
+
})) {
|
|
131
|
+
this.isApplicable = false;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const iconTabBarFilterMap = this.buildIconTabBarFilterMap();
|
|
135
|
+
const customViewTableBuildingBlockMap = this.getCustomViewTableBuildingBlocksMap(iconTabBarFilterMap);
|
|
136
|
+
for (const table of getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, this.controlTypes)) {
|
|
137
|
+
const tabKey = Object.keys(iconTabBarFilterMap).find(key => table.getId().endsWith(key));
|
|
138
|
+
const section = getParentContainer(table, 'sap.uxap.ObjectPageSection');
|
|
139
|
+
if (section) {
|
|
140
|
+
await this.collectChildrenInSection(section, table);
|
|
141
|
+
} else if (this.iconTabBar && tabKey) {
|
|
142
|
+
const label = `'${iconTabBarFilterMap[tabKey]}' table`;
|
|
143
|
+
const tableMapKey = this.children.length.toString();
|
|
144
|
+
const child = this.createChild(label, table, tableMapKey, customViewTableBuildingBlockMap);
|
|
145
|
+
this.children.push(child);
|
|
146
|
+
this.tableMap[tableMapKey] = {
|
|
147
|
+
table,
|
|
148
|
+
iconTabBarFilterKey: tabKey,
|
|
149
|
+
tableUpdateEventAttachedOnce: false
|
|
150
|
+
};
|
|
151
|
+
await this.addSettingsActionId(table, tableMapKey);
|
|
152
|
+
} else {
|
|
153
|
+
await this.processTable(table);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (this.children.length > 0) {
|
|
157
|
+
this.isApplicable = true;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Retrieves the internal table control from a UI5Element.
|
|
163
|
+
*
|
|
164
|
+
* @param table - The UI5Element instance to analyze.
|
|
165
|
+
* @returns The internal table otherwise undefined.
|
|
166
|
+
*/
|
|
167
|
+
getInternalTable(table) {
|
|
168
|
+
try {
|
|
169
|
+
let tableInternal;
|
|
170
|
+
if (isA(SMART_TABLE_TYPE, table)) {
|
|
171
|
+
const itemsAggregation = table.getAggregation('items');
|
|
172
|
+
tableInternal = itemsAggregation.find(item => [M_TABLE_TYPE, TREE_TABLE_TYPE, ANALYTICAL_TABLE_TYPE, GRID_TABLE_TYPE].some(tType => isA(tType, item)));
|
|
173
|
+
}
|
|
174
|
+
return tableInternal;
|
|
175
|
+
} catch {
|
|
176
|
+
return undefined;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Determines table label for the given table element
|
|
182
|
+
*
|
|
183
|
+
* @param table - table element
|
|
184
|
+
* @returns table label if found or 'Unnamed table'
|
|
185
|
+
*/
|
|
186
|
+
getTableLabel(table) {
|
|
187
|
+
if (isA(SMART_TABLE_TYPE, table) || isA(MDC_TABLE_TYPE, table)) {
|
|
188
|
+
const header = table.getHeader();
|
|
189
|
+
if (header) {
|
|
190
|
+
return `'${header}' table`;
|
|
191
|
+
}
|
|
192
|
+
} else if (isA(M_TABLE_TYPE, table)) {
|
|
193
|
+
const title = table?.getHeaderToolbar()?.getTitleControl()?.getText();
|
|
194
|
+
if (title) {
|
|
195
|
+
return `'${title}' table`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return 'Unnamed table';
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Builds a map kay/tab_name for ICON_TAB_BAR control of the active page, if such exists
|
|
203
|
+
*
|
|
204
|
+
* @returns built map
|
|
205
|
+
*/
|
|
206
|
+
buildIconTabBarFilterMap() {
|
|
207
|
+
const iconTabBarFilterMap = {};
|
|
208
|
+
|
|
209
|
+
// Assumption only a tab bar control per page.
|
|
210
|
+
const tabBar = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, [ICON_TAB_BAR_TYPE])[0];
|
|
211
|
+
if (tabBar) {
|
|
212
|
+
const control = getControlById(tabBar.getId());
|
|
213
|
+
if (isA(ICON_TAB_BAR_TYPE, control)) {
|
|
214
|
+
this.iconTabBar = control;
|
|
215
|
+
for (const item of control.getItems()) {
|
|
216
|
+
if (isManagedObject(item) && isA('sap.m.IconTabFilter', item)) {
|
|
217
|
+
iconTabBarFilterMap[item.getKey()] = item.getText();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return iconTabBarFilterMap;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Collects subsection data in the table map for the given section and table
|
|
227
|
+
*
|
|
228
|
+
* @param section - object page section
|
|
229
|
+
* @param table - table element
|
|
230
|
+
*/
|
|
231
|
+
async collectChildrenInSection(section, table) {
|
|
232
|
+
const layout = getParentContainer(table, 'sap.uxap.ObjectPageLayout');
|
|
233
|
+
const subSections = section.getSubSections();
|
|
234
|
+
const subSection = getParentContainer(table, 'sap.uxap.ObjectPageSubSection');
|
|
235
|
+
if (subSection) {
|
|
236
|
+
if (subSections?.length === 1) {
|
|
237
|
+
await this.processTable(table, {
|
|
238
|
+
section,
|
|
239
|
+
subSection: subSections[0],
|
|
240
|
+
layout
|
|
241
|
+
});
|
|
242
|
+
} else if (subSections.length > 1) {
|
|
243
|
+
const existingChildIdx = this.children.findIndex(val => val.label === `'${section.getTitle()}' section`);
|
|
244
|
+
let tableMapIndex;
|
|
245
|
+
const label = this.getTableLabel(table);
|
|
246
|
+
if (existingChildIdx < 0) {
|
|
247
|
+
tableMapIndex = `${this.children.length}/0`;
|
|
248
|
+
const child = this.createChild(label, table, tableMapIndex);
|
|
249
|
+
this.children.push({
|
|
250
|
+
path: this.children.length.toString(),
|
|
251
|
+
label: `'${section?.getTitle()}' section`,
|
|
252
|
+
enabled: true,
|
|
253
|
+
children: [child]
|
|
254
|
+
});
|
|
255
|
+
} else {
|
|
256
|
+
tableMapIndex = `${existingChildIdx}/${this.children[existingChildIdx].children.length}`;
|
|
257
|
+
const child = this.createChild(label, table, tableMapIndex);
|
|
258
|
+
this.children[existingChildIdx].children.push(child);
|
|
259
|
+
}
|
|
260
|
+
this.tableMap[tableMapIndex] = {
|
|
261
|
+
table,
|
|
262
|
+
sectionInfo: {
|
|
263
|
+
section,
|
|
264
|
+
subSection,
|
|
265
|
+
layout
|
|
266
|
+
},
|
|
267
|
+
tableUpdateEventAttachedOnce: false
|
|
268
|
+
};
|
|
269
|
+
await this.addSettingsActionId(table, tableMapIndex);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Processes table element and pushes table data to the children array
|
|
276
|
+
*
|
|
277
|
+
* @param table - table element
|
|
278
|
+
* @param sectionInfo - section info object
|
|
279
|
+
* @param sectionInfo.section
|
|
280
|
+
* @param sectionInfo.subSection
|
|
281
|
+
* @param sectionInfo.layout
|
|
282
|
+
*/
|
|
283
|
+
async processTable(table, sectionInfo) {
|
|
284
|
+
const tableMapKey = this.children.length.toString();
|
|
285
|
+
if ([SMART_TABLE_TYPE, M_TABLE_TYPE, MDC_TABLE_TYPE, TREE_TABLE_TYPE, GRID_TABLE_TYPE, ANALYTICAL_TABLE_TYPE].some(type => isA(type, table))) {
|
|
286
|
+
const label = this.getTableLabel(table);
|
|
287
|
+
const child = this.createChild(label, table, tableMapKey);
|
|
288
|
+
this.children.push(child);
|
|
289
|
+
}
|
|
290
|
+
this.tableMap[tableMapKey] = {
|
|
291
|
+
table,
|
|
292
|
+
sectionInfo: sectionInfo,
|
|
293
|
+
tableUpdateEventAttachedOnce: false
|
|
294
|
+
};
|
|
295
|
+
await this.addSettingsActionId(table, tableMapKey);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Selects closest overlay for the given table element
|
|
300
|
+
*
|
|
301
|
+
* @param table - table element
|
|
302
|
+
*/
|
|
303
|
+
selectOverlay(table) {
|
|
304
|
+
const controlOverlay = OverlayUtil.getClosestOverlayFor(table);
|
|
305
|
+
if (controlOverlay) {
|
|
306
|
+
controlOverlay.setSelected(true);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Prepares nested quick action object
|
|
312
|
+
*
|
|
313
|
+
* @returns action instance
|
|
314
|
+
*/
|
|
315
|
+
getActionObject() {
|
|
316
|
+
return {
|
|
317
|
+
kind: NESTED_QUICK_ACTION_KIND,
|
|
318
|
+
id: this.id,
|
|
319
|
+
enabled: !this.isDisabled,
|
|
320
|
+
tooltip: this.tooltip,
|
|
321
|
+
title: this.context.resourceBundle.getText(this.textKey),
|
|
322
|
+
children: this.children
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
createChild(label, table, path, customViewTableBuildingBlockMap) {
|
|
326
|
+
const child = {
|
|
327
|
+
path,
|
|
328
|
+
label,
|
|
329
|
+
enabled: true,
|
|
330
|
+
children: []
|
|
331
|
+
};
|
|
332
|
+
const parent = table.getParent();
|
|
333
|
+
const macroTable = isMacroTable(parent) ? parent : undefined;
|
|
334
|
+
if (this.options.validateTableColumns && macroTable) {
|
|
335
|
+
const {
|
|
336
|
+
metaPath,
|
|
337
|
+
contextPath
|
|
338
|
+
} = macroTable;
|
|
339
|
+
const finalPath = metaPath.startsWith(contextPath) ? metaPath : `${contextPath}${metaPath}`;
|
|
340
|
+
if (customViewTableBuildingBlockMap?.[finalPath]) {
|
|
341
|
+
child.enabled = false;
|
|
342
|
+
child.tooltip = this.context.resourceBundle.getText('CUSTOM_COLUMNS_NOT_SUPPORTED');
|
|
343
|
+
return child;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
if (this.options.validatePageVariantManagement) {
|
|
347
|
+
const variantEnabledV2 = isVariantManagementEnabledOPPage(this.context, table);
|
|
348
|
+
if (variantEnabledV2 === false) {
|
|
349
|
+
child.enabled = false;
|
|
350
|
+
child.tooltip = this.context.resourceBundle.getText('TABLE_ACTION_DISABLED_VARIANT_MANAGEMENT_NOT_AVAILABLE');
|
|
351
|
+
return child;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (!this.options.areTableRowsRequired) {
|
|
355
|
+
return child;
|
|
356
|
+
}
|
|
357
|
+
const innerTable = this.getInternalTable(table);
|
|
358
|
+
const tableRows = innerTable?.getAggregation('items') ?? [];
|
|
359
|
+
if (isA(M_TABLE_TYPE, innerTable) && Array.isArray(tableRows) && tableRows.length === 0) {
|
|
360
|
+
child.enabled = false;
|
|
361
|
+
child.tooltip = this.context.resourceBundle.getText('TABLE_ACTION_DISABLED_ROWS_NOT_AVAILABLE');
|
|
362
|
+
}
|
|
363
|
+
return child;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
var __exports = {
|
|
367
|
+
__esModule: true
|
|
368
|
+
};
|
|
369
|
+
__exports.TableQuickActionDefinitionBase = TableQuickActionDefinitionBase;
|
|
370
|
+
return __exports;
|
|
371
|
+
});
|
|
372
|
+
//# sourceMappingURL=table-quick-action-base.js.map
|