@hybridcore/ui 1.6.0 → 1.6.2

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 (291) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
  12. package/dist/InputLabel-Dd8RrneV.js +341 -0
  13. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/index.js +8 -15
  26. package/dist/components/access/logic.js +25 -0
  27. package/dist/components/button/index.js +10 -0
  28. package/dist/components/button/logic.js +26 -0
  29. package/dist/components/button/styled.js +9 -0
  30. package/dist/components/card/index.js +158 -498
  31. package/dist/components/card/logic.js +24 -0
  32. package/dist/components/card/styled.js +226 -51
  33. package/dist/components/card-alternate/index.js +111 -139
  34. package/dist/components/card-alternate/logic.js +17 -0
  35. package/dist/components/card-alternate/styled.js +113 -19
  36. package/dist/components/charts/_common/chart-error.js +19 -0
  37. package/dist/components/charts/candlestick/index.js +3 -3
  38. package/dist/components/charts/candlestick/logic.js +123 -113
  39. package/dist/components/charts/chart-wrapper/index.js +5 -5
  40. package/dist/components/charts/column-line-mix/index.js +9 -8
  41. package/dist/components/charts/column-line-mix/logic.js +68 -71
  42. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  43. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  44. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  45. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  46. package/dist/components/charts/heatmap/index.js +9 -8
  47. package/dist/components/charts/heatmap/logic.js +167 -173
  48. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  49. package/dist/components/charts/line/index.js +9 -8
  50. package/dist/components/charts/line/logic.js +74 -79
  51. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  52. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  53. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  54. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  55. package/dist/components/charts/nested-pie/index.js +9 -8
  56. package/dist/components/charts/nested-pie/logic.js +62 -68
  57. package/dist/components/charts/packed-circles/index.js +7 -6
  58. package/dist/components/charts/packed-circles/logic.js +50 -56
  59. package/dist/components/charts/pie-chart/index.js +9 -8
  60. package/dist/components/charts/pie-chart/logic.js +49 -54
  61. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  62. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  63. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  64. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  65. package/dist/components/charts/xy-chart/index.js +9 -8
  66. package/dist/components/charts/xy-chart/logic.js +56 -60
  67. package/dist/components/collapsible-card/index.js +11 -10
  68. package/dist/components/collapsible-card/styled.js +1 -1
  69. package/dist/components/color-picker/index.js +7120 -0
  70. package/dist/components/color-picker/logic.js +18 -0
  71. package/dist/components/color-picker/styled.js +7 -0
  72. package/dist/components/confirm/dialog.js +3 -3
  73. package/dist/components/confirm/index.js +1 -1
  74. package/dist/components/container/index.js +28 -269
  75. package/dist/components/container/logic.js +12 -0
  76. package/dist/components/container/styled.js +29 -0
  77. package/dist/components/context-menu/index.js +25 -457
  78. package/dist/components/context-menu/logic.js +14 -0
  79. package/dist/components/context-menu/styled.js +40 -0
  80. package/dist/components/data-grid/index.js +22 -0
  81. package/dist/components/data-grid/logic.js +15 -0
  82. package/dist/components/data-grid/styled.js +20 -0
  83. package/dist/components/data-map/components/controls/index.js +4 -6
  84. package/dist/components/data-map/index.js +11 -11
  85. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  86. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  87. package/dist/components/data-security-selectors/security-level/index.js +39 -91
  88. package/dist/components/data-security-selectors/security-level/logic.js +28 -0
  89. package/dist/components/data-security-selectors/security-level/styled.js +53 -0
  90. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  91. package/dist/components/date-range-picker/index.js +2748 -0
  92. package/dist/components/date-range-picker/styled.js +14 -0
  93. package/dist/components/date-time-picker/index.js +45 -46
  94. package/dist/components/divider/index.js +11 -11
  95. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  96. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  97. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  98. package/dist/components/document-viewer/index.js +31 -39
  99. package/dist/components/document-viewer/logic.js +41 -34
  100. package/dist/components/document-viewer/styled.js +115 -27
  101. package/dist/components/duration-select/index.js +27 -0
  102. package/dist/components/duration-select/logic.js +21 -0
  103. package/dist/components/duration-select/styled.js +26 -0
  104. package/dist/components/editable-text/index.js +20 -0
  105. package/dist/components/editable-text/logic.js +18 -0
  106. package/dist/components/editable-text/styled.js +22 -0
  107. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  108. package/dist/components/geometry-picker/edit/index.js +18 -18
  109. package/dist/components/geometry-picker/geometry/index.js +67 -67
  110. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  111. package/dist/components/geometry-picker/index.js +69 -85
  112. package/dist/components/geometry-picker/kml/index.js +16 -16
  113. package/dist/components/geometry-picker/logic.js +50 -57
  114. package/dist/components/geometry-picker/map/index.js +8 -8
  115. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  116. package/dist/components/geometry-picker/parser/index.js +46 -50
  117. package/dist/components/geometry-picker/parser/styled.js +22 -4
  118. package/dist/components/geometry-picker/styled.js +97 -37
  119. package/dist/components/geometry-picker/wkt/index.js +13 -13
  120. package/dist/components/heat-map/components/controls/index.js +4 -6
  121. package/dist/components/heat-map/components/legend/index.js +15 -17
  122. package/dist/components/heat-map/index.js +7 -7
  123. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  124. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  125. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  126. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  127. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  128. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  129. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  130. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  131. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  132. package/dist/components/instance-form/components/variable/index.js +6 -11
  133. package/dist/components/instance-form/components/variables/index.js +48 -55
  134. package/dist/components/instance-form/helpers.js +9 -0
  135. package/dist/components/instance-form/index.js +402 -518
  136. package/dist/components/instance-form/logic.js +115 -0
  137. package/dist/components/instance-form/styled.js +487 -0
  138. package/dist/components/instance-hierarchy-table/index.js +32 -37
  139. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  140. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  141. package/dist/components/instance-table/index.js +30 -135
  142. package/dist/components/instance-table/logic.js +122 -0
  143. package/dist/components/instance-table/styled.js +53 -11
  144. package/dist/components/instance-variable-list/index.js +11 -11
  145. package/dist/components/loading/index.js +15 -9
  146. package/dist/components/loading/logic.js +15 -0
  147. package/dist/components/loading/styled.js +26 -19
  148. package/dist/components/map/index.js +28 -6
  149. package/dist/components/map/styled.js +1 -1
  150. package/dist/components/notification/index.js +67 -0
  151. package/dist/components/notification/logic.js +30 -0
  152. package/dist/components/notification/store.js +23 -0
  153. package/dist/components/notification/styled.js +52 -0
  154. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  155. package/dist/components/object-profile-card/index.js +19 -20
  156. package/dist/components/paginated-list/index.js +2 -3
  157. package/dist/components/phone-input/index.js +18 -22
  158. package/dist/components/phone-input/logic.js +14 -0
  159. package/dist/components/phone-input/styled.js +12 -4
  160. package/dist/components/placeholder/index.js +10 -0
  161. package/dist/components/placeholder/logic.js +12 -0
  162. package/dist/components/placeholder/styled.js +32 -0
  163. package/dist/components/positional-tooltip/index.js +24 -0
  164. package/dist/components/positional-tooltip/styled.js +17 -0
  165. package/dist/components/property-mapping/index.js +204 -423
  166. package/dist/components/property-mapping/logic.js +156 -0
  167. package/dist/components/property-mapping/styled.js +199 -0
  168. package/dist/components/prr-map/components/controls/index.js +4 -6
  169. package/dist/components/prr-map/components/legend/index.js +26 -28
  170. package/dist/components/prr-map/index.js +5 -5
  171. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  172. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  173. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  174. package/dist/components/range-selector/components/number-range/index.js +48 -53
  175. package/dist/components/range-selector/components/string-range/index.js +15 -17
  176. package/dist/components/range-selector/index.js +63 -57
  177. package/dist/components/range-selector/logic.js +12 -0
  178. package/dist/components/range-selector/styled.js +4294 -0
  179. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  180. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  181. package/dist/components/raster-grid-map/index.js +5 -5
  182. package/dist/components/scroll-drag/index.js +22 -0
  183. package/dist/components/scroll-drag/logic.js +39 -0
  184. package/dist/components/scroll-drag/styled.js +17 -0
  185. package/dist/components/search-input/logic.js +35 -33
  186. package/dist/components/simple-pivot-table/index.js +12 -12
  187. package/dist/components/sortable-list/index.js +599 -0
  188. package/dist/components/sortable-list/logic.js +18 -0
  189. package/dist/components/sortable-list/styled.js +38 -0
  190. package/dist/components/static-text/index.js +6 -6
  191. package/dist/components/stats-box/index.js +12 -0
  192. package/dist/components/stats-box/styled.js +36 -0
  193. package/dist/components/template-filters/components/filter/index.js +13 -18
  194. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  195. package/dist/components/template-filters/index.js +21 -29
  196. package/dist/components/template-filters/logic.js +18 -0
  197. package/dist/components/template-filters/styled.js +44 -1
  198. package/dist/components/template-form/components/property-list/index.js +27 -26
  199. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  200. package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
  201. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  202. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  203. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
  204. package/dist/components/template-form/components/select-icon/index.js +24 -24
  205. package/dist/components/template-form/helpers.js +17 -0
  206. package/dist/components/template-form/index.js +270 -309
  207. package/dist/components/template-form/logic.js +69 -0
  208. package/dist/components/template-form/styled.js +84 -0
  209. package/dist/components/template-property-filters/index.js +45 -95
  210. package/dist/components/template-property-filters/logic.js +27 -0
  211. package/dist/components/template-property-filters/property.js +105 -165
  212. package/dist/components/template-property-filters/styled.js +121 -20
  213. package/dist/components/text-overflow/index.js +6 -0
  214. package/dist/components/text-overflow/styled.js +13 -0
  215. package/dist/components/timeline/index.js +12 -12
  216. package/dist/components/toggle-view-button/index.js +35 -0
  217. package/dist/components/toggle-view-button/logic.js +22 -0
  218. package/dist/components/toggle-view-button/styled.js +11 -0
  219. package/dist/components/tree-select/index.js +52 -67
  220. package/dist/components/tree-select/logic.js +59 -0
  221. package/dist/components/tree-select/styled.js +45 -62
  222. package/dist/components/treeview-filter/index.js +43 -65
  223. package/dist/components/treeview-filter/item/index.js +43 -42
  224. package/dist/components/treeview-filter/item-label/index.js +17 -37
  225. package/dist/components/treeview-filter/logic.js +28 -0
  226. package/dist/components/treeview-filter/styled.js +86 -0
  227. package/dist/components/uploader/index.js +532 -567
  228. package/dist/components/uploader/logic.js +74 -0
  229. package/dist/components/uploader/styled.js +93 -46
  230. package/dist/components/visually-hidden-input/index.js +4 -0
  231. package/dist/components/visually-hidden-input/styled.js +18 -0
  232. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  233. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
  234. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  235. package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
  236. package/dist/formControlState-vgaj2ksH.js +10 -0
  237. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  238. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  239. package/dist/index-BtlzPygz.js +470 -0
  240. package/dist/index-DH6qsPBn.js +153 -0
  241. package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
  242. package/dist/main.d.ts +1722 -562
  243. package/dist/main.js +161 -128
  244. package/dist/ownerWindow-wg6foiOE.js +10 -0
  245. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  246. package/dist/styled-Db1RdcPA.js +323 -0
  247. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  248. package/dist/useId-BW-oWmul.js +19 -0
  249. package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
  250. package/dist/useSlot-B_Q4vnX5.js +42 -0
  251. package/package.json +15 -7
  252. package/dist/AccordionSummary-DgAwVTk8.js +0 -742
  253. package/dist/Add-DJLrrVHm.js +0 -382
  254. package/dist/Box-p6OtTUEo.js +0 -30
  255. package/dist/ButtonBase-2bPw77UP.js +0 -961
  256. package/dist/CardContent-CSHh-ZlM.js +0 -74
  257. package/dist/Checkbox-CWRMFTBp.js +0 -421
  258. package/dist/FormControl-BLbrq4C7.js +0 -1636
  259. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  260. package/dist/InputAdornment-DLxWUE6H.js +0 -157
  261. package/dist/List-tqElle9C.js +0 -121
  262. package/dist/ListItem-CfjsIg4B.js +0 -430
  263. package/dist/Modal-DhPpOoGB.js +0 -1299
  264. package/dist/Paper-2B03OBmZ.js +0 -169
  265. package/dist/Select-BgYwkZgI.js +0 -2613
  266. package/dist/TextField-1yCesIbH.js +0 -457
  267. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  268. package/dist/capitalize-ciszXJ7R.js +0 -9
  269. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  270. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  271. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  272. package/dist/components/key-protection/index.js +0 -4
  273. package/dist/components/key-protection/menu.js +0 -85
  274. package/dist/components/key-protection/utils.js +0 -10
  275. package/dist/components/treeview-filter/item/styled.js +0 -39
  276. package/dist/createSvgIcon-BjpIhJ30.js +0 -71
  277. package/dist/createTheme-DYxDnE9u.js +0 -612
  278. package/dist/index-BMS1Otro.js +0 -183
  279. package/dist/index-CcdvNlgr.js +0 -503
  280. package/dist/index-kCJ_Zvl8.js +0 -34
  281. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  282. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  283. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  284. package/dist/property-list-form-zZQfpR0X.js +0 -386
  285. package/dist/styled-eZwjUruw.js +0 -12
  286. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  287. package/dist/useId-B4-oF9Mq.js +0 -34
  288. package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
  289. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  290. package/dist/utils-BDNynJcd.js +0 -365
  291. package/dist/utils-Bq0ye5vf.js +0 -115
