@sap-ux/preview-middleware 0.17.11 → 0.17.13

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.
Files changed (73) hide show
  1. package/dist/client/adp/api-handler.js +153 -153
  2. package/dist/client/adp/command-executor.js +75 -75
  3. package/dist/client/adp/control-utils.js +44 -44
  4. package/dist/client/adp/controllers/AddFragment.controller.js +1 -1
  5. package/dist/client/adp/controllers/AddFragment.controller.ts +1 -1
  6. package/dist/client/adp/controllers/BaseDialog.controller.js +187 -187
  7. package/dist/client/adp/controllers/ControllerExtension.controller.js +213 -213
  8. package/dist/client/adp/controllers/ExtensionPoint.controller.js +138 -138
  9. package/dist/client/adp/controllers/FileExistsDialog.controller.js +66 -66
  10. package/dist/client/adp/dialog-factory.js +122 -122
  11. package/dist/client/adp/init-dialogs.js +100 -100
  12. package/dist/client/adp/quick-actions/common/add-controller-to-page.js +55 -55
  13. package/dist/client/adp/quick-actions/common/create-page-action.js +50 -50
  14. package/dist/client/adp/quick-actions/common/op-add-custom-section.js +36 -36
  15. package/dist/client/adp/quick-actions/common/op-add-header-field.js +48 -48
  16. package/dist/client/adp/quick-actions/common/utils.js +18 -18
  17. package/dist/client/adp/quick-actions/control-types.js +21 -21
  18. package/dist/client/adp/quick-actions/dialog-enablement-validator.js +24 -24
  19. package/dist/client/adp/quick-actions/enablement-validator.js +4 -4
  20. package/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +101 -101
  21. package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +70 -70
  22. package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +96 -96
  23. package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +78 -78
  24. package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +77 -77
  25. package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +69 -69
  26. package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +58 -58
  27. package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +93 -93
  28. package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +81 -81
  29. package/dist/client/adp/quick-actions/fe-v2/registry.js +75 -75
  30. package/dist/client/adp/quick-actions/fe-v2/utils.js +95 -95
  31. package/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +73 -49
  32. package/dist/client/adp/quick-actions/fe-v4/change-table-columns.ts +46 -20
  33. package/dist/client/adp/quick-actions/fe-v4/create-table-action.js +49 -47
  34. package/dist/client/adp/quick-actions/fe-v4/create-table-action.ts +18 -28
  35. package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.js +46 -46
  36. package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +81 -81
  37. package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +55 -55
  38. package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +82 -82
  39. package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.ts +9 -14
  40. package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +52 -52
  41. package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +89 -89
  42. package/dist/client/adp/quick-actions/fe-v4/registry.js +58 -58
  43. package/dist/client/adp/quick-actions/fe-v4/utils.js +47 -47
  44. package/dist/client/adp/quick-actions/load.js +44 -44
  45. package/dist/client/adp/quick-actions/quick-action-base.js +53 -53
  46. package/dist/client/adp/utils.js +160 -160
  47. package/dist/client/cpe/changes/index.js +10 -10
  48. package/dist/client/cpe/changes/validator.js +39 -39
  49. package/dist/client/cpe/documentation.js +164 -164
  50. package/dist/client/cpe/feature-service.js +36 -36
  51. package/dist/client/cpe/logger.js +30 -30
  52. package/dist/client/cpe/outline/editable.js +37 -37
  53. package/dist/client/cpe/outline/nodes.js +222 -222
  54. package/dist/client/cpe/quick-actions/quick-action-definition.js +4 -4
  55. package/dist/client/cpe/quick-actions/registry.js +143 -143
  56. package/dist/client/cpe/quick-actions/utils.js +92 -92
  57. package/dist/client/cpe/types.js +4 -4
  58. package/dist/client/cpe/ui5-utils.js +33 -33
  59. package/dist/client/cpe/utils.js +138 -138
  60. package/dist/client/flp/WorkspaceConnector.js +86 -86
  61. package/dist/client/flp/common.js +28 -28
  62. package/dist/client/flp/enableFakeConnector.js +83 -83
  63. package/dist/client/flp/initConnectors.js +30 -30
  64. package/dist/client/flp/initRta.js +178 -178
  65. package/dist/client/i18n.js +56 -56
  66. package/dist/client/utils/application.js +32 -32
  67. package/dist/client/utils/core.js +68 -68
  68. package/dist/client/utils/error.js +19 -19
  69. package/dist/client/utils/fe-v4.js +118 -118
  70. package/dist/client/utils/version.js +102 -102
  71. package/package.json +7 -7
  72. package/dist/client/adp/quick-actions/fe-v4/table-quick-action-base.js +0 -67
  73. package/dist/client/adp/quick-actions/fe-v4/table-quick-action-base.ts +0 -75
