@topconsultnpm/sdkui-react-beta 6.5.51

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 (389) hide show
  1. package/lib/assets/6.png +0 -0
  2. package/lib/assets/ImageLibrary/arrow_001.png +0 -0
  3. package/lib/assets/ImageLibrary/arrow_002.png +0 -0
  4. package/lib/assets/ImageLibrary/arrow_003.png +0 -0
  5. package/lib/assets/ImageLibrary/arrow_004.png +0 -0
  6. package/lib/assets/ImageLibrary/arrow_005.png +0 -0
  7. package/lib/assets/ImageLibrary/arrow_006.png +0 -0
  8. package/lib/assets/ImageLibrary/arrow_007.png +0 -0
  9. package/lib/assets/ImageLibrary/arrow_008.png +0 -0
  10. package/lib/assets/ImageLibrary/arrow_009.png +0 -0
  11. package/lib/assets/ImageLibrary/arrow_010.png +0 -0
  12. package/lib/assets/ImageLibrary/arrow_011.png +0 -0
  13. package/lib/assets/ImageLibrary/arrow_012.png +0 -0
  14. package/lib/assets/ImageLibrary/book_001.png +0 -0
  15. package/lib/assets/ImageLibrary/book_002.png +0 -0
  16. package/lib/assets/ImageLibrary/book_003.png +0 -0
  17. package/lib/assets/ImageLibrary/book_004.png +0 -0
  18. package/lib/assets/ImageLibrary/book_005.png +0 -0
  19. package/lib/assets/ImageLibrary/book_006.png +0 -0
  20. package/lib/assets/ImageLibrary/book_007.png +0 -0
  21. package/lib/assets/ImageLibrary/clock_001.png +0 -0
  22. package/lib/assets/ImageLibrary/clock_002.png +0 -0
  23. package/lib/assets/ImageLibrary/clock_003.png +0 -0
  24. package/lib/assets/ImageLibrary/cube_001.png +0 -0
  25. package/lib/assets/ImageLibrary/cube_002.png +0 -0
  26. package/lib/assets/ImageLibrary/cube_003.png +0 -0
  27. package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
  28. package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
  29. package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
  30. package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
  31. package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
  32. package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
  33. package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
  34. package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
  35. package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
  36. package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
  37. package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
  38. package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
  39. package/lib/assets/ImageLibrary/fld_001.png +0 -0
  40. package/lib/assets/ImageLibrary/fld_002.png +0 -0
  41. package/lib/assets/ImageLibrary/fld_003.png +0 -0
  42. package/lib/assets/ImageLibrary/fld_004.png +0 -0
  43. package/lib/assets/ImageLibrary/fld_005.png +0 -0
  44. package/lib/assets/ImageLibrary/fld_006.png +0 -0
  45. package/lib/assets/ImageLibrary/fld_007.png +0 -0
  46. package/lib/assets/ImageLibrary/fld_008.png +0 -0
  47. package/lib/assets/ImageLibrary/fld_009.png +0 -0
  48. package/lib/assets/ImageLibrary/fld_010.png +0 -0
  49. package/lib/assets/ImageLibrary/fld_011.png +0 -0
  50. package/lib/assets/ImageLibrary/fld_012.png +0 -0
  51. package/lib/assets/ImageLibrary/fld_013.png +0 -0
  52. package/lib/assets/ImageLibrary/fld_014.png +0 -0
  53. package/lib/assets/ImageLibrary/fld_015.png +0 -0
  54. package/lib/assets/ImageLibrary/fld_016.png +0 -0
  55. package/lib/assets/ImageLibrary/fld_017.png +0 -0
  56. package/lib/assets/ImageLibrary/fld_018.png +0 -0
  57. package/lib/assets/ImageLibrary/fld_019.png +0 -0
  58. package/lib/assets/ImageLibrary/fld_020.png +0 -0
  59. package/lib/assets/ImageLibrary/fld_021.png +0 -0
  60. package/lib/assets/ImageLibrary/fld_022.png +0 -0
  61. package/lib/assets/ImageLibrary/fld_023.png +0 -0
  62. package/lib/assets/ImageLibrary/fld_024.png +0 -0
  63. package/lib/assets/ImageLibrary/fld_025.png +0 -0
  64. package/lib/assets/ImageLibrary/fld_026.png +0 -0
  65. package/lib/assets/ImageLibrary/fld_027.png +0 -0
  66. package/lib/assets/ImageLibrary/fld_028.png +0 -0
  67. package/lib/assets/ImageLibrary/fld_029.png +0 -0
  68. package/lib/assets/ImageLibrary/fld_030.png +0 -0
  69. package/lib/assets/ImageLibrary/fld_031.png +0 -0
  70. package/lib/assets/ImageLibrary/fld_032.png +0 -0
  71. package/lib/assets/ImageLibrary/fld_033.png +0 -0
  72. package/lib/assets/ImageLibrary/gen_001.png +0 -0
  73. package/lib/assets/ImageLibrary/gen_002.png +0 -0
  74. package/lib/assets/ImageLibrary/gen_003.png +0 -0
  75. package/lib/assets/ImageLibrary/gen_004.png +0 -0
  76. package/lib/assets/ImageLibrary/gen_005.png +0 -0
  77. package/lib/assets/ImageLibrary/gen_006.png +0 -0
  78. package/lib/assets/ImageLibrary/gen_007.png +0 -0
  79. package/lib/assets/ImageLibrary/gen_008.png +0 -0
  80. package/lib/assets/ImageLibrary/gen_009.png +0 -0
  81. package/lib/assets/ImageLibrary/gen_010.png +0 -0
  82. package/lib/assets/ImageLibrary/gen_011.png +0 -0
  83. package/lib/assets/ImageLibrary/gen_012.png +0 -0
  84. package/lib/assets/ImageLibrary/gen_013.png +0 -0
  85. package/lib/assets/ImageLibrary/gen_014.png +0 -0
  86. package/lib/assets/ImageLibrary/gen_015.png +0 -0
  87. package/lib/assets/ImageLibrary/gen_016.png +0 -0
  88. package/lib/assets/ImageLibrary/gen_017.png +0 -0
  89. package/lib/assets/ImageLibrary/gen_018.png +0 -0
  90. package/lib/assets/ImageLibrary/gen_019.png +0 -0
  91. package/lib/assets/ImageLibrary/gen_020.png +0 -0
  92. package/lib/assets/ImageLibrary/gen_021.png +0 -0
  93. package/lib/assets/ImageLibrary/gen_022.png +0 -0
  94. package/lib/assets/ImageLibrary/gen_023.png +0 -0
  95. package/lib/assets/ImageLibrary/gen_024.png +0 -0
  96. package/lib/assets/ImageLibrary/gen_025.png +0 -0
  97. package/lib/assets/ImageLibrary/gen_026.png +0 -0
  98. package/lib/assets/ImageLibrary/gen_027.png +0 -0
  99. package/lib/assets/ImageLibrary/gen_028.png +0 -0
  100. package/lib/assets/ImageLibrary/gen_029.png +0 -0
  101. package/lib/assets/ImageLibrary/gen_030.png +0 -0
  102. package/lib/assets/ImageLibrary/gen_031.png +0 -0
  103. package/lib/assets/ImageLibrary/gen_032.png +0 -0
  104. package/lib/assets/ImageLibrary/gen_033.png +0 -0
  105. package/lib/assets/ImageLibrary/gen_034.png +0 -0
  106. package/lib/assets/ImageLibrary/gen_035.png +0 -0
  107. package/lib/assets/ImageLibrary/gen_036.png +0 -0
  108. package/lib/assets/ImageLibrary/gen_037.png +0 -0
  109. package/lib/assets/ImageLibrary/gen_038.png +0 -0
  110. package/lib/assets/ImageLibrary/gen_039.png +0 -0
  111. package/lib/assets/ImageLibrary/gen_040.png +0 -0
  112. package/lib/assets/ImageLibrary/gen_041.png +0 -0
  113. package/lib/assets/ImageLibrary/gen_042.png +0 -0
  114. package/lib/assets/ImageLibrary/gen_043.png +0 -0
  115. package/lib/assets/ImageLibrary/gen_044.png +0 -0
  116. package/lib/assets/ImageLibrary/gen_045.png +0 -0
  117. package/lib/assets/ImageLibrary/gen_046.png +0 -0
  118. package/lib/assets/ImageLibrary/gen_047.png +0 -0
  119. package/lib/assets/ImageLibrary/gen_048.png +0 -0
  120. package/lib/assets/ImageLibrary/gen_049.png +0 -0
  121. package/lib/assets/ImageLibrary/gen_050.png +0 -0
  122. package/lib/assets/ImageLibrary/gen_051.png +0 -0
  123. package/lib/assets/ImageLibrary/gen_052.png +0 -0
  124. package/lib/assets/ImageLibrary/hand_001.png +0 -0
  125. package/lib/assets/ImageLibrary/hand_002.png +0 -0
  126. package/lib/assets/ImageLibrary/hand_003.png +0 -0
  127. package/lib/assets/ImageLibrary/hand_004.png +0 -0
  128. package/lib/assets/ImageLibrary/hand_005.png +0 -0
  129. package/lib/assets/ImageLibrary/hand_006.png +0 -0
  130. package/lib/assets/ImageLibrary/law_001.png +0 -0
  131. package/lib/assets/ImageLibrary/law_002.png +0 -0
  132. package/lib/assets/ImageLibrary/law_003.png +0 -0
  133. package/lib/assets/ImageLibrary/lock_001.png +0 -0
  134. package/lib/assets/ImageLibrary/lock_002.png +0 -0
  135. package/lib/assets/ImageLibrary/lock_003.png +0 -0
  136. package/lib/assets/ImageLibrary/mail_001.png +0 -0
  137. package/lib/assets/ImageLibrary/mail_002.png +0 -0
  138. package/lib/assets/ImageLibrary/mail_003.png +0 -0
  139. package/lib/assets/ImageLibrary/mail_004.png +0 -0
  140. package/lib/assets/ImageLibrary/mail_005.png +0 -0
  141. package/lib/assets/ImageLibrary/mail_006.png +0 -0
  142. package/lib/assets/ImageLibrary/mail_007.png +0 -0
  143. package/lib/assets/ImageLibrary/mail_008.png +0 -0
  144. package/lib/assets/ImageLibrary/mail_009.png +0 -0
  145. package/lib/assets/ImageLibrary/mail_010.png +0 -0
  146. package/lib/assets/ImageLibrary/mail_011.png +0 -0
  147. package/lib/assets/ImageLibrary/mail_012.png +0 -0
  148. package/lib/assets/ImageLibrary/mail_013.png +0 -0
  149. package/lib/assets/ImageLibrary/mail_014.png +0 -0
  150. package/lib/assets/ImageLibrary/mail_015.png +0 -0
  151. package/lib/assets/ImageLibrary/net_001.png +0 -0
  152. package/lib/assets/ImageLibrary/net_002.png +0 -0
  153. package/lib/assets/ImageLibrary/net_003.png +0 -0
  154. package/lib/assets/ImageLibrary/net_004.png +0 -0
  155. package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
  156. package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
  157. package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
  158. package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
  159. package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
  160. package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
  161. package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
  162. package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
  163. package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
  164. package/lib/assets/ImageLibrary/note_001.png +0 -0
  165. package/lib/assets/ImageLibrary/note_002.png +0 -0
  166. package/lib/assets/ImageLibrary/note_003.png +0 -0
  167. package/lib/assets/ImageLibrary/note_004.png +0 -0
  168. package/lib/assets/ImageLibrary/note_005.png +0 -0
  169. package/lib/assets/ImageLibrary/note_006.png +0 -0
  170. package/lib/assets/ImageLibrary/note_007.png +0 -0
  171. package/lib/assets/ImageLibrary/note_008.png +0 -0
  172. package/lib/assets/ImageLibrary/note_009.png +0 -0
  173. package/lib/assets/ImageLibrary/note_010.png +0 -0
  174. package/lib/assets/ImageLibrary/note_011.png +0 -0
  175. package/lib/assets/ImageLibrary/note_012.png +0 -0
  176. package/lib/assets/ImageLibrary/note_013.png +0 -0
  177. package/lib/assets/ImageLibrary/note_014.png +0 -0
  178. package/lib/assets/ImageLibrary/note_015.png +0 -0
  179. package/lib/assets/ImageLibrary/note_016.png +0 -0
  180. package/lib/assets/ImageLibrary/run_001.png +0 -0
  181. package/lib/assets/ImageLibrary/run_002.png +0 -0
  182. package/lib/assets/ImageLibrary/run_003.png +0 -0
  183. package/lib/assets/ImageLibrary/sem_001.png +0 -0
  184. package/lib/assets/ImageLibrary/sem_002.png +0 -0
  185. package/lib/assets/ImageLibrary/sem_003.png +0 -0
  186. package/lib/assets/ImageLibrary/sem_004.png +0 -0
  187. package/lib/assets/ImageLibrary/sem_005.png +0 -0
  188. package/lib/assets/ImageLibrary/star_001.png +0 -0
  189. package/lib/assets/ImageLibrary/star_002.png +0 -0
  190. package/lib/assets/ImageLibrary/star_003.png +0 -0
  191. package/lib/assets/ImageLibrary/star_004.png +0 -0
  192. package/lib/assets/ImageLibrary/star_005.png +0 -0
  193. package/lib/assets/ImageLibrary/star_006.png +0 -0
  194. package/lib/assets/ImageLibrary/state_001.png +0 -0
  195. package/lib/assets/ImageLibrary/state_002.png +0 -0
  196. package/lib/assets/ImageLibrary/state_003.png +0 -0
  197. package/lib/assets/ImageLibrary/state_004.png +0 -0
  198. package/lib/assets/ImageLibrary/state_005.png +0 -0
  199. package/lib/assets/ImageLibrary/study_001.png +0 -0
  200. package/lib/assets/ImageLibrary/study_002.png +0 -0
  201. package/lib/assets/ImageLibrary/user_001.png +0 -0
  202. package/lib/assets/ImageLibrary/user_002.png +0 -0
  203. package/lib/assets/ImageLibrary/user_003.png +0 -0
  204. package/lib/assets/ImageLibrary/user_004.png +0 -0
  205. package/lib/assets/ImageLibrary/user_005.png +0 -0
  206. package/lib/assets/ImageLibrary/user_006.png +0 -0
  207. package/lib/assets/ImageLibrary/user_007.png +0 -0
  208. package/lib/assets/ImageLibrary/user_008.png +0 -0
  209. package/lib/assets/ImageLibrary/user_009.png +0 -0
  210. package/lib/assets/ImageLibrary/user_010.png +0 -0
  211. package/lib/assets/ImageLibrary/user_011.png +0 -0
  212. package/lib/assets/ImageLibrary/user_012.png +0 -0
  213. package/lib/assets/ImageLibrary/user_013.png +0 -0
  214. package/lib/assets/ImageLibrary/user_014.png +0 -0
  215. package/lib/assets/ImageLibrary/user_015.png +0 -0
  216. package/lib/assets/ImageLibrary/user_016.png +0 -0
  217. package/lib/assets/ImageLibrary/user_017.png +0 -0
  218. package/lib/assets/ImageLibrary/user_018.png +0 -0
  219. package/lib/assets/ImageLibrary/user_019.png +0 -0
  220. package/lib/assets/ImageLibrary/user_020.png +0 -0
  221. package/lib/assets/ImageLibrary/user_021.png +0 -0
  222. package/lib/assets/ImageLibrary/user_022.png +0 -0
  223. package/lib/assets/ImageLibrary/user_023.png +0 -0
  224. package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
  225. package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
  226. package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
  227. package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
  228. package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
  229. package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
  230. package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
  231. package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
  232. package/lib/assets/Metadata/DataList_32.png +0 -0
  233. package/lib/assets/Metadata/DynamicDataList_32.png +0 -0
  234. package/lib/assets/Metadata/MetadataComputed_32.png +0 -0
  235. package/lib/assets/Metadata/MetadataDateTime_16.png +0 -0
  236. package/lib/assets/Metadata/MetadataNumeric_16.png +0 -0
  237. package/lib/assets/Metadata/MetadataSpecial_32.png +0 -0
  238. package/lib/assets/Metadata/MetadataText_16.png +0 -0
  239. package/lib/assets/Metadata/Metadata_32.png +0 -0
  240. package/lib/assets/Metadata/Numerator_32.png +0 -0
  241. package/lib/assets/Metadata/UserLevel_Member_32.png +0 -0
  242. package/lib/assets/Orchestrator6.png +0 -0
  243. package/lib/assets/TopMediaOrchestrator6.svg +93 -0
  244. package/lib/assets/Toppy-generico.png +0 -0
  245. package/lib/assets/background-login.png +0 -0
  246. package/lib/assets/d.png +0 -0
  247. package/lib/assets/doc.jpg +0 -0
  248. package/lib/assets/icomoon.eot +0 -0
  249. package/lib/assets/icomoon.svg +97 -0
  250. package/lib/assets/icomoon.ttf +0 -0
  251. package/lib/assets/icomoon.woff +0 -0
  252. package/lib/assets/loading.png +0 -0
  253. package/lib/assets/login-bg.png +0 -0
  254. package/lib/assets/logo-TopConsult-footer.png +0 -0
  255. package/lib/assets/logo.svg +79 -0
  256. package/lib/assets/multipleSelectionManager.jpg +0 -0
  257. package/lib/assets/s.png +0 -0
  258. package/lib/components/base/Styled.d.ts +28 -0
  259. package/lib/components/base/Styled.js +117 -0
  260. package/lib/components/base/TMAlert.d.ts +20 -0
  261. package/lib/components/base/TMAlert.js +75 -0
  262. package/lib/components/base/TMButton.d.ts +17 -0
  263. package/lib/components/base/TMButton.js +163 -0
  264. package/lib/components/base/TMClosableList.d.ts +10 -0
  265. package/lib/components/base/TMClosableList.js +69 -0
  266. package/lib/components/base/TMContextMenu.d.ts +26 -0
  267. package/lib/components/base/TMContextMenu.js +56 -0
  268. package/lib/components/base/TMDropDown.d.ts +11 -0
  269. package/lib/components/base/TMDropDown.js +64 -0
  270. package/lib/components/base/TMDropDownMenu.d.ts +17 -0
  271. package/lib/components/base/TMDropDownMenu.js +39 -0
  272. package/lib/components/base/TMEditorBase.d.ts +31 -0
  273. package/lib/components/base/TMEditorBase.js +1 -0
  274. package/lib/components/base/TMLayout.d.ts +51 -0
  275. package/lib/components/base/TMLayout.js +152 -0
  276. package/lib/components/base/TMList.d.ts +9 -0
  277. package/lib/components/base/TMList.js +46 -0
  278. package/lib/components/base/TMListView.d.ts +24 -0
  279. package/lib/components/base/TMListView.js +321 -0
  280. package/lib/components/base/TMModal.d.ts +14 -0
  281. package/lib/components/base/TMModal.js +48 -0
  282. package/lib/components/base/TMPopUp.d.ts +26 -0
  283. package/lib/components/base/TMPopUp.js +136 -0
  284. package/lib/components/base/TMProgressBar.d.ts +11 -0
  285. package/lib/components/base/TMProgressBar.js +32 -0
  286. package/lib/components/base/TMSpinner.d.ts +13 -0
  287. package/lib/components/base/TMSpinner.js +23 -0
  288. package/lib/components/base/TMTab.d.ts +20 -0
  289. package/lib/components/base/TMTab.js +42 -0
  290. package/lib/components/base/TMToggleButton.d.ts +10 -0
  291. package/lib/components/base/TMToggleButton.js +58 -0
  292. package/lib/components/base/TMTooltip.d.ts +9 -0
  293. package/lib/components/base/TMTooltip.js +19 -0
  294. package/lib/components/base/TMVilViewer.d.ts +5 -0
  295. package/lib/components/base/TMVilViewer.js +22 -0
  296. package/lib/components/choosers/TMDataListItemChooser.d.ts +19 -0
  297. package/lib/components/choosers/TMDataListItemChooser.js +37 -0
  298. package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
  299. package/lib/components/choosers/TMDcmtTypeChooser.js +46 -0
  300. package/lib/components/choosers/TMMetadataChooser.d.ts +41 -0
  301. package/lib/components/choosers/TMMetadataChooser.js +118 -0
  302. package/lib/components/choosers/TMUserChooser.d.ts +26 -0
  303. package/lib/components/choosers/TMUserChooser.js +82 -0
  304. package/lib/components/editors/TMCheckBox.d.ts +9 -0
  305. package/lib/components/editors/TMCheckBox.js +90 -0
  306. package/lib/components/editors/TMDateBox.d.ts +12 -0
  307. package/lib/components/editors/TMDateBox.js +78 -0
  308. package/lib/components/editors/TMDropDown.d.ts +10 -0
  309. package/lib/components/editors/TMDropDown.js +38 -0
  310. package/lib/components/editors/TMEditorStyled.d.ts +30 -0
  311. package/lib/components/editors/TMEditorStyled.js +75 -0
  312. package/lib/components/editors/TMRadioButton.d.ts +10 -0
  313. package/lib/components/editors/TMRadioButton.js +57 -0
  314. package/lib/components/editors/TMSummary.d.ts +18 -0
  315. package/lib/components/editors/TMSummary.js +62 -0
  316. package/lib/components/editors/TMTextBox.d.ts +20 -0
  317. package/lib/components/editors/TMTextBox.js +116 -0
  318. package/lib/components/filesystem/ProgressBar.d.ts +7 -0
  319. package/lib/components/filesystem/ProgressBar.js +25 -0
  320. package/lib/components/forms/TMApplyForm.d.ts +4 -0
  321. package/lib/components/forms/TMApplyForm.js +102 -0
  322. package/lib/components/forms/TMChooserForm.d.ts +3 -0
  323. package/lib/components/forms/TMChooserForm.js +56 -0
  324. package/lib/components/forms/TMLoginForm.d.ts +32 -0
  325. package/lib/components/forms/TMLoginForm.js +986 -0
  326. package/lib/components/forms/TMSaveForm.d.ts +4 -0
  327. package/lib/components/forms/TMSaveForm.js +107 -0
  328. package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
  329. package/lib/components/grids/TMValidationItemsList.js +82 -0
  330. package/lib/components/index.d.ts +44 -0
  331. package/lib/components/index.js +59 -0
  332. package/lib/components/pages/TMPage.d.ts +39 -0
  333. package/lib/components/pages/TMPage.js +194 -0
  334. package/lib/components/query/TMQueryEditor.d.ts +27 -0
  335. package/lib/components/query/TMQueryEditor.js +1044 -0
  336. package/lib/components/query/TMQueryResult.d.ts +8 -0
  337. package/lib/components/query/TMQueryResult.js +47 -0
  338. package/lib/components/settings/SettingsAppearance.d.ts +2 -0
  339. package/lib/components/settings/SettingsAppearance.js +44 -0
  340. package/lib/components/sidebar/TMHeader.d.ts +31 -0
  341. package/lib/components/sidebar/TMHeader.js +228 -0
  342. package/lib/components/sidebar/TMSidebar.d.ts +17 -0
  343. package/lib/components/sidebar/TMSidebar.js +24 -0
  344. package/lib/components/sidebar/TMSidebarItem.d.ts +12 -0
  345. package/lib/components/sidebar/TMSidebarItem.js +27 -0
  346. package/lib/components/splitter/TMSplitterLayout.d.ts +17 -0
  347. package/lib/components/splitter/TMSplitterLayout.js +215 -0
  348. package/lib/components/viewers/TMDataListItemViewer.d.ts +9 -0
  349. package/lib/components/viewers/TMDataListItemViewer.js +27 -0
  350. package/lib/components/viewers/TMMidViewer.d.ts +26 -0
  351. package/lib/components/viewers/TMMidViewer.js +110 -0
  352. package/lib/components/viewers/TMTidViewer.d.ts +21 -0
  353. package/lib/components/viewers/TMTidViewer.js +398 -0
  354. package/lib/css/tm-sdkui.css +1 -0
  355. package/lib/helper/Enum_Localizator.d.ts +8 -0
  356. package/lib/helper/Enum_Localizator.js +125 -0
  357. package/lib/helper/Globalization.d.ts +14 -0
  358. package/lib/helper/Globalization.js +80 -0
  359. package/lib/helper/SDKUI_Globals.d.ts +11 -0
  360. package/lib/helper/SDKUI_Globals.js +8 -0
  361. package/lib/helper/SDKUI_Localizator.d.ts +222 -0
  362. package/lib/helper/SDKUI_Localizator.js +2143 -0
  363. package/lib/helper/TMIcons.d.ts +171 -0
  364. package/lib/helper/TMIcons.js +507 -0
  365. package/lib/helper/TMImageLibrary.d.ts +3 -0
  366. package/lib/helper/TMImageLibrary.js +466 -0
  367. package/lib/helper/helpers.d.ts +25 -0
  368. package/lib/helper/helpers.js +250 -0
  369. package/lib/helper/index.d.ts +8 -0
  370. package/lib/helper/index.js +8 -0
  371. package/lib/helper/queryHelper.d.ts +8 -0
  372. package/lib/helper/queryHelper.js +32 -0
  373. package/lib/hooks/useForm.d.ts +18 -0
  374. package/lib/hooks/useForm.js +111 -0
  375. package/lib/hooks/useOutsideClick.d.ts +2 -0
  376. package/lib/hooks/useOutsideClick.js +38 -0
  377. package/lib/index.d.ts +7 -0
  378. package/lib/index.js +7 -0
  379. package/lib/services/index.d.ts +1 -0
  380. package/lib/services/index.js +1 -0
  381. package/lib/services/platform_services.d.ts +17 -0
  382. package/lib/services/platform_services.js +334 -0
  383. package/lib/ts/index.d.ts +1 -0
  384. package/lib/ts/index.js +1 -0
  385. package/lib/ts/types.d.ts +152 -0
  386. package/lib/ts/types.js +17 -0
  387. package/lib/utils/theme.d.ts +58 -0
  388. package/lib/utils/theme.js +57 -0
  389. package/package.json +38 -0
