@ieeesa-npm/groups 0.7.9 → 0.8.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.
- package/esm2022/lib/assets/constants.json +2 -1
- package/esm2022/lib/assets/form-validations.mjs +2 -1
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +5 -2
- package/esm2022/lib/components/edit-user-roles/edit-user-roles.component.mjs +5 -2
- package/fesm2022/ieeesa-npm-groups.mjs +11 -3
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/assets/form-validations.d.ts +1 -0
- package/lib/services/groups.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -53,7 +53,8 @@ var addUserRoster = {
|
|
|
53
53
|
error: {
|
|
54
54
|
required: "This field is required.",
|
|
55
55
|
limit: {
|
|
56
|
-
|
|
56
|
+
representingOrganizationMaxChars: "Representing Organization must not be greater than 250 characters long.",
|
|
57
|
+
representingOrganizationMinChars: "Representing Organization must not be lesser than 3 characters."
|
|
57
58
|
},
|
|
58
59
|
pattern: {
|
|
59
60
|
email: "Please enter valid email.",
|
|
@@ -353,6 +354,7 @@ const GroupsValidationPatterns = {
|
|
|
353
354
|
groupScope: /^(?=.*[a-zA-Z])[\w\s!"#$%&'()*+,-.\/\:;<=>?@[\]^_`{|}~\\]+$/i,
|
|
354
355
|
email: /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,
|
|
355
356
|
representingOrgNameMaxLength: 250,
|
|
357
|
+
representingOrgNameMinLength: 3,
|
|
356
358
|
// Representing Organization field regular expression which accept Alpha Numeric, Special Characters and whitespace.
|
|
357
359
|
representingOrganization: /^(?=.*[a-zA-Z])[\w\s!"#$%&'()*+,-.\/\:;<=>?@[\]^_`{|}~\\]+$/i,
|
|
358
360
|
};
|
|
@@ -2170,6 +2172,7 @@ class EditUserRolesComponent {
|
|
|
2170
2172
|
validation: [
|
|
2171
2173
|
Validators.required,
|
|
2172
2174
|
Validators.maxLength(GroupsValidationPatterns.representingOrgNameMaxLength),
|
|
2175
|
+
Validators.minLength(GroupsValidationPatterns.representingOrgNameMinLength),
|
|
2173
2176
|
Validators.pattern(GroupsValidationPatterns.representingOrganization),
|
|
2174
2177
|
],
|
|
2175
2178
|
autoCompleteOptions: this.organizations,
|
|
@@ -2178,7 +2181,9 @@ class EditUserRolesComponent {
|
|
|
2178
2181
|
supportMessage: this.addUserRosterTexts?.supportText?.representingOrganization,
|
|
2179
2182
|
requiredErrorMessage: this.addUserRosterTexts?.message?.error?.required,
|
|
2180
2183
|
maxErrorMessage: this.addUserRosterTexts?.message?.error?.limit
|
|
2181
|
-
?.
|
|
2184
|
+
?.representingOrganizationMaxChars,
|
|
2185
|
+
minErrorMessage: this.addUserRosterTexts?.message?.error?.limit
|
|
2186
|
+
?.representingOrganizationMinChars,
|
|
2182
2187
|
patternErrorMessage: this.addUserRosterTexts?.message?.error?.pattern
|
|
2183
2188
|
?.representingOrganization,
|
|
2184
2189
|
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.representingOrganization,
|
|
@@ -2743,13 +2748,16 @@ class AddUserRosterComponent {
|
|
|
2743
2748
|
validation: [
|
|
2744
2749
|
Validators.required,
|
|
2745
2750
|
Validators.maxLength(GroupsValidationPatterns.representingOrgNameMaxLength),
|
|
2751
|
+
Validators.minLength(GroupsValidationPatterns.representingOrgNameMinLength),
|
|
2746
2752
|
Validators.pattern(GroupsValidationPatterns.representingOrganization),
|
|
2747
2753
|
],
|
|
2748
2754
|
autoCompleteOptions: this.organizations,
|
|
2749
2755
|
supportMessage: this.addUserRosterTexts?.supportText?.representingOrganization,
|
|
2750
2756
|
requiredErrorMessage: this.addUserRosterTexts?.message?.error?.required,
|
|
2751
2757
|
maxErrorMessage: this.addUserRosterTexts?.message?.error?.limit
|
|
2752
|
-
?.
|
|
2758
|
+
?.representingOrganizationMaxChars,
|
|
2759
|
+
minErrorMessage: this.addUserRosterTexts?.message?.error?.limit
|
|
2760
|
+
?.representingOrganizationMinChars,
|
|
2753
2761
|
patternErrorMessage: this.addUserRosterTexts?.message?.error?.pattern
|
|
2754
2762
|
?.representingOrganization,
|
|
2755
2763
|
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.representingOrganization,
|