master-control 0.4.64 → 0.4.66

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.
@@ -1253,12 +1253,12 @@ class DobComponent {
1253
1253
  let value = evt.value;
1254
1254
  // Handle case where we have existing dashes but need to reformat
1255
1255
  // Split by dash to understand current structure
1256
- const parts = value.split('-');
1256
+ const parts = value.split('/');
1257
1257
  // If we have exactly 3 parts (date-month-year), don't add more dashes
1258
1258
  if (parts.length < 3) {
1259
1259
  // For first dash after date (2 digits)
1260
- if (value.length > 2 && !value.includes('-')) {
1261
- evt.value = [value.slice(0, 2), '-', value.slice(2)].join('');
1260
+ if (value.length > 2 && !value.includes('/')) {
1261
+ evt.value = [value.slice(0, 2), '/', value.slice(2)].join('');
1262
1262
  }
1263
1263
  // For second dash after month
1264
1264
  else if (parts.length === 2) {
@@ -1267,7 +1267,7 @@ class DobComponent {
1267
1267
  // Add dash after numeric month (exactly 2 digits) or alphabetic month (exactly 3 letters)
1268
1268
  if ((monthPart.length === 2 && /^\d{2}$/.test(monthPart)) ||
1269
1269
  (monthPart.length === 3 && /^[a-zA-Z]{3}$/.test(monthPart))) {
1270
- evt.value = datePart + '-' + monthPart + '-';
1270
+ evt.value = datePart + '/' + monthPart + '/';
1271
1271
  }
1272
1272
  }
1273
1273
  }
@@ -1289,22 +1289,22 @@ class DobComponent {
1289
1289
  if (isEditingDate && datePart.length >= 2) {
1290
1290
  // Trim date part to 2 characters max
1291
1291
  const validDatePart = datePart.substring(0, 2);
1292
- previousValidValue = validDatePart + (parts[1] ? '-' + parts[1] : '') + (parts[2] ? '-' + parts[2] : '');
1292
+ previousValidValue = validDatePart + (parts[1] ? '/' + parts[1] : '') + (parts[2] ? '/' + parts[2] : '');
1293
1293
  }
1294
1294
  else if (isEditingMonth && monthPart.length >= 2 && /^\d+$/.test(monthPart)) {
1295
1295
  // Trim numeric month to 2 characters max
1296
1296
  const validMonthPart = monthPart.substring(0, 2);
1297
- previousValidValue = parts[0] + '-' + validMonthPart + (parts[2] ? '-' + parts[2] : '');
1297
+ previousValidValue = parts[0] + '/' + validMonthPart + (parts[2] ? '/' + parts[2] : '');
1298
1298
  }
1299
1299
  else if (isEditingMonth && monthPart.length >= 3) {
1300
1300
  // Trim alphabetic month to 3 characters max
1301
1301
  const validMonthPart = monthPart.substring(0, 3);
1302
- previousValidValue = parts[0] + '-' + validMonthPart + (parts[2] ? '-' + parts[2] : '');
1302
+ previousValidValue = parts[0] + '/' + validMonthPart + (parts[2] ? '/' + parts[2] : '');
1303
1303
  }
1304
1304
  else if (isEditingYear && yearPart.length >= 4) {
1305
1305
  // Trim year part to 4 characters max
1306
1306
  const validYearPart = yearPart.substring(0, 4);
1307
- previousValidValue = parts[0] + '-' + parts[1] + '-' + validYearPart;
1307
+ previousValidValue = parts[0] + '/' + parts[1] + '/' + validYearPart;
1308
1308
  }
1309
1309
  // Prevent input if trying to exceed limits by restoring previous value
1310
1310
  if ((isEditingDate && datePart.length >= 2) ||
@@ -4194,7 +4194,7 @@ class MedialQuestionsComponent {
4194
4194
  }
4195
4195
  preparePersonUwQuestionsObj() {
4196
4196
  this.questionList = [];
4197
- let data = JSON.stringify(JSON.parse(this.medialQuestionResponse()));
4197
+ let data = JSON.parse(JSON.stringify(this.medialQuestionResponse()));
4198
4198
  this.listOfDomainValuesForCheckBox = [];
4199
4199
  let isDisable = false;
4200
4200
  if (!this.checkIfValueIsEmpty(sessionStorage.getItem('isDisableMedicalQuestions'))) {