@telperion/elements 7.1.0 → 8.1.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 (116) hide show
  1. package/.build-manifest.json +12 -1
  2. package/README.md +64 -0
  3. package/custom-elements.json +1870 -129
  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/drag-drop/drag-drop-event.cjs +53 -0
  79. package/drag-drop/drag-drop-event.cjs.map +1 -0
  80. package/drag-drop/drag-drop-event.js +51 -0
  81. package/drag-drop/drag-drop-event.js.map +1 -0
  82. package/drag-drop/drag-element.cjs +44 -43
  83. package/drag-drop/drag-element.cjs.map +1 -1
  84. package/drag-drop/drag-element.js +44 -43
  85. package/drag-drop/drag-element.js.map +1 -1
  86. package/drag-drop/drag-handle-element.cjs +1 -1
  87. package/drag-drop/drag-handle-element.cjs.map +1 -1
  88. package/drag-drop/drag-handle-element.js +1 -1
  89. package/drag-drop/drag-handle-element.js.map +1 -1
  90. package/drag-drop/dropzone-element.cjs +21 -17
  91. package/drag-drop/dropzone-element.cjs.map +1 -1
  92. package/drag-drop/dropzone-element.js +21 -17
  93. package/drag-drop/dropzone-element.js.map +1 -1
  94. package/drag-drop/index.cjs +2 -2
  95. package/drag-drop/index.d.cts +136 -33
  96. package/drag-drop/index.d.ts +136 -33
  97. package/drag-drop/index.js +1 -1
  98. package/fesm/elements.mjs +1138 -65
  99. package/fesm/elements.mjs.map +1 -1
  100. package/iife/date/index.js +53 -0
  101. package/iife/date/index.js.map +1 -0
  102. package/iife/drag-drop/index.js +20 -20
  103. package/iife/drag-drop/index.js.map +1 -1
  104. package/iife/elements.js +62 -44
  105. package/iife/elements.js.map +1 -1
  106. package/index.cjs +13 -2
  107. package/index.cjs.map +1 -1
  108. package/index.d.cts +2 -1
  109. package/index.d.ts +2 -1
  110. package/index.js +6 -1
  111. package/index.js.map +1 -1
  112. package/package.json +31 -3
  113. package/drag-drop/tha-drag-event.cjs +0 -36
  114. package/drag-drop/tha-drag-event.cjs.map +0 -1
  115. package/drag-drop/tha-drag-event.js +0 -34
  116. package/drag-drop/tha-drag-event.js.map +0 -1
@@ -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",
@@ -1699,13 +3371,115 @@
1699
3371
  }
1700
3372
  ]
1701
3373
  },
