@sap/ux-ui5-tooling 1.20.4 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/adp-tooling/templates/cf/_gitignore +6 -0
- package/dist/adp-tooling/templates/cf/approuter/package.json +13 -0
- package/dist/adp-tooling/templates/cf/approuter/xs-app.json +15 -0
- package/dist/adp-tooling/templates/cf/i18n/i18n.properties +3 -0
- package/dist/adp-tooling/templates/cf/package.json +35 -0
- package/dist/adp-tooling/templates/cf/ui5.yaml +5 -0
- package/dist/adp-tooling/templates/cf/xs-security.json +7 -0
- package/dist/adp-tooling/templates/changes/annotation.xml +18 -0
- package/dist/adp-tooling/templates/project/gitignore.tmpl +5 -0
- package/dist/adp-tooling/templates/project/package.json +31 -0
- package/dist/adp-tooling/templates/project/ui5.yaml +6 -0
- package/dist/adp-tooling/templates/project/webapp/i18n/i18n.properties +6 -0
- package/dist/adp-tooling/templates/project/webapp/manifest.appdescr_variant +10 -0
- package/dist/adp-tooling/templates/rta/common/analytical-custom-column.xml +25 -0
- package/dist/adp-tooling/templates/rta/common/custom-action.xml +8 -0
- package/dist/adp-tooling/templates/rta/common/grid-tree-custom-column.xml +22 -0
- package/dist/adp-tooling/templates/rta/common/header-field.xml +13 -0
- package/dist/adp-tooling/templates/rta/common/op-custom-section.xml +20 -0
- package/dist/adp-tooling/templates/rta/common/v4-table-action.xml +8 -0
- package/dist/adp-tooling/templates/rta/controller.ejs +80 -0
- package/dist/adp-tooling/templates/rta/fragment.xml +7 -0
- package/dist/adp-tooling/templates/rta/ts-controller.ejs +18 -0
- package/dist/adp-tooling/templates/rta/v2/m-table-custom-column-cell.xml +7 -0
- package/dist/adp-tooling/templates/rta/v2/m-table-custom-column.xml +18 -0
- package/dist/adp-tooling/templates/rta/v4/custom-section.xml +12 -0
- package/dist/adp-tooling/templates/rta/v4/mdc-custom-column-config.xml +6 -0
- package/dist/adp-tooling/templates/rta/v4/mdc-custom-column.xml +11 -0
- package/dist/adp-tooling/templates/typescript/tsconfig.json +19 -0
- package/dist/cli/index.js +17761 -11603
- package/dist/control-property-editor/app.css +2 -0
- package/dist/control-property-editor/app.js +175 -0
- package/dist/livereload-js/livereload.js +3795 -0
- package/dist/middlewares/fiori-tools-appreload.js +44007 -41669
- package/dist/middlewares/fiori-tools-preview.js +66889 -4176
- package/dist/middlewares/fiori-tools-proxy.js +38049 -5767
- package/dist/middlewares/fiori-tools-servestatic.js +32893 -347
- package/dist/preview-middleware/dist/client/adp/add-fragment.js +48 -0
- package/dist/preview-middleware/dist/client/adp/add-fragment.ts +51 -0
- package/dist/preview-middleware/dist/client/adp/api-handler.js +165 -0
- package/dist/preview-middleware/dist/client/adp/api-handler.ts +191 -0
- package/dist/preview-middleware/dist/client/adp/command-executor.js +100 -0
- package/dist/preview-middleware/dist/client/adp/command-executor.ts +105 -0
- package/dist/preview-middleware/dist/client/adp/control-utils.js +46 -0
- package/dist/preview-middleware/dist/client/adp/control-utils.ts +48 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddActionFragment.controller.js +198 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddActionFragment.controller.ts +232 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddCustomFragment.controller.js +223 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddCustomFragment.controller.ts +257 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddFragment.controller.js +195 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddFragment.controller.ts +264 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddSubpage.controller.js +146 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddSubpage.controller.ts +209 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddTableColumnFragments.controller.js +232 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +306 -0
- package/dist/preview-middleware/dist/client/adp/controllers/BaseDialog.controller.js +187 -0
- package/dist/preview-middleware/dist/client/adp/controllers/BaseDialog.controller.ts +254 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ControllerExtension.controller.js +330 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ControllerExtension.controller.ts +408 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ExtensionPoint.controller.js +160 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ExtensionPoint.controller.ts +195 -0
- package/dist/preview-middleware/dist/client/adp/controllers/FileExistsDialog.controller.js +68 -0
- package/dist/preview-middleware/dist/client/adp/controllers/FileExistsDialog.controller.ts +86 -0
- package/dist/preview-middleware/dist/client/adp/controllers/types.js +2 -0
- package/dist/preview-middleware/dist/client/adp/controllers/types.ts +10 -0
- package/dist/preview-middleware/dist/client/adp/dialog-factory.js +151 -0
- package/dist/preview-middleware/dist/client/adp/dialog-factory.ts +210 -0
- package/dist/preview-middleware/dist/client/adp/extend-controller.js +48 -0
- package/dist/preview-middleware/dist/client/adp/extend-controller.ts +49 -0
- package/dist/preview-middleware/dist/client/adp/extension-point.js +83 -0
- package/dist/preview-middleware/dist/client/adp/extension-point.ts +116 -0
- package/dist/preview-middleware/dist/client/adp/init-dialogs.js +142 -0
- package/dist/preview-middleware/dist/client/adp/init-dialogs.ts +178 -0
- package/dist/preview-middleware/dist/client/adp/init.js +111 -0
- package/dist/preview-middleware/dist/client/adp/init.ts +92 -0
- package/dist/preview-middleware/dist/client/adp/ovp-window-functions.js +130 -0
- package/dist/preview-middleware/dist/client/adp/ovp-window-functions.ts +171 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.js +97 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.ts +140 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-controller-to-page.js +74 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-controller-to-page.ts +92 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-new-annotation-file.js +171 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-new-annotation-file.ts +174 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/create-page-action.js +56 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/create-page-action.ts +56 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-custom-section.js +41 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-custom-section.ts +51 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-header-field.js +69 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-header-field.ts +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/utils.js +20 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/utils.ts +7 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/control-types.js +25 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/control-types.ts +7 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/dialog-enablement-validator.js +26 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/dialog-enablement-validator.ts +18 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/enablement-validator.js +2 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/enablement-validator.ts +19 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/add-new-subpage.js +82 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/add-new-subpage.ts +87 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-actions.js +69 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-actions.ts +71 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +103 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-columns.ts +105 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-action.js +111 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-action.ts +110 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +108 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.ts +141 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +80 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.ts +93 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +79 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.ts +102 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +71 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.ts +98 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +61 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.ts +77 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +95 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.ts +102 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +86 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.ts +116 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/registry.js +79 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/registry.ts +121 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/utils.js +138 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/utils.ts +134 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/add-new-subpage.js +140 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/add-new-subpage.ts +181 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-actions.js +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-actions.ts +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +90 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-columns.ts +97 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-page-action.js +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-page-action.ts +98 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-action-config-change.js +129 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-action-config-change.ts +149 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.js +142 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.ts +178 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +83 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/enable-variant-management.ts +96 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +58 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.ts +70 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +86 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.ts +96 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +55 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.ts +61 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.js +73 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.ts +91 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +91 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.ts +88 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/registry.js +62 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/registry.ts +86 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/utils.js +158 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/utils.ts +175 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/load.js +46 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/load.ts +23 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/quick-action-base.js +64 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/quick-action-base.ts +71 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/simple-quick-action-base.js +44 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/simple-quick-action-base.ts +51 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/supported-ui5versions.md +40 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/table-quick-action-base.js +372 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/table-quick-action-base.ts +433 -0
- package/dist/preview-middleware/dist/client/adp/sync-views-utils.js +123 -0
- package/dist/preview-middleware/dist/client/adp/sync-views-utils.ts +90 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddAction.fragment.xml +49 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddCustomFragment.fragment.xml +48 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddFragment.fragment.xml +83 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddSubpage.fragment.xml +73 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddTableColumnFragments.fragment.xml +63 -0
- package/dist/preview-middleware/dist/client/adp/ui/ControllerExtension.fragment.xml +63 -0
- package/dist/preview-middleware/dist/client/adp/ui/ExtensionPoint.fragment.xml +61 -0
- package/dist/preview-middleware/dist/client/adp/ui/FileExistsDialog.fragment.xml +43 -0
- package/dist/preview-middleware/dist/client/adp/utils.js +199 -0
- package/dist/preview-middleware/dist/client/adp/utils.ts +200 -0
- package/dist/preview-middleware/dist/client/cpe/additional-change-info/add-xml-additional-info.js +85 -0
- package/dist/preview-middleware/dist/client/cpe/additional-change-info/add-xml-additional-info.ts +107 -0
- package/dist/preview-middleware/dist/client/cpe/changes/flex-change.js +66 -0
- package/dist/preview-middleware/dist/client/cpe/changes/flex-change.ts +66 -0
- package/dist/preview-middleware/dist/client/cpe/changes/generic-change.js +321 -0
- package/dist/preview-middleware/dist/client/cpe/changes/generic-change.ts +462 -0
- package/dist/preview-middleware/dist/client/cpe/changes/index.js +12 -0
- package/dist/preview-middleware/dist/client/cpe/changes/index.ts +1 -0
- package/dist/preview-middleware/dist/client/cpe/changes/service.js +527 -0
- package/dist/preview-middleware/dist/client/cpe/changes/service.ts +595 -0
- package/dist/preview-middleware/dist/client/cpe/changes/validator.js +41 -0
- package/dist/preview-middleware/dist/client/cpe/changes/validator.ts +35 -0
- package/dist/preview-middleware/dist/client/cpe/communication-service.js +44 -0
- package/dist/preview-middleware/dist/client/cpe/communication-service.ts +41 -0
- package/dist/preview-middleware/dist/client/cpe/connector-service.js +88 -0
- package/dist/preview-middleware/dist/client/cpe/connector-service.ts +74 -0
- package/dist/preview-middleware/dist/client/cpe/context-menu-service.js +90 -0
- package/dist/preview-middleware/dist/client/cpe/context-menu-service.ts +77 -0
- package/dist/preview-middleware/dist/client/cpe/control-data.js +366 -0
- package/dist/preview-middleware/dist/client/cpe/control-data.ts +400 -0
- package/dist/preview-middleware/dist/client/cpe/documentation.js +191 -0
- package/dist/preview-middleware/dist/client/cpe/documentation.ts +187 -0
- package/dist/preview-middleware/dist/client/cpe/feature-service.js +39 -0
- package/dist/preview-middleware/dist/client/cpe/feature-service.ts +25 -0
- package/dist/preview-middleware/dist/client/cpe/init.js +92 -0
- package/dist/preview-middleware/dist/client/cpe/init.ts +114 -0
- package/dist/preview-middleware/dist/client/cpe/logger.js +32 -0
- package/dist/preview-middleware/dist/client/cpe/logger.ts +24 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.js +136 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.ts +160 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-status.js +63 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-status.ts +52 -0
- package/dist/preview-middleware/dist/client/cpe/outline/editable.js +38 -0
- package/dist/preview-middleware/dist/client/cpe/outline/editable.ts +30 -0
- package/dist/preview-middleware/dist/client/cpe/outline/nodes.js +212 -0
- package/dist/preview-middleware/dist/client/cpe/outline/nodes.ts +236 -0
- package/dist/preview-middleware/dist/client/cpe/outline/service.js +62 -0
- package/dist/preview-middleware/dist/client/cpe/outline/service.ts +66 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/quick-action-service.js +161 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/quick-action-service.ts +184 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/registry.js +145 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/registry.ts +157 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/utils.js +94 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/utils.ts +113 -0
- package/dist/preview-middleware/dist/client/cpe/rta-service.js +94 -0
- package/dist/preview-middleware/dist/client/cpe/rta-service.ts +86 -0
- package/dist/preview-middleware/dist/client/cpe/selection.js +249 -0
- package/dist/preview-middleware/dist/client/cpe/selection.ts +267 -0
- package/dist/preview-middleware/dist/client/cpe/ui5-utils.js +35 -0
- package/dist/preview-middleware/dist/client/cpe/ui5-utils.ts +28 -0
- package/dist/preview-middleware/dist/client/cpe/utils.js +113 -0
- package/dist/preview-middleware/dist/client/cpe/utils.ts +162 -0
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.js +97 -0
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.ts +101 -0
- package/dist/preview-middleware/dist/client/flp/common.js +30 -0
- package/dist/preview-middleware/dist/client/flp/common.ts +28 -0
- package/dist/preview-middleware/dist/client/flp/enableFakeConnector.js +92 -0
- package/dist/preview-middleware/dist/client/flp/enableFakeConnector.ts +113 -0
- package/dist/preview-middleware/dist/client/flp/homepage/Component.js +16 -0
- package/dist/preview-middleware/dist/client/flp/homepage/Component.ts +10 -0
- package/dist/preview-middleware/dist/client/flp/homepage/controller/MyHome.controller.js +54 -0
- package/dist/preview-middleware/dist/client/flp/homepage/controller/MyHome.controller.ts +41 -0
- package/dist/preview-middleware/dist/client/flp/homepage/css/style.css +3 -0
- package/dist/preview-middleware/dist/client/flp/homepage/manifest.json +41 -0
- package/dist/preview-middleware/dist/client/flp/homepage/view/MyHome.view.xml +18 -0
- package/dist/preview-middleware/dist/client/flp/init.js +418 -0
- package/dist/preview-middleware/dist/client/flp/init.ts +448 -0
- package/dist/preview-middleware/dist/client/flp/initCdm.js +117 -0
- package/dist/preview-middleware/dist/client/flp/initCdm.ts +111 -0
- package/dist/preview-middleware/dist/client/flp/initConnectors.js +31 -0
- package/dist/preview-middleware/dist/client/flp/initConnectors.ts +20 -0
- package/dist/preview-middleware/dist/client/flp/initRta.js +180 -0
- package/dist/preview-middleware/dist/client/flp/initRta.ts +194 -0
- package/dist/preview-middleware/dist/client/i18n.js +56 -0
- package/dist/preview-middleware/dist/client/i18n.ts +49 -0
- package/dist/preview-middleware/dist/client/manifest.json +8 -0
- package/dist/preview-middleware/dist/client/messagebundle.properties +143 -0
- package/dist/preview-middleware/dist/client/thirdparty/@sap-ux-private/control-property-editor-common.js +486 -0
- package/dist/preview-middleware/dist/client/utils/additional-change-info.js +69 -0
- package/dist/preview-middleware/dist/client/utils/additional-change-info.ts +73 -0
- package/dist/preview-middleware/dist/client/utils/application.js +34 -0
- package/dist/preview-middleware/dist/client/utils/application.ts +27 -0
- package/dist/preview-middleware/dist/client/utils/core.js +144 -0
- package/dist/preview-middleware/dist/client/utils/core.ts +145 -0
- package/dist/preview-middleware/dist/client/utils/error.js +28 -0
- package/dist/preview-middleware/dist/client/utils/error.ts +18 -0
- package/dist/preview-middleware/dist/client/utils/fe-v2.js +58 -0
- package/dist/preview-middleware/dist/client/utils/fe-v2.ts +61 -0
- package/dist/preview-middleware/dist/client/utils/fe-v4.js +168 -0
- package/dist/preview-middleware/dist/client/utils/fe-v4.ts +186 -0
- package/dist/preview-middleware/dist/client/utils/info-center-message.js +60 -0
- package/dist/preview-middleware/dist/client/utils/info-center-message.ts +60 -0
- package/dist/preview-middleware/dist/client/utils/version.js +126 -0
- package/dist/preview-middleware/dist/client/utils/version.ts +138 -0
- package/dist/preview-middleware/templates/flp/cdm.base.json +47 -0
- package/dist/preview-middleware/templates/flp/cdm.ejs +72 -0
- package/dist/preview-middleware/templates/flp/editor.ejs +28 -0
- package/dist/preview-middleware/templates/flp/sandbox.ejs +88 -0
- package/dist/preview-middleware/templates/flp/sandbox2.ejs +86 -0
- package/dist/preview-middleware/templates/test/qunit.ejs +26 -0
- package/dist/preview-middleware/templates/test/qunit.js +29 -0
- package/dist/preview-middleware/templates/test/testsuite.qunit.ejs +10 -0
- package/dist/preview-middleware/templates/test/testsuite.qunit.js +8 -0
- package/dist/tasks/cf-deploy/index.js +3916 -3521
- package/dist/tasks/deploy/index.js +17204 -11133
- package/package.json +36 -39
- package/prebuilds/keyring.darwin-arm64.node +0 -0
- package/prebuilds/keyring.darwin-x64.node +0 -0
- package/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
- package/prebuilds/keyring.linux-arm64-gnu.node +0 -0
- package/prebuilds/keyring.linux-arm64-musl.node +0 -0
- package/prebuilds/keyring.linux-ia32-gnu.node +0 -0
- package/prebuilds/keyring.linux-x64-gnu.node +0 -0
- package/prebuilds/keyring.linux-x64-musl.node +0 -0
- package/prebuilds/keyring.win32-arm64-msvc.node +0 -0
- package/prebuilds/keyring.win32-ia32-msvc.node +0 -0
- package/prebuilds/keyring.win32-x64-msvc.node +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
CREATE_BUTTON_LABEL=Create
|
|
2
|
+
CANCEL_BUTTON_LABEL=Cancel
|
|
3
|
+
|
|
4
|
+
QUICK_ACTION_ADD_PAGE_CONTROLLER=Add Controller to Page
|
|
5
|
+
QUICK_ACTION_SHOW_PAGE_CONTROLLER=Show Page Controller
|
|
6
|
+
QUICK_ACTION_OP_ADD_HEADER_FIELD=Add Header Field
|
|
7
|
+
QUICK_ACTION_OP_ADD_CUSTOM_SECTION=Add Custom Section
|
|
8
|
+
QUICK_ACTION_ADD_CUSTOM_PAGE_ACTION=Add Custom Page Action
|
|
9
|
+
QUICK_ACTION_ADD_CUSTOM_TABLE_ACTION=Add Custom Table Action
|
|
10
|
+
QUICK_ACTION_ADD_CUSTOM_TABLE_COLUMN=Add Custom Table Column
|
|
11
|
+
QUICK_ACTION_ADD_NEW_ANNOTATION_FILE=Add Local Annotation File
|
|
12
|
+
QUICK_ACTION_SHOW_ANNOTATION_FILE=Show Local Annotation File
|
|
13
|
+
QUICK_ACTION_ENABLE_TABLE_FILTERING=Enable Table Filtering for Page Variants
|
|
14
|
+
QUICK_ACTION_ENABLE_TABLE_EMPTY_ROW_MODE=Enable Empty Row Mode for Tables
|
|
15
|
+
QUICK_ACTION_ENABLE_TABLES_AND_CHARTS_VARIANT_MANAGEMENT=Enable Variant Management in Tables and Charts
|
|
16
|
+
QUICK_ACTION_ENABLE_TABLES_AND_VARIANT_MANAGEMENT=Enable Variant Management in Tables
|
|
17
|
+
QUICK_ACTION_ADD_NEW_SUB_PAGE=Add Subpage
|
|
18
|
+
|
|
19
|
+
V2_QUICK_ACTION_CHANGE_TABLE_COLUMNS=Change Table Columns
|
|
20
|
+
V2_QUICK_ACTION_CHANGE_TABLE_ACTIONS=Change Table Actions
|
|
21
|
+
V2_QUICK_ACTION_LR_ENABLE_CLEAR_FILTER_BAR=Enable "Clear" Button in Filter Bar
|
|
22
|
+
V2_QUICK_ACTION_LR_DISABLE_CLEAR_FILTER_BAR=Disable "Clear" Button in Filter Bar
|
|
23
|
+
|
|
24
|
+
QUICK_ACTION_LR_ENABLE_SEMANTIC_DATE_RANGE_FILTER_BAR=Enable Semantic Date Range in Filter Bar
|
|
25
|
+
QUICK_ACTION_LR_DISABLE_SEMANTIC_DATE_RANGE_FILTER_BAR=Disable Semantic Date Range in Filter Bar
|
|
26
|
+
|
|
27
|
+
V4_QUICK_ACTION_CHANGE_TABLE_ACTIONS=Change Table Actions
|
|
28
|
+
V4_QUICK_ACTION_CHANGE_TABLE_COLUMNS=Change Table Columns
|
|
29
|
+
V4_QUICK_ACTION_LR_ENABLE_CLEAR_FILTER_BAR=Enable "Clear" Button in Filter Bar
|
|
30
|
+
V4_QUICK_ACTION_LR_DISABLE_CLEAR_FILTER_BAR=Disable "Clear" Button in Filter Bar
|
|
31
|
+
ADP_ADD_FRAGMENT_DIALOG_TITLE = Add XML Fragment
|
|
32
|
+
ADP_ADD_FRAGMENT_DIALOG_CONTROL_TYPE_LABEL = Control Type
|
|
33
|
+
ADP_ADD_FRAGMENT_DIALOG_AGGREGATION_LABEL = Target Aggregation
|
|
34
|
+
ADP_ADD_FRAGMENT_DIALOG_INDEX_LABEL = Index
|
|
35
|
+
ADP_ADD_FRAGMENT_DIALOG_FRAGMENT_NAME_LABEL = Fragment Name
|
|
36
|
+
ADP_ADD_FRAGMENT_DIALOG_COLUMN_FRAGMENT_NAME_LABEL = Column Fragment Name
|
|
37
|
+
ADP_ADD_FRAGMENT_DIALOG_CELL_FRAGMENT_NAME_LABEL = Cell Fragment Name
|
|
38
|
+
ADP_ADD_SUB_PAGE_DIALOG_PAGE_TYPE_LABEL = Page Type
|
|
39
|
+
ADP_ADD_SUB_PAGE_DIALOG_NAVIGATION_LABEL = Navigation
|
|
40
|
+
ADP_ADD_FRAGMENT_NOTIFICATION = Note: The `{0}.fragment.xml` fragment will be created once you save the change.
|
|
41
|
+
ADP_ADD_FRAGMENT_WITH_TEMPLATE_NOTIFICATION = Note: The `{0}.fragment.xml` fragment will be created once you save the changes.
|
|
42
|
+
ADP_CONTROLLER_EXTENSION_EXISTS = An existing controller extension has been found. Please use the previously created extension controller.
|
|
43
|
+
ADP_CONTROLLER_PENDING_CHANGE_EXISTS = A pending change for controller extension has been found. Please use the previously created extension controller after saving the change or delete the pending change.
|
|
44
|
+
ADP_CREATE_CONTROLLER_EXTENSION = Note: The `{0}` controller extension will be created once you save the change.
|
|
45
|
+
ADP_ADD_TWO_FRAGMENTS_WITH_TEMPLATE_NOTIFICATION = Note: The `{0}.fragment.xml` and `{1}.fragment.xml` fragments will be created once you save the changes.
|
|
46
|
+
ADP_SYNC_VIEWS_MESSAGE = Synchronous views are detected for this application. Controller extensions are not supported for such views and will be disabled.
|
|
47
|
+
ADP_QUICK_ACTION_DIALOG_OPEN_MESSAGE = This action is disabled because a dialog is already open.
|
|
48
|
+
ADP_QUICK_ACTION_CONTROLLER_PENDING_CHANGE_EXISTS =This action is disabled because a pending change for a controller extension has been found.
|
|
49
|
+
ADP_ADD_FRAGMENT_MENU_ITEM = Add: Fragment
|
|
50
|
+
ADP_ADD_FRAGMENT_MENU_ITEM_REUSE_COMPONENT = Add: Fragment (This action is disabled because the control is a reuse component)
|
|
51
|
+
ADP_ADD_FRAGMENT_MENU_ITEM_UNSTABLE_ID = Add: Fragment (This action is disabled because the control or parent control has an unstable ID)
|
|
52
|
+
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM = Extend Controller
|
|
53
|
+
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM_REUSE_COMPONENT = Extend Controller (This action is disabled because the control is a reuse component)
|
|
54
|
+
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM_SYNC_VIEW = Extend Controller (This action is disabled because the controls are part of a synchronous view)
|
|
55
|
+
ADP_SYNC_VIEWS_TITLE = Synchronous Views Detected
|
|
56
|
+
ADP_CREATE_XML_FRAGMENT_TITLE = Create XML Fragment
|
|
57
|
+
ADP_CREATE_XML_FRAGMENT_DESCRIPTION = Note: The ''{0}.fragment.xml'' fragment will be created once you save the change.
|
|
58
|
+
ADP_GET_COMMAND_FAILURE_TITLE = Get Command Failed
|
|
59
|
+
ADP_GET_COMMAND_FAILURE_DESCRIPTION = Could not get the command for ''{0}''. {1}.
|
|
60
|
+
ADP_GET_COMPOSITE_COMMAND_FAILURE_DESCRIPTION = Could not get the composite command. {0}.
|
|
61
|
+
ADP_RUN_COMMAND_FAILED_TITLE = Run Command Failed
|
|
62
|
+
ADP_ADD_FRAGMENT_FAILURE_TITLE = Add Fragment Failed
|
|
63
|
+
ADP_GET_FRAGMENTS_FAILURE_TITLE = Get Fragments Failed
|
|
64
|
+
ADP_CONTROLLER_ERROR_TITLE = Controller Error
|
|
65
|
+
ADP_EXTENSION_POINT_ERROR_TITLE = Extension Point Error
|
|
66
|
+
ADP_CREATE_CONTROLLER_EXTENSION_TITLE = Create Controller Extension
|
|
67
|
+
ADP_CREATE_CONTROLLER_EXTENSION_DESCRIPTION = Controller extension with name ''{0}'' was created.
|
|
68
|
+
ADP_ODATA_HEALTH_CHECK_TITLE = OData Service Health Check
|
|
69
|
+
ADP_ODATA_SERVICE_DOWN_DESCRIPTION = The OData service with the {0} endpoint is down. Error: {1}.
|
|
70
|
+
ADP_ADD_ACTION_DIALOG_ACTION_ID_LABEL = Action ID
|
|
71
|
+
ADP_ADD_ACTION_DIALOG_BUTTON_TEXT_LABEL = Button Text
|
|
72
|
+
ADP_ADD_ACTION_DIALOG_HANDLER_METHOD_LABEL = Handler Method
|
|
73
|
+
CHANGES_VISIBLE_AFTER_SAVE_AND_RELOAD_TITLE = Save and Reload Required
|
|
74
|
+
CHANGES_VISIBLE_AFTER_SAVE_AND_RELOAD_DESCRIPTION = Note: The change will be visible after save and reload.
|
|
75
|
+
CHANGE_CREATION_FAILED_TITLE = Change Creation Failed
|
|
76
|
+
DOCUMENTATION_ERROR_TITLE = Documentation Error
|
|
77
|
+
DOCUMENTATION_ERROR_DESCRIPTION = An error occurred in getting documentation for {0}. Check the control exists and try again.
|
|
78
|
+
FLP_ADAPTATION_START_FAILED_TITLE = Adaptation Initialization Failed
|
|
79
|
+
FLP_UI_VERSION_RETRIEVAL_FAILURE_TITLE = SAPUI5 Version Retrieval Failed
|
|
80
|
+
FLP_UI_INVALID_UI5_VERSION_DESCRIPTION = Invalid version info
|
|
81
|
+
FLP_UI_VERSION_RETRIEVAL_FAILURE_DESCRIPTION = Could not get the SAPUI5 version of the application. Using {0} as fallback.
|
|
82
|
+
FLP_UI5_VERSION_WARNING_TITLE = SAPUI5 Version Warning
|
|
83
|
+
FLP_UI5_VERSION_WARNING_DESCRIPTION = The current SAPUI5 version set for this adaptation project is {0}. The minimum version for SAPUI5 Adaptation Project and its SAPUI5 Adaptation Editor is {1}. Install version {1} or higher.
|
|
84
|
+
|
|
85
|
+
TABLE_ROWS_NEEDED_TO_CREATE_CUSTOM_COLUMN=At least one table row is required to create a new custom column. Make sure the table data is loaded and try again.
|
|
86
|
+
|
|
87
|
+
HIGHER_LAYER_CHANGES_TITLE = Higher Layer Changes Detected
|
|
88
|
+
HIGHER_LAYER_CHANGES_INFO_MESSAGE=The preview of the project was reloaded due to detected changes in higher layer than the one used in your project.
|
|
89
|
+
|
|
90
|
+
TABLE_ACTION_DISABLED_ROWS_NOT_AVAILABLE=This action has been disabled because the table rows are not available. Please load the table data and try again.
|
|
91
|
+
TABLE_ACTION_DISABLED_VARIANT_MANAGEMENT_NOT_AVAILABLE=This action has been disabled because variant management is disabled. Enable variant management and try again.
|
|
92
|
+
TABLE_FILTERING_CHANGE_HAS_ALREADY_BEEN_MADE=This option is disabled because table filtering for page variants is already enabled
|
|
93
|
+
EMPTY_ROW_MODE_IS_ALREADY_ENABLED=This option has been disabled because empty row mode is already enabled for this table
|
|
94
|
+
EMPTY_ROW_MODE_IS_NOT_SUPPORTED=This action is disabled because empty row mode is not supported for analytical and tree tables
|
|
95
|
+
VARIANT_MANAGEMENT_FOR_PAGE_CONTROLS_IS_ALREADY_ENABLED=This option has been disabled because variant management is already enabled for tables and charts
|
|
96
|
+
VARIANT_MANAGEMENT_FOR_TABLE_CONTROLS_IS_ALREADY_ENABLED=This option has been disabled because variant management is already enabled for the ''{0}''
|
|
97
|
+
VARIANT_MANAGEMENT_FOR_CUSTOM_TABLES_NOT_SUPPORTED=Variant management cannot be set for custom table ''{0}''
|
|
98
|
+
NO_TABLE_HEADER_TOOLBAR=This option has been disabled because the table does not have a header toolbar.
|
|
99
|
+
TABLE_HEADER_TOOLBAR_NOT_CHANGEABLE=This option is disabled because the contents of the table toolbar cannot be changed.
|
|
100
|
+
TABLE_HEADER_TOOLBAR_NOT_AVAILABLE=This option is disabled because the table toolbar is not available.
|
|
101
|
+
DISABLE_SHOW_HEADER_CONTENT=This option has been disabled because the "Show Header Content" page property is set to false.
|
|
102
|
+
ADD_ANNOTATION_FILE=Add Annotation File for ''{0}''
|
|
103
|
+
SHOW_ANNOTATION_FILE=Show Annotation File for ''{0}''
|
|
104
|
+
EXTEND_WITH_ANNOTATION=Extend With Annotation
|
|
105
|
+
ANNOTATION_FILE_HAS_BEEN_FOUND=An annotation file has been found.
|
|
106
|
+
SHOW_FILE_IN_VSCODE=Show File in VSCode
|
|
107
|
+
|
|
108
|
+
INVALID_BINDING_STRING=Invalid binding string.
|
|
109
|
+
INVALID_BINDING_STRING_FORMAT=Invalid binding string. The supported value pattern is {i18n>YOUR_KEY}
|
|
110
|
+
INVALID_BINDING_MODEL=Invalid binding model.
|
|
111
|
+
INVALID_BINDING_MODEL_KEY=Invalid key in the binding string. The supported value pattern is {i18n>YOUR_KEY}. Check if the key already exists in the `i18n.properties` file. If not, add the key in the `i18n.properties` file and reload the editor for the new key to take effect.
|
|
112
|
+
|
|
113
|
+
NO_SUB_PAGES_TO_ADD=This option has been disabled because there are no subpages to add
|
|
114
|
+
ADD_SUB_PAGE_DIALOG_TITLE=Add Subpage
|
|
115
|
+
|
|
116
|
+
ADD_NEW_ANNOTATION_FILE=Add New Annotation File
|
|
117
|
+
GENERIC_CHANGE_TITLE=Title
|
|
118
|
+
RENAME_CHANGE=Rename Control
|
|
119
|
+
MOVE_CONTROLS_CHANGE=Move Controls
|
|
120
|
+
ADD_XML_CHANGE=Add XML Fragment
|
|
121
|
+
CONFIGURATION_CHANGE=Configuration
|
|
122
|
+
ANNOTATION_FILE_URI=ANNOTATION FILE
|
|
123
|
+
SERVICE_NAME=SERVICE NAME
|
|
124
|
+
SELECTOR_ID=SELECTOR ID
|
|
125
|
+
NEW_VALUE=NEW VALUE
|
|
126
|
+
TEXT_TYPE=TEXT TYPE
|
|
127
|
+
MOVED_CONTROL_ID=CONTROL ID
|
|
128
|
+
NEW_VALUE=NEW VALUE
|
|
129
|
+
MOVE_FROM_INDEX=MOVE FROM
|
|
130
|
+
MOVE_TO_INDEX=MOVE TO
|
|
131
|
+
TARGET_CONTROL_ID=TARGET ID
|
|
132
|
+
AGGREGATION=TARGET AGGREGATION
|
|
133
|
+
FRAGMENT_PATH=FRAGMENT PATH
|
|
134
|
+
|
|
135
|
+
ACTION_ID_REQUIRED=Action ID is required.
|
|
136
|
+
ACTION_WITH_GIVEN_ID_ALREADY_EXISTS=An action with the ''{0}'' ID is already defined. Please choose a different ID.
|
|
137
|
+
ACTION_ID_CANNOT_CONTAIN_SPACES=Action ID cannot contain spaces.
|
|
138
|
+
BUTTON_TEXT_REQUIRED=Button Text is required.
|
|
139
|
+
CUSTOM_COLUMNS_NOT_SUPPORTED=Custom columns defined in the manifest.json file are not supported when using the Table building block.
|
|
140
|
+
ADP_ADD_CUSTOM_FRAGMENT_DIALOG_COLUMN_ID_LABEL=Column ID
|
|
141
|
+
ID_REQUIRED={0} ID is required.
|
|
142
|
+
GIVEN_ID_ALREADY_EXISTS={0} with ID ''{1}'' is already defined.
|
|
143
|
+
ID_INVALID_FORMAT={0} ID must start with a letter or _ and may contain letters, digits, _, ., :, and -.
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
sap.ui.define((function () { 'use strict';
|
|
2
|
+
|
|
3
|
+
function _mergeNamespaces(n, m) {
|
|
4
|
+
m.forEach(function (e) {
|
|
5
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
+
if (k !== 'default' && !(k in n)) {
|
|
7
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return e[k]; }
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
return Object.freeze(n);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function getDefaultExportFromCjs (x) {
|
|
19
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var dist = {};
|
|
23
|
+
|
|
24
|
+
var api = {};
|
|
25
|
+
|
|
26
|
+
var hasRequiredApi;
|
|
27
|
+
|
|
28
|
+
function requireApi () {
|
|
29
|
+
if (hasRequiredApi) return api;
|
|
30
|
+
hasRequiredApi = 1;
|
|
31
|
+
(function (exports$1) {
|
|
32
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
33
|
+
exports$1.requestControlContextMenu = exports$1.showInfoCenterMessage = exports$1.externalFileChange = exports$1.setApplicationRequiresReload = exports$1.executeContextMenuAction = exports$1.executeQuickAction = exports$1.updateQuickAction = exports$1.quickActionListChanged = exports$1.save = exports$1.redo = exports$1.undo = exports$1.appLoaded = exports$1.setSaveEnablement = exports$1.setUndoRedoEnablement = exports$1.applicationModeChanged = exports$1.setAppMode = exports$1.storageFileChanged = exports$1.reloadApplication = exports$1.toggleAppPreviewVisibility = exports$1.changeStackModified = exports$1.propertyChangeFailed = exports$1.propertyChanged = exports$1.changeProperty = exports$1.outlineChanged = exports$1.deletePropertyChanges = exports$1.addExtensionPoint = exports$1.selectControl = exports$1.controlSelected = exports$1.iconsLoaded = exports$1.EXTERNAL_ACTION_PREFIX = exports$1.REJECTED_SUFFIX = exports$1.FULFILLED_SUFFIX = exports$1.PENDING_SUFFIX = exports$1.MessageBarType = exports$1.NESTED_QUICK_ACTION_KIND = exports$1.SIMPLE_QUICK_ACTION_KIND = exports$1.CONTROL_CHANGE_KIND = exports$1.GENERIC_CHANGE_KIND = exports$1.UNKNOWN_CHANGE_KIND = exports$1.SAVED_CHANGE_TYPE = exports$1.PENDING_CHANGE_TYPE = exports$1.PropertyType = exports$1.SCENARIO = exports$1.CHECKBOX_EDITOR_TYPE = exports$1.DROPDOWN_EDITOR_TYPE = exports$1.INPUT_EDITOR_TYPE = exports$1.STRING_VALUE_TYPE = exports$1.FLOAT_VALUE_TYPE = exports$1.INTEGER_VALUE_TYPE = exports$1.BOOLEAN_VALUE_TYPE = void 0;
|
|
34
|
+
exports$1.createAsyncActionFactory = createAsyncActionFactory;
|
|
35
|
+
exports$1.BOOLEAN_VALUE_TYPE = 'boolean';
|
|
36
|
+
exports$1.INTEGER_VALUE_TYPE = 'integer';
|
|
37
|
+
exports$1.FLOAT_VALUE_TYPE = 'float';
|
|
38
|
+
exports$1.STRING_VALUE_TYPE = 'string';
|
|
39
|
+
exports$1.INPUT_EDITOR_TYPE = 'input';
|
|
40
|
+
exports$1.DROPDOWN_EDITOR_TYPE = 'dropdown';
|
|
41
|
+
exports$1.CHECKBOX_EDITOR_TYPE = 'checkbox';
|
|
42
|
+
exports$1.SCENARIO = {
|
|
43
|
+
AppVariant: 'APP_VARIANT',
|
|
44
|
+
VersionedAppVariant: 'VERSIONED_APP_VARIANT',
|
|
45
|
+
AdaptationProject: 'ADAPTATION_PROJECT',
|
|
46
|
+
FioriElementsFromScratch: 'FE_FROM_SCRATCH',
|
|
47
|
+
UiAdaptation: 'UI_ADAPTATION'
|
|
48
|
+
};
|
|
49
|
+
var PropertyType;
|
|
50
|
+
(function (PropertyType) {
|
|
51
|
+
PropertyType["Configuration"] = "configuration";
|
|
52
|
+
PropertyType["ControlProperty"] = "controlProperty";
|
|
53
|
+
})(PropertyType || (exports$1.PropertyType = PropertyType = {}));
|
|
54
|
+
exports$1.PENDING_CHANGE_TYPE = 'pending';
|
|
55
|
+
exports$1.SAVED_CHANGE_TYPE = 'saved';
|
|
56
|
+
exports$1.UNKNOWN_CHANGE_KIND = 'unknown';
|
|
57
|
+
exports$1.GENERIC_CHANGE_KIND = 'generic';
|
|
58
|
+
exports$1.CONTROL_CHANGE_KIND = 'control';
|
|
59
|
+
exports$1.SIMPLE_QUICK_ACTION_KIND = 'simple';
|
|
60
|
+
exports$1.NESTED_QUICK_ACTION_KIND = 'nested';
|
|
61
|
+
var MessageBarType;
|
|
62
|
+
(function (MessageBarType) {
|
|
63
|
+
/** Info styled MessageBar */
|
|
64
|
+
MessageBarType[MessageBarType["info"] = 0] = "info";
|
|
65
|
+
/** Error styled MessageBar */
|
|
66
|
+
MessageBarType[MessageBarType["error"] = 1] = "error";
|
|
67
|
+
/** Warning styled MessageBar */
|
|
68
|
+
MessageBarType[MessageBarType["warning"] = 5] = "warning";
|
|
69
|
+
})(MessageBarType || (exports$1.MessageBarType = MessageBarType = {}));
|
|
70
|
+
/**
|
|
71
|
+
* Create matcher.
|
|
72
|
+
*
|
|
73
|
+
* @param type action type
|
|
74
|
+
* @returns (value: { type: unknown } | undefined) => value is Y
|
|
75
|
+
*/
|
|
76
|
+
function createMatcher(type) {
|
|
77
|
+
return function match(value) {
|
|
78
|
+
return value?.type === type;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Create action factory.
|
|
83
|
+
*
|
|
84
|
+
* @param prefix to determine ext action
|
|
85
|
+
* @returns Function
|
|
86
|
+
*/
|
|
87
|
+
function createActionFactory(prefix) {
|
|
88
|
+
return function createAction(name) {
|
|
89
|
+
const actionType = [prefix, name].join(' ');
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @param payload action payload
|
|
93
|
+
* @returns PayloadAction<typeof actionType, T>
|
|
94
|
+
*/
|
|
95
|
+
function action(payload) {
|
|
96
|
+
return {
|
|
97
|
+
type: actionType,
|
|
98
|
+
payload
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
action.type = actionType;
|
|
102
|
+
action.match = createMatcher(actionType);
|
|
103
|
+
return action;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
exports$1.PENDING_SUFFIX = '<pending>';
|
|
107
|
+
exports$1.FULFILLED_SUFFIX = '<fulfilled>';
|
|
108
|
+
exports$1.REJECTED_SUFFIX = '<rejected>';
|
|
109
|
+
/**
|
|
110
|
+
* Factory for creating request response actions.
|
|
111
|
+
*
|
|
112
|
+
* @param prefix action prefix
|
|
113
|
+
* @returns Function
|
|
114
|
+
*/
|
|
115
|
+
function createAsyncActionFactory(prefix) {
|
|
116
|
+
return function createAction(name) {
|
|
117
|
+
const pendingType = [prefix, name, exports$1.PENDING_SUFFIX].join(' ');
|
|
118
|
+
/**
|
|
119
|
+
* Pending action.
|
|
120
|
+
*
|
|
121
|
+
* @param payload action payload
|
|
122
|
+
* @returns PayloadAction<typeof pendingType, T>
|
|
123
|
+
*/
|
|
124
|
+
function pending(payload) {
|
|
125
|
+
return {
|
|
126
|
+
type: pendingType,
|
|
127
|
+
payload
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
pending.type = pendingType;
|
|
131
|
+
pending.match = createMatcher(pendingType);
|
|
132
|
+
const fulfilledType = [prefix, name, exports$1.FULFILLED_SUFFIX].join(' ');
|
|
133
|
+
/**
|
|
134
|
+
* Fulfill action.
|
|
135
|
+
*
|
|
136
|
+
* @param payload action payload
|
|
137
|
+
* @returns PayloadAction<typeof fulfilledType, F>
|
|
138
|
+
*/
|
|
139
|
+
function fulfilled(payload) {
|
|
140
|
+
return {
|
|
141
|
+
type: fulfilledType,
|
|
142
|
+
payload
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
fulfilled.type = fulfilledType;
|
|
146
|
+
fulfilled.match = createMatcher(fulfilledType);
|
|
147
|
+
const rejectedType = [prefix, name, exports$1.REJECTED_SUFFIX].join(' ');
|
|
148
|
+
/**
|
|
149
|
+
* Reject action.
|
|
150
|
+
*
|
|
151
|
+
* @param message error message
|
|
152
|
+
* @param payload R
|
|
153
|
+
* @returns ErrorAction<typeof rejectedType, F>
|
|
154
|
+
*/
|
|
155
|
+
function rejected(message, payload) {
|
|
156
|
+
return {
|
|
157
|
+
type: rejectedType,
|
|
158
|
+
payload,
|
|
159
|
+
error: {
|
|
160
|
+
message
|
|
161
|
+
},
|
|
162
|
+
showMessage: true
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
rejected.type = rejectedType;
|
|
166
|
+
rejected.match = createMatcher(rejectedType);
|
|
167
|
+
return {
|
|
168
|
+
pending,
|
|
169
|
+
fulfilled,
|
|
170
|
+
rejected
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
exports$1.EXTERNAL_ACTION_PREFIX = '[ext]';
|
|
175
|
+
const createExternalAction = createActionFactory(exports$1.EXTERNAL_ACTION_PREFIX);
|
|
176
|
+
exports$1.iconsLoaded = createExternalAction('icons-loaded');
|
|
177
|
+
exports$1.controlSelected = createExternalAction('control-selected');
|
|
178
|
+
exports$1.selectControl = createExternalAction('select-control');
|
|
179
|
+
exports$1.addExtensionPoint = createExternalAction('add-extension-point');
|
|
180
|
+
exports$1.deletePropertyChanges = createExternalAction('delete-property-changes');
|
|
181
|
+
exports$1.outlineChanged = createExternalAction('outline-changed');
|
|
182
|
+
exports$1.changeProperty = createExternalAction('change-property');
|
|
183
|
+
exports$1.propertyChanged = createExternalAction('property-changed');
|
|
184
|
+
exports$1.propertyChangeFailed = createExternalAction('change-property-failed');
|
|
185
|
+
exports$1.changeStackModified = createExternalAction('change-stack-modified');
|
|
186
|
+
exports$1.toggleAppPreviewVisibility = createExternalAction('toggle-app-preview-visibility');
|
|
187
|
+
exports$1.reloadApplication = createExternalAction('reload-application');
|
|
188
|
+
exports$1.storageFileChanged = createExternalAction('storage-file-changed');
|
|
189
|
+
exports$1.setAppMode = createExternalAction('set-app-mode');
|
|
190
|
+
exports$1.applicationModeChanged = createExternalAction('application-mode-changed');
|
|
191
|
+
exports$1.setUndoRedoEnablement = createExternalAction('set-undo-redo-enablement');
|
|
192
|
+
exports$1.setSaveEnablement = createExternalAction('set-save-enablement');
|
|
193
|
+
exports$1.appLoaded = createExternalAction('app-loaded');
|
|
194
|
+
exports$1.undo = createExternalAction('undo');
|
|
195
|
+
exports$1.redo = createExternalAction('redo');
|
|
196
|
+
exports$1.save = createExternalAction('save');
|
|
197
|
+
exports$1.quickActionListChanged = createExternalAction('quick-action-list-changed');
|
|
198
|
+
exports$1.updateQuickAction = createExternalAction('update-quick-action');
|
|
199
|
+
exports$1.executeQuickAction = createExternalAction('execute-quick-action');
|
|
200
|
+
exports$1.executeContextMenuAction = createExternalAction('execute-context-menu-action');
|
|
201
|
+
exports$1.setApplicationRequiresReload = createExternalAction('set-application-requires-reload');
|
|
202
|
+
exports$1.externalFileChange = createExternalAction('external-file-change');
|
|
203
|
+
exports$1.showInfoCenterMessage = createExternalAction('show-info-center-message');
|
|
204
|
+
const createAsyncExternalAction = createAsyncActionFactory(exports$1.EXTERNAL_ACTION_PREFIX);
|
|
205
|
+
exports$1.requestControlContextMenu = createAsyncExternalAction('request-control-context-menu');
|
|
206
|
+
|
|
207
|
+
} (api));
|
|
208
|
+
return api;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
var debounce = {};
|
|
212
|
+
|
|
213
|
+
var hasRequiredDebounce;
|
|
214
|
+
|
|
215
|
+
function requireDebounce () {
|
|
216
|
+
if (hasRequiredDebounce) return debounce;
|
|
217
|
+
hasRequiredDebounce = 1;
|
|
218
|
+
Object.defineProperty(debounce, "__esModule", { value: true });
|
|
219
|
+
debounce.debounce = debounce$1;
|
|
220
|
+
/**
|
|
221
|
+
* Returns a function which calls the callback function only after the specified idle time
|
|
222
|
+
* Works similar to the Debounce operator from rxjs https://reactivex.io/documentation/operators/debounce.html link.
|
|
223
|
+
*
|
|
224
|
+
* @param callback Function to execute
|
|
225
|
+
* @param delay Idle period in milliseconds after which the callback will be executed
|
|
226
|
+
* @returns A wrapper function that should be called to invoke the callback function after delay
|
|
227
|
+
*/
|
|
228
|
+
function debounce$1(callback, delay) {
|
|
229
|
+
let timerId;
|
|
230
|
+
return (...args) => {
|
|
231
|
+
clearTimeout(timerId);
|
|
232
|
+
timerId = setTimeout(() => {
|
|
233
|
+
callback(...args);
|
|
234
|
+
}, delay);
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
return debounce;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
var postMessage = {};
|
|
242
|
+
|
|
243
|
+
var hasRequiredPostMessage;
|
|
244
|
+
|
|
245
|
+
function requirePostMessage () {
|
|
246
|
+
if (hasRequiredPostMessage) return postMessage;
|
|
247
|
+
hasRequiredPostMessage = 1;
|
|
248
|
+
Object.defineProperty(postMessage, "__esModule", { value: true });
|
|
249
|
+
postMessage.startPostMessageCommunication = startPostMessageCommunication;
|
|
250
|
+
const POST_MESSAGE_ACTION_TYPE = 'post-message-action';
|
|
251
|
+
/**
|
|
252
|
+
* Check if data isPostMessageAction.
|
|
253
|
+
*
|
|
254
|
+
* @param data - post message action
|
|
255
|
+
* @returns data is PostMessageAction<T>
|
|
256
|
+
*/
|
|
257
|
+
function isPostMessageAction(data) {
|
|
258
|
+
return data?.type === POST_MESSAGE_ACTION_TYPE && typeof data?.action === 'object';
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Method to start post message communication.
|
|
262
|
+
*
|
|
263
|
+
* @param target target window
|
|
264
|
+
* @param onActionHandler action handler
|
|
265
|
+
* @param logger to log info, default: browser console.
|
|
266
|
+
* @returns PostMessageCommunication<T>
|
|
267
|
+
*/
|
|
268
|
+
function startPostMessageCommunication(target, onActionHandler, logger = console) {
|
|
269
|
+
/**
|
|
270
|
+
* Returns target windows or undefined.
|
|
271
|
+
*
|
|
272
|
+
* @returns Window | undefined
|
|
273
|
+
*/
|
|
274
|
+
function getTarget() {
|
|
275
|
+
if (typeof target === 'function') {
|
|
276
|
+
return target();
|
|
277
|
+
}
|
|
278
|
+
return target;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Invoke action on post message.
|
|
282
|
+
*
|
|
283
|
+
* @param event event
|
|
284
|
+
*/
|
|
285
|
+
function postMessageListener(event) {
|
|
286
|
+
const target = getTarget();
|
|
287
|
+
if (!target || event.origin !== target.origin || event.source !== target) {
|
|
288
|
+
// Ignore messages from unknown sources
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (isPostMessageAction(event.data)) {
|
|
292
|
+
onActionHandler(event.data.action).catch((error) => logger.error(error));
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
logger.warn(`Unknown message received ${event.data}`);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function dispose() {
|
|
299
|
+
window.removeEventListener('message', postMessageListener);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Post message to a give window.
|
|
303
|
+
*
|
|
304
|
+
* @param action action payload
|
|
305
|
+
*/
|
|
306
|
+
function sendAction(action) {
|
|
307
|
+
const target = getTarget();
|
|
308
|
+
if (!target) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const message = {
|
|
312
|
+
type: POST_MESSAGE_ACTION_TYPE,
|
|
313
|
+
action
|
|
314
|
+
};
|
|
315
|
+
target.postMessage(message, target.origin);
|
|
316
|
+
}
|
|
317
|
+
window.addEventListener('message', postMessageListener);
|
|
318
|
+
return {
|
|
319
|
+
dispose,
|
|
320
|
+
sendAction
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
return postMessage;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
var telemetry = {};
|
|
328
|
+
|
|
329
|
+
var hasRequiredTelemetry;
|
|
330
|
+
|
|
331
|
+
function requireTelemetry () {
|
|
332
|
+
if (hasRequiredTelemetry) return telemetry;
|
|
333
|
+
hasRequiredTelemetry = 1;
|
|
334
|
+
Object.defineProperty(telemetry, "__esModule", { value: true });
|
|
335
|
+
telemetry.enableTelemetry = enableTelemetry;
|
|
336
|
+
telemetry.disableTelemetry = disableTelemetry;
|
|
337
|
+
telemetry.reportTelemetry = reportTelemetry;
|
|
338
|
+
let enabled = false;
|
|
339
|
+
function enableTelemetry() {
|
|
340
|
+
enabled = true;
|
|
341
|
+
}
|
|
342
|
+
function disableTelemetry() {
|
|
343
|
+
enabled = false;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Reports telemetry data from Control Property Editor.
|
|
347
|
+
*
|
|
348
|
+
* @param data The TelemetryData object, that needs to be reported
|
|
349
|
+
* @returns {Promise<void>}
|
|
350
|
+
*/
|
|
351
|
+
async function reportTelemetry(data) {
|
|
352
|
+
try {
|
|
353
|
+
if (enabled) {
|
|
354
|
+
const requestOptions = {
|
|
355
|
+
method: 'POST',
|
|
356
|
+
headers: {
|
|
357
|
+
Accept: 'application/json',
|
|
358
|
+
'Content-Type': 'application/json'
|
|
359
|
+
},
|
|
360
|
+
body: JSON.stringify(data)
|
|
361
|
+
};
|
|
362
|
+
await fetch('/preview/api/telemetry', requestOptions);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
catch (_error) {
|
|
366
|
+
// something is wrong with the telemetry service
|
|
367
|
+
disableTelemetry();
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
return telemetry;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
var utils = {};
|
|
375
|
+
|
|
376
|
+
var hasRequiredUtils;
|
|
377
|
+
|
|
378
|
+
function requireUtils () {
|
|
379
|
+
if (hasRequiredUtils) return utils;
|
|
380
|
+
hasRequiredUtils = 1;
|
|
381
|
+
Object.defineProperty(utils, "__esModule", { value: true });
|
|
382
|
+
utils.FlexChangesEndPoints = utils.convertCamelCaseToPascalCase = void 0;
|
|
383
|
+
const isUpperCase = (code) => code >= 65 && code <= 90;
|
|
384
|
+
const isLowerCase = (code) => code >= 97 && code <= 122;
|
|
385
|
+
const isWordDelimiter = (code) => code === 45 || code === 95 || code === 32; // - or _ or space
|
|
386
|
+
const convertCamelCaseToPascalCase = (text) => {
|
|
387
|
+
const words = [];
|
|
388
|
+
let word = '';
|
|
389
|
+
let lookForUpperCase = true;
|
|
390
|
+
for (let i = 0; i < (text ?? '').length; i++) {
|
|
391
|
+
const character = text[i];
|
|
392
|
+
if (lookForUpperCase) {
|
|
393
|
+
// make sure that the first letter is capitalized
|
|
394
|
+
word += word.length === 0 ? character.toUpperCase() : character;
|
|
395
|
+
if (isLowerCase(text.charCodeAt(i + 1))) {
|
|
396
|
+
// First lower case character after upper case character -> switch mode to collect only lower case characters
|
|
397
|
+
lookForUpperCase = false;
|
|
398
|
+
}
|
|
399
|
+
else if (isUpperCase(text.charCodeAt(i + 1)) && isLowerCase(text.charCodeAt(i + 2))) {
|
|
400
|
+
// Next character is the last uppercase character after a sequence of upper case character -> create an abbreviated word
|
|
401
|
+
words.push(word);
|
|
402
|
+
word = '';
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
else if (isUpperCase(text.charCodeAt(i))) {
|
|
406
|
+
// Upper case character indicates the beginning of a new word -> switch mode to detect abbreviated word
|
|
407
|
+
words.push(word);
|
|
408
|
+
lookForUpperCase = true;
|
|
409
|
+
word = character;
|
|
410
|
+
}
|
|
411
|
+
else if (isWordDelimiter(text.charCodeAt(i))) {
|
|
412
|
+
words.push(word);
|
|
413
|
+
lookForUpperCase = true;
|
|
414
|
+
word = '';
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
word += character;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if (word.length) {
|
|
421
|
+
words.push(word);
|
|
422
|
+
}
|
|
423
|
+
return words.join(' ');
|
|
424
|
+
};
|
|
425
|
+
utils.convertCamelCaseToPascalCase = convertCamelCaseToPascalCase;
|
|
426
|
+
var FlexChangesEndPoints;
|
|
427
|
+
(function (FlexChangesEndPoints) {
|
|
428
|
+
FlexChangesEndPoints["changes"] = "/preview/api/changes";
|
|
429
|
+
})(FlexChangesEndPoints || (utils.FlexChangesEndPoints = FlexChangesEndPoints = {}));
|
|
430
|
+
|
|
431
|
+
return utils;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
var hasRequiredDist;
|
|
435
|
+
|
|
436
|
+
function requireDist () {
|
|
437
|
+
if (hasRequiredDist) return dist;
|
|
438
|
+
hasRequiredDist = 1;
|
|
439
|
+
(function (exports$1) {
|
|
440
|
+
var __createBinding = (dist && dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
441
|
+
if (k2 === undefined) k2 = k;
|
|
442
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
443
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
444
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
445
|
+
}
|
|
446
|
+
Object.defineProperty(o, k2, desc);
|
|
447
|
+
}) : (function(o, m, k, k2) {
|
|
448
|
+
if (k2 === undefined) k2 = k;
|
|
449
|
+
o[k2] = m[k];
|
|
450
|
+
}));
|
|
451
|
+
var __exportStar = (dist && dist.__exportStar) || function(m, exports$1) {
|
|
452
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
453
|
+
};
|
|
454
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
455
|
+
exports$1.disableTelemetry = exports$1.enableTelemetry = exports$1.reportTelemetry = exports$1.startPostMessageCommunication = exports$1.debounce = void 0;
|
|
456
|
+
__exportStar(requireApi(), exports$1);
|
|
457
|
+
var debounce_1 = requireDebounce();
|
|
458
|
+
Object.defineProperty(exports$1, "debounce", { enumerable: true, get: function () { return debounce_1.debounce; } });
|
|
459
|
+
var post_message_1 = requirePostMessage();
|
|
460
|
+
Object.defineProperty(exports$1, "startPostMessageCommunication", { enumerable: true, get: function () { return post_message_1.startPostMessageCommunication; } });
|
|
461
|
+
var telemetry_1 = requireTelemetry();
|
|
462
|
+
Object.defineProperty(exports$1, "reportTelemetry", { enumerable: true, get: function () { return telemetry_1.reportTelemetry; } });
|
|
463
|
+
Object.defineProperty(exports$1, "enableTelemetry", { enumerable: true, get: function () { return telemetry_1.enableTelemetry; } });
|
|
464
|
+
Object.defineProperty(exports$1, "disableTelemetry", { enumerable: true, get: function () { return telemetry_1.disableTelemetry; } });
|
|
465
|
+
__exportStar(requireUtils(), exports$1);
|
|
466
|
+
|
|
467
|
+
} (dist));
|
|
468
|
+
return dist;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
var distExports = requireDist();
|
|
472
|
+
var defExp = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
473
|
+
|
|
474
|
+
var namedExports = /*#__PURE__*/_mergeNamespaces({
|
|
475
|
+
__proto__: null,
|
|
476
|
+
default: defExp
|
|
477
|
+
}, [distExports]);
|
|
478
|
+
|
|
479
|
+
const defaultExports = Object.isFrozen(defExp) ? Object.assign({}, defExp?.default || defExp || { __emptyModule: true }) : defExp;
|
|
480
|
+
Object.keys(namedExports || {}).filter((key) => !defaultExports[key]).forEach((key) => defaultExports[key] = namedExports[key]);
|
|
481
|
+
Object.defineProperty(defaultExports, "__" + "esModule", { value: true });
|
|
482
|
+
var index = Object.isFrozen(defExp) ? Object.freeze(defaultExports) : defaultExports;
|
|
483
|
+
|
|
484
|
+
return index;
|
|
485
|
+
|
|
486
|
+
}));
|