@wavemaker/app-ng-runtime 11.5.4-rc.5519 → 11.5.4-rc.5522
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.
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +25 -61
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +10 -0
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +10 -0
- app-ng-runtime/components/input/epoch/esm2020/date/imaskUtil.mjs +26 -62
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +25 -61
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +25 -61
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +29 -4
|
@@ -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 {};
|
|
@@ -1708,71 +1662,81 @@ function validateTheMaskedDate(format) {
|
|
|
1708
1662
|
from: 1900,
|
|
1709
1663
|
to: 9999,
|
|
1710
1664
|
placeholderChar: 'Y',
|
|
1711
|
-
maxLength: 4
|
|
1665
|
+
maxLength: 4,
|
|
1666
|
+
overwrite: false,
|
|
1712
1667
|
},
|
|
1713
1668
|
YY: {
|
|
1714
1669
|
mask: IMask.MaskedRange,
|
|
1715
1670
|
from: 0,
|
|
1716
1671
|
to: 99,
|
|
1717
1672
|
placeholderChar: 'Y',
|
|
1718
|
-
maxLength: 2
|
|
1673
|
+
maxLength: 2,
|
|
1674
|
+
overwrite: false,
|
|
1719
1675
|
},
|
|
1720
1676
|
M: {
|
|
1721
1677
|
mask: IMask.MaskedRange,
|
|
1722
1678
|
from: 1,
|
|
1723
1679
|
to: 12,
|
|
1724
1680
|
placeholderChar: 'M',
|
|
1725
|
-
maxLength: 2
|
|
1681
|
+
maxLength: 2,
|
|
1682
|
+
overwrite: false,
|
|
1726
1683
|
},
|
|
1727
1684
|
MM: {
|
|
1728
1685
|
mask: IMask.MaskedRange,
|
|
1729
1686
|
from: 1,
|
|
1730
1687
|
to: 12,
|
|
1731
1688
|
placeholderChar: 'M',
|
|
1732
|
-
maxLength: 2
|
|
1689
|
+
maxLength: 2,
|
|
1690
|
+
overwrite: false,
|
|
1733
1691
|
},
|
|
1734
1692
|
MMM: {
|
|
1735
1693
|
mask: IMask.MaskedEnum,
|
|
1736
|
-
enum:
|
|
1694
|
+
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
|
|
1737
1695
|
placeholderChar: 'M',
|
|
1738
|
-
maxLength: 3
|
|
1696
|
+
maxLength: 3,
|
|
1697
|
+
overwrite: false,
|
|
1739
1698
|
},
|
|
1740
1699
|
MMMM: {
|
|
1741
1700
|
mask: IMask.MaskedEnum,
|
|
1742
|
-
enum:
|
|
1701
|
+
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'long' })),
|
|
1743
1702
|
placeholderChar: 'M',
|
|
1744
|
-
minLength: 3
|
|
1703
|
+
minLength: 3,
|
|
1704
|
+
overwrite: false,
|
|
1745
1705
|
},
|
|
1746
1706
|
DD: {
|
|
1747
1707
|
mask: IMask.MaskedRange,
|
|
1748
1708
|
from: 1,
|
|
1749
1709
|
to: 31,
|
|
1750
1710
|
placeholderChar: 'D',
|
|
1751
|
-
maxLength: 2
|
|
1711
|
+
maxLength: 2,
|
|
1712
|
+
overwrite: false,
|
|
1752
1713
|
},
|
|
1753
1714
|
D: {
|
|
1754
1715
|
mask: IMask.MaskedRange,
|
|
1755
1716
|
from: 1,
|
|
1756
1717
|
to: 31,
|
|
1757
1718
|
placeholderChar: 'D',
|
|
1758
|
-
maxLength: 1
|
|
1719
|
+
maxLength: 1,
|
|
1720
|
+
overwrite: false,
|
|
1759
1721
|
},
|
|
1760
1722
|
ddd: {
|
|
1761
1723
|
mask: IMask.MaskedEnum,
|
|
1762
|
-
enum:
|
|
1724
|
+
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
|
|
1763
1725
|
placeholderChar: 'E',
|
|
1764
|
-
maxLength: 3
|
|
1726
|
+
maxLength: 3,
|
|
1727
|
+
overwrite: false,
|
|
1765
1728
|
},
|
|
1766
1729
|
dddd: {
|
|
1767
1730
|
mask: IMask.MaskedEnum,
|
|
1768
|
-
enum:
|
|
1731
|
+
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
|
|
1769
1732
|
placeholderChar: 'E',
|
|
1770
|
-
minLength: 6
|
|
1733
|
+
minLength: 6,
|
|
1734
|
+
overwrite: false,
|
|
1771
1735
|
},
|
|
1772
1736
|
},
|
|
1773
1737
|
autofix: true,
|
|
1774
1738
|
lazy: false,
|
|
1775
|
-
overwrite:
|
|
1739
|
+
overwrite: false,
|
|
1776
1740
|
skipInvalid: true
|
|
1777
1741
|
};
|
|
1778
1742
|
}
|