@sap-ux/fiori-app-sub-generator 1.3.66 → 1.3.67

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.
@@ -7,32 +7,8 @@ import { getSapSystemUI5Version, getUI5Versions, latestVersionString } from '@sa
7
7
  import merge from 'lodash/merge.js';
8
8
  import { join } from 'node:path';
9
9
  import { Features, defaultPromptValues } from '../types/index.js';
10
+ import { validateViewName } from '@sap-ux/project-input-validator';
10
11
  import { getMinSupportedUI5Version, t, validateNextStep } from '../utils/index.js';
11
- /**
12
- * Validates the view name.
13
- * The view name must be a valid identifier and must not be empty.
14
- * The view name must not exceed 120 characters.
15
- * The view name must start with a letter and can contain letters, numbers, hyphens, and underscores.
16
- *
17
- * @param {string} name The view name to validate.
18
- * @returns {boolean | string} true if the view name is valid, otherwise a string with the error message
19
- */
20
- function validateViewName(name) {
21
- // Validate input is not empty
22
- if (!name) {
23
- return t('prompts.viewName.validationMessages.viewNameRequired');
24
- }
25
- // Validate view names matches the allowed pattern
26
- const regExp = /^[a-zA-Z]+[a-zA-Z0-9-_]{0,120}$/;
27
- const result = regExp.test(name);
28
- if (name.length > 120) {
29
- return t('prompts.viewName.validationMessages.viewNameTooLong');
30
- }
31
- if (!result) {
32
- return t('prompts.viewName.validationMessages.viewNameInvalid');
33
- }
34
- return true;
35
- }
36
12
  const viewNamePromptName = 'viewName';
37
13
  export const getViewQuestion = () => {
38
14
  return {
@@ -88,12 +88,7 @@
88
88
  },
89
89
  "prompts": {
90
90
  "viewName": {
91
- "message": "View Name",
92
- "validationMessages": {
93
- "viewNameRequired": "You must provide a view name to continue.",
94
- "viewNameTooLong": "The view name cannot contain more than 120 characters.",
95
- "viewNameInvalid": "The view name must start with a letter and may contain letters, digits, dashes, and underscores."
96
- }
91
+ "message": "View Name"
97
92
  }
98
93
  }
99
94
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-app-sub-generator",
3
3
  "description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
4
- "version": "1.3.66",
4
+ "version": "1.3.67",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -36,18 +36,19 @@
36
36
  "@sap-ux/cap-config-writer": "1.0.40",
37
37
  "@sap-ux/fe-fpm-writer": "1.3.19",
38
38
  "@sap-ux/feature-toggle": "1.0.5",
39
- "@sap-ux/fiori-elements-writer": "3.1.64",
40
- "@sap-ux/fiori-freestyle-writer": "3.0.109",
39
+ "@sap-ux/fiori-elements-writer": "3.1.65",
40
+ "@sap-ux/fiori-freestyle-writer": "3.0.110",
41
41
  "@sap-ux/fiori-generator-shared": "1.2.18",
42
+ "@sap-ux/fiori-tools-settings": "1.1.0",
42
43
  "@sap-ux/launch-config": "1.0.22",
43
- "@sap-ux/odata-service-inquirer": "3.2.21",
44
+ "@sap-ux/odata-service-inquirer": "3.2.22",
44
45
  "@sap-ux/odata-service-writer": "1.0.23",
45
46
  "@sap-ux/project-access": "2.2.1",
47
+ "@sap-ux/project-input-validator": "1.0.21",
46
48
  "@sap-ux/store": "2.0.7",
47
49
  "@sap-ux/telemetry": "2.0.8",
48
- "@sap-ux/ui5-application-inquirer": "1.0.44",
49
- "@sap-ux/ui5-info": "1.0.6",
50
- "@sap-ux/fiori-tools-settings": "1.1.0"
50
+ "@sap-ux/ui5-application-inquirer": "1.0.45",
51
+ "@sap-ux/ui5-info": "1.0.6"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@jest/globals": "30.4.1",
@@ -65,8 +66,8 @@
65
66
  "mock-spawn": "0.2.6",
66
67
  "rimraf": "6.1.3",
67
68
  "yeoman-test": "6.3.0",
68
- "@sap-ux/deploy-config-sub-generator": "1.0.73",
69
- "@sap-ux/flp-config-sub-generator": "1.0.65",
69
+ "@sap-ux/deploy-config-sub-generator": "1.0.74",
70
+ "@sap-ux/flp-config-sub-generator": "1.0.66",
70
71
  "@sap-ux/inquirer-common": "1.0.44",
71
72
  "@sap-ux/jest-file-matchers": "1.0.3",
72
73
  "@sap-ux/logger": "1.0.3"