@wavemaker/app-ng-runtime 11.5.4-rc.5519 → 11.5.4-rc.5521

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.
@@ -1640,52 +1640,6 @@ const registerProps$2 = () => {
1640
1640
  registerFormWidget(FormWidgetType.DATE, new Map(dateProps));
1641
1641
  };
1642
1642
 
1643
- const weekNamesShort = [
1644
- 'Mon',
1645
- 'Tue',
1646
- 'Wed',
1647
- 'Thu',
1648
- 'Fri',
1649
- 'Sat',
1650
- 'Sun'
1651
- ];
1652
- const weekNamesLong = [
1653
- 'Monday',
1654
- 'Tuesday',
1655
- 'Wednesday',
1656
- 'Thursday',
1657
- 'Friday',
1658
- 'Saturday',
1659
- 'Sunday'
1660
- ];
1661
- const monthNamesShort = [
1662
- 'Jan',
1663
- 'Feb',
1664
- 'Mar',
1665
- 'Apr',
1666
- 'May',
1667
- 'Jun',
1668
- 'Jul',
1669
- 'Aug',
1670
- 'Sep',
1671
- 'Oct',
1672
- 'Nov',
1673
- 'Dec',
1674
- ];
1675
- const monthNamesLong = [
1676
- 'January',
1677
- 'February',
1678
- 'March',
1679
- 'April',
1680
- 'May',
1681
- 'June',
1682
- 'July',
1683
- 'August',
1684
- 'September',
1685
- 'October',
1686
- 'November',
1687
- 'December',
1688
- ];
1689
1643
  function validateTheMaskedDate(format) {
1690
1644
  if (format == 'timestamp') {
1691
1645
  return {};
@@ -1733,13 +1687,13 @@ function validateTheMaskedDate(format) {
1733
1687
  },
1734
1688
  MMM: {
1735
1689
  mask: IMask.MaskedEnum,
1736
- enum: monthNamesShort,
1690
+ enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
1737
1691
  placeholderChar: 'M',
1738
1692
  maxLength: 3
1739
1693
  },
1740
1694
  MMMM: {
1741
1695
  mask: IMask.MaskedEnum,
1742
- enum: monthNamesLong,
1696
+ enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'long' })),
1743
1697
  placeholderChar: 'M',
1744
1698
  minLength: 3
1745
1699
  },
@@ -1759,20 +1713,20 @@ function validateTheMaskedDate(format) {
1759
1713
  },
1760
1714
  ddd: {
1761
1715
  mask: IMask.MaskedEnum,
1762
- enum: weekNamesShort,
1716
+ enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
1763
1717
  placeholderChar: 'E',
1764
1718
  maxLength: 3
1765
1719
  },
1766
1720
  dddd: {
1767
1721
  mask: IMask.MaskedEnum,
1768
- enum: weekNamesLong,
1722
+ enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
1769
1723
  placeholderChar: 'E',
1770
1724
  minLength: 6
1771
1725
  },
1772
1726
  },
1773
1727
  autofix: true,
1774
1728
  lazy: false,
1775
- overwrite: true,
1729
+ overwrite: false,
1776
1730
  skipInvalid: true
1777
1731
  };
1778
1732
  }