3374
+ {
3375
+ "kind": "javascript-module",
3376
+ "path": "src/drag-drop/drag-drop-event.ts",
3377
+ "declarations": [
3378
+ {
3379
+ "kind": "class",
3380
+ "description": "The event type of every `tp-drag-*` / `tp-dropzone-*` event. It extends `DragEvent`\r\n(pointer coordinates, modifier keys, … come from the native event it wraps)\r\nand bubbles like the native drag events do.",
3381
+ "name": "DragDropEvent",
3382
+ "members": [
3383
+ {
3384
+ "kind": "field",
3385
+ "name": "#DragElementEvents",
3386
+ "privacy": "private",
3387
+ "type": {
3388
+ "text": "DragElementEventTypes[]"
3389
+ },
3390
+ "static": true,
3391
+ "default": "['tp-drag-move', 'tp-drag-start', 'tp-drag-end', 'tp-drag-zone-enter', 'tp-drag-zone-leave', 'tp-drag-zone-over', 'tp-drag-drop']"
3392
+ },
3393
+ {
3394
+ "kind": "field",
3395
+ "name": "#DropElementEvents",
3396
+ "privacy": "private",
3397
+ "type": {
3398
+ "text": "DropElementEventTypes[]"
3399
+ },
3400
+ "static": true,
3401
+ "default": "['tp-dropzone-drop', 'tp-dropzone-drop-end', 'tp-dropzone-enter', 'tp-dropzone-leave', 'tp-dropzone-over']"
3402
+ },
3403
+ {
3404
+ "kind": "field",
3405
+ "name": "dragTarget",
3406
+ "type": {
3407
+ "text": "WeakRef<DragElement>"
3408
+ },
3409
+ "readonly": true,
3410
+ "description": "The `<tp-drag>` being dragged.",
3411
+ "default": "dragTarget"
3412
+ },
3413
+ {
3414
+ "kind": "field",
3415
+ "name": "dropzoneTarget",
3416
+ "type": {
3417
+ "text": "WeakRef<DropZoneElement> | undefined"
3418
+ },
3419
+ "readonly": true,
3420
+ "description": "The `<tp-dropzone>` involved; `undefined` for `tp-drag-start` / `tp-drag-end`.",
3421
+ "default": "dropzoneTarget"
3422
+ },
3423
+ {
3424
+ "kind": "field",
3425
+ "name": "#target",
3426
+ "privacy": "private",
3427
+ "readonly": true
3428
+ },
3429
+ {
3430
+ "kind": "field",
3431
+ "name": "name",
3432
+ "type": {
3433
+ "text": "string | undefined"
3434
+ },
3435
+ "description": "The `name` of the element the event is dispatched on: the drop zone's name for\r\ndrop zone events, the dragged element's name for drag element events.\r\nUse `dragTarget.deref()?.name` for the dragged element's name in drop zone listeners.",
3436
+ "readonly": true
3437
+ },
3438
+ {
3439
+ "kind": "field",
3440
+ "name": "dragData",
3441
+ "description": "The dragged element's `data-drag-*` values (see `DragElement.dragData`).",
3442
+ "readonly": true
3443
+ },
3444
+ {
3445
+ "kind": "method",
3446
+ "name": "acceptDrop",
3447
+ "parameters": [
3448
+ {
3449
+ "name": "rect",
3450
+ "optional": true,
3451
+ "type": {
3452
+ "text": "DOMRect"
3453
+ }
3454
+ }
3455
+ ],
3456
+ "description": "Accepts the drop on `dropzoneTarget`. Call it in a `tp-dropzone-drop` listener.\r\nThe dragged element then animates into `rect` (viewport coordinates, e.g. from\r\n`getBoundingClientRect()`), or back to where it started without one, and\r\n`tp-dropzone-drop-end` fires on the drop zone when the animation is over."
3457
+ }
3458
+ ],
3459
+ "superclass": {
3460
+ "name": "DragEvent",
3461
+ "module": "src/drag-drop/drag-drop-event.ts"
3462
+ }
3463
+ }
3464
+ ],
3465
+ "exports": [
3466
+ {
3467
+ "kind": "js",
3468
+ "name": "DragDropEvent",
3469
+ "declaration": {
3470
+ "name": "DragDropEvent",
3471
+ "module": "src/drag-drop/drag-drop-event.ts"
3472
+ }
3473
+ }
3474
+ ]
3475
+ },
1702
3476
  {
1703
3477
  "kind": "javascript-module",
1704
3478
  "path": "src/drag-drop/drag-element.ts",
1705
3479
  "declarations": [
1706
3480
  {
1707
3481
  "kind": "class",
1708
- "description": "A draggable element that can be used to initiate drag-and-drop operations.\nIt can contain child elements and supports drag handles.\nThe `replaceclone` attribute indicates whether the element should be replaced with a clone during\nthe drag operation.\nThe `draggingstrategy` attribute defines the drag behavior, such as 'move' or 'copyMove'.",
3482
+ "description": "Makes its content draggable. While dragged, the element itself follows the\npointer (`position: fixed`, driven by CSS custom properties) instead of the\nbrowser's translucent drag image. On release it animates back to where it\ncame from, or into the rectangle a `<tp-dropzone>` accepted it into.\n\nGive it a `name` so drop zones can filter it with `accept`, and carry data\nwith `data-drag-*` attributes (read back from `event.dragData`).\n\nCustom elements are `display: inline` by default: give `tp-drag` (and\n`tp-drag-clone`, when using `replaceclone`) a `display` of your choice.\n\n#### Examples\n\n```html\n<tp-drag name=\"card\" data-drag-id=\"42\" replaceclone>Drag me</tp-drag>\n\n<tp-dropzone accept=\"card\">Drop here</tp-dropzone>\n```",
1709
3483
  "name": "DragElement",
1710
3484
  "members": [
1711
3485
  {
@@ -1744,7 +3518,7 @@
1744
3518
  },
1745
3519
  "readonly": true,
1746
3520
  "default": "{}",
1747
- "description": "A record of drag-related data attributes."
3521
+ "description": "Values of the element's `data-drag-*` attributes, keyed without the prefix\r\n(`data-drag-id=\"42\"` → `{ id: \"42\" }`). Kept in sync with attribute changes."
1748
3522
  },
1749
3523
  {
1750
3524
  "kind": "field",
@@ -1805,8 +3579,8 @@
1805
3579
  "text": "'move' | 'copyMove'"
1806
3580
  },
1807
3581
  "default": "'move'",
1808
- "description": "The dragging strategy to use for the element.\r\nThis determines how the element is dragged (e.g., move or copy).",
1809
- "attribute": "draggingStrategy",
3582
+ "description": "The `dataTransfer.effectAllowed` of the drag. Both values animate the same way;\r\nthe element itself always moves (nothing is copied).",
3583
+ "attribute": "draggingstrategy",
1810
3584
  "reflects": true
1811
3585
  },
1812
3586
  {
@@ -1816,7 +3590,7 @@
1816
3590
  "text": "string"
1817
3591
  },
1818
3592
  "description": "The group name for the drag element.\r\nThis is used to group elements together for drag-and-drop operations.\r\nElements with the same group name can interact with each other during drag-and-drop.\r\n\r\n!!! Not implemented yet !!!",
1819
- "attribute": "dragGroup"
3593
+ "attribute": "draggroup"
1820
3594
  },
1821
3595
  {
1822
3596
  "kind": "field",
@@ -1824,8 +3598,8 @@
1824
3598
  "type": {
1825
3599
  "text": "boolean"
1826
3600
  },
1827
- "description": "Indicates whether the element should replace its clone during drag operations.\r\nIf true , the original element is replaced with a clone during dragging.",
1828
- "attribute": "replaceClone"
3601
+ "description": "Leaves a `<tp-drag-clone>` placeholder in the element's place while it is dragged,\r\nso surrounding content doesn't reflow. The placeholder copies the element's attributes\r\n(except `dragging`, `replaceclone` and `draggable`) and child nodes; style it with the\r\n`tp-drag-clone` selector. It is removed when the drag ends.",
3602
+ "attribute": "replaceclone"
1829
3603
  },
1830
3604
  {
1831
3605
  "kind": "field",
@@ -1857,7 +3631,7 @@
1857
3631
  },
1858
3632
  "default": "null",
1859
3633
  "description": "The ID of the drop zone the element is currently over.",
1860
- "attribute": "draggedOver",
3634
+ "attribute": "draggedover",
1861
3635
  "reflects": true
1862
3636
  },
