@genesislcap/foundation-utils 14.310.2-alpha-8853fb3.0 → 14.310.2-alpha-21b24a2.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 (56) hide show
  1. package/dist/custom-elements.json +656 -38
  2. package/dist/dts/inactivity/inactivity-dialog.d.ts +23 -0
  3. package/dist/dts/inactivity/inactivity-dialog.d.ts.map +1 -0
  4. package/dist/dts/inactivity/inactivity-manager.d.ts +24 -0
  5. package/dist/dts/inactivity/inactivity-manager.d.ts.map +1 -0
  6. package/dist/dts/inactivity/inactivity-service.d.ts +34 -0
  7. package/dist/dts/inactivity/inactivity-service.d.ts.map +1 -0
  8. package/dist/dts/inactivity/index.d.ts +4 -0
  9. package/dist/dts/inactivity/index.d.ts.map +1 -0
  10. package/dist/dts/index.d.ts +1 -0
  11. package/dist/dts/index.d.ts.map +1 -1
  12. package/dist/esm/inactivity/inactivity-dialog.js +209 -0
  13. package/dist/esm/inactivity/inactivity-manager.js +84 -0
  14. package/dist/esm/inactivity/inactivity-service.js +128 -0
  15. package/dist/esm/inactivity/index.js +3 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/foundation-utils.api.json +1155 -0
  18. package/dist/foundation-utils.d.ts +84 -0
  19. package/docs/api/foundation-utils.inactivityconfig.md +71 -0
  20. package/docs/api/foundation-utils.inactivityconfig.timeoutminutes.md +11 -0
  21. package/docs/api/foundation-utils.inactivityconfig.warningminutes.md +11 -0
  22. package/docs/api/foundation-utils.inactivitydialog.disconnectedcallback.md +15 -0
  23. package/docs/api/foundation-utils.inactivitydialog.hide.md +15 -0
  24. package/docs/api/foundation-utils.inactivitydialog.isvisible.md +11 -0
  25. package/docs/api/foundation-utils.inactivitydialog.md +128 -0
  26. package/docs/api/foundation-utils.inactivitydialog.remainingseconds.md +11 -0
  27. package/docs/api/foundation-utils.inactivitydialog.show.md +50 -0
  28. package/docs/api/foundation-utils.inactivitydialogoptions.md +88 -0
  29. package/docs/api/foundation-utils.inactivitydialogoptions.oncontinue.md +11 -0
  30. package/docs/api/foundation-utils.inactivitydialogoptions.onlogout.md +11 -0
  31. package/docs/api/foundation-utils.inactivitydialogoptions.remainingseconds.md +11 -0
  32. package/docs/api/foundation-utils.inactivityevents._inactivity-reset_.md +11 -0
  33. package/docs/api/foundation-utils.inactivityevents._inactivity-timeout_.md +11 -0
  34. package/docs/api/foundation-utils.inactivityevents._inactivity-warning_.md +13 -0
  35. package/docs/api/foundation-utils.inactivityevents.md +88 -0
  36. package/docs/api/foundation-utils.inactivitymanager._constructor_.md +48 -0
  37. package/docs/api/foundation-utils.inactivitymanager.destroy.md +15 -0
  38. package/docs/api/foundation-utils.inactivitymanager.getservice.md +15 -0
  39. package/docs/api/foundation-utils.inactivitymanager.iswarningvisible.md +15 -0
  40. package/docs/api/foundation-utils.inactivitymanager.md +138 -0
  41. package/docs/api/foundation-utils.inactivitymanager.reset.md +15 -0
  42. package/docs/api/foundation-utils.inactivitymanager.start.md +15 -0
  43. package/docs/api/foundation-utils.inactivitymanager.stop.md +15 -0
  44. package/docs/api/foundation-utils.inactivitymanagerconfig.md +55 -0
  45. package/docs/api/foundation-utils.inactivitymanagerconfig.onlogout.md +11 -0
  46. package/docs/api/foundation-utils.inactivityservice._constructor_.md +48 -0
  47. package/docs/api/foundation-utils.inactivityservice.destroy.md +15 -0
  48. package/docs/api/foundation-utils.inactivityservice.md +138 -0
  49. package/docs/api/foundation-utils.inactivityservice.off.md +64 -0
  50. package/docs/api/foundation-utils.inactivityservice.on.md +64 -0
  51. package/docs/api/foundation-utils.inactivityservice.resettimer.md +15 -0
  52. package/docs/api/foundation-utils.inactivityservice.start.md +15 -0
  53. package/docs/api/foundation-utils.inactivityservice.stop.md +15 -0
  54. package/docs/api/foundation-utils.md +63 -0
  55. package/docs/api-report.md.api.md +87 -0
  56. package/package.json +12 -11