@@ -0,0 +1,321 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React, { useEffect, useState } from 'react';
3
+ import styled from 'styled-components';
4
+ import { Colors, FontSize } from '../../utils/theme';
5
+ import { getColor } from '../../helper/helpers';
6
+ import { IconCloseCircle, IconDown, IconInsertAbove, IconInsertBelow, IconSearch, IconUp } from '../../helper';
7
+ const StyledContainer = styled.div `
8
+ z-index: -1;
9
+ border: 1px solid;
10
+ border-color: ${props => getColor(props.$color)} ;
11
+ overflow: auto;
12
+ max-height: ${props => props.$maxHight};
13
+ `;
14
+ const StyledListViewWrapper = styled.div `
15
+ display: flex;
16
+ flex-direction: column;
17
+ justify-content: flex-start;
18
+ align-items: flex-start;
19
+ font-size: ${props => props.$fontSize} ;
20
+ `;
21
+ const StyledListItemContainer = styled.div `
22
+ display: flex;
23
+ width: 100%;
24
+ flex-direction: row;
25
+ justify-content: space-between;
26
+ align-items: center;
27
+ padding: 5px;
28
+ background-color: ${props => !props.$isSelected ? props.$index % 2 === 0 ? 'white' : Colors.colore_sul_primary : Colors.secondary};
29
+ font-size: ${props => props.$fontSize};
30
+ color: ${props => !props.$isSelected ? Colors.primary : 'white'};
31
+ z-index: 1;
32
+ `;
33
+ const StyledLsitItemCheck = styled.input `
34
+ margin-right: 5px;
35
+ cursor: pointer;
36
+ `;
37
+ const StyledListItem = styled.li `
38
+ padding: 3px;
39
+ list-style: none;
40
+ text-decoration: none;
41
+ color: ${props => props.$color};
42
+ `;
43
+ const StyledListViewItemDetails = styled.div `
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: flex-start;
47
+ justify-content: flex-start;
48
+ padding: 5px;
49
+ background-color: ${Colors.contenitore_su_colore_primary};
50
+ color: white;
51
+ width: 100%;
52
+ `;
53
+ const StyledDetailsToggleButton = styled.button `
54
+ border: none;
55
+ background-color: transparent;
56
+ cursor: pointer;
57
+ color: ${props => props.$isSelected ? 'white' : Colors.primary};
58
+ `;
59
+ const StyledListViewSearchContainer = styled.div `
60
+ position: sticky;
61
+ padding: 5px;
62
+ top: 0px;
63
+ display: flex;
64
+ flex-direction: row;
65
+ align-items: center;
66
+ justify-content: flex-start;
67
+ padding-bottom: 5px;
68
+ border-bottom: 1px solid ${props => getColor(props.$color)};
69
+ background-color: ${props => getColor(props.$color)};
70
+ z-index: 100;
71
+ `;
72
+ const StyledSelectOptionCheckBox = styled.input `
73
+ margin-right: 5px;
74
+ margin-left: 2px;
75
+ cursor: pointer;
76
+ width: 20px;
77
+ height: 20px;
78
+ `;
79
+ const StyledListViewSearchInput = styled.input `
80
+ width: 100%;
81
+ padding: 3px 10px;
82
+ border-radius: 5px;
83
+ border-width: 1px ;
84
+ border-color: ${props => getColor(props.$color)};
85
+ border-style: solid;
86
+ color: ${props => getColor(props.$color)};
87
+ &::placeholder{
88
+ color: ${props => getColor(props.$color)};
89
+ }
90
+ &:focus{
91
+ outline: none;
92
+ background-color: #fbf5ca;
93
+ }
94
+ `;
95
+ const StyledListViewSearchIcon = styled.button `
96
+ background-color: transparent;
97
+ border: none;
98
+ cursor: ${props => props.$isSearch ? 'pointer' : 'default'};
99
+ color: ${props => getColor(props.$color)};
100
+ position: absolute;
101
+ right: 10px;
102
+ top: 10px;
103
+ &:focus{
104
+ outline: ${props => !props.$isSearch && 'none'};
105
+ }
106
+ `;
107
+ const StyledListViewFooter = styled.div `
108
+ z-index: 100;
109
+ position: sticky;
110
+ bottom: 0px;
111
+ width: 100%;
112
+ padding: 5px;
113
+ background-color: ${props => getColor(props.$color)};
114
+ color: white;
115
+ font-size: 1rem;
116
+ `;
117
+ const StyledShowHideDetailsButton = styled.button `
118
+ background-color: transparent;
119
+ border: none;
120
+ margin-right: 10px;
121
+ /* color: ${props => getColor(props.$color)}; */
122
+ color: white;
123
+ cursor: pointer;
124
+ transform: translateY(1.5px);
125
+ `;
126
+ const TMListView = ({ maxHeight = '100%', selectedValues = [], color = 'primary', footer = false, header = false, customItemDetails, customListViewItem, hasItemDetails = false, detailsFields, dataSource, displayField, searchable, elementStyle, selectedListItems, multipleSelect = false, fontSize = FontSize.defaultFontSize }) => {
127
+ const [focusedItem, setFocusedItem] = useState(undefined);
128
+ const [selectedItems, setSelectedItems] = useState([]);
129
+ const [detailRequestItems, setDetailRequestItems] = useState([]);
130
+ const [currentDetailsFields, setCurrentDetailsField] = useState(detailsFields);
131
+ const [searchValue, setSearchValue] = useState('');
132
+ const [currentDataSource, setCurrentDataSource] = useState([]);
133
+ const [usedFields, setUsedFields] = useState([]);
134
+ useEffect(() => {
135
+ if (!selectedValues.fieldName) {
136
+ setSelectedItems(selectedValues);
137
+ }
138
+ else {
139
+ let data = [];
140
+ for (let value of selectedValues.fieldValues) {
141
+ for (let d of currentDataSource) {
142
+ if (value === d[selectedValues.fieldName]) {
143
+ data.push(d);
144
+ }
145
+ }
146
+ }
147
+ setSelectedItems(data);
148
+ }
149
+ }, [currentDataSource]);
150
+ useEffect(() => { selectedListItems && selectedListItems(selectedItems); }, [selectedItems]);
151
+ useEffect(() => {
152
+ const selectByKey = (e) => { if (e.code === 'Space' && focusedItem) {
153
+ onListItemClick();
154
+ } };
155
+ window.addEventListener('keyup', selectByKey);
156
+ return () => window.removeEventListener('keyup', selectByKey);
157
+ }, [focusedItem, selectedItems]);
158
+ useEffect(() => {
159
+ let arr = [];
160
+ if (customListViewItem) {
161
+ for (let key of Object.keys(customListViewItem.props)) {
162
+ arr.push(customListViewItem.props[key]);
163
+ }
164
+ }
165
+ else {
166
+ arr.push(displayField);
167
+ }
168
+ if (customItemDetails) {
169
+ for (let key of Object.keys(customItemDetails.props)) {
170
+ arr.push(customItemDetails.props[key]);
171
+ }
172
+ }
173
+ else if (currentDetailsFields) {
174
+ for (let field of currentDetailsFields) {
175
+ arr.push(field);
176
+ }
177
+ }
178
+ setUsedFields(arr);
179
+ }, [customItemDetails, customListViewItem, displayField, detailsFields]);
180
+ useEffect(() => {
181
+ if (hasItemDetails) {
182
+ let keys = Object.keys(dataSource[0]);
183
+ if (!displayField) {
184
+ let detailsKeys = keys.filter(key => key !== displayField);
185
+ if (!detailsFields) {
186
+ setCurrentDetailsField(detailsKeys);
187
+ }
188
+ else {
189
+ setCurrentDetailsField(detailsFields);
190
+ }
191
+ }
192
+ else {
193
+ if (!detailsFields) {
194
+ setCurrentDetailsField(keys);
195
+ }
196
+ else {
197
+ setCurrentDetailsField(detailsFields);
198
+ }
199
+ }
200
+ }
201
+ }, [hasItemDetails, detailsFields, displayField]);
202
+ useEffect(() => {
203
+ if (searchable) {
204
+ if (searchValue.length > 0) {
205
+ filter(dataSource, searchValue);
206
+ }
207
+ else {
208
+ setCurrentDataSource(dataSource);
209
+ }
210
+ }
211
+ else {
212
+ setCurrentDataSource(dataSource);
213
+ }
214
+ }, [dataSource, searchValue, searchable]);
215
+ const showHideDetails = () => {
216
+ if (detailRequestItems.length > 0) {
217
+ setDetailRequestItems([]);
218
+ }
219
+ else {
220
+ setDetailRequestItems(currentDataSource);
221
+ }
222
+ };
223
+ const filter = (dataSource, value) => {
224
+ let arr = [];
225
+ for (let data of dataSource) {
226
+ if (typeof data === 'string') {
227
+ setCurrentDataSource(dataSource.filter(item => item.toString().toLowerCase().includes(value.toLowerCase())));
228
+ }
229
+ else {
230
+ for (let key of usedFields) {
231
+ if (data[key].toString().toLowerCase().includes(value.toLowerCase())) {
232
+ if (!arr.includes(data)) {
233
+ arr.push(data);
234
+ }
235
+ }
236
+ }
237
+ ;
238
+ setCurrentDataSource(arr);
239
+ }
240
+ }
241
+ };
242
+ const onListItemClick = () => {
243
+ if (multipleSelect) {
244
+ if (!hasItem(selectedItems, focusedItem)) {
245
+ setSelectedItems(prev => [...prev, focusedItem]);
246
+ }
247
+ else {
248
+ (setSelectedItems(selectedItems.filter(item => JSON.stringify(item) !== JSON.stringify(focusedItem))));
249
+ }
250
+ }
251
+ else {
252
+ setSelectedItems([]);
253
+ setSelectedItems(prev => [...prev, focusedItem]);
254
+ }
255
+ };
256
+ const onCheckClick = () => { if (hasItem(selectedItems, focusedItem)) {
257
+ setSelectedItems(selectedItems.filter(item => JSON.stringify(item) !== JSON.stringify(focusedItem)));
258
+ } };
259
+ const detailsToggle = (e) => {
260
+ if (detailRequestItems.includes(focusedItem)) {
261
+ setDetailRequestItems(detailRequestItems.filter(item => item !== focusedItem));
262
+ }
263
+ else {
264
+ setDetailRequestItems(prev => [...prev, focusedItem]);
265
+ }
266
+ };
267
+ const obj = (data, type) => {
268
+ let object = {};
269
+ switch (type) {
270
+ case 'item':
271
+ for (let key of Object.keys(customListViewItem?.props)) {
272
+ object[key] = data[customListViewItem?.props[key]];
273
+ }
274
+ break;
275
+ case 'details':
276
+ for (let key of Object.keys(customItemDetails?.props)) {
277
+ object[key] = data[customItemDetails?.props[key]];
278
+ }
279
+ break;
280
+ }
281
+ return object;
282
+ };
283
+ const hasItem = (arr, el) => {
284
+ let bool = false;
285
+ for (let item of arr) {
286
+ if (typeof item === 'string') {
287
+ if (item === el) {
288
+ bool = true;
289
+ break;
290
+ }
291
+ else {
292
+ bool = false;
293
+ }
294
+ }
295
+ else {
296
+ if (JSON.stringify(item) == JSON.stringify(el)) {
297
+ bool = true;
298
+ break;
299
+ }
300
+ else {
301
+ bool = false;
302
+ }
303
+ }
304
+ }
305
+ return bool;
306
+ };
307
+ const selectDeselectAll = () => { if (selectedItems.length > 0) {
308
+ setSelectedItems([]);
309
+ }
310
+ else {
311
+ setSelectedItems(currentDataSource);
312
+ } };
313
+ const renderedList = () => {
314
+ return (currentDataSource?.map((d, index) => (_jsxs(StyledListViewWrapper, { "$fontSize": fontSize, children: [_jsxs(StyledListItemContainer, { "$isFocused": focusedItem === d, "$isSelected": hasItem(selectedItems, d), "$fontSize": fontSize, tabIndex: 0, "$index": index, onFocus: () => setFocusedItem(d), children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'center', width: '100%' }, onClick: onListItemClick, children: [multipleSelect && _jsx(StyledLsitItemCheck, { checked: hasItem(selectedItems, d), onChange: onCheckClick, tabIndex: -1, type: "checkbox" }), !customListViewItem ? _jsx(StyledListItem, { "$color": color, children: displayField ? d[displayField] : d }) : React.cloneElement(customListViewItem, obj(d, 'item'))] }), hasItemDetails && _jsx(StyledDetailsToggleButton, { "$isSelected": hasItem(selectedItems, d), onClick: (e) => detailsToggle(e), children: detailRequestItems.includes(d) ? _jsx(IconUp, {}) : _jsx(IconDown, {}) })] }), detailRequestItems.includes(d) && _jsxs(StyledListViewItemDetails, { children: [" ", !customItemDetails ? currentDetailsFields.map((detail, index) => (_jsxs("div", { children: [detail, ": ", d[detail]] }, index))) : React.cloneElement(customItemDetails, obj(d, 'details')), " "] })] }, index))));
315
+ };
316
+ const renderedHeader = () => {
317
+ return (_jsxs(StyledListViewSearchContainer, { "$color": color, children: [multipleSelect && _jsx(StyledSelectOptionCheckBox, { "$color": color, "$fontsize": fontSize, type: 'checkbox', checked: selectedItems.length > 0, onChange: selectDeselectAll }), hasItemDetails && _jsx(StyledShowHideDetailsButton, { "$color": color, onClick: showHideDetails, children: detailRequestItems.length > 0 ? _jsx(IconInsertBelow, {}) : _jsx(IconInsertAbove, {}) }), searchable && _jsx(StyledListViewSearchInput, { "$color": color, value: searchValue, onChange: (e) => setSearchValue(e.target.value), placeholder: 'search' }), searchable && _jsx(StyledListViewSearchIcon, { onClick: () => searchValue.length > 0 && setSearchValue(''), "$isSearch": searchValue.length > 0, "$color": color, children: searchValue.length > 0 ? _jsx(IconCloseCircle, {}) : _jsx(IconSearch, {}) })] }));
318
+ };
319
+ return (_jsx("div", { style: elementStyle, children: _jsxs(StyledContainer, { "$maxHight": maxHeight, "$color": color, children: [" ", (searchable || multipleSelect) && renderedHeader(), " ", _jsx("ul", { children: renderedList() }), " ", multipleSelect && footer && _jsxs(StyledListViewFooter, { "$color": color, children: ["Selected items: ", selectedItems.length, " | Visible items: ", currentDataSource.length] })] }) }));
320
+ };
321
+ export default TMListView;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface ITMModal {
3
+ children?: React.ReactNode;
4
+ width?: string;
5
+ height?: string;
6
+ toolbar?: any;
7
+ title?: string;
8
+ fontSize?: string;
9
+ isModal?: boolean;
10
+ resizable?: boolean;
11
+ onClose?: () => void;
12
+ }
13
+ declare const TMModal: React.FC<ITMModal>;
14
+ export default TMModal;
@@ -0,0 +1,48 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Popup } from 'devextreme-react';
3
+ import { useState } from 'react';
4
+ import styled from 'styled-components';
5
+ import TMLayoutContainer, { TMCard, TMLayoutItem } from './TMLayout';
6
+ import { FontSize, TMColors } from '../../utils/theme';
7
+ const StyledModal = styled.div `
8
+ width: ${props => props.$width};
9
+ height: ${props => props.$height};
10
+ position: ${props => props.$isModal ? 'relative' : 'fixed'};
11
+ background-color: white;
12
+ box-shadow: 2px 2px 10px #939393;
13
+ border-radius: 5px;
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: flex-start;
17
+ justify-content: flex-start;
18
+ font-size: ${props => props.$fontSize};
19
+ overflow: hidden;
20
+ min-height: 33px;
21
+ min-width: 250px;
22
+ max-width: 95%;
23
+ max-height: 95%;
24
+ z-index: 2000000000;
25
+ `;
26
+ const StyledModalToolbar = styled.div `
27
+ width: 100%;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: flex-start;
31
+ padding: 5px;
32
+ flex-direction: row;
33
+ background-color: ${TMColors.toolbar_background};
34
+ border-bottom: 1px solid gray;
35
+ `;
36
+ const StyledModalContext = styled.div `
37
+ width: 100%;
38
+ overflow: auto;
39
+ height: 100%;
40
+ `;
41
+ const TMModal = ({ resizable = true, isModal = true, title = '', toolbar, onClose, children, width = '100%', height = '100%', fontSize = FontSize.defaultFontSize }) => {
42
+ const [showPopup, setShowPopup] = useState(true);
43
+ return (_jsx(_Fragment, { children: isModal ?
44
+ _jsx(Popup, { showCloseButton: true, animation: undefined, maxHeight: '95%', maxWidth: '95%', resizeEnabled: resizable, width: width, height: height, title: title, visible: showPopup, onHidden: () => { setShowPopup(false); onClose && onClose(); }, children: _jsxs(TMLayoutContainer, { children: [toolbar && _jsx(TMLayoutItem, { height: '40px', children: _jsx(StyledModalToolbar, { children: toolbar }) }), _jsx(TMLayoutItem, { height: 'calc(100% - 50px)', children: _jsx(TMCard, { showBorder: false, padding: false, scrollY: true, children: children }) })] }) })
45
+ :
46
+ _jsxs(StyledModal, { "$isModal": isModal, className: 'temp-modal', "$fontSize": fontSize, "$width": width, "$height": height, children: [toolbar ? _jsx(StyledModalToolbar, { children: toolbar }) : _jsx(_Fragment, {}), _jsx(StyledModalContext, { children: children })] }) }));
47
+ };
48
+ export default TMModal;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export declare enum ButtonNames {
3
+ YES = "Yes",
4
+ NO = "No",
5
+ OK = "OK",
6
+ CANCEL = "Cancel"
7
+ }
8
+ interface ITMPopup {
9
+ title?: string;
10
+ resizable?: boolean;
11
+ }
12
+ interface ITMMessageBox extends ITMPopup {
13
+ buttons?: ButtonNames[];
14
+ message?: string | React.ReactNode;
15
+ onButtonClick?: (e: ButtonNames) => void;
16
+ }
17
+ interface ITMExceptionBox extends ITMPopup {
18
+ exception?: any;
19
+ }
20
+ declare class TMExceptionBoxManager {
21
+ static show({ title, exception }: ITMExceptionBox): void;
22
+ }
23
+ declare class TMMessageBoxManager {
24
+ static show({ title, buttons, onButtonClick, message }: ITMMessageBox): void;
25
+ }
26
+ export { TMExceptionBoxManager, TMMessageBoxManager };
@@ -0,0 +1,136 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React, { useEffect, useRef, useState } from 'react';
3
+ import TMButton from './TMButton';
4
+ import { SDKUI_Localizator, calcResponsiveSizes } from '../../helper';
5
+ import styled from 'styled-components';
6
+ import toppy from '../../assets/Toppy-generico.png';
7
+ import { TMColors } from '../../utils/theme';
8
+ import ShowAlert from './TMAlert';
9
+ import { IconCopy } from '../../helper';
10
+ import ReactDOM from 'react-dom/client';
11
+ import { SDK_Globals } from '@topconsultnpm/sdk-ts-beta';
12
+ import TMLayoutContainer, { TMCard, TMLayoutItem } from './TMLayout';
13
+ import { Popup } from 'devextreme-react';
14
+ import TMTabGroup, { TMTab } from './TMTab';
15
+ let TOOLBAR_HEIGHT = 38;
16
+ export var ButtonNames;
17
+ (function (ButtonNames) {
18
+ ButtonNames["YES"] = "Yes";
19
+ ButtonNames["NO"] = "No";
20
+ ButtonNames["OK"] = "OK";
21
+ ButtonNames["CANCEL"] = "Cancel";
22
+ })(ButtonNames || (ButtonNames = {}));
23
+ const StyledExeptionToolbar = styled.div `
24
+ display: flex;
25
+ flex-direction: row;
26
+ justify-content: center;
27
+ align-items: center;
28
+ gap: 5px;
29
+ padding: 5px;
30
+ user-select: none;
31
+ border-top: 1px solid #f3f3f3;
32
+ /* background-color: ${TMColors.primary_container}; */
33
+ background-color: white;
34
+ `;
35
+ const StyledMessageToolbar = styled.div `
36
+ position: relative;
37
+ display: flex;
38
+ flex-direction: row;
39
+ justify-content: flex-end;
40
+ align-items: center;
41
+ gap: 5px;
42
+ padding: 5px;
43
+ user-select: none;
44
+ border-top: 1px solid #f3f3f3;
45
+ background-color: #ffffff;
46
+ z-index: 100;
47
+ `;
48
+ const TabContextContainer = styled.div `
49
+ padding: 10px;
50
+ height: 100%;
51
+ width: 100%;
52
+ border-radius: 5px;
53
+ overflow: auto;
54
+ user-select: none;
55
+ position: relative;
56
+ `;
57
+ const StyledAppVersionText = styled.p `
58
+ width: '200px';
59
+ display: 'flex';
60
+ flex-direction: row;
61
+ justify-content: space-between;
62
+ align-items: center;
63
+ color: ${props => props.$color};
64
+ `;
65
+ const StyledCopyInclipBoardButtonContainer = styled.div `
66
+ position: absolute;
67
+ bottom: 10px;
68
+ right: 10px;
69
+ `;
70
+ const Message = ({ msg }) => {
71
+ let wrapper = document.createElement('div');
72
+ wrapper.innerHTML = msg;
73
+ const containerRef = useRef(null);
74
+ useEffect(() => {
75
+ containerRef.current?.appendChild(wrapper);
76
+ }, []);
77
+ return (_jsx("div", { ref: containerRef }));
78
+ };
79
+ const TMMessageBox = ({ resizable = false, onButtonClick, title = 'TopMedia', message = '', buttons }) => {
80
+ const [isVisible, setIsVisible] = useState(true);
81
+ const [btns, setBtns] = useState(buttons || []);
82
+ const [currentWidth, setCurrentWidth] = useState(window.innerWidth);
83
+ useEffect(() => { window.addEventListener('resize', () => setCurrentWidth(window.innerWidth)); return () => window.removeEventListener('resize', () => setCurrentWidth(window.innerWidth)); });
84
+ useEffect(() => {
85
+ let arr = [];
86
+ if (buttons) {
87
+ for (let button of buttons) {
88
+ arr.push(button);
89
+ }
90
+ setBtns(arr);
91
+ }
92
+ }, [buttons]);
93
+ const MessageToolbar = () => {
94
+ return (_jsxs(StyledMessageToolbar, { children: [(btns.includes(ButtonNames.OK) || btns.includes(ButtonNames.YES)) && _jsx(TMButton, { fontSize: '1.1rem', color: 'primaryOutline', btnStyle: 'text', onClick: () => { onButtonClick && btns.includes(ButtonNames.YES) ? onButtonClick(ButtonNames.YES) : onButtonClick && onButtonClick(ButtonNames.OK); setIsVisible(false); }, caption: btns.includes(ButtonNames.YES) ? SDKUI_Localizator.Yes : 'OK', showTooltip: false }), btns.includes(ButtonNames.NO) && _jsx(TMButton, { fontSize: '1.1rem', btnStyle: 'text', onClick: () => { onButtonClick && onButtonClick(ButtonNames.NO); setIsVisible(false); }, caption: SDKUI_Localizator.No, showTooltip: false, color: 'error' }), btns.includes(ButtonNames.CANCEL) && _jsx(TMButton, { fontSize: '1.1rem', btnStyle: 'text', onClick: () => { onButtonClick && onButtonClick(ButtonNames.CANCEL); setIsVisible(false); }, caption: SDKUI_Localizator.Cancel, showTooltip: false, color: 'error' })] }));
95
+ };
96
+ return (_jsx(Popup, { resizeEnabled: resizable, visible: isVisible, showCloseButton: true, width: calcResponsiveSizes(currentWidth, '400px', '300px', '250px'), height: 'fit-content', title: title, onHidden: () => { setIsVisible(false); }, children: _jsxs(TMLayoutContainer, { children: [_jsx(TMLayoutItem, { height: 'calc(100% - 40px)', children: _jsx(TMCard, { showBorder: false, scrollY: true, children: _jsxs(TMLayoutContainer, { direction: 'horizontal', alignItems: 'center', justifyContent: 'center', gap: 10, children: [_jsx(TMLayoutItem, { width: 'fit-content', children: _jsx("img", { style: { transform: 'translateY(8px)' }, src: toppy, width: 60, height: 75, alt: "" }) }), _jsx(TMLayoutItem, { height: 'fit-content', children: _jsxs("div", { children: [" ", typeof message === 'string' ? _jsx(Message, { msg: message }) : message, " "] }) })] }) }) }), _jsx(TMLayoutItem, { height: '50px', children: _jsx(MessageToolbar, {}) })] }) }));
97
+ };
98
+ const TMExceptionBox = ({ resizable = false, exception, title = `${SDK_Globals.appModule} v. ${SDK_Globals.appVersion}` }) => {
99
+ const [isVisible, setIsVisible] = useState(true);
100
+ let d = new Date();
101
+ let dateString = d.getDate() + '/' + d.getMonth() + 1 + '/' + d.getFullYear();
102
+ let timeString = d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds() + ':' + d.getMilliseconds();
103
+ let message = exception.isApiException ? exception.response.title : exception.message;
104
+ const [currentWidth, setCurrentWidth] = useState(window.innerWidth);
105
+ useEffect(() => { window.addEventListener('resize', () => setCurrentWidth(window.innerWidth)); return () => window.removeEventListener('resize', () => setCurrentWidth(window.innerWidth)); });
106
+ const getFullMessage = () => {
107
+ let fullMessage = '';
108
+ fullMessage += `${d}\n${'-' + JSON.stringify(exception)}\n` + `-${SDK_Globals.appModule}: ${SDK_Globals.appVersion}\n` + `-SDKUI: ${SDK_Globals.sdkuiVersion}\n` + `-SDK: ${SDK_Globals.sdkVersion}\n`;
109
+ return fullMessage.replaceAll('{', '').replaceAll('}', '').replaceAll(`":`, '=').replaceAll(`,"`, '\n').replaceAll(`"`, '');
110
+ };
111
+ const copyToClipBoard = (e) => {
112
+ navigator.clipboard.writeText(e);
113
+ ShowAlert({ mode: 'success', duration: 3000, message: SDKUI_Localizator.CopiedSuccessfully, title: 'Success' });
114
+ };
115
+ const ExceptionToolbar = () => {
116
+ return (_jsxs(StyledExeptionToolbar, { children: [_jsx(TMButton, { color: 'primaryOutline', btnStyle: 'text', onClick: () => copyToClipBoard(getFullMessage()), caption: SDKUI_Localizator.CopyToClipboard, showTooltip: false }), _jsx(TMButton, { btnStyle: 'text', onClick: () => setIsVisible(false), caption: SDKUI_Localizator.Close, showTooltip: false, color: 'error' })] }));
117
+ };
118
+ return (_jsx(Popup, { resizeEnabled: resizable, visible: isVisible, onHidden: () => setIsVisible(false), showCloseButton: true, width: calcResponsiveSizes(currentWidth, '600px', '400px', '350px'), height: '350px', title: title, children: _jsxs(TMLayoutContainer, { children: [_jsx(TMLayoutItem, { height: 'calc(100% - 50px)', children: _jsxs(TMTabGroup, { validationItems: [], children: [_jsxs(TMTab, { label: SDKUI_Localizator.Error, children: [_jsxs(TabContextContainer, { style: { height: 'calc(100% - 68px )', paddingRight: '40px' }, children: [_jsxs("p", { children: [" ", _jsx("span", { style: { color: TMColors.primary }, children: "Messaggio: " }), " ", message ? message : 'Message not found'] }), _jsx("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'flex-start', alignItems: 'flex-start', gap: '5px', marginTop: '5px' }, children: _jsxs("div", { children: [_jsxs("span", { style: { color: TMColors.primary }, children: [SDKUI_Localizator.Date, " ", SDKUI_Localizator.Time.toLowerCase(), ": "] }), d.toString()] }) })] }), _jsxs(StyledCopyInclipBoardButtonContainer, { children: [" ", _jsx(TMButton, { color: 'primaryOutline', onClick: () => copyToClipBoard(`Date: ${dateString}\nTime: ${timeString}\nMessage: ${message}`), btnStyle: 'toolbar', icon: _jsx(IconCopy, { fontSize: 18 }), caption: SDKUI_Localizator.CopyToClipboard }), " "] })] }), _jsxs(TMTab, { label: SDKUI_Localizator.CompleteError, children: [_jsx(TabContextContainer, { style: { paddingRight: '40px' }, children: JSON.stringify(exception).replaceAll('{', '').replaceAll('}', '').split(`,"`).map((t, index) => (_jsxs("div", { style: { padding: '5px', borderBottom: '1px solid rgb(180,180,180)' }, children: ["\u261B", ' ' + (t.toLowerCase().includes('detail') ? (t.replaceAll(`"`, '').replaceAll(`:`, ': ').replaceAll(String.fromCharCode(92), '')) : (t.replaceAll(`"`, '').replaceAll(`:`, ': ')))] }, index))) }), _jsxs(StyledCopyInclipBoardButtonContainer, { children: [" ", _jsx(TMButton, { color: 'primaryOutline', onClick: () => copyToClipBoard(JSON.stringify(exception).replaceAll('{', '').replaceAll('}', '').replaceAll(',', '\n')), btnStyle: 'toolbar', icon: _jsx(IconCopy, { fontSize: 18 }), caption: SDKUI_Localizator.CopyToClipboard }), " "] })] }), _jsxs(TMTab, { label: SDKUI_Localizator.Details, children: [_jsxs(TabContextContainer, { children: [_jsxs(StyledAppVersionText, { "$color": TMColors.primary, children: [SDK_Globals.appModule, " ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDK_Globals.appVersion })] }), _jsxs(StyledAppVersionText, { "$color": TMColors.tertiary, children: ["SDKUI: ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDK_Globals.sdkuiVersion })] }), _jsxs(StyledAppVersionText, { "$color": TMColors.success, children: ["SDK : ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDK_Globals.sdkVersion })] })] }), _jsxs(StyledCopyInclipBoardButtonContainer, { children: [" ", _jsx(TMButton, { color: 'primaryOutline', onClick: () => copyToClipBoard(`-${SDK_Globals.appModule}: ${SDK_Globals.appVersion}\n` + `-SDKUI: ${SDK_Globals.sdkuiVersion}\n` + `-SDK: ${SDK_Globals.sdkVersion}\n`), btnStyle: 'toolbar', icon: _jsx(IconCopy, { fontSize: 18 }), caption: SDKUI_Localizator.CopyToClipboard }), " "] })] })] }) }), _jsx(TMLayoutItem, { height: '40px', children: _jsx(ExceptionToolbar, {}) })] }) }));
119
+ };
120
+ class TMExceptionBoxManager {
121
+ static show({ title, exception }) {
122
+ let container = document.createElement('div');
123
+ document.body.appendChild(container);
124
+ const root = ReactDOM.createRoot(container);
125
+ root.render(React.createElement(TMExceptionBox, { title: title, exception: exception }));
126
+ }
127
+ }
128
+ class TMMessageBoxManager {
129
+ static show({ title, buttons, onButtonClick, message }) {
130
+ let container = document.createElement('div');
131
+ document.body.appendChild(container);
132
+ const root = ReactDOM.createRoot(container);
133
+ root.render(React.createElement(TMMessageBox, { title: title, buttons: buttons, onButtonClick: onButtonClick, message: message }));
134
+ }
135
+ }
136
+ export { TMExceptionBoxManager, TMMessageBoxManager };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ITMEditorBase } from './TMEditorBase';
3
+ import { Colors } from '../../utils/theme';
4
+ interface ITMProgressBar extends ITMEditorBase {
5
+ startValue?: number;
6
+ currentValue?: number;
7
+ color?: Colors;
8
+ onAbort?: () => void;
9
+ }
10
+ declare const TMProgressBar: React.FC<ITMProgressBar>;
11
+ export default TMProgressBar;
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { getColor } from '../../helper';
4
+ import { Colors } from '../../utils/theme';
5
+ const StyledWrapper = styled.div `
6
+ display: flex;
7
+ flex-direction: row;
8
+ justify-content: flex-end;
9
+ align-items: center;
10
+ width: fit-content;
11
+ `;
12
+ const StyledProgressBarContainer = styled.div `
13
+ width: 200px;
14
+ background-color: white;
15
+ height: 12px;
16
+ border-radius: 5px;
17
+ border: 1px solid ${props => getColor(props.color)};
18
+ overflow: hidden;
19
+ `;
20
+ const StyledProgressBar = styled.div.withConfig({ shouldForwardProp: prop => !['currentValue'].includes(prop) }) `
21
+ width: ${props => `${200 * props.currentValue}px`};
22
+ background: rgb(2,0,36);
23
+ background: linear-gradient(270deg, ${Colors.primary} 0%, ${Colors.primary} 35%, ${Colors.secondary});
24
+ height: 12px;
25
+ border-radius: 5px;
26
+ /* border: 1px solid ${props => getColor(props.color)}; */
27
+ `;
28
+ const TMProgressBar = ({ currentValue = 0, color = 'primary', elementStyle, onAbort }) => {
29
+ // console.log(currentValue)
30
+ return (_jsx("div", { style: elementStyle, children: _jsx(StyledWrapper, { children: _jsx(StyledProgressBarContainer, { color: color, children: _jsx(StyledProgressBar, { color: color, currentValue: currentValue }) }) }) }));
31
+ };
32
+ export default TMProgressBar;
@@ -0,0 +1,13 @@
1
+ interface ITMSpinner {
2
+ backgroundColor?: string;
3
+ fontSize?: string;
4
+ description?: string;
5
+ width?: string;
6
+ }
7
+ declare const Spinner: ({ backgroundColor, description, fontSize, width }: ITMSpinner) => import("react/jsx-runtime").JSX.Element;
8
+ declare class TMSpinner {
9
+ static show({ description, backgroundColor, fontSize }?: ITMSpinner): void;
10
+ static hide(): void;
11
+ }
12
+ export { Spinner };
13
+ export default TMSpinner;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import ReactDOM from 'react-dom/client';
4
+ import { FontSize } from '../../utils/theme';
5
+ import logoSix from '../../assets/6.png';
6
+ const Spinner = ({ backgroundColor = 'transparent', description = '', fontSize = FontSize.defaultFontSize, width = 'fit-content' }) => {
7
+ return (_jsx("div", { className: 'tm-spinner-container', style: { backgroundColor: backgroundColor }, children: _jsxs("div", { className: 'tm-spinner-wrapper', style: { width: width }, children: [_jsxs("div", { style: { position: 'relative', width: '80px', height: '80px' }, children: [_jsx("img", { style: { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)' }, src: logoSix, width: 25, height: 38, alt: "" }), _jsxs("div", { className: "tm-spinner", style: { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)' }, children: [_jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {})] })] }), _jsx("div", { style: { fontSize: fontSize, textAlign: 'center' }, className: 'tm-spinner-description', children: description })] }) }));
8
+ };
9
+ class TMSpinner {
10
+ static show({ description, backgroundColor, fontSize } = { backgroundColor: 'transparent', description: '', fontSize: FontSize.defaultFontSize }) {
11
+ let container = document.createElement('div');
12
+ container.setAttribute("id", 'tm-spinner-temporary-container');
13
+ document.body.appendChild(container);
14
+ const root = ReactDOM.createRoot(container);
15
+ root.render(_jsx(React.StrictMode, { children: _jsx(Spinner, { backgroundColor: backgroundColor, fontSize: fontSize, description: description }) }));
16
+ }
17
+ static hide() {
18
+ let container = document.getElementById('tm-spinner-temporary-container');
19
+ container?.remove();
20
+ }
21
+ }
22
+ export { Spinner };
23
+ export default TMSpinner;
@@ -0,0 +1,20 @@
1
+ import { ValidationItem } from '@topconsultnpm/sdk-ts-beta';
2
+ export interface ITMTabProps {
3
+ title: string;
4
+ propsToBeValidated?: string[];
5
+ }
6
+ export declare const TMTab: ({ label, propsToBeValidated, children }: {
7
+ label?: string;
8
+ propsToBeValidated?: string[] | undefined;
9
+ children?: any;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const TMTabItemBadge: ({ vil }: {
12
+ vil: ValidationItem[];
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ declare const TMTabGroup: ({ children, fontSize, validationItems, onTabIndexChanged }: {
15
+ onTabIndexChanged?: (e: number) => void;
16
+ children: any;
17
+ fontSize?: string;
18
+ validationItems?: ValidationItem[];
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ export default TMTabGroup;