@gravitee/ui-particles-angular 7.59.0 → 7.59.1

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.
@@ -3703,6 +3703,10 @@ function constValidationMessage(error, field) {
3703
3703
  function typeValidationMessage({ schemaType }) {
3704
3704
  return `Should be "${schemaType[0]}".`;
3705
3705
  }
3706
+ function patternValidationMessage(error, field) {
3707
+ const key = field?.key?.toString() ?? 'Field';
3708
+ return `${key.charAt(0).toUpperCase() + key.slice(1)} value does not respect the pattern: ${field?.props?.pattern}`;
3709
+ }
3706
3710
 
3707
3711
  /*
3708
3712
  * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
@@ -4113,6 +4117,7 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
4113
4117
  { name: 'maxItems', message: maxItemsValidationMessage },
4114
4118
  { name: 'uniqueItems', message: 'Should NOT have duplicate items' },
4115
4119
  { name: 'const', message: constValidationMessage },
4120
+ { name: 'pattern', message: patternValidationMessage },
4116
4121
  ],
4117
4122
  wrappers: [
4118
4123
  { name: 'gio-with-banner', component: GioBannerWrapperComponent },
@@ -4188,6 +4193,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4188
4193
  { name: 'maxItems', message: maxItemsValidationMessage },
4189
4194
  { name: 'uniqueItems', message: 'Should NOT have duplicate items' },
4190
4195
  { name: 'const', message: constValidationMessage },
4196
+ { name: 'pattern', message: patternValidationMessage },
4191
4197
  ],
4192
4198
  wrappers: [
4193
4199
  { name: 'gio-with-banner', component: GioBannerWrapperComponent },