@@ -166,6 +166,14 @@
166
166
  "name": "*",
167
167
  "package": "./window"
168
168
  }
169
+ },
170
+ {
171
+ "kind": "js",
172
+ "name": "*",
173
+ "declaration": {
174
+ "name": "*",
175
+ "package": "./inactivity"
176
+ }
169
177
  }
170
178
  ]
171
179
  },
@@ -420,44 +428,6 @@
420
428
  }
421
429
  ]
422
430
  },
423
- {
424
- "kind": "javascript-module",
425
- "path": "src/directives/index.ts",
426
- "declarations": [],
427
- "exports": [
428
- {
429
- "kind": "js",
430
- "name": "*",
431
- "declaration": {
432
- "name": "*",
433
- "package": "./sync"
434
- }
435
- },
436
- {
437
- "kind": "js",
438
- "name": "*",
439
- "declaration": {
440
- "name": "*",
441
- "package": "./when-else"
442
- }
443
- }
444
- ]
445
- },
446
- {
447
- "kind": "javascript-module",
448
- "path": "src/encoding/index.ts",
449
- "declarations": [],
450
- "exports": [
451
- {
452
- "kind": "js",
453
- "name": "*",
454
- "declaration": {
455
- "name": "*",
456
- "package": "./base64"
457
- }
458
- }
459
- ]
460
- },
461
431
  {
462
432
  "kind": "javascript-module",
463
433
  "path": "src/design-system/design-system.ts",
@@ -578,6 +548,44 @@
578
548
  }
579
549
  ]
580
550
  },
551
+ {
552
+ "kind": "javascript-module",
553
+ "path": "src/directives/index.ts",
554
+ "declarations": [],
555
+ "exports": [
556
+ {
557
+ "kind": "js",
558
+ "name": "*",
559
+ "declaration": {
560
+ "name": "*",
561
+ "package": "./sync"
562
+ }
563
+ },
564
+ {
565
+ "kind": "js",
566
+ "name": "*",
567
+ "declaration": {
568
+ "name": "*",
569
+ "package": "./when-else"
570
+ }
571
+ }
572
+ ]
573
+ },
574
+ {
575
+ "kind": "javascript-module",
576
+ "path": "src/encoding/index.ts",
577
+ "declarations": [],
578
+ "exports": [
579
+ {
580
+ "kind": "js",
581
+ "name": "*",
582
+ "declaration": {
583
+ "name": "*",
584
+ "package": "./base64"
585
+ }
586
+ }
587
+ ]
588
+ },
581
589
  {
582
590
  "kind": "javascript-module",
583
591
  "path": "src/env/index.ts",
@@ -1547,6 +1555,616 @@
1547
1555
  }
1548
1556
  ]
1549
1557
  },
