ets-fe-ng-sdk 19.0.86 → 19.0.87

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.
@@ -5288,38 +5288,44 @@ class InputService {
5288
5288
  item.placeholder = '-'.repeat(item.length);
5289
5289
  }
5290
5290
  const startTime = Date.now();
5291
- // Refactored time initialization
5291
+ // Refactored time initialization using local variables
5292
+ const hoursArray = ['12'];
5293
+ const hours24Array = ['00'];
5294
+ const minutesArray = ['00'];
5295
+ const secondsArray = ['00'];
5292
5296
  for (let index = 1; index < 12; index++) {
5293
5297
  // Add hours (1-12) for 12-hour format
5294
- this.timeHours.update((timeHours) => timeHours.concat([index + '']));
5295
- // Add hours (0-23) for 24-hour format
5298
+ hoursArray.push(index + '');
5299
+ // Add hours (1-9) for 24-hour format
5296
5300
  if (index < 10) {
5297
- this.time24Hours.update((timeHours) => timeHours.concat([index + '']));
5301
+ hours24Array.push('0' + index);
5298
5302
  }
5299
- // Add minutes and seconds (00-59)
5303
+ // Add minutes and seconds (01-09)
5300
5304
  if (index < 10) {
5301
5305
  const paddedValue = '0' + index;
5302
- this.timeMinutes.update((timeMinutes) => timeMinutes.concat([paddedValue]));
5303
- this.timeSeconds.update((timeSeconds) => timeSeconds.concat([paddedValue]));
5306
+ minutesArray.push(paddedValue);
5307
+ secondsArray.push(paddedValue);
5304
5308
  }
5305
5309
  else if (index <= 59) {
5306
- this.timeMinutes.update((timeMinutes) => timeMinutes.concat([index + '']));
5307
- this.timeSeconds.update((timeSeconds) => timeSeconds.concat([index + '']));
5310
+ // Add minutes and seconds (10-11)
5311
+ minutesArray.push(index + '');
5312
+ secondsArray.push(index + '');
5308
5313
  }
5309
5314
  }
5310
- // Add 0 to time24Hours and 00 to minutes/seconds
5311
- // this.time24Hours.update((timeHours) => timeHours.concat(['00']));
5312
- // this.timeMinutes.update((timeMinutes) => timeMinutes.concat(['00']));
5313
- // this.timeSeconds.update((timeSeconds) => timeSeconds.concat(['00']));
5314
- // Add remaining hours (13-23) for 24-hour format
5315
- for (let index = 12; index <= 23; index++) {
5316
- this.time24Hours.update((timeHours) => timeHours.concat([index + '']));
5315
+ // Add remaining hours (10-23) for 24-hour format
5316
+ for (let index = 10; index <= 23; index++) {
5317
+ hours24Array.push(index + '');
5317
5318
  }
5318
- // Add remaining minutes and seconds (13-59)
5319
+ // Add remaining minutes and seconds (12-59)
5319
5320
  for (let index = 12; index <= 59; index++) {
5320
- this.timeMinutes.update((timeMinutes) => timeMinutes.concat([index + '']));
5321
- this.timeSeconds.update((timeSeconds) => timeSeconds.concat([index + '']));
5321
+ minutesArray.push(index + '');
5322
+ secondsArray.push(index + '');
5322
5323
  }
5324
+ // Set all signals at once
5325
+ this.timeHours.set(hoursArray);
5326
+ this.time24Hours.set(hours24Array);
5327
+ this.timeMinutes.set(minutesArray);
5328
+ this.timeSeconds.set(secondsArray);
5323
5329
  console.log('time taken', (Date.now() - startTime) / 1000);
5324
5330
  const labeller = this.labeller;
5325
5331
  this.optionLabellerFunctions = {