@sap-ux/project-input-validator 0.6.5 → 0.6.7
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.
|
@@ -1,72 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"deploy": {
|
|
3
|
-
"abapAppDescLength": "
|
|
4
|
-
"abapTransportNumRequired": "Provide a transport request for your application",
|
|
5
|
-
"abapPackageWarn": "Provide a package",
|
|
6
|
-
"abapAppNameRequired": "
|
|
7
|
-
"abapInvalidNamespace": "
|
|
8
|
-
"abapInvalidNamespaceLength": "
|
|
9
|
-
"abapInvalidAppNameLength": "
|
|
10
|
-
"abapInvalidAppName": "
|
|
11
|
-
"charactersForbiddenInAppName": "Only alphanumeric, underscore and slash characters are allowed",
|
|
12
|
-
"invalidAppNameMultipleReason": "
|
|
3
|
+
"abapAppDescLength": "The deployment description cannot exceed 60 characters.",
|
|
4
|
+
"abapTransportNumRequired": "Provide a transport request for your application.",
|
|
5
|
+
"abapPackageWarn": "Provide a package.",
|
|
6
|
+
"abapAppNameRequired": "The application name is required.",
|
|
7
|
+
"abapInvalidNamespace": "The namespace is invalid because there are too many forward slashes.",
|
|
8
|
+
"abapInvalidNamespaceLength": "The namespace is limited to 10 characters. Entered {{length}}.",
|
|
9
|
+
"abapInvalidAppNameLength": "The application name is limited to 15 characters. Entered {{length}}.",
|
|
10
|
+
"abapInvalidAppName": "The application name must be prefixed with [{{prefix}}].",
|
|
11
|
+
"charactersForbiddenInAppName": "Only alphanumeric, underscore, and slash characters are allowed.",
|
|
12
|
+
"invalidAppNameMultipleReason": "The application name is invalid for multiple reasons:"
|
|
13
13
|
},
|
|
14
14
|
"ui5": {
|
|
15
|
-
"namespaceMustStartWithLetter": "The namespace must start with a letter",
|
|
16
|
-
"namespaceEndInPeriod": "The namespace cannot end with a period",
|
|
17
|
-
"namespaceCannotBeSap": "The namespace cannot be {{str}}",
|
|
18
|
-
"namespaceStartsWithNew": "The namespace cannot start with {{str}}",
|
|
19
|
-
"namespaceNumberAfterPeriod": "A number cannot follow a period in the namespace",
|
|
20
|
-
"lowerAlphaNumericOnly": "
|
|
21
|
-
"lowerAlphaNumericDotsOnly": "
|
|
22
|
-
"namespaceSpecialCharacter": "The namespace can only contain letters, digits, dots, and underscores",
|
|
23
|
-
"moduleNameMustStartWithLetter": "The module name must start with a letter",
|
|
24
|
-
"nameCombinedTooLong": "The combined length of the namespace and module name must not exceed {{length}} characters",
|
|
25
|
-
"folderDoesNotExist": "
|
|
26
|
-
"folderDoesNotHaveCorrectPermissions": "
|
|
27
|
-
"enterProjectFolder": "Please enter a project folder",
|
|
28
|
-
"nameNull": "
|
|
29
|
-
"nameUndefined": "
|
|
30
|
-
"nameNotString": "
|
|
31
|
-
"nameLengthZero": "
|
|
32
|
-
"nameStartsWithPeriod": "
|
|
33
|
-
"nameStartsWithUnderscore": "
|
|
34
|
-
"nameStartsOrEndsWithSpace": "
|
|
35
|
-
"nameBlocklisted": "{{modName}} is a blocklisted module name",
|
|
36
|
-
"nameIsCoreModule": "{{modName}} is a core module name",
|
|
37
|
-
"nameTooLong": "
|
|
38
|
-
"nameTooShort": "
|
|
15
|
+
"namespaceMustStartWithLetter": "The namespace must start with a letter.",
|
|
16
|
+
"namespaceEndInPeriod": "The namespace cannot end with a period.",
|
|
17
|
+
"namespaceCannotBeSap": "The namespace cannot be {{str}}.",
|
|
18
|
+
"namespaceStartsWithNew": "The namespace cannot start with {{str}}.",
|
|
19
|
+
"namespaceNumberAfterPeriod": "A number cannot follow a period in the namespace.",
|
|
20
|
+
"lowerAlphaNumericOnly": "Only use lowercase alphanumeric characters.",
|
|
21
|
+
"lowerAlphaNumericDotsOnly": "Only use lowercase alphanumeric characters and dots for the namespace.",
|
|
22
|
+
"namespaceSpecialCharacter": "The namespace can only contain letters, digits, dots, and underscores.",
|
|
23
|
+
"moduleNameMustStartWithLetter": "The module name must start with a letter.",
|
|
24
|
+
"nameCombinedTooLong": "The combined length of the namespace and module name must not exceed {{length}} characters.",
|
|
25
|
+
"folderDoesNotExist": "This folder does not exist. Please enter the root folder for your project.",
|
|
26
|
+
"folderDoesNotHaveCorrectPermissions": "The selected folder does not have the required permissions. Please ensure you have permission to write to the selected folder and try again.",
|
|
27
|
+
"enterProjectFolder": "Please enter a project folder.",
|
|
28
|
+
"nameNull": "The module name cannot be null.",
|
|
29
|
+
"nameUndefined": "The module name cannot be undefined.",
|
|
30
|
+
"nameNotString": "The module name must be a string.",
|
|
31
|
+
"nameLengthZero": "The module name's length must be greater than zero.",
|
|
32
|
+
"nameStartsWithPeriod": "The module name cannot start with a period.",
|
|
33
|
+
"nameStartsWithUnderscore": "The module name cannot start with an underscore.",
|
|
34
|
+
"nameStartsOrEndsWithSpace": "The module name cannot contain leading or trailing spaces.",
|
|
35
|
+
"nameBlocklisted": "{{modName}} is a blocklisted module name. Choose a different name.",
|
|
36
|
+
"nameIsCoreModule": "{{modName}} is a core module name. Choose a different name.",
|
|
37
|
+
"nameTooLong": "The module name cannot exceed {{length}} characters.",
|
|
38
|
+
"nameTooShort": "The module name must be at least {{length}} characters.",
|
|
39
39
|
"inputValueContainsCapital": "{{promptName}} cannot contain capital letters",
|
|
40
|
+
"nameContainsSpecialCharacters": "The module name cannot contain special characters: (\"~'!()*)",
|
|
41
|
+
"nameNotUrlFriendly": "The module name can only contain URL-friendly characters.",
|
|
42
|
+
"invalidModuleName": "Invalid module name.",
|
|
43
|
+
"moduleAlreadyExists": "The module folder named: {{folderName}} already exists at the specified path.",
|
|
44
|
+
"appFolderExistsAtPath": "A module with this name already exists in the folder: {{-path}}.",
|
|
45
|
+
"folderContainsFioriApp": "The project folder path already contains an SAP Fiori application in the folder: {{-path}}. Please choose a different folder and try again.",
|
|
46
|
+
"folderContainsCapApp": "The selected project folder is part of an existing CAP project. This application must use the local CAP project as the data source."
|
|
47
|
+
},
|
|
48
|
+
"general": {
|
|
49
|
+
"invalidUrl": "Invalid URL: [{{-input}}]",
|
|
50
|
+
"invalidClient": "[{{client}}] is invalid. Leave this field empty or enter a value between 000-999.",
|
|
51
|
+
"inputCannotBeEmpty": "The input cannot be empty.",
|
|
52
|
+
"inputCannotHaveSpaces": "The input cannot contain spaces.",
|
|
53
|
+
"invalidJSON": "Invalid JSON.",
|
|
54
|
+
"invalidValueForSpecialChars": "The input must only contain Latin alphanumeric characters or the following symbols: '-','_','$' and '.'.",
|
|
55
|
+
"maxLength": "The maximum length is: {{maxLength}} characters.",
|
|
56
|
+
"supportedFormats": "Only alphanumeric and '{{allowedCharacters}}' characters are allowed.",
|
|
40
57
|
"nameContainsSpecialCharacters": "Module name cannot contain special characters (\"~'!()*)",
|
|
41
58
|
"nameNotUrlFriendly": "Module name can only contain URL-friendly characters",
|
|
42
59
|
"invalidModuleName": "Invalid module name",
|
|
43
60
|
"moduleAlreadyExists": "The module folder named: {{folderName}} already exists at the specified path",
|
|
44
61
|
"appFolderExistsAtPath": "A module with this name already exists in the folder: {{-path}}",
|
|
45
62
|
"folderContainsCapApp": "The selected project folder is part of an existing CAP project. This application must therefore use the local CAP project as the data source.",
|
|
46
|
-
"folderContainsFioriApp": "The project folder path already contains an SAP Fiori application in the folder: {{-path}}. Please choose a different folder and try again."
|
|
47
|
-
},
|
|
48
|
-
"general": {
|
|
49
|
-
"invalidUrl": "Invalid URL: [{{-input}}]",
|
|
50
|
-
"invalidClient": "[{{client}}] is invalid. Leave empty or enter value between 000-999",
|
|
51
|
-
"inputCannotBeEmpty": "Input cannot be empty.",
|
|
52
|
-
"inputCannotHaveSpaces": "Input cannot contain spaces.",
|
|
53
|
-
"invalidJSON": "Invalid JSON",
|
|
54
|
-
"invalidValueForSpecialChars": "Input must contain only Latin alphanumeric characters or the following symbols: '-','_','$' and '.'",
|
|
55
|
-
"maxLength": "Maximum length: {{maxLength}} characters",
|
|
56
|
-
"supportedFormats": "Only alphanumeric and '{{allowedCharacters}}' characters are allowed",
|
|
63
|
+
"folderContainsFioriApp": "The project folder path already contains an SAP Fiori application in the folder: {{-path}}. Please choose a different folder and try again.",
|
|
57
64
|
"windowsFolderPathTooLong": "The combined length {{length}} of the target folder and module name exceeds the default Windows path length. This can cause issues with project generation."
|
|
58
65
|
},
|
|
59
66
|
"adp": {
|
|
60
|
-
"projectNameUppercaseError": "The name cannot contain uppercase letters.",
|
|
61
|
-
"projectNameLengthErrorExt": "The name cannot
|
|
62
|
-
"projectNameValidationErrorExt": "The name must
|
|
63
|
-
"projectNameLengthErrorInt": "The name cannot start with the word 'customer',
|
|
64
|
-
"projectNameValidationErrorInt": "The name must contain
|
|
67
|
+
"projectNameUppercaseError": "The project name cannot contain uppercase letters.",
|
|
68
|
+
"projectNameLengthErrorExt": "The project name cannot exceed 61 characters or end with the word 'component'.",
|
|
69
|
+
"projectNameValidationErrorExt": "The project name must only contain alphanumeric characters. Every part must start with a letter and different parts can be separated by a period.",
|
|
70
|
+
"projectNameLengthErrorInt": "The project name cannot start with the word 'customer', exceed 61 characters, or end with the word 'component'.",
|
|
71
|
+
"projectNameValidationErrorInt": "The project name must only contain Latin alphanumeric characters and it must have at least two parts. The different parts must be separated by a period and every part must start with a letter.",
|
|
65
72
|
"duplicatedProjectName": "A project with this name already exists in your workspace. Please choose another name.",
|
|
66
73
|
"differentNamespaceThanProjectName": "The namespace must be the same as the project name.",
|
|
67
74
|
"namespaceSameAsProjectNameError": "The namespace must be the same as the project name.",
|
|
68
|
-
"namespaceLengthError": "The namespace cannot
|
|
69
|
-
"namespaceValidationError": "The namespace must
|
|
70
|
-
"achMandatoryError": "Application Component Hierarchy
|
|
75
|
+
"namespaceLengthError": "The namespace cannot exceed 61 characters or end with the word 'component'.",
|
|
76
|
+
"namespaceValidationError": "The namespace must only contain alphanumeric characters. Every part must start with a letter and different parts can be separated by a period.",
|
|
77
|
+
"achMandatoryError": "The Application Component Hierarchy must only contain capital letters, digits, and dashes."
|
|
71
78
|
}
|
|
72
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/project-input-validator",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Library to validate Fiori project input formats",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"i18next": "23.5.1",
|
|
18
18
|
"validate-npm-package-name": "5.0.0",
|
|
19
|
-
"@sap-ux/project-access": "1.30.
|
|
19
|
+
"@sap-ux/project-access": "1.30.4"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/validate-npm-package-name": "4.0.1",
|