1863
3637
  {
@@ -1868,7 +3642,7 @@
1868
3642
  },
1869
3643
  "default": "false",
1870
3644
  "description": "Indicates whether the element has been accepted by a drop zone.\r\nThis is used to manage the state of the element during drag-and-drop operations.",
1871
- "attribute": "dropAccepted",
3645
+ "attribute": "dropaccepted",
1872
3646
  "reflects": true
1873
3647
  },
1874
3648
  {
@@ -1985,7 +3759,7 @@
1985
3759
  "description": "Handles the drop zone enter event.\r\nThis updates the draggedOver property to indicate which drop zone the element is currently over.",
1986
3760
  "parameters": [
1987
3761
  {
1988
- "description": "The ThaDragEvent for the drop zone enter.",
3762
+ "description": "The DragDropEvent for the drop zone enter.",
1989
3763
  "name": "event"
1990
3764
  }
1991
3765
  ]
@@ -1997,7 +3771,7 @@
1997
3771
  "description": "Handles the drop zone leave event.\r\nThis clears the draggedOver property when the element leaves a drop zone.",
1998
3772
  "parameters": [
1999
3773
  {
2000
- "description": "The ThaDragEvent for the drop zone leave.",
3774
+ "description": "The DragDropEvent for the drop zone leave.",
2001
3775
  "name": "event"
2002
3776
  }
2003
3777
  ]
@@ -2080,16 +3854,16 @@
2080
3854
  "fieldName": "name"
2081
3855
  },
