@sap-ux/preview-middleware 0.20.0 → 0.20.2

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 (96) hide show
  1. package/dist/client/adp/add-fragment.js +46 -46
  2. package/dist/client/adp/api-handler.js +159 -159
  3. package/dist/client/adp/command-executor.js +75 -75
  4. package/dist/client/adp/command-executor.ts +4 -4
  5. package/dist/client/adp/control-utils.js +44 -44
  6. package/dist/client/adp/controllers/AddFragment.controller.js +1 -1
  7. package/dist/client/adp/controllers/AddFragment.controller.ts +2 -2
  8. package/dist/client/adp/controllers/AddTableColumnFragments.controller.js +1 -1
  9. package/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +2 -2
  10. package/dist/client/adp/controllers/BaseDialog.controller.js +2 -13
  11. package/dist/client/adp/controllers/BaseDialog.controller.ts +7 -25
  12. package/dist/client/adp/controllers/ControllerExtension.controller.js +268 -210
  13. package/dist/client/adp/controllers/ControllerExtension.controller.ts +110 -22
  14. package/dist/client/adp/controllers/ExtensionPoint.controller.js +139 -139
  15. package/dist/client/adp/controllers/FileExistsDialog.controller.js +66 -66
  16. package/dist/client/adp/dialog-factory.js +135 -135
  17. package/dist/client/adp/dialog-factory.ts +3 -1
  18. package/dist/client/adp/extend-controller.js +48 -0
  19. package/dist/client/adp/extend-controller.ts +49 -0
  20. package/dist/client/adp/init-dialogs.js +143 -163
  21. package/dist/client/adp/init-dialogs.ts +42 -20
  22. package/dist/client/adp/init.js +9 -1
  23. package/dist/client/adp/init.ts +6 -1
  24. package/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.js +96 -96
  25. package/dist/client/adp/quick-actions/common/add-controller-to-page.js +74 -60
  26. package/dist/client/adp/quick-actions/common/add-controller-to-page.ts +25 -3
  27. package/dist/client/adp/quick-actions/common/create-page-action.js +54 -54
  28. package/dist/client/adp/quick-actions/common/op-add-custom-section.js +39 -39
  29. package/dist/client/adp/quick-actions/common/op-add-header-field.js +67 -67
  30. package/dist/client/adp/quick-actions/common/utils.js +18 -18
  31. package/dist/client/adp/quick-actions/control-types.js +23 -23
  32. package/dist/client/adp/quick-actions/dialog-enablement-validator.js +24 -24
  33. package/dist/client/adp/quick-actions/enablement-validator.js +4 -4
  34. package/dist/client/adp/quick-actions/fe-v2/add-new-subpage.js +81 -81
  35. package/dist/client/adp/quick-actions/fe-v2/change-table-actions.js +67 -67
  36. package/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +101 -101
  37. package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +107 -107
  38. package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +99 -99
  39. package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +78 -78
  40. package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +77 -77
  41. package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +69 -69
  42. package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +59 -59
  43. package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +93 -93
  44. package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +84 -84
  45. package/dist/client/adp/quick-actions/fe-v2/registry.js +77 -77
  46. package/dist/client/adp/quick-actions/fe-v2/utils.js +116 -116
  47. package/dist/client/adp/quick-actions/fe-v4/add-new-subpage.js +138 -138
  48. package/dist/client/adp/quick-actions/fe-v4/change-table-actions.js +79 -79
  49. package/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +75 -75
  50. package/dist/client/adp/quick-actions/fe-v4/create-table-action.js +53 -53
  51. package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.js +49 -49
  52. package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +81 -81
  53. package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +56 -56
  54. package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +84 -84
  55. package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +53 -53
  56. package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +89 -89
  57. package/dist/client/adp/quick-actions/fe-v4/registry.js +60 -60
  58. package/dist/client/adp/quick-actions/fe-v4/utils.js +72 -72
  59. package/dist/client/adp/quick-actions/load.js +44 -44
  60. package/dist/client/adp/quick-actions/quick-action-base.js +64 -64
  61. package/dist/client/adp/ui/ControllerExtension.fragment.xml +14 -3
  62. package/dist/client/adp/utils.js +259 -218
  63. package/dist/client/adp/utils.ts +55 -7
  64. package/dist/client/cpe/additional-change-info/add-xml-additional-info.js +75 -75
  65. package/dist/client/cpe/changes/generic-change.js +326 -326
  66. package/dist/client/cpe/changes/index.js +10 -10
  67. package/dist/client/cpe/changes/validator.js +39 -39
  68. package/dist/client/cpe/connector-service.ts +1 -0
  69. package/dist/client/cpe/documentation.js +164 -164
  70. package/dist/client/cpe/feature-service.js +36 -36
  71. package/dist/client/cpe/logger.js +30 -30
  72. package/dist/client/cpe/outline/editable.js +37 -37
  73. package/dist/client/cpe/outline/nodes.js +203 -203
  74. package/dist/client/cpe/quick-actions/quick-action-definition.js +4 -4
  75. package/dist/client/cpe/quick-actions/registry.js +143 -143
  76. package/dist/client/cpe/quick-actions/utils.js +92 -92
  77. package/dist/client/cpe/types.js +4 -4
  78. package/dist/client/cpe/ui5-utils.js +33 -33
  79. package/dist/client/cpe/utils.js +111 -111
  80. package/dist/client/flp/WorkspaceConnector.js +92 -92
  81. package/dist/client/flp/common.js +28 -28
  82. package/dist/client/flp/enableFakeConnector.js +89 -89
  83. package/dist/client/flp/homepage/Component.js +14 -14
  84. package/dist/client/flp/initCdm.js +117 -117
  85. package/dist/client/flp/initConnectors.js +28 -28
  86. package/dist/client/flp/initRta.js +178 -178
  87. package/dist/client/i18n.js +56 -56
  88. package/dist/client/messagebundle.properties +5 -0
  89. package/dist/client/utils/additional-change-info.js +54 -54
  90. package/dist/client/utils/application.js +32 -32
  91. package/dist/client/utils/core.js +84 -84
  92. package/dist/client/utils/error.js +19 -19
  93. package/dist/client/utils/fe-v2.js +56 -56
  94. package/dist/client/utils/fe-v4.js +140 -140
  95. package/dist/client/utils/version.js +104 -104
  96. package/package.json +4 -4
