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.
- package/fesm2022/ets-fe-ng-sdk.mjs +25 -19
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Shared/components/btn/btn.component.d.ts +1 -1
- package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +1 -1
- package/lib/Shared/components/info-dialog/info-dialog.component.d.ts +1 -1
- package/lib/Shared/components/phone-number/phone-number.component.d.ts +4 -4
- package/lib/Shared/components/table/table-https/table-https.component.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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
|
-
|
|
5295
|
-
// Add hours (
|
|
5298
|
+
hoursArray.push(index + '');
|
|
5299
|
+
// Add hours (1-9) for 24-hour format
|
|
5296
5300
|
if (index < 10) {
|
|
5297
|
-
|
|
5301
|
+
hours24Array.push('0' + index);
|
|
5298
5302
|
}
|
|
5299
|
-
// Add minutes and seconds (
|
|
5303
|
+
// Add minutes and seconds (01-09)
|
|
5300
5304
|
if (index < 10) {
|
|
5301
5305
|
const paddedValue = '0' + index;
|
|
5302
|
-
|
|
5303
|
-
|
|
5306
|
+
minutesArray.push(paddedValue);
|
|
5307
|
+
secondsArray.push(paddedValue);
|
|
5304
5308
|
}
|
|
5305
5309
|
else if (index <= 59) {
|
|
5306
|
-
|
|
5307
|
-
|
|
5310
|
+
// Add minutes and seconds (10-11)
|
|
5311
|
+
minutesArray.push(index + '');
|
|
5312
|
+
secondsArray.push(index + '');
|
|
5308
5313
|
}
|
|
5309
5314
|
}
|
|
5310
|
-
// Add
|
|
5311
|
-
|
|
5312
|
-
|
|
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 (
|
|
5319
|
+
// Add remaining minutes and seconds (12-59)
|
|
5319
5320
|
for (let index = 12; index <= 59; index++) {
|
|
5320
|
-
|
|
5321
|
-
|
|
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 = {
|