2082
3856
  {
2083
- "name": "draggingStrategy",
3857
+ "name": "draggingstrategy",
2084
3858
  "type": {
2085
3859
  "text": "'move' | 'copyMove'"
2086
3860
  },
2087
3861
  "default": "'move'",
2088
- "description": "The dragging strategy to use for the element.\r\nThis determines how the element is dragged (e.g., move or copy).",
3862
+ "description": "The `dataTransfer.effectAllowed` of the drag. Both values animate the same way;\r\nthe element itself always moves (nothing is copied).",
2089
3863
  "fieldName": "draggingStrategy"
2090
3864
  },
2091
3865
  {
2092
- "name": "dragGroup",
3866
+ "name": "draggroup",
2093
3867
  "type": {
2094
3868
  "text": "string"
2095
3869
  },
@@ -2097,11 +3871,11 @@
2097
3871
  "fieldName": "dragGroup"
2098
3872
  },
2099
3873
  {
2100
- "name": "replaceClone",
3874
+ "name": "replaceclone",
2101
3875
  "type": {
2102
3876
  "text": "boolean"
2103
3877
  },
2104
- "description": "Indicates whether the element should replace its clone during drag operations.\r\nIf true , the original element is replaced with a clone during dragging.",
3878
+ "description": "Leaves a `<tp-drag-clone>` placeholder in the element's place while it is dragged,\r\nso surrounding content doesn't reflow. The placeholder copies the element's attributes\r\n(except `dragging`, `replaceclone` and `draggable`) and child nodes; style it with the\r\n`tp-drag-clone` selector. It is removed when the drag ends.",
2105
3879
  "fieldName": "replaceClone"
2106
3880
  },
2107
3881
  {
@@ -2123,7 +3897,7 @@
2123
3897
  "fieldName": "dragend"
2124
3898
  },
2125
3899
  {
2126
- "name": "draggedOver",
3900
+ "name": "draggedover",
2127
3901
  "type": {
2128
3902
  "text": "string | null"
2129
3903
  },
@@ -2132,7 +3906,7 @@
2132
3906
  "fieldName": "draggedOver"
2133
3907
  },
2134
3908
  {
2135
- "name": "dropAccepted",
3909
+ "name": "dropaccepted",
2136
3910
  "type": {
2137
3911
  "text": "boolean"
2138
3912
  },
@@ -2153,8 +3927,44 @@
2153
3927
  "name": "LitElement",
2154
3928
  "package": "lit"
2155
3929
  },