@@ -1,104 +1,104 @@
1
- "use strict";
2
-
3
- sap.ui.define(["sap/ui/VersionInfo", "sap/base/Log"], function (VersionInfo, Log) {
4
- "use strict";
5
-
6
- /**
7
- * Default minimal supported UI5 version
8
- */
9
- const minVersionInfo = {
10
- major: 1,
11
- minor: 71
12
- };
13
-
14
- /**
15
- * Check if the given version info is valid.
16
- * @param versionInfo to check
17
- * @throws Error if the version info is invalid
18
- */
19
- function checkVersionInfo(versionInfo) {
20
- if (isNaN(versionInfo.major) || isNaN(versionInfo.minor) || isNaN(versionInfo.patch ?? 0)) {
21
- throw new Error('Invalid version info');
22
- }
23
- }
24
-
25
- /**
26
- * Retrieve the UI5 version.
27
- * If no library is given, the version from 'sap.ui.core' will be retrieved.
28
- * Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
29
- * For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
30
- *
31
- * @param library - (optional) specific library name to get the version from, e.g. 'sap.m'
32
- * @returns Ui5VersionInfo
33
- */
34
- async function getUi5Version() {
35
- let library = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'sap.ui.core';
36
- let version = (await VersionInfo.load({
37
- library
38
- }))?.version;
39
- if (!version) {
40
- Log.error('Could not get UI5 version of application. Using 1.121.0 as fallback.');
41
- version = '1.121.0';
42
- }
43
- const [major, minor, patch] = version.split('.').map(versionPart => parseInt(versionPart, 10));
44
- return {
45
- major: major,
46
- minor: minor,
47
- patch: patch
48
- };
49
- }
50
-
51
- /**
52
- * Checks if the given version is lower than the required minimal version.
53
- * Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
54
- * For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
55
- *
56
- * @param ui5VersionInfo to check
57
- * @param minUi5VersionInfo to check against (default is 1.71)
58
- * @throws Error if the version info is invalid
59
- *
60
- * @returns boolean
61
- */
62
- function isLowerThanMinimalUi5Version(ui5VersionInfo) {
63
- let minUi5VersionInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : minVersionInfo;
64
- checkVersionInfo(ui5VersionInfo);
65
- checkVersionInfo(minUi5VersionInfo);
66
- return ui5VersionInfo.major < minUi5VersionInfo.major || ui5VersionInfo.major === minUi5VersionInfo.major && ui5VersionInfo.minor < minUi5VersionInfo.minor || ui5VersionInfo.major === minUi5VersionInfo.major && ui5VersionInfo.minor === minUi5VersionInfo.minor && (ui5VersionInfo?.patch ?? 0) < (minUi5VersionInfo?.patch ?? 0);
67
- }
68
-
69
- /**
70
- * Checks if the given version is equal to the specified version.
71
- * Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
72
- * For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
73
- *
74
- * @param ui5VersionInfo to check
75
- * @param targetUi5VersionInfo to check against (default is 1.71)
76
- * @throws Error if the version info is invalid
77
- *
78
- * @returns boolean
79
- */
80
- function isVersionEqualOrHasNewerPatch(ui5VersionInfo) {
81
- let targetUi5VersionInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : minVersionInfo;
82
- checkVersionInfo(ui5VersionInfo);
83
- checkVersionInfo(targetUi5VersionInfo);
84
- return ui5VersionInfo.major === targetUi5VersionInfo.major && ui5VersionInfo.minor === targetUi5VersionInfo.minor && (ui5VersionInfo?.patch ?? 0) >= (targetUi5VersionInfo?.patch ?? 0);
85
- }
86
-
87
- /**
88
- * Get UI5 version validation message.
89
- * @param ui5VersionInfo to be mentioned in the message
90
- * @returns string with validation message.
91
- */
92
- function getUI5VersionValidationMessage(ui5VersionInfo) {
93
- return `The current SAPUI5 version set for this Adaptation project is ${ui5VersionInfo.major}.${ui5VersionInfo.minor}. The minimum version to use for SAPUI5 Adaptation Project and its SAPUI5 Visual Editor is ${minVersionInfo.major}.${minVersionInfo.minor}`;
94
- }
95
- var __exports = {
96
- __esModule: true
97
- };
98
- __exports.getUi5Version = getUi5Version;
99
- __exports.isLowerThanMinimalUi5Version = isLowerThanMinimalUi5Version;
100
- __exports.isVersionEqualOrHasNewerPatch = isVersionEqualOrHasNewerPatch;
101
- __exports.getUI5VersionValidationMessage = getUI5VersionValidationMessage;
102
- return __exports;
1
+ "use strict";
2
+
3
+ sap.ui.define(["sap/ui/VersionInfo", "sap/base/Log"], function (VersionInfo, Log) {
4
+ "use strict";
5
+
6
+ /**
7
+ * Default minimal supported UI5 version
8
+ */
9
+ const minVersionInfo = {
10
+ major: 1,
11
+ minor: 71
12
+ };
13
+
14
+ /**
15
+ * Check if the given version info is valid.
16
+ * @param versionInfo to check
17
+ * @throws Error if the version info is invalid
18
+ */
19
+ function checkVersionInfo(versionInfo) {
20
+ if (isNaN(versionInfo.major) || isNaN(versionInfo.minor) || isNaN(versionInfo.patch ?? 0)) {
21
+ throw new Error('Invalid version info');
22
+ }
23
+ }
24
+
25
+ /**
26
+ * Retrieve the UI5 version.
27
+ * If no library is given, the version from 'sap.ui.core' will be retrieved.
28
+ * Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
29
+ * For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
30
+ *
31
+ * @param library - (optional) specific library name to get the version from, e.g. 'sap.m'
32
+ * @returns Ui5VersionInfo
33
+ */
34
+ async function getUi5Version() {
35
+ let library = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'sap.ui.core';
36
+ let version = (await VersionInfo.load({
37
+ library
38
+ }))?.version;
39
+ if (!version) {
40
+ Log.error('Could not get UI5 version of application. Using 1.121.0 as fallback.');
41
+ version = '1.121.0';
42
+ }
43
+ const [major, minor, patch] = version.split('.').map(versionPart => parseInt(versionPart, 10));
44
+ return {
45
+ major: major,
46
+ minor: minor,
47
+ patch: patch
48
+ };
49
+ }
50
+
51
+ /**
52
+ * Checks if the given version is lower than the required minimal version.
53
+ * Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
54
+ * For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
55
+ *
56
+ * @param ui5VersionInfo to check
57
+ * @param minUi5VersionInfo to check against (default is 1.71)
58
+ * @throws Error if the version info is invalid
59
+ *
60
+ * @returns boolean
61
+ */
62
+ function isLowerThanMinimalUi5Version(ui5VersionInfo) {
63
+ let minUi5VersionInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : minVersionInfo;
64
+ checkVersionInfo(ui5VersionInfo);
65
+ checkVersionInfo(minUi5VersionInfo);
66
+ return ui5VersionInfo.major < minUi5VersionInfo.major || ui5VersionInfo.major === minUi5VersionInfo.major && ui5VersionInfo.minor < minUi5VersionInfo.minor || ui5VersionInfo.major === minUi5VersionInfo.major && ui5VersionInfo.minor === minUi5VersionInfo.minor && (ui5VersionInfo?.patch ?? 0) < (minUi5VersionInfo?.patch ?? 0);
67
+ }
68
+
69
+ /**
70
+ * Checks if the given version is equal to the specified version.
71
+ * Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
72
+ * For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
73
+ *
74
+ * @param ui5VersionInfo to check
75
+ * @param targetUi5VersionInfo to check against (default is 1.71)
76
+ * @throws Error if the version info is invalid
77
+ *
78
+ * @returns boolean
79
+ */
80
+ function isVersionEqualOrHasNewerPatch(ui5VersionInfo) {
81
+ let targetUi5VersionInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : minVersionInfo;
82
+ checkVersionInfo(ui5VersionInfo);
83
+ checkVersionInfo(targetUi5VersionInfo);
84
+ return ui5VersionInfo.major === targetUi5VersionInfo.major && ui5VersionInfo.minor === targetUi5VersionInfo.minor && (ui5VersionInfo?.patch ?? 0) >= (targetUi5VersionInfo?.patch ?? 0);
85
+ }
86
+
87
+ /**
88
+ * Get UI5 version validation message.
89
+ * @param ui5VersionInfo to be mentioned in the message
90
+ * @returns string with validation message.
91
+ */
92
+ function getUI5VersionValidationMessage(ui5VersionInfo) {
93
+ return `The current SAPUI5 version set for this Adaptation project is ${ui5VersionInfo.major}.${ui5VersionInfo.minor}. The minimum version to use for SAPUI5 Adaptation Project and its SAPUI5 Visual Editor is ${minVersionInfo.major}.${minVersionInfo.minor}`;
94
+ }
95
+ var __exports = {
96
+ __esModule: true
97
+ };
98
+ __exports.getUi5Version = getUi5Version;
99
+ __exports.isLowerThanMinimalUi5Version = isLowerThanMinimalUi5Version;
100
+ __exports.isVersionEqualOrHasNewerPatch = isVersionEqualOrHasNewerPatch;
101
+ __exports.getUI5VersionValidationMessage = getUI5VersionValidationMessage;
102
+ return __exports;
103
103
  });
104
104
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
11
11
  },
12
- "version": "0.17.11",
12
+ "version": "0.17.13",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -25,12 +25,12 @@
25
25
  "ejs": "3.1.10",
26
26
  "mem-fs": "2.1.0",
27
27
  "mem-fs-editor": "9.4.0",
28
- "@sap-ux/btp-utils": "0.18.0",
29
- "@sap-ux/feature-toggle": "0.2.3",
30
28
  "@sap-ux/logger": "0.6.0",
31
- "@sap-ux/project-access": "1.29.3",
29
+ "@sap-ux/feature-toggle": "0.2.3",
30
+ "@sap-ux/btp-utils": "1.0.0",
31
+ "@sap-ux/adp-tooling": "0.12.120",
32
32
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.5.33",
33
- "@sap-ux/adp-tooling": "0.12.119"
33
+ "@sap-ux/project-access": "1.29.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/ejs": "3.1.2",
@@ -46,8 +46,8 @@
46
46
  "supertest": "6.3.3",
47
47
  "@sap-ux-private/playwright": "0.1.0",
48
48
  "dotenv": "16.3.1",
49
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.55",
50
- "@sap-ux/axios-extension": "1.18.3",
49
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.56",
50
+ "@sap-ux/axios-extension": "1.18.4",
51
51
  "@sap-ux/store": "1.0.0",
52
52
  "@sap-ux/ui5-info": "0.8.3",
53
53
  "@sap-ux/i18n": "0.2.0"
@@ -1,67 +0,0 @@
1
- 'use strict';
2
- sap.ui.define([
3
- 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI',
4
- 'open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common',
5
- '../../../cpe/quick-actions/utils',
6
- '../quick-action-base'
7
- ], function (FlexRuntimeInfoAPI, ___sap_ux_private_control_property_editor_common, _____cpe_quick_actions_utils, ___quick_action_base) {
8
- 'use strict';
9
- const NESTED_QUICK_ACTION_KIND = ___sap_ux_private_control_property_editor_common['NESTED_QUICK_ACTION_KIND'];
10
- const getRelevantControlFromActivePage = _____cpe_quick_actions_utils['getRelevantControlFromActivePage'];
11
- const QuickActionDefinitionBase = ___quick_action_base['QuickActionDefinitionBase'];
12
- const ACTION_ID = 'CTX_SETTINGS0';
13
- class TableQuickActionDefinitionBase extends QuickActionDefinitionBase {
14
- isApplicable = false;
15
- isClearButtonEnabled = false;
16
- children = [];
17
- tableMap = {};
18
- constructor(type, controlTypes, defaultTextKey, context, isSkipVariantManagementCheck) {
19
- let enablementValidators = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];
20
- super(type, NESTED_QUICK_ACTION_KIND, defaultTextKey, context, enablementValidators);
21
- this.type = type;
22
- this.controlTypes = controlTypes;
23
- this.defaultTextKey = defaultTextKey;
24
- this.context = context;
25
- this.isSkipVariantManagementCheck = isSkipVariantManagementCheck;
26
- this.enablementValidators = enablementValidators;
27
- }
28
- async initialize() {
29
- let index = 0;
30
- for (const smartTable of getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, this.controlTypes)) {
31
- if (!this.isSkipVariantManagementCheck) {
32
- const hasVariantManagement = FlexRuntimeInfoAPI.hasVariantManagement({ element: smartTable });
33
- if (!hasVariantManagement) {
34
- continue;
35
- }
36
- }
37
- const actions = await this.context.actionService.get(smartTable.getId());
38
- const changeColumnAction = actions.find(action => action.id === ACTION_ID);
39
- if (changeColumnAction) {
40
- this.children.push({
41
- label: `'${ smartTable.getHeader() }' table`,
42
- enabled: true,
43
- children: []
44
- });
45
- this.tableMap[`${ this.children.length - 1 }`] = index;
46
- index++;
47
- }
48
- }
49
- if (this.children.length > 0) {
50
- this.isApplicable = true;
51
- }
52
- }
53
- getActionObject() {
54
- return {
55
- kind: NESTED_QUICK_ACTION_KIND,
56
- id: this.id,
57
- enabled: !this.isDisabled,
58
- tooltip: this.tooltip,
59
- title: this.context.resourceBundle.getText(this.textKey),
60
- children: this.children
61
- };
62
- }
63
- }
64
- var __exports = { __esModule: true };
65
- __exports.TableQuickActionDefinitionBase = TableQuickActionDefinitionBase;
66
- return __exports;
67
- });
@@ -1,75 +0,0 @@
1
- import Table from 'sap/ui/mdc/Table';
2
- import FlexRuntimeInfoAPI from 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI';
3
-
4
- import type { NestedQuickActionChild, NestedQuickAction } from '@sap-ux-private/control-property-editor-common';
5
- import { NESTED_QUICK_ACTION_KIND } from '@sap-ux-private/control-property-editor-common';
6
-
7
- import { QuickActionContext } from '../../../cpe/quick-actions/quick-action-definition';
8
- import { getRelevantControlFromActivePage } from '../../../cpe/quick-actions/utils';
9
- import { EnablementValidator } from '../enablement-validator';
10
- import { QuickActionDefinitionBase } from '../quick-action-base';
11
-
12
- const ACTION_ID = 'CTX_SETTINGS0';
13
-
14
- export abstract class TableQuickActionDefinitionBase extends QuickActionDefinitionBase<
15
- typeof NESTED_QUICK_ACTION_KIND
16
- > {
17
- isApplicable = false;
18
-
19
- isClearButtonEnabled = false;
20
- children: NestedQuickActionChild[] = [];
21
- tableMap: Record<string, number> = {};
22
- constructor(
23
- public readonly type: string,
24
- protected readonly controlTypes: string[],
25
- protected readonly defaultTextKey: string,
26
- protected readonly context: QuickActionContext,
27
- protected readonly isSkipVariantManagementCheck?: boolean,
28
- protected readonly enablementValidators: EnablementValidator[] = []
29
- ) {
30
- super(type, NESTED_QUICK_ACTION_KIND, defaultTextKey, context, enablementValidators);
31
- }
32
-
33
- async initialize(): Promise<void> {
34
- let index = 0;
35
- for (const smartTable of getRelevantControlFromActivePage(
36
- this.context.controlIndex,
37
- this.context.view,
38
- this.controlTypes
39
- )) {
40
- if (!this.isSkipVariantManagementCheck) {
41
- const hasVariantManagement = FlexRuntimeInfoAPI.hasVariantManagement({ element: smartTable });
42
- if (!hasVariantManagement) {
43
- continue;
44
- }
45
- }
46
-
47
- const actions = await this.context.actionService.get(smartTable.getId());
48
- const changeColumnAction = actions.find((action) => action.id === ACTION_ID);
49
- if (changeColumnAction) {
50
- this.children.push({
51
- label: `'${(smartTable as Table).getHeader()}' table`,
52
- enabled: true,
53
- children: []
54
- });
55
- this.tableMap[`${this.children.length - 1}`] = index;
56
- index++;
57
- }
58
- }
59
-
60
- if (this.children.length > 0) {
61
- this.isApplicable = true;
62
- }
63
- }
64
-
65
- getActionObject(): NestedQuickAction {
66
- return {
67
- kind: NESTED_QUICK_ACTION_KIND,
68
- id: this.id,
69
- enabled: !this.isDisabled,
70
- tooltip: this.tooltip,
71
- title: this.context.resourceBundle.getText(this.textKey),
72
- children: this.children
73
- };
74
- }
75
- }