1558
+ {
1559
+ "kind": "javascript-module",
1560
+ "path": "src/inactivity/inactivity-dialog.ts",
1561
+ "declarations": [
1562
+ {
1563
+ "kind": "class",
1564
+ "description": "",
1565
+ "name": "InactivityDialog",
1566
+ "members": [
1567
+ {
1568
+ "kind": "field",
1569
+ "name": "isVisible",
1570
+ "type": {
1571
+ "text": "boolean"
1572
+ },
1573
+ "default": "false"
1574
+ },
1575
+ {
1576
+ "kind": "field",
1577
+ "name": "remainingSeconds",
1578
+ "type": {
1579
+ "text": "number"
1580
+ },
1581
+ "default": "0"
1582
+ },
1583
+ {
1584
+ "kind": "field",
1585
+ "name": "onContinue",
1586
+ "type": {
1587
+ "text": "() => void | undefined"
1588
+ },
1589
+ "privacy": "private"
1590
+ },
1591
+ {
1592
+ "kind": "field",
1593
+ "name": "onLogout",
1594
+ "type": {
1595
+ "text": "() => void | undefined"
1596
+ },
1597
+ "privacy": "private"
1598
+ },
1599
+ {
1600
+ "kind": "field",
1601
+ "name": "countdownInterval",
1602
+ "type": {
1603
+ "text": "number | undefined"
1604
+ },
1605
+ "privacy": "private"
1606
+ },
1607
+ {
1608
+ "kind": "field",
1609
+ "name": "startTime",
1610
+ "type": {
1611
+ "text": "number"
1612
+ },
1613
+ "privacy": "private",
1614
+ "default": "0"
1615
+ },
1616
+ {
1617
+ "kind": "field",
1618
+ "name": "totalSeconds",
1619
+ "type": {
1620
+ "text": "number"
1621
+ },
1622
+ "privacy": "private",
1623
+ "default": "0"
1624
+ },
1625
+ {
1626
+ "kind": "method",
1627
+ "name": "show",
1628
+ "privacy": "public",
1629
+ "return": {
1630
+ "type": {
1631
+ "text": "void"
1632
+ }
1633
+ },
1634
+ "parameters": [
1635
+ {
1636
+ "name": "options",
1637
+ "type": {
1638
+ "text": "InactivityDialogOptions"
1639
+ }
1640
+ }
1641
+ ]
1642
+ },
1643
+ {
1644
+ "kind": "method",
1645
+ "name": "hide",
1646
+ "privacy": "public",
1647
+ "return": {
1648
+ "type": {
1649
+ "text": "void"
1650
+ }
1651
+ }
1652
+ },
1653
+ {
1654
+ "kind": "method",
1655
+ "name": "startCountdown",
1656
+ "privacy": "private",
1657
+ "return": {
1658
+ "type": {
1659
+ "text": "void"
1660
+ }
1661
+ }
1662
+ },
1663
+ {
1664
+ "kind": "method",
1665
+ "name": "stopCountdown",
1666
+ "privacy": "private",
1667
+ "return": {
1668
+ "type": {
1669
+ "text": "void"
1670
+ }
1671
+ }
1672
+ },
1673
+ {
1674
+ "kind": "method",
1675
+ "name": "handleContinue",
1676
+ "privacy": "private",
1677
+ "return": {
1678
+ "type": {
1679
+ "text": "void"
1680
+ }
1681
+ }
1682
+ },
1683
+ {
1684
+ "kind": "method",
1685
+ "name": "handleLogout",
1686
+ "privacy": "private",
1687
+ "return": {
1688
+ "type": {
1689
+ "text": "void"
1690
+ }
1691
+ }
1692
+ }
1693
+ ],
1694
+ "superclass": {
1695
+ "name": "GenesisElement",
1696
+ "package": "@genesislcap/web-core"
1697
+ },
1698
+ "tagName": "inactivity-dialog",
1699
+ "customElement": true
1700
+ }
1701
+ ],
1702
+ "exports": [
1703
+ {
1704
+ "kind": "js",
1705
+ "name": "InactivityDialog",
1706
+ "declaration": {
1707
+ "name": "InactivityDialog",
1708
+ "module": "src/inactivity/inactivity-dialog.ts"
1709
+ }
1710
+ },
1711
+ {
1712
+ "kind": "custom-element-definition",
1713
+ "name": "inactivity-dialog",
1714
+ "declaration": {
1715
+ "name": "InactivityDialog",
1716
+ "module": "src/inactivity/inactivity-dialog.ts"
1717
+ }
1718
+ }
1719
+ ]
1720
+ },
1721
+ {
1722
+ "kind": "javascript-module",
1723
+ "path": "src/inactivity/inactivity-manager.ts",
1724
+ "declarations": [
1725
+ {
1726
+ "kind": "class",
1727
+ "description": "",
1728
+ "name": "InactivityManager",
1729
+ "members": [
1730
+ {
1731
+ "kind": "field",
1732
+ "name": "service",
1733
+ "type": {
1734
+ "text": "InactivityService"
1735
+ },
1736
+ "privacy": "private",
1737
+ "default": "new InactivityService({\n timeoutMinutes: config.timeoutMinutes,\n warningMinutes: config.warningMinutes,\n })"
1738
+ },
1739
+ {
1740
+ "kind": "field",
1741
+ "name": "dialog",
1742
+ "type": {
1743
+ "text": "InactivityDialog"
1744
+ },
1745
+ "privacy": "private",
1746
+ "default": "new InactivityDialog()"
1747
+ },
1748
+ {
1749
+ "kind": "field",
1750
+ "name": "config",
1751
+ "type": {
1752
+ "text": "InactivityManagerConfig"
1753
+ },
1754
+ "privacy": "private",
1755
+ "default": "config"
1756
+ },
1757
+ {
1758
+ "kind": "field",
1759
+ "name": "isDialogVisible",
1760
+ "type": {
1761
+ "text": "boolean"
1762
+ },
1763
+ "privacy": "private",
1764
+ "default": "false"
1765
+ },
1766
+ {
1767
+ "kind": "method",
1768
+ "name": "setupEventListeners",
1769
+ "privacy": "private",
1770
+ "return": {
1771
+ "type": {
1772
+ "text": "void"
1773
+ }
1774
+ }
1775
+ },
1776
+ {
1777
+ "kind": "method",
1778
+ "name": "showWarningDialog",
1779
+ "privacy": "private",
1780
+ "return": {
1781
+ "type": {
1782
+ "text": "void"
1783
+ }
1784
+ },
1785
+ "parameters": [
1786
+ {
1787
+ "name": "remainingSeconds",
1788
+ "type": {
1789
+ "text": "number"
1790
+ }
1791
+ }
1792
+ ]
1793
+ },
1794
+ {
1795
+ "kind": "method",
1796
+ "name": "hideWarningDialog",
1797
+ "privacy": "private",
1798
+ "return": {
1799
+ "type": {
1800
+ "text": "void"
1801
+ }
1802
+ }
1803
+ },
1804
+ {
1805
+ "kind": "method",
1806
+ "name": "handleContinue",
1807
+ "privacy": "private",
1808
+ "return": {
1809
+ "type": {
1810
+ "text": "void"
1811
+ }
1812
+ }
1813
+ },
1814
+ {
1815
+ "kind": "method",
1816
+ "name": "handleLogout",
1817
+ "privacy": "private",
1818
+ "return": {
1819
+ "type": {
1820
+ "text": "void"
1821
+ }
1822
+ }
1823
+ },
1824
+ {
1825
+ "kind": "method",
1826
+ "name": "handleTimeout",
1827
+ "privacy": "private",
1828
+ "return": {
1829
+ "type": {
1830
+ "text": "void"
1831
+ }
1832
+ }
1833
+ },
1834
+ {
1835
+ "kind": "method",
1836
+ "name": "start",
1837
+ "privacy": "public",
1838
+ "return": {
1839
+ "type": {
1840
+ "text": "void"
1841
+ }
1842
+ }
1843
+ },
1844
+ {
1845
+ "kind": "method",
1846
+ "name": "stop",
1847
+ "privacy": "public",
1848
+ "return": {
1849
+ "type": {
1850
+ "text": "void"
1851
+ }
1852
+ }
1853
+ },
1854
+ {
1855
+ "kind": "method",
1856
+ "name": "reset",
1857
+ "privacy": "public",
1858
+ "return": {
1859
+ "type": {
1860
+ "text": "void"
1861
+ }
1862
+ }
1863
+ },
1864
+ {
1865
+ "kind": "method",
1866
+ "name": "destroy",
1867
+ "privacy": "public",
1868
+ "return": {
1869
+ "type": {
1870
+ "text": "void"
1871
+ }
1872
+ }
1873
+ },
1874
+ {
1875
+ "kind": "method",
1876
+ "name": "getService",
1877
+ "privacy": "public",
1878
+ "return": {
1879
+ "type": {
1880
+ "text": "InactivityService"
1881
+ }
1882
+ }
1883
+ },
1884
+ {
1885
+ "kind": "method",
1886
+ "name": "isWarningVisible",
1887
+ "privacy": "public",
1888
+ "return": {
1889
+ "type": {
1890
+ "text": "boolean"
1891
+ }
1892
+ }
1893
+ }
1894
+ ]
1895
+ }
1896
+ ],
1897
+ "exports": [
1898
+ {
1899
+ "kind": "js",
1900
+ "name": "InactivityManager",
1901
+ "declaration": {
1902
+ "name": "InactivityManager",
1903
+ "module": "src/inactivity/inactivity-manager.ts"
1904
+ }
1905
+ }
1906
+ ]
1907
+ },
1908
+ {
1909
+ "kind": "javascript-module",
1910
+ "path": "src/inactivity/inactivity-service.ts",
1911
+ "declarations": [
1912
+ {
1913
+ "kind": "class",
1914
+ "description": "",
1915
+ "name": "InactivityService",
1916
+ "members": [
1917
+ {
1918
+ "kind": "field",
1919
+ "name": "config",
1920
+ "type": {
1921
+ "text": "InactivityConfig"
1922
+ },
1923
+ "privacy": "private",
1924
+ "default": "config"
1925
+ },
1926
+ {
1927
+ "kind": "field",
1928
+ "name": "warningId",
1929
+ "type": {
1930
+ "text": "number | null"
1931
+ },
1932
+ "privacy": "private",
1933
+ "default": "null"
1934
+ },
1935
+ {
1936
+ "kind": "field",
1937
+ "name": "timeoutId",
1938
+ "type": {
1939
+ "text": "number | null"
1940
+ },
1941
+ "privacy": "private",
1942
+ "default": "null"
1943
+ },
1944
+ {
1945
+ "kind": "field",
1946
+ "name": "lastActivity",
1947
+ "type": {
1948
+ "text": "number"
1949
+ },
1950
+ "privacy": "private"
1951
+ },
1952
+ {
1953
+ "kind": "field",
1954
+ "name": "isActive",
1955
+ "type": {
1956
+ "text": "boolean"
1957
+ },
1958
+ "privacy": "private",
1959
+ "default": "false"
1960
+ },
1961
+ {
1962
+ "kind": "field",
1963
+ "name": "eventListeners",
1964
+ "type": {
1965
+ "text": "Map<keyof InactivityEvents, EventListener[]>"
1966
+ },
1967
+ "privacy": "private",
1968
+ "default": "new Map()"
1969
+ },
1970
+ {
1971
+ "kind": "method",
1972
+ "name": "setupActivityListeners",
1973
+ "privacy": "private",
1974
+ "return": {
1975
+ "type": {
1976
+ "text": "void"
1977
+ }
1978
+ }
1979
+ },
1980
+ {
1981
+ "kind": "method",
1982
+ "name": "checkTimeout",
1983
+ "privacy": "private",
1984
+ "return": {
1985
+ "type": {
1986
+ "text": "void"
1987
+ }
1988
+ }
1989
+ },
1990
+ {
1991
+ "kind": "method",
1992
+ "name": "on",
1993
+ "privacy": "public",
1994
+ "return": {
1995
+ "type": {
1996
+ "text": "void"
1997
+ }
1998
+ },
1999
+ "parameters": [
2000
+ {
2001
+ "name": "event",
2002
+ "type": {
2003
+ "text": "K"
2004
+ }
2005
+ },
2006
+ {
2007
+ "name": "listener",
2008
+ "type": {
2009
+ "text": "EventListener<InactivityEvents[K]>"
2010
+ }
2011
+ }
2012
+ ]
2013
+ },
2014
+ {
2015
+ "kind": "method",
2016
+ "name": "off",
2017
+ "privacy": "public",
2018
+ "return": {
2019
+ "type": {
2020
+ "text": "void"
2021
+ }
2022
+ },
2023
+ "parameters": [
2024
+ {
2025
+ "name": "event",
2026
+ "type": {
2027
+ "text": "K"
2028
+ }
2029
+ },
2030
+ {
2031
+ "name": "listener",
2032
+ "type": {
2033
+ "text": "EventListener<InactivityEvents[K]>"
2034
+ }
2035
+ }
2036
+ ]
2037
+ },
2038
+ {
2039
+ "kind": "method",
2040
+ "name": "emit",
2041
+ "privacy": "private",
2042
+ "return": {
2043
+ "type": {
2044
+ "text": "void"
2045
+ }
2046
+ },
2047
+ "parameters": [
2048
+ {
2049
+ "name": "event",
2050
+ "type": {
2051
+ "text": "K"
2052
+ }
2053
+ },
2054
+ {
2055
+ "name": "data",
2056
+ "optional": true,
2057
+ "type": {
2058
+ "text": "InactivityEvents[K]"
2059
+ }
2060
+ }
2061
+ ]
2062
+ },
2063
+ {
2064
+ "kind": "method",
2065
+ "name": "start",
2066
+ "privacy": "public",
2067
+ "return": {
2068
+ "type": {
2069
+ "text": "void"
2070
+ }
2071
+ }
2072
+ },
2073
+ {
2074
+ "kind": "method",
2075
+ "name": "stop",
2076
+ "privacy": "public",
2077
+ "return": {
2078
+ "type": {
2079
+ "text": "void"
2080
+ }
2081
+ }
2082
+ },
2083
+ {
2084
+ "kind": "method",
2085
+ "name": "resetTimer",
2086
+ "privacy": "public",
2087
+ "return": {
2088
+ "type": {
2089
+ "text": "void"
2090
+ }
2091
+ }
2092
+ },
2093
+ {
2094
+ "kind": "method",
2095
+ "name": "scheduleTimers",
2096
+ "privacy": "private",
2097
+ "return": {
2098
+ "type": {
2099
+ "text": "void"
2100
+ }
2101
+ }
2102
+ },
2103
+ {
2104
+ "kind": "method",
2105
+ "name": "clearTimers",
2106
+ "privacy": "private",
2107
+ "return": {
2108
+ "type": {
2109
+ "text": "void"
2110
+ }
2111
+ }
2112
+ },
2113
+ {
2114
+ "kind": "method",
2115
+ "name": "destroy",
2116
+ "privacy": "public",
2117
+ "return": {
2118
+ "type": {
2119
+ "text": "void"
2120
+ }
2121
+ }
2122
+ }
2123
+ ]
2124
+ }
2125
+ ],
2126
+ "exports": [
2127
+ {
2128
+ "kind": "js",
2129
+ "name": "InactivityService",
2130
+ "declaration": {
2131
+ "name": "InactivityService",
2132
+ "module": "src/inactivity/inactivity-service.ts"
2133
+ }
2134
+ }
2135
+ ]
2136
+ },
2137
+ {
2138
+ "kind": "javascript-module",
2139
+ "path": "src/inactivity/index.ts",
2140
+ "declarations": [],
2141
+ "exports": [
2142
+ {
2143
+ "kind": "js",
2144
+ "name": "*",
2145
+ "declaration": {
2146
+ "name": "*",
2147
+ "package": "./inactivity-dialog"
2148
+ }
2149
+ },
2150
+ {
2151
+ "kind": "js",
2152
+ "name": "*",
2153
+ "declaration": {
2154
+ "name": "*",
2155
+ "package": "./inactivity-manager"
2156
+ }
2157
+ },
2158
+ {
2159
+ "kind": "js",
2160
+ "name": "*",
2161
+ "declaration": {
2162
+ "name": "*",
2163
+ "package": "./inactivity-service"
2164
+ }
2165
+ }
2166
+ ]
2167
+ },
1550
2168
  {
1551
2169
  "kind": "javascript-module",
1552
2170
  "path": "src/logger/index.ts",