rd-outer-component 0.0.81 → 0.0.82

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.
@@ -254,6 +254,7 @@ const translations = {
254
254
  cannotExceed: ' cannot exceed the maximum value ',
255
255
  maxDecimalPlaces: 'The maximum number of decimal places is ',
256
256
  clearFilter: 'Clear filter',
257
+ email_invalid: 'The email format is not correct.',
257
258
  },
258
259
  zh: {
259
260
  pleaseEnter: '請輸入',
@@ -264,6 +265,7 @@ const translations = {
264
265
  cannotExceed: '不得超過最大值',
265
266
  maxDecimalPlaces: '最大小數位數為',
266
267
  clearFilter: '清除篩選',
268
+ email_invalid: '電子郵件格式不正確。',
267
269
  },
268
270
  };
269
271
  function getTranslation(lang, key) {
@@ -295,6 +297,8 @@ class CustomInputComponent {
295
297
  case 'maxLength':
296
298
  return (msg ||
297
299
  `${getTranslation(this.lang, 'lengthCannotExceed')}${this.maxLength}`);
300
+ case 'email':
301
+ return msg || `${getTranslation(this.lang, 'email_invalid')}`;
298
302
  case 'custom':
299
303
  return (this.control?.errors['custom'] ||
300
304
  getTranslation(this.lang, 'validationFailed'));