@@ -1,58 +0,0 @@
1
- import { g as a } from "./createTheme-DYxDnE9u.js";
2
- import { useThemeProps as p } from "@mui/system";
3
- import { d as c } from "./styled-eZwjUruw.js";
4
- function f(r) {
5
- var e, n, t = "";
6
- if (typeof r == "string" || typeof r == "number") t += r;
7
- else if (typeof r == "object") if (Array.isArray(r)) for (e = 0; e < r.length; e++) r[e] && (n = f(r[e])) && (t && (t += " "), t += n);
8
- else for (e in r) r[e] && (t && (t += " "), t += e);
9
- return t;
10
- }
11
- function g() {
12
- for (var r, e, n = 0, t = ""; n < arguments.length; ) (r = arguments[n++]) && (e = f(r)) && (t && (t += " "), t += e);
13
- return t;
14
- }
15
- function d(r, e) {
16
- return process.env.NODE_ENV === "production" ? () => null : function(...t) {
17
- return r(...t) || e(...t);
18
- };
19
- }
20
- function y(r, e, n = void 0) {
21
- const t = {};
22
- return Object.keys(r).forEach(
23
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
24
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
25
- (u) => {
26
- t[u] = r[u].reduce((i, o) => {
27
- if (o) {
28
- const s = e(o);
29
- s !== "" && i.push(s), n && n[o] && i.push(n[o]);
30
- }
31
- return i;
32
- }, []).join(" ");
33
- }
34
- ), t;
35
- }
36
- function T(r, e, n = "Mui") {
37
- const t = {};
38
- return e.forEach((u) => {
39
- t[u] = a(r, u, n);
40
- }), t;
41
- }
42
- function b({
43
- props: r,
44
- name: e
45
- }) {
46
- return p({
47
- props: r,
48
- name: e,
49
- defaultTheme: c
50
- });
51
- }
52
- export {
53
- y as a,
54
- d as b,
55
- g as c,
56
- T as g,
57
- b as u
58
- };
@@ -1,365 +0,0 @@
1
- import { _ as D } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import { _ as C, T as S } from "./ButtonBase-2bPw77UP.js";
3
- import { P as i } from "./index-C__OZmYy.js";
4
- import v from "react";
5
- import b from "react-dom";
6
- const N = {
7
- disabled: !1
8
- };
9
- var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
10
- enter: i.number,
11
- exit: i.number,
12
- appear: i.number
13
- }).isRequired]) : null, P = process.env.NODE_ENV !== "production" ? i.oneOfType([i.string, i.shape({
14
- enter: i.string,
15
- exit: i.string,
16
- active: i.string
17
- }), i.shape({
18
- enter: i.string,
19
- enterDone: i.string,
20
- enterActive: i.string,
21
- exit: i.string,
22
- exitDone: i.string,
23
- exitActive: i.string
24
- })]) : null, y = function(a) {
25
- return a.scrollTop;
26
- }, x = "unmounted", f = "exited", c = "entering", h = "entered", T = "exiting", l = /* @__PURE__ */ function(u) {
27
- C(a, u);
28
- function a(r, e) {
29
- var t;
30
- t = u.call(this, r, e) || this;
31
- var n = e, s = n && !n.isMounting ? r.enter : r.appear, p;
32
- return t.appearStatus = null, r.in ? s ? (p = f, t.appearStatus = c) : p = h : r.unmountOnExit || r.mountOnEnter ? p = x : p = f, t.state = {
33
- status: p
34
- }, t.nextCallback = null, t;
35
- }
36
- a.getDerivedStateFromProps = function(e, t) {
37
- var n = e.in;
38
- return n && t.status === x ? {
39
- status: f
40
- } : null;
41
- };
42
- var o = a.prototype;
43
- return o.componentDidMount = function() {
44
- this.updateStatus(!0, this.appearStatus);
45
- }, o.componentDidUpdate = function(e) {
46
- var t = null;
47
- if (e !== this.props) {
48
- var n = this.state.status;
49
- this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t = T);
50
- }
51
- this.updateStatus(!1, t);
52
- }, o.componentWillUnmount = function() {
53
- this.cancelNextCallback();
54
- }, o.getTimeouts = function() {
55
- var e = this.props.timeout, t, n, s;
56
- return t = n = s = e, e != null && typeof e != "number" && (t = e.exit, n = e.enter, s = e.appear !== void 0 ? e.appear : n), {
57
- exit: t,
58
- enter: n,
59
- appear: s
60
- };
61
- }, o.updateStatus = function(e, t) {
62
- if (e === void 0 && (e = !1), t !== null)
63
- if (this.cancelNextCallback(), t === c) {
64
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
65
- var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
66
- n && y(n);
67
- }
68
- this.performEnter(e);
69
- } else
70
- this.performExit();
71
- else this.props.unmountOnExit && this.state.status === f && this.setState({
72
- status: x
73
- });
74
- }, o.performEnter = function(e) {
75
- var t = this, n = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1], g = this.getTimeouts(), O = s ? g.appear : g.enter;
76
- if (!e && !n || N.disabled) {
77
- this.safeSetState({
78
- status: h
79
- }, function() {
80
- t.props.onEntered(d);
81
- });
82
- return;
83
- }
84
- this.props.onEnter(d, m), this.safeSetState({
85
- status: c
86
- }, function() {
87
- t.props.onEntering(d, m), t.onTransitionEnd(O, function() {
88
- t.safeSetState({
89
- status: h
90
- }, function() {
91
- t.props.onEntered(d, m);
92
- });
93
- });
94
- });
95
- }, o.performExit = function() {
96
- var e = this, t = this.props.exit, n = this.getTimeouts(), s = this.props.nodeRef ? void 0 : b.findDOMNode(this);
97
- if (!t || N.disabled) {
98
- this.safeSetState({
99
- status: f
100
- }, function() {
101
- e.props.onExited(s);
102
- });
103
- return;
104
- }
105
- this.props.onExit(s), this.safeSetState({
106
- status: T
107
- }, function() {
108
- e.props.onExiting(s), e.onTransitionEnd(n.exit, function() {
109
- e.safeSetState({
110
- status: f
111
- }, function() {
112
- e.props.onExited(s);
113
- });
114
- });
115
- });
116
- }, o.cancelNextCallback = function() {
117
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
118
- }, o.safeSetState = function(e, t) {
119
- t = this.setNextCallback(t), this.setState(e, t);
120
- }, o.setNextCallback = function(e) {
121
- var t = this, n = !0;
122
- return this.nextCallback = function(s) {
123
- n && (n = !1, t.nextCallback = null, e(s));
124
- }, this.nextCallback.cancel = function() {
125
- n = !1;
126
- }, this.nextCallback;
127
- }, o.onTransitionEnd = function(e, t) {
128
- this.setNextCallback(t);
129
- var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), s = e == null && !this.props.addEndListener;
130
- if (!n || s) {
131
- setTimeout(this.nextCallback, 0);
132
- return;
133
- }
134
- if (this.props.addEndListener) {
135
- var p = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], d = p[0], m = p[1];
136
- this.props.addEndListener(d, m);
137
- }
138
- e != null && setTimeout(this.nextCallback, e);
139
- }, o.render = function() {
140
- var e = this.state.status;
141
- if (e === x)
142
- return null;
143
- var t = this.props, n = t.children;
144
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
145
- var s = D(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
146
- return (
147
- // allows for nested Transitions
148
- /* @__PURE__ */ v.createElement(S.Provider, {
149
- value: null
150
- }, typeof n == "function" ? n(e, s) : v.cloneElement(v.Children.only(n), s))
151
- );
152
- }, a;
153
- }(v.Component);
154
- l.contextType = S;
155
- l.propTypes = process.env.NODE_ENV !== "production" ? {
156
- /**
157
- * A React reference to DOM element that need to transition:
158
- * https://stackoverflow.com/a/51127130/4671932
159
- *
160
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
161
- * (e.g. `onEnter`) because user already has direct access to the node.
162
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
163
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
164
- * (see
165
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
166
- */
167
- nodeRef: i.shape({
168
- current: typeof Element > "u" ? i.any : function(u, a, o, r, e, t) {
169
- var n = u[a];
170
- return i.instanceOf(n && "ownerDocument" in n ? n.ownerDocument.defaultView.Element : Element)(u, a, o, r, e, t);
171
- }
172
- }),
173
- /**
174
- * A `function` child can be used instead of a React element. This function is
175
- * called with the current transition status (`'entering'`, `'entered'`,
176
- * `'exiting'`, `'exited'`), which can be used to apply context
177
- * specific props to a component.
178
- *
179
- * ```jsx
180
- * <Transition in={this.state.in} timeout={150}>
181
- * {state => (
182
- * <MyComponent className={`fade fade-${state}`} />
183
- * )}
184
- * </Transition>
185
- * ```
186
- */
187
- children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired,
188
- /**
189
- * Show the component; triggers the enter or exit states
190
- */
191
- in: i.bool,
192
- /**
193
- * By default the child component is mounted immediately along with
194
- * the parent `Transition` component. If you want to "lazy mount" the component on the
195
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
196
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
197
- */
198
- mountOnEnter: i.bool,
199
- /**
200
- * By default the child component stays mounted after it reaches the `'exited'` state.
201
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
202
- */
203
- unmountOnExit: i.bool,
204
- /**
205
- * By default the child component does not perform the enter transition when
206
- * it first mounts, regardless of the value of `in`. If you want this
207
- * behavior, set both `appear` and `in` to `true`.
208
- *
209
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
210
- * > only adds an additional enter transition. However, in the
211
- * > `<CSSTransition>` component that first enter transition does result in
212
- * > additional `.appear-*` classes, that way you can choose to style it
213
- * > differently.
214
- */
215
- appear: i.bool,
216
- /**
217
- * Enable or disable enter transitions.
218
- */
219
- enter: i.bool,
220
- /**
221
- * Enable or disable exit transitions.
222
- */
223
- exit: i.bool,
224
- /**
225
- * The duration of the transition, in milliseconds.
226
- * Required unless `addEndListener` is provided.
227
- *
228
- * You may specify a single timeout for all transitions:
229
- *
230
- * ```jsx
231
- * timeout={500}
232
- * ```
233
- *
234
- * or individually:
235
- *
236
- * ```jsx
237
- * timeout={{
238
- * appear: 500,
239
- * enter: 300,
240
- * exit: 500,
241
- * }}
242
- * ```
243
- *
244
- * - `appear` defaults to the value of `enter`
245
- * - `enter` defaults to `0`
246
- * - `exit` defaults to `0`
247
- *
248
- * @type {number | { enter?: number, exit?: number, appear?: number }}
249
- */
250
- timeout: function(a) {
251
- var o = R;
252
- a.addEndListener || (o = o.isRequired);
253
- for (var r = arguments.length, e = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
254
- e[t - 1] = arguments[t];
255
- return o.apply(void 0, [a].concat(e));
256
- },
257
- /**
258
- * Add a custom transition end trigger. Called with the transitioning
259
- * DOM node and a `done` callback. Allows for more fine grained transition end
260
- * logic. Timeouts are still used as a fallback if provided.
261
- *
262
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
263
- *
264
- * ```jsx
265
- * addEndListener={(node, done) => {
266
- * // use the css transitionend event to mark the finish of a transition
267
- * node.addEventListener('transitionend', done, false);
268
- * }}
269
- * ```
270
- */
271
- addEndListener: i.func,
272
- /**
273
- * Callback fired before the "entering" status is applied. An extra parameter
274
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
275
- *
276
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
277
- *
278
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
279
- */
280
- onEnter: i.func,
281
- /**
282
- * Callback fired after the "entering" status is applied. An extra parameter
283
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
284
- *
285
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
286
- *
287
- * @type Function(node: HtmlElement, isAppearing: bool)
288
- */
289
- onEntering: i.func,
290
- /**
291
- * Callback fired after the "entered" status is applied. An extra parameter
292
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
293
- *
294
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
295
- *
296
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
297
- */
298
- onEntered: i.func,
299
- /**
300
- * Callback fired before the "exiting" status is applied.
301
- *
302
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
303
- *
304
- * @type Function(node: HtmlElement) -> void
305
- */
306
- onExit: i.func,
307
- /**
308
- * Callback fired after the "exiting" status is applied.
309
- *
310
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
311
- *
312
- * @type Function(node: HtmlElement) -> void
313
- */
314
- onExiting: i.func,
315
- /**
316
- * Callback fired after the "exited" status is applied.
317
- *
318
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
319
- *
320
- * @type Function(node: HtmlElement) -> void
321
- */
322
- onExited: i.func
323
- } : {};
324
- function E() {
325
- }
326
- l.defaultProps = {
327
- in: !1,
328
- mountOnEnter: !1,
329
- unmountOnExit: !1,
330
- appear: !1,
331
- enter: !0,
332
- exit: !0,
333
- onEnter: E,
334
- onEntering: E,
335
- onEntered: E,
336
- onExit: E,
337
- onExiting: E,
338
- onExited: E
339
- };
340
- l.UNMOUNTED = x;
341
- l.EXITED = f;
342
- l.ENTERING = c;
343
- l.ENTERED = h;
344
- l.EXITING = T;
345
- const U = (u) => u.scrollTop;
346
- function w(u, a) {
347
- var o, r;
348
- const {
349
- timeout: e,
350
- easing: t,
351
- style: n = {}
352
- } = u;
353
- return {
354
- duration: (o = n.transitionDuration) != null ? o : typeof e == "number" ? e : e[a.mode] || 0,
355
- easing: (r = n.transitionTimingFunction) != null ? r : typeof t == "object" ? t[a.mode] : t,
356
- delay: n.transitionDelay
357
- };
358
- }
359
- export {
360
- l as T,
361
- P as c,
362
- y as f,
363
- w as g,
364
- U as r
365
- };
@@ -1,115 +0,0 @@
1
- async function c() {
2
- const e = {
3
- challenge: new Uint8Array([583, 3, 100]),
4
- rp: { id: window.location.hostname, name: "Smart Navigator" },
5
- user: {
6
- id: new TextEncoder().encode("hybridcore"),
7
- name: "info@hybridcore.eu",
8
- displayName: "Hybrid Core"
9
- },
10
- pubKeyCredParams: [{ type: "public-key", alg: -7 }]
11
- };
12
- return await navigator.credentials.create({ publicKey: e });
13
- }
14
- async function i(e) {
15
- const r = {
16
- challenge: new Uint8Array([583, 3, 100]),
17
- rpId: window.location.hostname,
18
- userVerification: "required",
19
- allowCredentials: [
20
- {
21
- type: "public-key",
22
- id: e
23
- }
24
- ]
25
- };
26
- return await navigator.credentials.get({
27
- publicKey: r
28
- }), !0;
29
- }
30
- async function s() {
31
- return await crypto.subtle.generateKey(
32
- { name: "AES-GCM", length: 256 },
33
- !0,
34
- ["encrypt", "decrypt"]
35
- );
36
- }
37
- async function y(e, r) {
38
- try {
39
- const t = new TextEncoder().encode(r), { ciphertext: n, iv: a } = await p(e, t);
40
- return {
41
- status: "SUCCESS",
42
- data: window.btoa(
43
- a.toString() + ":" + new Uint8Array(n).toString()
44
- )
45
- };
46
- } catch (t) {
47
- let n = "Encryption error!";
48
- return (t.name === "NotAllowedError" || t.name === "TimeoutError") && (n = "User interaction required or operation timed out."), {
49
- status: "ERROR",
50
- message: n
51
- };
52
- }
53
- }
54
- async function d(e, r) {
55
- try {
56
- const t = window.atob(r).split(":"), n = new Uint8Array(t[0].split(",")), a = new Uint8Array(t[1].split(",")).buffer, o = await u(e, a, n);
57
- return {
58
- status: "SUCCESS",
59
- data: new TextDecoder().decode(o)
60
- };
61
- } catch (t) {
62
- let n = "Decryption error!";
63
- return (t.name === "NotAllowedError" || t.name === "TimeoutError") && (n = "User interaction required or operation timed out."), console.log(t), {
64
- status: "ERROR",
65
- message: n
66
- };
67
- }
68
- }
69
- async function p(e, r) {
70
- const t = crypto.getRandomValues(new Uint8Array(12));
71
- return { ciphertext: await crypto.subtle.encrypt(
72
- { name: "AES-GCM", iv: t },
73
- e,
74
- r
75
- ), iv: t };
76
- }
77
- async function u(e, r, t) {
78
- return crypto.subtle.decrypt({ name: "AES-GCM", iv: t }, e, r);
79
- }
80
- async function l(e) {
81
- return await window.crypto.subtle.exportKey("jwk", e);
82
- }
83
- async function w(e) {
84
- return await window.crypto.subtle.importKey(
85
- "jwk",
86
- e,
87
- {
88
- name: "AES-GCM",
89
- length: 256
90
- // namedCurve: "P-384",
91
- },
92
- !0,
93
- ["encrypt", "decrypt"]
94
- );
95
- }
96
- const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
97
- __proto__: null,
98
- authenticate: i,
99
- decrypt: d,
100
- encrypt: y,
101
- exportKey: l,
102
- generateKey: s,
103
- importKey: w,
104
- register: c
105
- }, Symbol.toStringTag, { value: "Module" }));
106
- export {
107
- b as S,
108
- i as a,
109
- l as b,
110
- d,
111
- y as e,
112
- s as g,
113
- w as i,
114
- c as r
115
- };