@sap-ux/odata-service-inquirer 2.18.13 → 2.19.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.
@@ -250,14 +250,22 @@ function getTableLayoutQuestions(templateType, odataVersion, isCapService, metad
250
250
  defaultTableType = undefined;
251
251
  return prevAnswers.tableType;
252
252
  },
253
- additionalMessages: () => {
254
- if (defaultTableType === 'AnalyticalTable') {
253
+ additionalMessages: (selectedTableType) => {
254
+ // Show responsive table info whenever ResponsiveTable is selected
255
+ if (selectedTableType === 'ResponsiveTable') {
256
+ return {
257
+ message: (0, i18n_1.t)('prompts.tableType.responsiveTableInfo'),
258
+ severity: yeoman_ui_types_1.Severity.information
259
+ };
260
+ }
261
+ // Show default type info when the default is selected
262
+ if (defaultTableType === 'AnalyticalTable' && selectedTableType === 'AnalyticalTable') {
255
263
  return {
256
264
  message: (0, i18n_1.t)('prompts.tableType.analyticalTableDefault'),
257
265
  severity: yeoman_ui_types_1.Severity.information
258
266
  };
259
267
  }
260
- else if (defaultTableType === 'TreeTable') {
268
+ else if (defaultTableType === 'TreeTable' && selectedTableType === 'TreeTable') {
261
269
  return {
262
270
  message: (0, i18n_1.t)('prompts.tableType.treeTableDefault'),
263
271
  severity: yeoman_ui_types_1.Severity.information
@@ -167,7 +167,8 @@
167
167
  "choiceResponsive": "Responsive",
168
168
  "choiceTree": "Tree",
169
169
  "analyticalTableDefault": "The 'Analytical' table type is chosen by default because the selected entity supports it.",
170
- "treeTableDefault": "The 'Tree' table type is chosen by default because the selected entity supports it."
170
+ "treeTableDefault": "The 'Tree' table type is chosen by default because the selected entity supports it.",
171
+ "responsiveTableInfo": "Only use the responsive table if the total number of items in the table doesn't exceed 200."
171
172
  },
172
173
  "hierarchyQualifier": {
173
174
  "message": "Hierarchy Qualifier",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/odata-service-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for odata service writing",
4
- "version": "2.18.13",
4
+ "version": "2.19.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,15 +29,15 @@
29
29
  "i18next": "25.8.12",
30
30
  "inquirer-autocomplete-prompt": "2.0.1",
31
31
  "os-name": "4.0.1",
32
- "@sap-ux/axios-extension": "1.25.17",
33
32
  "@sap-ux/btp-utils": "1.1.9",
34
33
  "@sap-ux/fiori-generator-shared": "0.13.81",
35
- "@sap-ux/guided-answers-helper": "0.4.2",
36
- "@sap-ux/telemetry": "0.6.82",
37
34
  "@sap-ux/inquirer-common": "0.11.16",
38
- "@sap-ux/logger": "0.8.1",
35
+ "@sap-ux/axios-extension": "1.25.17",
39
36
  "@sap-ux/nodejs-utils": "0.2.16",
37
+ "@sap-ux/guided-answers-helper": "0.4.2",
38
+ "@sap-ux/telemetry": "0.6.82",
40
39
  "@sap-ux/project-access": "1.35.10",
40
+ "@sap-ux/logger": "0.8.1",
41
41
  "@sap-ux/project-input-validator": "0.6.64",
42
42
  "@sap-ux/store": "1.5.8"
43
43
  },