@telperion/elements 7.1.0 → 8.0.0

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.
Files changed (90) hide show
  1. package/.build-manifest.json +12 -1
  2. package/README.md +31 -0
  3. package/custom-elements.json +1672 -0
  4. package/date/date-element.cjs +231 -0
  5. package/date/date-element.cjs.map +1 -0
  6. package/date/date-element.js +229 -0
  7. package/date/date-element.js.map +1 -0
  8. package/date/format-pattern.cjs +49 -0
  9. package/date/format-pattern.cjs.map +1 -0
  10. package/date/format-pattern.js +47 -0
  11. package/date/format-pattern.js.map +1 -0
  12. package/date/format.cjs +57 -0
  13. package/date/format.cjs.map +1 -0
  14. package/date/format.js +51 -0
  15. package/date/format.js.map +1 -0
  16. package/date/index.cjs +17 -0
  17. package/date/index.cjs.map +1 -0
  18. package/date/index.d.cts +171 -0
  19. package/date/index.d.ts +171 -0
  20. package/date/index.js +6 -0
  21. package/date/index.js.map +1 -0
  22. package/date/intl.cjs +36 -0
  23. package/date/intl.cjs.map +1 -0
  24. package/date/intl.js +32 -0
  25. package/date/intl.js.map +1 -0
  26. package/date/locale.cjs +36 -0
  27. package/date/locale.cjs.map +1 -0
  28. package/date/locale.js +34 -0
  29. package/date/locale.js.map +1 -0
  30. package/date/names.cjs +41 -0
  31. package/date/names.cjs.map +1 -0
  32. package/date/names.js +37 -0
  33. package/date/names.js.map +1 -0
  34. package/date/parse-fields.cjs +80 -0
  35. package/date/parse-fields.cjs.map +1 -0
  36. package/date/parse-fields.js +75 -0
  37. package/date/parse-fields.js.map +1 -0
  38. package/date/parse-iso.cjs +41 -0
  39. package/date/parse-iso.cjs.map +1 -0
  40. package/date/parse-iso.js +39 -0
  41. package/date/parse-iso.js.map +1 -0
  42. package/date/parse-numeric.cjs +53 -0
  43. package/date/parse-numeric.cjs.map +1 -0
  44. package/date/parse-numeric.js +50 -0
  45. package/date/parse-numeric.js.map +1 -0
  46. package/date/parse-pattern.cjs +123 -0
  47. package/date/parse-pattern.cjs.map +1 -0
  48. package/date/parse-pattern.js +121 -0
  49. package/date/parse-pattern.js.map +1 -0
  50. package/date/parse.cjs +35 -0
  51. package/date/parse.cjs.map +1 -0
  52. package/date/parse.js +33 -0
  53. package/date/parse.js.map +1 -0
  54. package/date/relative.cjs +47 -0
  55. package/date/relative.cjs.map +1 -0
  56. package/date/relative.js +44 -0
  57. package/date/relative.js.map +1 -0
  58. package/date/resolution.cjs +62 -0
  59. package/date/resolution.cjs.map +1 -0
  60. package/date/resolution.js +59 -0
  61. package/date/resolution.js.map +1 -0
  62. package/date/styles.cjs +21 -0
  63. package/date/styles.cjs.map +1 -0
  64. package/date/styles.js +19 -0
  65. package/date/styles.js.map +1 -0
  66. package/date/ticker.cjs +71 -0
  67. package/date/ticker.cjs.map +1 -0
  68. package/date/ticker.js +69 -0
  69. package/date/ticker.js.map +1 -0
  70. package/date/tokens.cjs +94 -0
  71. package/date/tokens.cjs.map +1 -0
  72. package/date/tokens.js +91 -0
  73. package/date/tokens.js.map +1 -0
  74. package/date/zone.cjs +110 -0
  75. package/date/zone.cjs.map +1 -0
  76. package/date/zone.js +101 -0
  77. package/date/zone.js.map +1 -0
  78. package/fesm/elements.mjs +1053 -2
  79. package/fesm/elements.mjs.map +1 -1
  80. package/iife/date/index.js +53 -0
  81. package/iife/date/index.js.map +1 -0
  82. package/iife/elements.js +52 -34
  83. package/iife/elements.js.map +1 -1
  84. package/index.cjs +11 -0
  85. package/index.cjs.map +1 -1
  86. package/index.d.cts +1 -0
  87. package/index.d.ts +1 -0
  88. package/index.js +5 -0
  89. package/index.js.map +1 -1
  90. package/package.json +31 -3
@@ -1412,6 +1412,1678 @@
1412
1412
  "declarations": [],
1413
1413
  "exports": []
1414
1414
  },
