ngx-wapp-components 3.1.0-alpha.1 → 3.1.0-alpha.2

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.
@@ -4367,10 +4367,9 @@ class WPeriodSelectFieldComponent {
4367
4367
  [PeriodSelectEnum.Last3Months]: this.translationsObject?.translatedSelectOptions[key3M] || 'Últimos 3 meses',
4368
4368
  [PeriodSelectEnum.Custom]: this.translationsObject?.translatedSelectOptions[keyCustom] || 'Personalizado',
4369
4369
  };
4370
- const order = [PeriodSelectEnum.Last24Hours, PeriodSelectEnum.Last3Months, PeriodSelectEnum.Custom];
4371
- this.periodCategories = order.map(key => ({
4372
- value: key,
4373
- name: this.translationsMap[key]
4370
+ this.periodCategories = Object.entries(this.translationsMap).map(([key, value]) => ({
4371
+ value: Number(key),
4372
+ name: value
4374
4373
  }));
4375
4374
  this.initValues();
4376
4375
  }