2156
- "tagName": "tha-drag",
2157
- "customElement": true
3930
+ "tagName": "tp-drag",
3931
+ "customElement": true,
3932
+ "events": [
3933
+ {
3934
+ "name": "tp-drag-start",
3935
+ "description": "Dragging started (the element is already `[dragging]`)."
3936
+ },
3937
+ {
3938
+ "name": "tp-drag-end",
3939
+ "description": "Dragging finished, after the release animation."
3940
+ },
3941
+ {
3942
+ "name": "tp-drag-zone-enter",
3943
+ "description": "The pointer entered an accepting drop zone."
3944
+ },
3945
+ {
3946
+ "name": "tp-drag-zone-leave",
3947
+ "description": "The pointer left an accepting drop zone."
3948
+ },
3949
+ {
3950
+ "name": "tp-drag-zone-over",
3951
+ "description": "The pointer moves over an accepting drop zone (fires continuously)."
3952
+ },
3953
+ {
3954
+ "name": "tp-drag-drop",
3955
+ "description": "The element was dropped on an accepting drop zone."
3956
+ }
3957
+ ],
3958
+ "cssProperties": [
3959
+ {
3960
+ "name": "--tp-drag-offset-x",
3961
+ "description": "Horizontal offset of the dragged element from the pointer. Defaults to `0px`."
3962
+ },
3963
+ {
3964
+ "name": "--tp-drag-offset-y",
3965
+ "description": "Vertical offset of the dragged element from the pointer. Defaults to `0px`."
3966
+ }
3967
+ ]
2158
3968
  }
2159
3969
  ],
2160
3970
  "exports": [
@@ -2168,7 +3978,7 @@
2168
3978
  },