1415
+ {
1416
+ "kind": "javascript-module",
1417
+ "path": "src/date/date-element.ts",
1418
+ "declarations": [
1419
+ {
1420
+ "kind": "class",
1421
+ "description": "`<tp-date>` &mdash; a localized, optionally live date/time.\n\n- **Source** (first non-empty wins): the `value` property, the `datetime`\n attribute, the text content. Accepts ISO 8601, epoch milliseconds, or a\n numeric date in the locale's order (`22/01/2024` in `tr`); `input-format`\n pins a moment-style pattern instead.\n- **Fallback**: empty or invalid input renders the current time. Invalid\n input also sets the `invalid` attribute and fires `tp-date-invalid`.\n- **Format**: a preset (`short` / `medium` / `long` / `full`, via `Intl`),\n `relative`, or a moment-style pattern such as `DD/MM/YYYY HH:mm`.\n- **Live updates**: the current time and relative dates re-render on a\n shared, boundary-aligned clock at the cadence the format needs (each\n second for `ss`, each minute for `mm`, ...). Fixed dates in an absolute\n format never tick. Ticking pauses while the tab is hidden.\n- The text content stays in light DOM as the no-JS / pre-upgrade fallback;\n the rendered value is a `<time datetime>` in shadow DOM.\n\n#### Examples\n\n```html\n<tp-date format=\"DD MMMM YYYY\">2024-01-22</tp-date>\n<tp-date format=\"HH:mm:ss\"></tp-date>\n<tp-date format=\"relative\" datetime=\"2024-01-22T14:30:00Z\"></tp-date>\n```",
1422
+ "name": "DateElement",
1423
+ "cssProperties": [
1424
+ {
1425
+ "description": "`font-variant-numeric` of the output. Defaults to `tabular-nums`.",
1426
+ "name": "--tp-date-numeric"
1427
+ }
1428
+ ],
1429
+ "cssParts": [
1430
+ {
1431
+ "description": "The rendered `<time>` element.",
1432
+ "name": "time"
1433
+ }
1434
+ ],
1435
+ "members": [
1436
+ {
1437
+ "kind": "field",
1438
+ "name": "format",
1439
+ "type": {
1440
+ "text": "string"
1441
+ },
1442
+ "default": "\"\"",
1443
+ "description": "`short`, `medium` (default), `long`, `full`, `relative`, or a moment-style pattern.",
1444
+ "attribute": "format"
1445
+ },
1446
+ {
1447
+ "kind": "field",
1448
+ "name": "dateStyle",
1449
+ "type": {
1450
+ "text": "DateStyleOverride | undefined"
1451
+ },
1452
+ "description": "Presets only. Overrides the date part; `none` omits it.",
1453
+ "attribute": "date-style"
1454
+ },
1455
+ {
1456
+ "kind": "field",
1457
+ "name": "timeStyle",
1458
+ "type": {
1459
+ "text": "DateStyleOverride | undefined"
1460
+ },
1461
+ "description": "Presets only. Overrides the time part; `none` omits it.",
1462
+ "attribute": "time-style"
1463
+ },
1464
+ {
1465
+ "kind": "field",
1466
+ "name": "inputFormat",
1467
+ "type": {
1468
+ "text": "string"
1469
+ },
1470
+ "default": "\"\"",
1471
+ "description": "Moment-style pattern used to parse string input.",
1472
+ "attribute": "input-format"
1473
+ },
1474
+ {
1475
+ "kind": "field",
1476
+ "name": "datetime",
1477
+ "type": {
1478
+ "text": "string"
1479
+ },
1480
+ "default": "\"\"",
1481
+ "description": "The date to show as a string. Takes precedence over the text content.",
1482
+ "attribute": "datetime"
1483
+ },
1484
+ {
1485
+ "kind": "field",
1486
+ "name": "locale",
1487
+ "type": {
1488
+ "text": "string"
1489
+ },
1490
+ "default": "\"\"",
1491
+ "description": "BCP 47 locale. Defaults to the nearest `lang` attribute, then the browser.",
1492
+ "attribute": "locale"
1493
+ },
1494
+ {
1495
+ "kind": "field",
1496
+ "name": "timeZone",
1497
+ "type": {
1498
+ "text": "string"
1499
+ },
1500
+ "default": "\"\"",
1501
+ "description": "IANA time zone. Defaults to the local zone.",
1502
+ "attribute": "time-zone"
1503
+ },
1504
+ {
1505
+ "kind": "field",
1506
+ "name": "live",
1507
+ "type": {
1508
+ "text": "boolean"
1509
+ },
1510
+ "default": "false",
1511
+ "description": "Forces ticking even for a fixed date in an absolute format.",
1512
+ "attribute": "live",
1513
+ "reflects": true
1514
+ },
1515
+ {
1516
+ "kind": "field",
1517
+ "name": "interval",
1518
+ "type": {
1519
+ "text": "number"
1520
+ },
1521
+ "default": "0",
1522
+ "description": "Custom tick period in ms. `0` derives it from the format.",
1523
+ "attribute": "interval"
1524
+ },
1525
+ {
1526
+ "kind": "field",
1527
+ "name": "value",
1528
+ "type": {
1529
+ "text": "DateInput | undefined"
1530
+ },
1531
+ "description": "The date as a `Date`, epoch ms or string. Takes precedence over `datetime` and the text content."
1532
+ },
1533
+ {
1534
+ "kind": "field",
1535
+ "name": "invalid",
1536
+ "type": {
1537
+ "text": "boolean"
1538
+ },
1539
+ "default": "false",
1540
+ "description": "Read-only. `true` when the input could not be parsed (the current time is shown instead).",
1541
+ "attribute": "invalid",
1542
+ "reflects": true
1543
+ },
1544
+ {
1545
+ "kind": "field",
1546
+ "name": "text",
1547
+ "type": {
1548
+ "text": "string"
1549
+ },
1550
+ "privacy": "private",
1551
+ "default": "\"\"",
1552
+ "description": "Text content of the light DOM."
1553
+ },
1554
+ {
1555
+ "kind": "field",
1556
+ "name": "#fixed",
1557
+ "privacy": "private",
1558
+ "type": {
1559
+ "text": "Date | undefined"
1560
+ }
1561
+ },
1562
+ {
1563
+ "kind": "field",
1564
+ "name": "#now",
1565
+ "privacy": "private"
1566
+ },
1567
+ {
1568
+ "kind": "field",
1569
+ "name": "#observer",
1570
+ "privacy": "private",
1571
+ "type": {
1572
+ "text": "MutationObserver | undefined"
1573
+ }
1574
+ },
1575
+ {
1576
+ "kind": "field",
1577
+ "name": "#unsubscribe",
1578
+ "privacy": "private",
1579
+ "type": {
1580
+ "text": "() => void | undefined"
1581
+ }
1582
+ },
1583
+ {
1584
+ "kind": "field",
1585
+ "name": "#period",
1586
+ "privacy": "private",
1587
+ "type": {
1588
+ "text": "number"
1589
+ },
1590
+ "default": "0"
1591
+ },
1592
+ {
1593
+ "kind": "field",
1594
+ "name": "#invalidInput",
1595
+ "privacy": "private",
1596
+ "type": {
1597
+ "text": "string | undefined"
1598
+ }
1599
+ },
1600
+ {
1601
+ "kind": "field",
1602
+ "name": "#lastInvalid",
1603
+ "privacy": "private",
1604
+ "type": {
1605
+ "text": "string | undefined"
1606
+ }
1607
+ },
1608
+ {
1609
+ "kind": "field",
1610
+ "name": "date",
1611
+ "type": {
1612
+ "text": "Date"
1613
+ },
1614
+ "description": "The instant currently shown (the parsed input, or the current time).",
1615
+ "readonly": true
1616
+ },
1617
+ {
1618
+ "kind": "method",
1619
+ "name": "#parse",
1620
+ "privacy": "private",
1621
+ "return": {
1622
+ "type": {
1623
+ "text": "void"
1624
+ }
1625
+ }
1626
+ },
1627
+ {
1628
+ "kind": "method",
1629
+ "name": "#spec",
1630
+ "privacy": "private",
1631
+ "return": {
1632
+ "type": {
1633
+ "text": "FormatSpec"
1634
+ }
1635
+ }
1636
+ },
1637
+ {
1638
+ "kind": "method",
1639
+ "name": "#locale",
1640
+ "privacy": "private",
1641
+ "return": {
1642
+ "type": {
1643
+ "text": "string | undefined"
1644
+ }
1645
+ }
1646
+ },
1647
+ {
1648
+ "kind": "method",
1649
+ "name": "#timeZone",
1650
+ "privacy": "private",
1651
+ "return": {
1652
+ "type": {
1653
+ "text": "string | undefined"
1654
+ }
1655
+ }
1656
+ },
1657
+ {
1658
+ "kind": "method",
1659
+ "name": "#schedule",
1660
+ "privacy": "private",
1661
+ "return": {
1662
+ "type": {
1663
+ "text": "void"
1664
+ }
1665
+ },
1666
+ "description": "Subscribes to the shared ticker at the cadence the current format needs, or not at all."
1667
+ },
1668
+ {
1669
+ "kind": "method",
1670
+ "name": "#setPeriod",
1671
+ "privacy": "private",
1672
+ "return": {
1673
+ "type": {
1674
+ "text": "void"
1675
+ }
1676
+ },
1677
+ "parameters": [
1678
+ {
1679
+ "name": "period",
1680
+ "type": {
1681
+ "text": "number"
1682
+ }
1683
+ }
1684
+ ]
1685
+ },
1686
+ {
1687
+ "kind": "method",
1688
+ "name": "#syncText",
1689
+ "privacy": "private",
1690
+ "return": {
1691
+ "type": {
1692
+ "text": "void"
1693
+ }
1694
+ }
1695
+ }
1696
+ ],
1697
+ "events": [
1698
+ {
1699
+ "name": "tp-date-invalid",
1700
+ "type": {
1701
+ "text": "CustomEvent"
1702
+ },
1703
+ "description": "When a non-empty input cannot be parsed. `detail: { input }`."
1704
+ }
1705
+ ],
1706
+ "attributes": [
1707
+ {
1708
+ "type": {
1709
+ "text": "string"
1710
+ },
1711
+ "description": "`short`, `medium` (default), `long`, `full`, `relative`, or a moment-style pattern.",
1712
+ "name": "format",
1713
+ "default": "\"\"",
1714
+ "fieldName": "format"
1715
+ },
1716
+ {
1717
+ "type": {
1718
+ "text": "DateStyleOverride | undefined"
1719
+ },
1720
+ "description": "Presets only. Overrides the date part; `none` omits it.",
1721
+ "name": "date-style",
1722
+ "fieldName": "dateStyle"
1723
+ },
1724
+ {
1725
+ "type": {
1726
+ "text": "DateStyleOverride | undefined"
1727
+ },
1728
+ "description": "Presets only. Overrides the time part; `none` omits it.",
1729
+ "name": "time-style",
1730
+ "fieldName": "timeStyle"
1731
+ },
1732
+ {
1733
+ "type": {
1734
+ "text": "string"
1735
+ },
1736
+ "description": "Moment-style pattern used to parse string input.",
1737
+ "name": "input-format",
1738
+ "default": "\"\"",
1739
+ "fieldName": "inputFormat"
1740
+ },
1741
+ {
1742
+ "type": {
1743
+ "text": "string"
1744
+ },
1745
+ "description": "The date to show as a string. Takes precedence over the text content.",
1746
+ "name": "datetime",
1747
+ "default": "\"\"",
1748
+ "fieldName": "datetime"
1749
+ },
1750
+ {
1751
+ "type": {
1752
+ "text": "string"
1753
+ },
1754
+ "description": "BCP 47 locale. Defaults to the nearest `lang` attribute, then the browser.",
1755
+ "name": "locale",
1756
+ "default": "\"\"",
1757
+ "fieldName": "locale"
1758
+ },
1759
+ {
1760
+ "type": {
1761
+ "text": "string"
1762
+ },
1763
+ "description": "IANA time zone. Defaults to the local zone.",
1764
+ "name": "time-zone",
1765
+ "default": "\"\"",
1766
+ "fieldName": "timeZone"
1767
+ },
1768
+ {
1769
+ "type": {
1770
+ "text": "boolean"
1771
+ },
1772
+ "description": "Forces ticking even for a fixed date in an absolute format.",
1773
+ "name": "live",
1774
+ "default": "false",
1775
+ "fieldName": "live"
1776
+ },
1777
+ {
1778
+ "type": {
1779
+ "text": "number"
1780
+ },
1781
+ "description": "Custom tick period in ms. `0` derives it from the format.",
1782
+ "name": "interval",
1783
+ "default": "0",
1784
+ "fieldName": "interval"
1785
+ },
1786
+ {
1787
+ "type": {
1788
+ "text": "boolean"
1789
+ },
1790
+ "description": "Read-only. `true` when the input could not be parsed (the current time is shown instead).",
1791
+ "name": "invalid",
1792
+ "default": "false",
1793
+ "fieldName": "invalid"
1794
+ }
1795
+ ],
1796
+ "superclass": {
1797
+ "name": "LitElement",
1798
+ "package": "lit"
1799
+ },
1800
+ "tagName": "tp-date",
1801
+ "customElement": true
1802
+ }
1803
+ ],
1804
+ "exports": [
1805
+ {
1806
+ "kind": "js",
1807
+ "name": "DateElement",
1808
+ "declaration": {
1809
+ "name": "DateElement",
1810
+ "module": "src/date/date-element.ts"
1811
+ }
1812
+ },
1813
+ {
1814
+ "kind": "custom-element-definition",
1815
+ "name": "tp-date",
1816
+ "declaration": {
1817
+ "name": "DateElement",
1818
+ "module": "src/date/date-element.ts"
1819
+ }
1820
+ }
1821
+ ]
1822
+ },
1823
+ {
1824
+ "kind": "javascript-module",
1825
+ "path": "src/date/format-pattern.ts",
1826
+ "declarations": [
1827
+ {
1828
+ "kind": "function",
1829
+ "name": "formatPattern",
1830
+ "return": {
1831
+ "type": {
1832
+ "text": "string"
1833
+ }
1834
+ },
1835
+ "parameters": [
1836
+ {
1837
+ "name": "date",
1838
+ "type": {
1839
+ "text": "Date"
1840
+ }
1841
+ },
1842
+ {
1843
+ "name": "pattern",
1844
+ "type": {
1845
+ "text": "string"
1846
+ }
1847
+ },
1848
+ {
1849
+ "name": "locale",
1850
+ "optional": true,
1851
+ "type": {
1852
+ "text": "string"
1853
+ }
1854
+ },
1855
+ {
1856
+ "name": "timeZone",
1857
+ "optional": true,
1858
+ "type": {
1859
+ "text": "string"
1860
+ }
1861
+ }
1862
+ ],
1863
+ "description": "Formats `date` with a moment-style pattern (see `tokens.ts`). Numbers are\nalways Latin digits; month, weekday and day-period names come from `Intl`\nin the given locale."
1864
+ }
1865
+ ],
1866
+ "exports": [
1867
+ {
1868
+ "kind": "js",
1869
+ "name": "formatPattern",
1870
+ "declaration": {
1871
+ "name": "formatPattern",
1872
+ "module": "src/date/format-pattern.ts"
1873
+ }
1874
+ }
1875
+ ]
1876
+ },
1877
+ {
1878
+ "kind": "javascript-module",
1879
+ "path": "src/date/format.ts",
1880
+ "declarations": [
1881
+ {
1882
+ "kind": "variable",
1883
+ "name": "PRESETS",
1884
+ "type": {
1885
+ "text": "readonly DateStyle[]"
1886
+ },
1887
+ "default": "[\"short\", \"medium\", \"long\", \"full\"]"
1888
+ },
1889
+ {
1890
+ "kind": "variable",
1891
+ "name": "DEFAULT_PRESET",
1892
+ "type": {
1893
+ "text": "DateStyle"
1894
+ },
1895
+ "default": "\"medium\""
1896
+ },
1897
+ {
1898
+ "kind": "function",
1899
+ "name": "resolveFormat",
1900
+ "return": {
1901
+ "type": {
1902
+ "text": "FormatSpec"
1903
+ }
1904
+ },
1905
+ "parameters": [
1906
+ {
1907
+ "name": "format",
1908
+ "type": {
1909
+ "text": "string"
1910
+ }
1911
+ },
1912
+ {
1913
+ "name": "dateStyle",
1914
+ "optional": true,
1915
+ "type": {
1916
+ "text": "DateStyleOverride"
1917
+ }
1918
+ },
1919
+ {
1920
+ "name": "timeStyle",
1921
+ "optional": true,
1922
+ "type": {
1923
+ "text": "DateStyleOverride"
1924
+ }
1925
+ }
1926
+ ],
1927
+ "description": "Interprets the `format`, `date-style` and `time-style` attributes.\n\n- `relative` → relative time (\"3 minutes ago\").\n- A preset name (`short`, `medium`, `long`, `full`) or empty → `Intl`\n `dateStyle` + `timeStyle`, each overridable (or omitted with `none`).\n- Anything else → a moment-style token pattern."
1928
+ },
1929
+ {
1930
+ "kind": "function",
1931
+ "name": "formatDate",
1932
+ "return": {
1933
+ "type": {
1934
+ "text": "string"
1935
+ }
1936
+ },
1937
+ "parameters": [
1938
+ {
1939
+ "name": "date",
1940
+ "type": {
1941
+ "text": "Date"
1942
+ }
1943
+ },
1944
+ {
1945
+ "name": "spec",
1946
+ "type": {
1947
+ "text": "FormatSpec"
1948
+ }
1949
+ },
1950
+ {
1951
+ "name": "{ locale, timeZone, now }",
1952
+ "type": {
1953
+ "text": "FormatOptions"
1954
+ }
1955
+ }
1956
+ ],
1957
+ "description": "Renders `date` according to a resolved format."
1958
+ },
1959
+ {
1960
+ "kind": "function",
1961
+ "name": "formatFull",
1962
+ "return": {
1963
+ "type": {
1964
+ "text": "string"
1965
+ }
1966
+ },
1967
+ "parameters": [
1968
+ {
1969
+ "name": "date",
1970
+ "type": {
1971
+ "text": "Date"
1972
+ }
1973
+ },
1974
+ {
1975
+ "name": "locale",
1976
+ "optional": true,
1977
+ "type": {
1978
+ "text": "string"
1979
+ }
1980
+ },
1981
+ {
1982
+ "name": "timeZone",
1983
+ "optional": true,
1984
+ "type": {
1985
+ "text": "string"
1986
+ }
1987
+ }
1988
+ ],
1989
+ "description": "A full, unambiguous rendering used for the tooltip of relative dates."
1990
+ }
1991
+ ],
1992
+ "exports": [
1993
+ {
1994
+ "kind": "js",
1995
+ "name": "PRESETS",
1996
+ "declaration": {
1997
+ "name": "PRESETS",
1998
+ "module": "src/date/format.ts"
1999
+ }
2000
+ },
2001
+ {
2002
+ "kind": "js",
2003
+ "name": "DEFAULT_PRESET",
2004
+ "declaration": {
2005
+ "name": "DEFAULT_PRESET",
2006
+ "module": "src/date/format.ts"
2007
+ }
2008
+ },
2009
+ {
2010
+ "kind": "js",
2011
+ "name": "resolveFormat",
2012
+ "declaration": {
2013
+ "name": "resolveFormat",
2014
+ "module": "src/date/format.ts"
2015
+ }
2016
+ },
2017
+ {
2018
+ "kind": "js",
2019
+ "name": "formatDate",
2020
+ "declaration": {
2021
+ "name": "formatDate",
2022
+ "module": "src/date/format.ts"
2023
+ }
2024
+ },
2025
+ {
2026
+ "kind": "js",
2027
+ "name": "formatFull",
2028
+ "declaration": {
2029
+ "name": "formatFull",
2030
+ "module": "src/date/format.ts"
2031
+ }
2032
+ }
2033
+ ]
2034
+ },
2035
+ {
2036
+ "kind": "javascript-module",
2037
+ "path": "src/date/intl.ts",
2038
+ "declarations": [
2039
+ {
2040
+ "kind": "function",
2041
+ "name": "dateTimeFormat",
2042
+ "return": {
2043
+ "type": {
2044
+ "text": "Intl.DateTimeFormat"
2045
+ }
2046
+ },
2047
+ "parameters": [
2048
+ {
2049
+ "name": "locale",
2050
+ "type": {
2051
+ "text": "string | undefined"
2052
+ }
2053
+ },
2054
+ {
2055
+ "name": "options",
2056
+ "type": {
2057
+ "text": "Intl.DateTimeFormatOptions"
2058
+ }
2059
+ }
2060
+ ],
2061
+ "description": "Cached `Intl.DateTimeFormat`. Constructing formatters is the expensive part\nof `Intl`, and live dates re-format on every tick."
2062
+ },
2063
+ {
2064
+ "kind": "function",
2065
+ "name": "relativeTimeFormat",
2066
+ "return": {
2067
+ "type": {
2068
+ "text": "Intl.RelativeTimeFormat"
2069
+ }
2070
+ },
2071
+ "parameters": [
2072
+ {
2073
+ "name": "locale",
2074
+ "type": {
2075
+ "text": "string | undefined"
2076
+ }
2077
+ }
2078
+ ],
2079
+ "description": "Cached `Intl.RelativeTimeFormat` with `numeric: \"auto\"` (\"yesterday\", \"now\")."
2080
+ },
2081
+ {
2082
+ "kind": "function",
2083
+ "name": "partValue",
2084
+ "return": {
2085
+ "type": {
2086
+ "text": "string | undefined"
2087
+ }
2088
+ },
2089
+ "parameters": [
2090
+ {
2091
+ "name": "parts",
2092
+ "type": {
2093
+ "text": "Intl.DateTimeFormatPart[]"
2094
+ }
2095
+ },
2096
+ {
2097
+ "name": "type",
2098
+ "type": {
2099
+ "text": "Intl.DateTimeFormatPartTypes"
2100
+ }
2101
+ }
2102
+ ],
2103
+ "description": "Returns the value of the first part of `type`, if any."
2104
+ }
2105
+ ],
2106
+ "exports": [
2107
+ {
2108
+ "kind": "js",
2109
+ "name": "dateTimeFormat",
2110
+ "declaration": {
2111
+ "name": "dateTimeFormat",
2112
+ "module": "src/date/intl.ts"
2113
+ }
2114
+ },
2115
+ {
2116
+ "kind": "js",
2117
+ "name": "relativeTimeFormat",
2118
+ "declaration": {
2119
+ "name": "relativeTimeFormat",
2120
+ "module": "src/date/intl.ts"
2121
+ }
2122
+ },
2123
+ {
2124
+ "kind": "js",
2125
+ "name": "partValue",
2126
+ "declaration": {
2127
+ "name": "partValue",
2128
+ "module": "src/date/intl.ts"
2129
+ }
2130
+ }
2131
+ ]
2132
+ },
2133
+ {
2134
+ "kind": "javascript-module",
2135
+ "path": "src/date/locale.ts",
2136
+ "declarations": [
2137
+ {
2138
+ "kind": "function",
2139
+ "name": "resolveLocale",
2140
+ "return": {
2141
+ "type": {
2142
+ "text": "string | undefined"
2143
+ }
2144
+ },
2145
+ "parameters": [
2146
+ {
2147
+ "name": "host",
2148
+ "type": {
2149
+ "text": "Element"
2150
+ }
2151
+ },
2152
+ {
2153
+ "name": "explicit",
2154
+ "type": {
2155
+ "text": "string"
2156
+ }
2157
+ }
2158
+ ],
2159
+ "description": "Resolves the locale for an element: its `locale` attribute, then the\nnearest `lang` attribute (crossing shadow roots), then the browser default\n(`undefined`). Invalid tags are skipped."
2160
+ }
2161
+ ],
2162
+ "exports": [
2163
+ {
2164
+ "kind": "js",
2165
+ "name": "resolveLocale",
2166
+ "declaration": {
2167
+ "name": "resolveLocale",
2168
+ "module": "src/date/locale.ts"
2169
+ }
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ "kind": "javascript-module",
2175
+ "path": "src/date/names.ts",
2176
+ "declarations": [
2177
+ {
2178
+ "kind": "function",
2179
+ "name": "monthNames",
2180
+ "return": {
2181
+ "type": {
2182
+ "text": "string[]"
2183
+ }
2184
+ },
2185
+ "parameters": [
2186
+ {
2187
+ "name": "locale",
2188
+ "type": {
2189
+ "text": "string | undefined"
2190
+ }
2191
+ },
2192
+ {
2193
+ "name": "width",
2194
+ "type": {
2195
+ "text": "NameWidth"
2196
+ }
2197
+ }
2198
+ ],
2199
+ "description": "Localized month names, January first. Uses the \"format\" form (as in \"22 January\")."
2200
+ },
2201
+ {
2202
+ "kind": "function",
2203
+ "name": "weekdayNames",
2204
+ "return": {
2205
+ "type": {
2206
+ "text": "string[]"
2207
+ }
2208
+ },
2209
+ "parameters": [
2210
+ {
2211
+ "name": "locale",
2212
+ "type": {
2213
+ "text": "string | undefined"
2214
+ }
2215
+ },
2216
+ {
2217
+ "name": "width",
2218
+ "type": {
2219
+ "text": "NameWidth"
2220
+ }
2221
+ }
2222
+ ],
2223
+ "description": "Localized weekday names, Sunday first."
2224
+ },
2225
+ {
2226
+ "kind": "function",
2227
+ "name": "dayPeriods",
2228
+ "return": {
2229
+ "type": {
2230
+ "text": "[string, string]"
2231
+ }
2232
+ },
2233
+ "parameters": [
2234
+ {
2235
+ "name": "locale",
2236
+ "type": {
2237
+ "text": "string | undefined"
2238
+ }
2239
+ }
2240
+ ],
2241
+ "description": "Localized day periods as `[am, pm]`. Falls back to `AM` / `PM`."
2242
+ }
2243
+ ],
2244
+ "exports": [
2245
+ {
2246
+ "kind": "js",
2247
+ "name": "monthNames",
2248
+ "declaration": {
2249
+ "name": "monthNames",
2250
+ "module": "src/date/names.ts"
2251
+ }
2252
+ },
2253
+ {
2254
+ "kind": "js",
2255
+ "name": "weekdayNames",
2256
+ "declaration": {
2257
+ "name": "weekdayNames",
2258
+ "module": "src/date/names.ts"
2259
+ }
2260
+ },
2261
+ {
2262
+ "kind": "js",
2263
+ "name": "dayPeriods",
2264
+ "declaration": {
2265
+ "name": "dayPeriods",
2266
+ "module": "src/date/names.ts"
2267
+ }
2268
+ }
2269
+ ]
2270
+ },
2271
+ {
2272
+ "kind": "javascript-module",
2273
+ "path": "src/date/parse-fields.ts",
2274
+ "declarations": [
2275
+ {
2276
+ "kind": "function",
2277
+ "name": "assemble",
2278
+ "return": {
2279
+ "type": {
2280
+ "text": "Date | undefined"
2281
+ }
2282
+ },
2283
+ "parameters": [
2284
+ {
2285
+ "name": "parsed",
2286
+ "type": {
2287
+ "text": "ParsedFields"
2288
+ }
2289
+ },
2290
+ {
2291
+ "name": "{ timeZone, now }",
2292
+ "type": {
2293
+ "text": "AssembleOptions"
2294
+ }
2295
+ }
2296
+ ],
2297
+ "description": "Turns parsed fields into an instant, or `undefined` when a field is out of\nrange (e.g. month 13 or 31 February).\n\nDefaults follow moment: a missing year is the current one; when no date\npart was given at all the date is today; a missing month/day is 1; missing\ntime fields are 0. Wall times are read in `timeZone` (local when unset)\nunless the input carried its own offset."
2298
+ },
2299
+ {
2300
+ "kind": "function",
2301
+ "name": "expandYear",
2302
+ "return": {
2303
+ "type": {
2304
+ "text": "number"
2305
+ }
2306
+ },
2307
+ "parameters": [
2308
+ {
2309
+ "name": "digits",
2310
+ "type": {
2311
+ "text": "string"
2312
+ }
2313
+ }
2314
+ ],
2315
+ "description": "Two-digit years: `00`-`68` → 2000s, `69`-`99` → 1900s (same pivot as moment)."
2316
+ },
2317
+ {
2318
+ "kind": "function",
2319
+ "name": "fractionToMs",
2320
+ "return": {
2321
+ "type": {
2322
+ "text": "number"
2323
+ }
2324
+ },
2325
+ "parameters": [
2326
+ {
2327
+ "name": "digits",
2328
+ "type": {
2329
+ "text": "string"
2330
+ }
2331
+ }
2332
+ ],
2333
+ "description": "Fractional seconds (`5`, `50`, `500`, `500123`) → milliseconds."
2334
+ },
2335
+ {
2336
+ "kind": "function",
2337
+ "name": "parseOffset",
2338
+ "return": {
2339
+ "type": {
2340
+ "text": "number | undefined"
2341
+ }
2342
+ },
2343
+ "parameters": [
2344
+ {
2345
+ "name": "value",
2346
+ "type": {
2347
+ "text": "string"
2348
+ }
2349
+ }
2350
+ ],
2351
+ "description": "`Z`, `+03:00`, `+0300` or `+03` → minutes east of UTC."
2352
+ }
2353
+ ],
2354
+ "exports": [
2355
+ {
2356
+ "kind": "js",
2357
+ "name": "assemble",
2358
+ "declaration": {
2359
+ "name": "assemble",
2360
+ "module": "src/date/parse-fields.ts"
2361
+ }
2362
+ },
2363
+ {
2364
+ "kind": "js",
2365
+ "name": "expandYear",
2366
+ "declaration": {
2367
+ "name": "expandYear",
2368
+ "module": "src/date/parse-fields.ts"
2369
+ }
2370
+ },
2371
+ {
2372
+ "kind": "js",
2373
+ "name": "fractionToMs",
2374
+ "declaration": {
2375
+ "name": "fractionToMs",
2376
+ "module": "src/date/parse-fields.ts"
2377
+ }
2378
+ },
2379
+ {
2380
+ "kind": "js",
2381
+ "name": "parseOffset",
2382
+ "declaration": {
2383
+ "name": "parseOffset",
2384
+ "module": "src/date/parse-fields.ts"
2385
+ }
2386
+ }
2387
+ ]
2388
+ },
2389
+ {
2390
+ "kind": "javascript-module",
2391
+ "path": "src/date/parse-iso.ts",
2392
+ "declarations": [
2393
+ {
2394
+ "kind": "function",
2395
+ "name": "parseIso",
2396
+ "return": {
2397
+ "type": {
2398
+ "text": "ParsedFields | undefined"
2399
+ }
2400
+ },
2401
+ "parameters": [
2402
+ {
2403
+ "name": "input",
2404
+ "type": {
2405
+ "text": "string"
2406
+ }
2407
+ }
2408
+ ],
2409
+ "description": "Parses ISO 8601 (`2024-01-22`, `2024-01-22T14:30`, `2024-01-22T14:30:05.123+03:00`)\nand epoch milliseconds (`1705923000000`).\n\nUnlike `Date.parse`, a date-only ISO string is a local (or `time-zone`) date\nrather than UTC midnight, so `2024-01-22` never renders as the 21st."
2410
+ }
2411
+ ],
2412
+ "exports": [
2413
+ {
2414
+ "kind": "js",
2415
+ "name": "parseIso",
2416
+ "declaration": {
2417
+ "name": "parseIso",
2418
+ "module": "src/date/parse-iso.ts"
2419
+ }
2420
+ }
2421
+ ]
2422
+ },
2423
+ {
2424
+ "kind": "javascript-module",
2425
+ "path": "src/date/parse-numeric.ts",
2426
+ "declarations": [
2427
+ {
2428
+ "kind": "function",
2429
+ "name": "localeDateOrder",
2430
+ "return": {
2431
+ "type": {
2432
+ "text": "Part[]"
2433
+ }
2434
+ },
2435
+ "parameters": [
2436
+ {
2437
+ "name": "locale",
2438
+ "type": {
2439
+ "text": "string | undefined"
2440
+ }
2441
+ }
2442
+ ],
2443
+ "description": "Order of day, month and year in the locale's numeric date\n(`en-US` → month/day/year, `tr`/`en-GB` → day/month/year, `ja` → year/month/day)."
2444
+ },
2445
+ {
2446
+ "kind": "function",
2447
+ "name": "parseNumeric",
2448
+ "return": {
2449
+ "type": {
2450
+ "text": "ParsedFields | undefined"
2451
+ }
2452
+ },
2453
+ "parameters": [
2454
+ {
2455
+ "name": "input",
2456
+ "type": {
2457
+ "text": "string"
2458
+ }
2459
+ },
2460
+ {
2461
+ "name": "locale",
2462
+ "optional": true,
2463
+ "type": {
2464
+ "text": "string"
2465
+ }
2466
+ }
2467
+ ],
2468
+ "description": "Fallback for numeric dates without an `input-format`, such as `22/01/2024`\nor `22.01.2024 14:30`. Day, month and year are read in the locale's order,\nso `01/02/2024` is 1 February in `tr` and January 2 in `en-US`. Values that\ndon't fit that order (day 22 as a US month) are rejected, never swapped."
2469
+ }
2470
+ ],
2471
+ "exports": [
2472
+ {
2473
+ "kind": "js",
2474
+ "name": "localeDateOrder",
2475
+ "declaration": {
2476
+ "name": "localeDateOrder",
2477
+ "module": "src/date/parse-numeric.ts"
2478
+ }
2479
+ },
2480
+ {
2481
+ "kind": "js",
2482
+ "name": "parseNumeric",
2483
+ "declaration": {
2484
+ "name": "parseNumeric",
2485
+ "module": "src/date/parse-numeric.ts"
2486
+ }
2487
+ }
2488
+ ]
2489
+ },
2490
+ {
2491
+ "kind": "javascript-module",
2492
+ "path": "src/date/parse-pattern.ts",
2493
+ "declarations": [
2494
+ {
2495
+ "kind": "function",
2496
+ "name": "parsePattern",
2497
+ "return": {
2498
+ "type": {
2499
+ "text": "ParsedFields | undefined"
2500
+ }
2501
+ },
2502
+ "parameters": [
2503
+ {
2504
+ "name": "input",
2505
+ "type": {
2506
+ "text": "string"
2507
+ }
2508
+ },
2509
+ {
2510
+ "name": "pattern",
2511
+ "type": {
2512
+ "text": "string"
2513
+ }
2514
+ },
2515
+ {
2516
+ "name": "locale",
2517
+ "optional": true,
2518
+ "type": {
2519
+ "text": "string"
2520
+ }
2521
+ }
2522
+ ],
2523
+ "description": "Parses `input` with a moment-style pattern (`DD/MM/YYYY HH:mm`). Month,\nweekday and AM/PM names are matched case-insensitively in `locale`;\nwhitespace in the pattern matches any run of whitespace."
2524
+ }
2525
+ ],
2526
+ "exports": [
2527
+ {
2528
+ "kind": "js",
2529
+ "name": "parsePattern",
2530
+ "declaration": {
2531
+ "name": "parsePattern",
2532
+ "module": "src/date/parse-pattern.ts"
2533
+ }
2534
+ }
2535
+ ]
2536
+ },
2537
+ {
2538
+ "kind": "javascript-module",
2539
+ "path": "src/date/parse.ts",
2540
+ "declarations": [
2541
+ {
2542
+ "kind": "function",
2543
+ "name": "parseDate",
2544
+ "return": {
2545
+ "type": {
2546
+ "text": "Date | undefined"
2547
+ }
2548
+ },
2549
+ "parameters": [
2550
+ {
2551
+ "name": "input",
2552
+ "type": {
2553
+ "text": "DateInput | null | undefined"
2554
+ }
2555
+ },
2556
+ {
2557
+ "name": "options",
2558
+ "type": {
2559
+ "text": "ParseOptions"
2560
+ }
2561
+ }
2562
+ ],
2563
+ "description": "Parses a date input. Returns `undefined` for empty or invalid input.\n\n- `Date` → used as is (if valid). `number` → epoch milliseconds.\n- Strings with `inputFormat` → that pattern only.\n- Other strings → ISO 8601 / epoch ms, then a numeric date in the locale's\n day/month/year order (`22/01/2024`, `22.01.2024 14:30`)."
2564
+ }
2565
+ ],
2566
+ "exports": [
2567
+ {
2568
+ "kind": "js",
2569
+ "name": "parseDate",
2570
+ "declaration": {
2571
+ "name": "parseDate",
2572
+ "module": "src/date/parse.ts"
2573
+ }
2574
+ }
2575
+ ]
2576
+ },
2577
+ {
2578
+ "kind": "javascript-module",
2579
+ "path": "src/date/relative.ts",
2580
+ "declarations": [
2581
+ {
2582
+ "kind": "function",
2583
+ "name": "formatRelative",
2584
+ "return": {
2585
+ "type": {
2586
+ "text": "string"
2587
+ }
2588
+ },
2589
+ "parameters": [
2590
+ {
2591
+ "name": "date",
2592
+ "type": {
2593
+ "text": "Date"
2594
+ }
2595
+ },
2596
+ {
2597
+ "name": "now",
2598
+ "type": {
2599
+ "text": "number"
2600
+ }
2601
+ },
2602
+ {
2603
+ "name": "locale",
2604
+ "optional": true,
2605
+ "type": {
2606
+ "text": "string"
2607
+ }
2608
+ }
2609
+ ],
2610
+ "description": "Formats `date` relative to `now` (\"3 minutes ago\", \"in 2 days\", \"now\").\nPicks the largest unit that fits and truncates toward zero, so \"5 minutes\nago\" holds until the sixth minute has passed."
2611
+ },
2612
+ {
2613
+ "kind": "function",
2614
+ "name": "relativePeriod",
2615
+ "return": {
2616
+ "type": {
2617
+ "text": "number"
2618
+ }
2619
+ },
2620
+ "parameters": [
2621
+ {
2622
+ "name": "date",
2623
+ "type": {
2624
+ "text": "Date"
2625
+ }
2626
+ },
2627
+ {
2628
+ "name": "now",
2629
+ "type": {
2630
+ "text": "number"
2631
+ }
2632
+ }
2633
+ ],
2634
+ "description": "How often a relative date needs re-rendering. Labels change fastest close to\nnow, so the cadence slows down as the date gets further away."
2635
+ }
2636
+ ],
2637
+ "exports": [
2638
+ {
2639
+ "kind": "js",
2640
+ "name": "formatRelative",
2641
+ "declaration": {
2642
+ "name": "formatRelative",
2643
+ "module": "src/date/relative.ts"
2644
+ }
2645
+ },
2646
+ {
2647
+ "kind": "js",
2648
+ "name": "relativePeriod",
2649
+ "declaration": {
2650
+ "name": "relativePeriod",
2651
+ "module": "src/date/relative.ts"
2652
+ }
2653
+ }
2654
+ ]
2655
+ },
2656
+ {
2657
+ "kind": "javascript-module",
2658
+ "path": "src/date/resolution.ts",
2659
+ "declarations": [
2660
+ {
2661
+ "kind": "variable",
2662
+ "name": "PERIODS",
2663
+ "type": {
2664
+ "text": "{\n millisecond: 50,\n second: SECOND,\n minute: MINUTE,\n hour: 15 * MINUTE,\n day: 15 * MINUTE,\n}"
2665
+ },
2666
+ "default": "{ millisecond: 50, second: SECOND, minute: MINUTE, hour: 15 * MINUTE, day: 15 * MINUTE, }",
2667
+ "description": "Tick periods per unit. Hour and day changes are checked every 15 minutes:\nevery current UTC offset is a multiple of 15 minutes, so a 15-minute,\nepoch-aligned tick lands exactly on every zone's hour and midnight.\nMilliseconds tick at ~20 fps; faster is invisible."
2668
+ },
2669
+ {
2670
+ "kind": "function",
2671
+ "name": "tickPeriod",
2672
+ "return": {
2673
+ "type": {
2674
+ "text": "number"
2675
+ }
2676
+ },
2677
+ "parameters": [
2678
+ {
2679
+ "name": "spec",
2680
+ "type": {
2681
+ "text": "FormatSpec"
2682
+ }
2683
+ },
2684
+ {
2685
+ "name": "date",
2686
+ "type": {
2687
+ "text": "Date"
2688
+ }
2689
+ },
2690
+ {
2691
+ "name": "now",
2692
+ "type": {
2693
+ "text": "number"
2694
+ }
2695
+ }
2696
+ ],
2697
+ "description": "How often (ms) a date rendered with `spec` can change. Ticks are aligned to\nmultiples of this period, so second/minute changes show up exactly on time."
2698
+ }
2699
+ ],
2700
+ "exports": [
2701
+ {
2702
+ "kind": "js",
2703
+ "name": "PERIODS",
2704
+ "declaration": {
2705
+ "name": "PERIODS",
2706
+ "module": "src/date/resolution.ts"
2707
+ }
2708
+ },
2709
+ {
2710
+ "kind": "js",
2711
+ "name": "tickPeriod",
2712
+ "declaration": {
2713
+ "name": "tickPeriod",
2714
+ "module": "src/date/resolution.ts"
2715
+ }
2716
+ }
2717
+ ]
2718
+ },
2719
+ {
2720
+ "kind": "javascript-module",
2721
+ "path": "src/date/styles.ts",
2722
+ "declarations": [
2723
+ {
2724
+ "kind": "variable",
2725
+ "name": "dateStyles",
2726
+ "default": "css` :host { display: inline; } :host([hidden]) { display: none; } /* Tabular digits keep live dates from jittering as numbers change. */ time { font-variant-numeric: var(--tp-date-numeric, tabular-nums); } `"
2727
+ }
2728
+ ],
2729
+ "exports": [
2730
+ {
2731
+ "kind": "js",
2732
+ "name": "dateStyles",
2733
+ "declaration": {
2734
+ "name": "dateStyles",
2735
+ "module": "src/date/styles.ts"
2736
+ }
2737
+ }
2738
+ ]
2739
+ },
2740
+ {
2741
+ "kind": "javascript-module",
2742
+ "path": "src/date/ticker.ts",
2743
+ "declarations": [
2744
+ {
2745
+ "kind": "function",
2746
+ "name": "subscribe",
2747
+ "return": {
2748
+ "type": {
2749
+ "text": "() => void"
2750
+ }
2751
+ },
2752
+ "parameters": [
2753
+ {
2754
+ "name": "period",
2755
+ "type": {
2756
+ "text": "number"
2757
+ }
2758
+ },
2759
+ {
2760
+ "name": "listener",
2761
+ "type": {
2762
+ "text": "Listener"
2763
+ }
2764
+ }
2765
+ ],
2766
+ "description": "Subscribes `listener` to ticks every `period` ms. Returns the unsubscribe function."
2767
+ }
2768
+ ],
2769
+ "exports": [
2770
+ {
2771
+ "kind": "js",
2772
+ "name": "subscribe",
2773
+ "declaration": {
2774
+ "name": "subscribe",
2775
+ "module": "src/date/ticker.ts"
2776
+ }
2777
+ }
2778
+ ]
2779
+ },
2780
+ {
2781
+ "kind": "javascript-module",
2782
+ "path": "src/date/tokens.ts",
2783
+ "declarations": [
2784
+ {
2785
+ "kind": "variable",
2786
+ "name": "TOKENS",
2787
+ "type": {
2788
+ "text": "[\n \"YYYY\",\n \"MMMM\",\n \"dddd\",\n \"MMM\",\n \"ddd\",\n \"SSS\",\n \"YY\",\n \"MM\",\n \"DD\",\n \"HH\",\n \"hh\",\n \"mm\",\n \"ss\",\n \"ZZ\",\n \"M\",\n \"D\",\n \"d\",\n \"H\",\n \"h\",\n \"m\",\n \"s\",\n \"A\",\n \"a\",\n \"Z\",\n \"X\",\n \"x\",\n]"
2789
+ },
2790
+ "default": "[ \"YYYY\", \"MMMM\", \"dddd\", \"MMM\", \"ddd\", \"SSS\", \"YY\", \"MM\", \"DD\", \"HH\", \"hh\", \"mm\", \"ss\", \"ZZ\", \"M\", \"D\", \"d\", \"H\", \"h\", \"m\", \"s\", \"A\", \"a\", \"Z\", \"X\", \"x\", ]",
2791
+ "description": "Moment-style tokens shared by formatting (`format`) and parsing\n(`input-format`). Ordered longest-first so the tokenizer is greedy.\n\n| Token | Meaning |\n| ------------ | ------------------------------------ |\n| `YYYY` `YY` | Year (4 digits / 2 digits) |\n| `MMMM` `MMM` | Month name (long / short, localized) |\n| `MM` `M` | Month number (padded / unpadded) |\n| `DD` `D` | Day of month |\n| `dddd` `ddd` | Weekday name (long / short) |\n| `d` | Weekday number (0 = Sunday) |\n| `HH` `H` | Hour 0-23 |\n| `hh` `h` | Hour 1-12 |\n| `mm` `m` | Minute |\n| `ss` `s` | Second |\n| `SSS` | Millisecond |\n| `A` `a` | Day period (AM/PM, localized) |\n| `ZZ` `Z` | UTC offset (`+0300` / `+03:00`) |\n| `X` `x` | Unix seconds / milliseconds |\n\nText in `[brackets]` is literal. Any other character is literal too."
2792
+ },
2793
+ {
2794
+ "kind": "function",
2795
+ "name": "tokenize",
2796
+ "return": {
2797
+ "type": {
2798
+ "text": "PatternPart[]"
2799
+ }
2800
+ },
2801
+ "parameters": [
2802
+ {
2803
+ "name": "pattern",
2804
+ "type": {
2805
+ "text": "string"
2806
+ }
2807
+ }
2808
+ ],
2809
+ "description": "Splits a pattern into tokens and literals. Results are cached per pattern."
2810
+ }
2811
+ ],
2812
+ "exports": [
2813
+ {
2814
+ "kind": "js",
2815
+ "name": "TOKENS",
2816
+ "declaration": {
2817
+ "name": "TOKENS",
2818
+ "module": "src/date/tokens.ts"
2819
+ }
2820
+ },
2821
+ {
2822
+ "kind": "js",
2823
+ "name": "tokenize",
2824
+ "declaration": {
2825
+ "name": "tokenize",
2826
+ "module": "src/date/tokens.ts"
2827
+ }
2828
+ }
2829
+ ]
2830
+ },
2831
+ {
2832
+ "kind": "javascript-module",
2833
+ "path": "src/date/types.ts",
2834
+ "declarations": [],
2835
+ "exports": []
2836
+ },
2837
+ {
2838
+ "kind": "javascript-module",
2839
+ "path": "src/date/zone.ts",
2840
+ "declarations": [
2841
+ {
2842
+ "kind": "function",
2843
+ "name": "getFields",
2844
+ "return": {
2845
+ "type": {
2846
+ "text": "DateFields"
2847
+ }
2848
+ },
2849
+ "parameters": [
2850
+ {
2851
+ "name": "date",
2852
+ "type": {
2853
+ "text": "Date"
2854
+ }
2855
+ },
2856
+ {
2857
+ "name": "timeZone",
2858
+ "optional": true,
2859
+ "type": {
2860
+ "text": "string"
2861
+ }
2862
+ }
2863
+ ],
2864
+ "description": "Wall-clock fields of `date` in `timeZone` (an IANA name such as\n`Europe/Istanbul`). Without a time zone the runtime's local zone is used."
2865
+ },
2866
+ {
2867
+ "kind": "function",
2868
+ "name": "utcFromFields",
2869
+ "return": {
2870
+ "type": {
2871
+ "text": "number"
2872
+ }
2873
+ },
2874
+ "parameters": [
2875
+ {
2876
+ "name": "fields",
2877
+ "type": {
2878
+ "text": "Omit<DateFields, \"weekday\">"
2879
+ }
2880
+ }
2881
+ ],
2882
+ "description": "UTC timestamp of the given wall-clock fields, as if they were in UTC. Handles years 0-99."
2883
+ },
2884
+ {
2885
+ "kind": "function",
2886
+ "name": "offsetMinutes",
2887
+ "return": {
2888
+ "type": {
2889
+ "text": "number"
2890
+ }
2891
+ },
2892
+ "parameters": [
2893
+ {
2894
+ "name": "date",
2895
+ "type": {
2896
+ "text": "Date"
2897
+ }
2898
+ },
2899
+ {
2900
+ "name": "timeZone",
2901
+ "optional": true,
2902
+ "type": {
2903
+ "text": "string"
2904
+ }
2905
+ }
2906
+ ],
2907
+ "description": "Offset of `timeZone` from UTC at `date`, in minutes (east positive, e.g. `+180` for Istanbul)."
2908
+ },
2909
+ {
2910
+ "kind": "function",
2911
+ "name": "fromFields",
2912
+ "return": {
2913
+ "type": {
2914
+ "text": "Date"
2915
+ }
2916
+ },
2917
+ "parameters": [
2918
+ {
2919
+ "name": "fields",
2920
+ "type": {
2921
+ "text": "Omit<DateFields, \"weekday\">"
2922
+ }
2923
+ },
2924
+ {
2925
+ "name": "timeZone",
2926
+ "optional": true,
2927
+ "type": {
2928
+ "text": "string"
2929
+ }
2930
+ }
2931
+ ],
2932
+ "description": "The instant at which the wall clock in `timeZone` shows `fields`. In a DST\ngap the time is shifted forward, matching how `Date` handles local times."
2933
+ },
2934
+ {
2935
+ "kind": "function",
2936
+ "name": "daysInMonth",
2937
+ "return": {
2938
+ "type": {
2939
+ "text": "number"
2940
+ }
2941
+ },
2942
+ "parameters": [
2943
+ {
2944
+ "name": "year",
2945
+ "type": {
2946
+ "text": "number"
2947
+ }
2948
+ },
2949
+ {
2950
+ "name": "month",
2951
+ "type": {
2952
+ "text": "number"
2953
+ }
2954
+ }
2955
+ ],
2956
+ "description": "Number of days in a month (`month` is 1-12)."
2957
+ },
2958
+ {
2959
+ "kind": "function",
2960
+ "name": "formatOffset",
2961
+ "return": {
2962
+ "type": {
2963
+ "text": "string"
2964
+ }
2965
+ },
2966
+ "parameters": [
2967
+ {
2968
+ "name": "minutes",
2969
+ "type": {
2970
+ "text": "number"
2971
+ }
2972
+ },
2973
+ {
2974
+ "name": "separator",
2975
+ "default": "\":\""
2976
+ }
2977
+ ],
2978
+ "description": "Formats an offset in minutes as `+03:00` (or `+0300` without a separator)."
2979
+ },
2980
+ {
2981
+ "kind": "function",
2982
+ "name": "isValidTimeZone",
2983
+ "return": {
2984
+ "type": {
2985
+ "text": "boolean"
2986
+ }
2987
+ },
2988
+ "parameters": [
2989
+ {
2990
+ "name": "timeZone",
2991
+ "type": {
2992
+ "text": "string"
2993
+ }
2994
+ }
2995
+ ],
2996
+ "description": "`true` when `timeZone` is a zone the runtime's `Intl` understands."
2997
+ },
2998
+ {
2999
+ "kind": "function",
3000
+ "name": "pad",
3001
+ "return": {
3002
+ "type": {
3003
+ "text": "string"
3004
+ }
3005
+ },
3006
+ "parameters": [
3007
+ {
3008
+ "name": "value",
3009
+ "type": {
3010
+ "text": "number"
3011
+ }
3012
+ },
3013
+ {
3014
+ "name": "length",
3015
+ "default": "2"
3016
+ }
3017
+ ]
3018
+ }
3019
+ ],
3020
+ "exports": [
3021
+ {
3022
+ "kind": "js",
3023
+ "name": "getFields",
3024
+ "declaration": {
3025
+ "name": "getFields",
3026
+ "module": "src/date/zone.ts"
3027
+ }
3028
+ },
3029
+ {
3030
+ "kind": "js",
3031
+ "name": "utcFromFields",
3032
+ "declaration": {
3033
+ "name": "utcFromFields",
3034
+ "module": "src/date/zone.ts"
3035
+ }
3036
+ },
3037
+ {
3038
+ "kind": "js",
3039
+ "name": "offsetMinutes",
3040
+ "declaration": {
3041
+ "name": "offsetMinutes",
3042
+ "module": "src/date/zone.ts"
3043
+ }
3044
+ },
3045
+ {
3046
+ "kind": "js",
3047
+ "name": "fromFields",
3048
+ "declaration": {
3049
+ "name": "fromFields",
3050
+ "module": "src/date/zone.ts"
3051
+ }
3052
+ },
3053
+ {
3054
+ "kind": "js",
3055
+ "name": "daysInMonth",
3056
+ "declaration": {
3057
+ "name": "daysInMonth",
3058
+ "module": "src/date/zone.ts"
3059
+ }
3060
+ },
3061
+ {
3062
+ "kind": "js",
3063
+ "name": "formatOffset",
3064
+ "declaration": {
3065
+ "name": "formatOffset",
3066
+ "module": "src/date/zone.ts"
3067
+ }
3068
+ },
3069
+ {
3070
+ "kind": "js",
3071
+ "name": "isValidTimeZone",
3072
+ "declaration": {
3073
+ "name": "isValidTimeZone",
3074
+ "module": "src/date/zone.ts"
3075
+ }
3076
+ },
3077
+ {
3078
+ "kind": "js",
3079
+ "name": "pad",
3080
+ "declaration": {
3081
+ "name": "pad",
3082
+ "module": "src/date/zone.ts"
3083
+ }
3084
+ }
3085
+ ]
3086
+ },
1415
3087
  {
1416
3088
  "kind": "javascript-module",
1417
3089
  "path": "src/details-set/details-set-element.ts",