@@ -1,16 +1,16 @@
1
- "use strict";
2
-
3
- sap.ui.define(["sap/ui/core/UIComponent"], function (BaseComponent) {
4
- "use strict";
5
-
6
- /**
7
- * @namespace open.ux.preview.client.flp.homepage
8
- */
9
- const Component = BaseComponent.extend("open.ux.preview.client.flp.homepage.Component", {
10
- metadata: {
11
- manifest: 'json'
12
- }
13
- });
14
- return Component;
1
+ "use strict";
2
+
3
+ sap.ui.define(["sap/ui/core/UIComponent"], function (BaseComponent) {
4
+ "use strict";
5
+
6
+ /**
7
+ * @namespace open.ux.preview.client.flp.homepage
8
+ */
9
+ const Component = BaseComponent.extend("open.ux.preview.client.flp.homepage.Component", {
10
+ metadata: {
11
+ manifest: 'json'
12
+ }
13
+ });
14
+ return Component;
15
15
  });
16
16
  //# sourceMappingURL=Component.js.map
@@ -1,119 +1,119 @@
1
- "use strict";
2
-
3
- sap.ui.define([], function () {
4
- "use strict";
5
-
6
- /**
7
- * Initializes the CDM (Common Data Model) configuration for the SAP Fiori Launchpad.
8
- *
9
- * @param {sap.ushell.Container} container - The SAP Fiori Launchpad container.
10
- * @returns {Promise<void>} A promise that resolves when the initialization is complete.
11
- */
12
- async function initCdm(container) {
13
- window['sap-ushell-config'] = {
14
- defaultRenderer: 'fiori2',
15
- renderers: {
16
- fiori2: {
17
- componentData: {
18
- config: {
19
- enableSearch: false,
20
- enableRecentActivity: true,
21
- rootIntent: 'Shell-home'
22
- }
23
- }
24
- }
25
- },
26
- ushell: {
27
- customPreload: {
28
- enabled: false
29
- },
30
- spaces: {
31
- enabled: true,
32
- myHome: {
33
- enabled: true
34
- }
35
- },
36
- homeApp: {
37
- component: {
38
- name: 'open.ux.preview.client.flp.homepage',
39
- url: '/preview/client/flp/homepage'
40
- }
41
- }
42
- },
43
- services: {
44
- Container: {
45
- adapter: {
46
- config: {
47
- userProfile: {
48
- metadata: {
49
- editablePropterties: ['accessibility', 'contentDensity', 'theme']
50
- },
51
- defaults: {
52
- email: 'john.doe@sap.com',
53
- firstName: 'John',
54
- lastName: 'Doe',
55
- fullName: 'John Doe',
56
- id: 'DOEJ'
57
- }
58
- }
59
- }
60
- }
61
- },
62
- CommonDataModel: {
63
- adapter: {
64
- config: {
65
- ignoreSiteDataPersonalization: true,
66
- siteDataUrl: '/cdm.json'
67
- }
68
- }
69
- },
70
- Personalization: {
71
- adapter: {
72
- module: 'sap.ushell.adapters.local.PersonalizationAdapter',
73
- config: {
74
- storageType: 'MEMORY'
75
- }
76
- }
77
- },
78
- PersonalizationV2: {
79
- adapter: {
80
- module: 'sap.ushell.adapters.local.PersonalizationAdapter',
81
- config: {
82
- storageType: 'MEMORY'
83
- }
84
- }
85
- },
86
- AppState: {
87
- adapter: {
88
- module: 'sap.ushell.adapters.local.AppStateAdapter'
89
- },
90
- config: {
91
- transient: true
92
- }
93
- },
94
- NavTargetResolutionInternal: {
95
- config: {
96
- allowTestUrlComponentConfig: false,
97
- enableClientSideTargetResolution: true
98
- },
99
- adapter: {
100
- module: 'sap.ushell.adapters.local.NavTargetResolutionInternalAdapter'
101
- }
102
- },
103
- UserInfo: {
104
- adapter: {
105
- module: 'sap.ushell.adapters.local.UserInfoAdapter'
106
- }
107
- },
108
- FlpLaunchPage: {
109
- adapter: {
110
- module: 'sap.ushell.adapters.cdm.v3.FlpLaunchPageAdapter'
111
- }
112
- }
113
- }
114
- };
115
- await container.init('cdm');
116
- }
117
- return initCdm;
1
+ "use strict";
2
+
3
+ sap.ui.define([], function () {
4
+ "use strict";
5
+
6
+ /**
7
+ * Initializes the CDM (Common Data Model) configuration for the SAP Fiori Launchpad.
8
+ *
9
+ * @param {sap.ushell.Container} container - The SAP Fiori Launchpad container.
10
+ * @returns {Promise<void>} A promise that resolves when the initialization is complete.
11
+ */
12
+ async function initCdm(container) {
13
+ window['sap-ushell-config'] = {
14
+ defaultRenderer: 'fiori2',
15
+ renderers: {
16
+ fiori2: {
17
+ componentData: {
18
+ config: {
19
+ enableSearch: false,
20
+ enableRecentActivity: true,
21
+ rootIntent: 'Shell-home'
22
+ }
23
+ }
24
+ }
25
+ },
26
+ ushell: {
27
+ customPreload: {
28
+ enabled: false
29
+ },
30
+ spaces: {
31
+ enabled: true,
32
+ myHome: {
33
+ enabled: true
34
+ }
35
+ },
36
+ homeApp: {
37
+ component: {
38
+ name: 'open.ux.preview.client.flp.homepage',
39
+ url: '/preview/client/flp/homepage'
40
+ }
41
+ }
42
+ },
43
+ services: {
44
+ Container: {
45
+ adapter: {
46
+ config: {
47
+ userProfile: {
48
+ metadata: {
49
+ editablePropterties: ['accessibility', 'contentDensity', 'theme']
50
+ },
51
+ defaults: {
52
+ email: 'john.doe@sap.com',
53
+ firstName: 'John',
54
+ lastName: 'Doe',
55
+ fullName: 'John Doe',
56
+ id: 'DOEJ'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ },
62
+ CommonDataModel: {
63
+ adapter: {
64
+ config: {
65
+ ignoreSiteDataPersonalization: true,
66
+ siteDataUrl: '/cdm.json'
67
+ }
68
+ }
69
+ },
70
+ Personalization: {
71
+ adapter: {
72
+ module: 'sap.ushell.adapters.local.PersonalizationAdapter',
73
+ config: {
74
+ storageType: 'MEMORY'
75
+ }
76
+ }
77
+ },
78
+ PersonalizationV2: {
79
+ adapter: {
80
+ module: 'sap.ushell.adapters.local.PersonalizationAdapter',
81
+ config: {
82
+ storageType: 'MEMORY'
83
+ }
84
+ }
85
+ },
86
+ AppState: {
87
+ adapter: {
88
+ module: 'sap.ushell.adapters.local.AppStateAdapter'
89
+ },
90
+ config: {
91
+ transient: true
92
+ }
93
+ },
94
+ NavTargetResolutionInternal: {
95
+ config: {
96
+ allowTestUrlComponentConfig: false,
97
+ enableClientSideTargetResolution: true
98
+ },
99
+ adapter: {
100
+ module: 'sap.ushell.adapters.local.NavTargetResolutionInternalAdapter'
101
+ }
102
+ },
103
+ UserInfo: {
104
+ adapter: {
105
+ module: 'sap.ushell.adapters.local.UserInfoAdapter'
106
+ }
107
+ },
108
+ FlpLaunchPage: {
109
+ adapter: {
110
+ module: 'sap.ushell.adapters.cdm.v3.FlpLaunchPageAdapter'
111
+ }
112
+ }
113
+ }
114
+ };
115
+ await container.init('cdm');
116
+ }
117
+ return initCdm;
118
118
  });
119
119
  //# sourceMappingURL=initCdm.js.map
@@ -1,30 +1,30 @@
1
- "use strict";
2
-
3
- sap.ui.define(["../utils/version"], function (___utils_version) {
4
- "use strict";
5
-
6
- const getUi5Version = ___utils_version["getUi5Version"];
7
- const isLowerThanMinimalUi5Version = ___utils_version["isLowerThanMinimalUi5Version"];
8
- /**
9
- * Initializes UI5 connectors based on the current UI5 version.
10
- *
11
- * For UI5 versions below 1.72, this function dynamically requires and executes a FakeLrepConnector.
12
- * For UI5 versions 1.72 and above, it defines a local connector that reuses the WorkspaceConnector.
13
- * This setup allows for flexibility in using different connectors based on the UI5 version.
14
- *
15
- * @example
16
- * intiConnectors(); // Simply call the function without any arguments.
17
- */
18
- async function initConnectors() {
19
- if (isLowerThanMinimalUi5Version(await getUi5Version(), {
20
- major: 1,
21
- minor: 72
22
- })) {
23
- sap.ui.require(['open/ux/preview/client/flp/enableFakeConnector'], function (enableFakeConnector) {
24
- enableFakeConnector();
25
- });
26
- }
27
- }
28
- return initConnectors;
1
+ "use strict";
2
+
3
+ sap.ui.define(["../utils/version"], function (___utils_version) {
4
+ "use strict";
5
+
6
+ const getUi5Version = ___utils_version["getUi5Version"];
7
+ const isLowerThanMinimalUi5Version = ___utils_version["isLowerThanMinimalUi5Version"];
8
+ /**
9
+ * Initializes UI5 connectors based on the current UI5 version.
10
+ *
11
+ * For UI5 versions below 1.72, this function dynamically requires and executes a FakeLrepConnector.
12
+ * For UI5 versions 1.72 and above, it defines a local connector that reuses the WorkspaceConnector.
13
+ * This setup allows for flexibility in using different connectors based on the UI5 version.
14
+ *
15
+ * @example
16
+ * intiConnectors(); // Simply call the function without any arguments.
17
+ */
18
+ async function initConnectors() {
19
+ if (isLowerThanMinimalUi5Version(await getUi5Version(), {
20
+ major: 1,
21
+ minor: 72
22
+ })) {
23
+ sap.ui.require(['open/ux/preview/client/flp/enableFakeConnector'], function (enableFakeConnector) {
24
+ enableFakeConnector();
25
+ });
26
+ }
27
+ }
28
+ return initConnectors;
29
29
  });
30
30
  //# sourceMappingURL=initConnectors.js.map