2169
3979
  {
2170
3980
  "kind": "custom-element-definition",
2171
- "name": "tha-drag",
3981
+ "name": "tp-drag",
2172
3982
  "declaration": {
2173
3983
  "name": "DragElement",
2174
3984
  "module": "src/drag-drop/drag-element.ts"
@@ -2182,7 +3992,7 @@
2182
3992
  "declarations": [
2183
3993
  {
2184
3994
  "kind": "class",
2185
- "description": "",
3995
+ "description": "Restricts where a `<tp-drag>` can be grabbed. Once a `<tp-drag>` has at\nleast one handle among its descendants, dragging only starts from one of\nthem. A handle belongs to its nearest `<tp-drag>` ancestor.\n\n#### Examples\n\n```html\n<tp-drag>\n <tp-drag-handle>⠿</tp-drag-handle>\n Only the dots start a drag; this text can be selected.\n</tp-drag>\n```",
2186
3996
  "name": "DragHandleElement",
2187
3997
  "members": [
2188
3998
  {
@@ -2199,7 +4009,7 @@
2199
4009
  "name": "LitElement",
2200
4010
  "package": "lit"
2201
4011
  },
2202
- "tagName": "tha-drag-handle",
4012
+ "tagName": "tp-drag-handle",
2203
4013
  "customElement": true
2204
4014
  }
2205
4015
  ],
@@ -2214,7 +4024,7 @@
2214
4024
  },
2215
4025
  {
2216
4026
  "kind": "custom-element-definition",
2217
- "name": "tha-drag-handle",
4027
+ "name": "tp-drag-handle",
2218
4028
  "declaration": {
2219
4029
  "name": "DragHandleElement",
2220
4030
  "module": "src/drag-drop/drag-handle-element.ts"
@@ -2228,7 +4038,7 @@
2228
4038
  "declarations": [
2229
4039
  {
2230
4040
  "kind": "class",
2231
- "description": "",
4041
+ "description": "A drop target for `<tp-drag>` elements. It reports drags over it with\nevents and reflected attributes; it does not move anything by itself.\n\nTo accept a drop, call `event.acceptDrop(rect?)` in a `tp-dropzone-drop` listener:\nthe dragged element then animates into `rect` (or back to its origin\nwithout one). Move the element in the DOM in the `tp-dropzone-drop-end` listener,\nwhich fires once that animation is over.\n\n#### Examples\n\n```html\n<tp-dropzone name=\"done\" accept=\"task, bug\">Done</tp-dropzone>\n\n<script>\n const zone = document.querySelector('tp-dropzone');\n\n zone.addEventListener('tp-dropzone-drop', event => event.acceptDrop(zone.getBoundingClientRect()));\n zone.addEventListener('tp-dropzone-drop-end', event => zone.append(event.dragTarget.deref()));\n</script>\n```",
2232
4042
  "name": "DropZoneElement",
2233
4043
  "members": [
2234
4044
  {
@@ -2247,6 +4057,7 @@
2247
4057
  "text": "string[]"
2248
4058
  },
2249
4059
  "default": "[]",
4060
+ "description": "`<tp-drag>` names this zone reacts to (`accept=\"task, bug\"`). Empty: every name.",
2250
4061
  "attribute": "accept"
2251
4062
  },
2252
4063
  {
@@ -2256,6 +4067,7 @@
2256
4067
  "text": "string"
2257
4068
  },
2258
4069
  "default": "''",
4070
+ "description": "Identifies the zone; reflected on the dragged element as `draggedover`.",
2259
4071
  "attribute": "name"
2260
4072
  },
2261
4073
  {
@@ -2265,7 +4077,8 @@
2265
4077
  "text": "string | null"
2266
4078
  },
2267
4079
  "default": "null",
2268
- "attribute": "itemDragged",
4080
+ "description": "The `name` of the accepted element currently over the zone, or `null`.",
4081
+ "attribute": "itemdragged",
2269
4082
  "reflects": true
2270
4083
  },
2271
4084
  {
@@ -2275,7 +4088,8 @@
2275
4088
  "text": "boolean"
2276
4089
  },
2277
4090
  "default": "false",
2278
- "attribute": "acceptableDrag",
4091
+ "description": "Whether a drag this zone accepts is in progress anywhere on the page.",
4092
+ "attribute": "acceptabledrag",
2279
4093
  "reflects": true
2280
4094
  },
2281
4095
  {
@@ -2348,8 +4162,28 @@
2348
4162
  {
2349
4163
  "name": "eventName",
2350
4164
  "type": {
2351
- "text": "ThaDragEvent"
4165
+ "text": "DragDropEvent"
2352
4166
  }
4167
+ },
4168
+ {
4169
+ "name": "tp-dropzone-enter",
4170
+ "description": "An accepted element entered the zone."
4171
+ },
4172
+ {
4173
+ "name": "tp-dropzone-leave",
4174
+ "description": "An accepted element left the zone."
4175
+ },
4176
+ {
4177
+ "name": "tp-dropzone-over",
4178
+ "description": "An accepted element moves over the zone (fires continuously)."
4179
+ },
4180
+ {
4181
+ "name": "tp-dropzone-drop",
4182
+ "description": "An accepted element was released over the zone. Call `event.acceptDrop(rect?)` here."
4183
+ },
4184
+ {
4185
+ "name": "tp-dropzone-drop-end",
4186
+ "description": "The drop accepted by this zone finished animating. Move the element in the DOM here."
2353
4187
  }
2354
4188
  ],
2355
4189
  "attributes": [
@@ -2359,6 +4193,7 @@
2359
4193
  "text": "string[]"
2360
4194
  },
2361
4195
  "default": "[]",
4196
+ "description": "`<tp-drag>` names this zone reacts to (`accept=\"task, bug\"`). Empty: every name.",
2362
4197
  "fieldName": "accept"
2363
4198
  },
2364
4199
  {
@@ -2367,22 +4202,25 @@
2367
4202
  "text": "string"
2368
4203
  },
2369
4204
  "default": "''",
4205
+ "description": "Identifies the zone; reflected on the dragged element as `draggedover`.",
2370
4206
  "fieldName": "name"
2371
4207
  },
2372
4208
  {
2373
- "name": "itemDragged",
4209
+ "name": "itemdragged",
2374
4210
  "type": {
2375
4211
  "text": "string | null"
2376
4212
  },
2377
4213
  "default": "null",
4214
+ "description": "The `name` of the accepted element currently over the zone, or `null`.",
2378
4215
  "fieldName": "itemDragged"
2379
4216
  },
2380
4217
  {
2381
- "name": "acceptableDrag",
4218
+ "name": "acceptabledrag",
2382
4219
  "type": {
2383
4220
  "text": "boolean"
2384
4221
  },
2385
4222
  "default": "false",
4223
+ "description": "Whether a drag this zone accepts is in progress anywhere on the page.",
2386
4224
  "fieldName": "acceptableDrag"
2387
4225
  }
2388
4226
  ],
@@ -2390,7 +4228,7 @@
2390
4228
  "name": "LitElement",
2391
4229
  "package": "lit"
2392
4230
  },
2393
- "tagName": "tha-dropzone",
4231
+ "tagName": "tp-dropzone",
2394
4232
  "customElement": true
2395
4233
  }
2396
4234
  ],
@@ -2405,7 +4243,7 @@
2405
4243
  },
2406
4244
  {
2407
4245
  "kind": "custom-element-definition",
2408
- "name": "tha-dropzone",
4246
+ "name": "tp-dropzone",
2409
4247
  "declaration": {
2410
4248
  "name": "DropZoneElement",
2411
4249
  "module": "src/drag-drop/dropzone-element.ts"
@@ -2457,103 +4295,6 @@
2457
4295
  }
2458
4296
  ]
2459
4297
  },
2460
- {
2461
- "kind": "javascript-module",
2462
- "path": "src/drag-drop/tha-drag-event.ts",
2463
- "declarations": [
2464
- {
2465
- "kind": "class",
2466
- "description": "",
2467
- "name": "ThaDragEvent",
2468
- "members": [
2469
- {
2470
- "kind": "field",
2471
- "name": "#DragElementEvents",
2472
- "privacy": "private",
2473
- "type": {
2474
- "text": "DragElementEventTypes[]"
2475
- },
2476
- "static": true,
2477
- "default": "['thadrag', 'thadragstart', 'thadragend', 'thadropzoneenter', 'thadropzoneleave', 'thadropzoneover', 'thadropped']"
2478
- },
2479
- {
2480
- "kind": "field",
2481
- "name": "#DropElementEvents",
2482
- "privacy": "private",
2483
- "type": {
2484
- "text": "DropElementEventTypes[]"
2485
- },
2486
- "static": true,
2487
- "default": "['thadrop', 'thadropend', 'thadragenter', 'thadragleave', 'thadragover']"
2488
- },
2489
- {
2490
- "kind": "field",
2491
- "name": "dragTarget",
2492
- "type": {
2493
- "text": "WeakRef<DragElement>"
2494
- },
2495
- "readonly": true,
2496
- "default": "dragTarget"
2497
- },
2498
- {
2499
- "kind": "field",
2500
- "name": "dropzoneTarget",
2501
- "type": {
2502
- "text": "WeakRef<DropZoneElement> | undefined"
2503
- },
2504
- "readonly": true,
2505
- "default": "dropzoneTarget"
2506
- },
2507
- {
2508
- "kind": "field",
2509
- "name": "#target",
2510
- "privacy": "private",
2511
- "readonly": true
2512
- },
2513
- {
2514
- "kind": "field",
2515
- "name": "name",
2516
- "type": {
2517
- "text": "string | undefined"
2518
- },
2519
- "readonly": true
2520
- },
2521
- {
2522
- "kind": "field",
2523
- "name": "dragData",
2524
- "readonly": true
2525
- },
2526
- {
2527
- "kind": "method",
2528
- "name": "acceptDrop",
2529
- "parameters": [
2530
- {
2531
- "name": "rect",
2532
- "optional": true,
2533
- "type": {
2534
- "text": "DOMRect"
2535
- }
2536
- }
2537
- ]
2538
- }
2539
- ],
2540
- "superclass": {
2541
- "name": "DragEvent",
2542
- "module": "src/drag-drop/tha-drag-event.ts"
2543
- }
2544
- }
2545
- ],
2546
- "exports": [
2547
- {
2548
- "kind": "js",
2549
- "name": "ThaDragEvent",
2550
- "declaration": {
2551
- "name": "ThaDragEvent",
2552
- "module": "src/drag-drop/tha-drag-event.ts"
2553
- }
2554
- }
2555
- ]
2556
- },
2557
4298
  {
2558
4299
  "kind": "javascript-module",
2559
4300
  "path": "src/icon/icon-element.ts",