@topconsultnpm/sdkui-react 6.17.0-test10

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 (698) hide show
  1. package/lib/assets/IconsS4t/add.svg +12 -0
  2. package/lib/assets/IconsS4t/aggiorna.svg +18 -0
  3. package/lib/assets/IconsS4t/bookmark.svg +42 -0
  4. package/lib/assets/IconsS4t/cancella.svg +15 -0
  5. package/lib/assets/IconsS4t/check-box.svg +19 -0
  6. package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -0
  7. package/lib/assets/IconsS4t/down.svg +28 -0
  8. package/lib/assets/IconsS4t/edit-file.svg +19 -0
  9. package/lib/assets/IconsS4t/edita.svg +32 -0
  10. package/lib/assets/IconsS4t/firma.svg +19 -0
  11. package/lib/assets/IconsS4t/icona_download.svg +16 -0
  12. package/lib/assets/IconsS4t/info.svg +51 -0
  13. package/lib/assets/IconsS4t/left.svg +20 -0
  14. package/lib/assets/IconsS4t/line.svg +40 -0
  15. package/lib/assets/IconsS4t/more.svg +19 -0
  16. package/lib/assets/IconsS4t/new-signature.svg +1 -0
  17. package/lib/assets/IconsS4t/plus.svg +23 -0
  18. package/lib/assets/IconsS4t/printer.svg +49 -0
  19. package/lib/assets/IconsS4t/radio-on-button.svg +25 -0
  20. package/lib/assets/IconsS4t/rectangle.svg +41 -0
  21. package/lib/assets/IconsS4t/redo.svg +19 -0
  22. package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -0
  23. package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -0
  24. package/lib/assets/IconsS4t/right.svg +22 -0
  25. package/lib/assets/IconsS4t/searchbar.svg +21 -0
  26. package/lib/assets/IconsS4t/text-box.svg +36 -0
  27. package/lib/assets/IconsS4t/tick.svg +8 -0
  28. package/lib/assets/IconsS4t/trash-white.svg +11 -0
  29. package/lib/assets/IconsS4t/trash.svg +1 -0
  30. package/lib/assets/IconsS4t/undo.svg +19 -0
  31. package/lib/assets/IconsS4t/up.svg +32 -0
  32. package/lib/assets/IconsS4t/video-streaming.svg +2 -0
  33. package/lib/assets/IconsS4t/zoom-in.svg +58 -0
  34. package/lib/assets/IconsS4t/zoom-out.svg +56 -0
  35. package/lib/assets/ImageLibrary/arrow_001.png +0 -0
  36. package/lib/assets/ImageLibrary/arrow_002.png +0 -0
  37. package/lib/assets/ImageLibrary/arrow_003.png +0 -0
  38. package/lib/assets/ImageLibrary/arrow_004.png +0 -0
  39. package/lib/assets/ImageLibrary/arrow_005.png +0 -0
  40. package/lib/assets/ImageLibrary/arrow_006.png +0 -0
  41. package/lib/assets/ImageLibrary/arrow_007.png +0 -0
  42. package/lib/assets/ImageLibrary/arrow_008.png +0 -0
  43. package/lib/assets/ImageLibrary/arrow_009.png +0 -0
  44. package/lib/assets/ImageLibrary/arrow_010.png +0 -0
  45. package/lib/assets/ImageLibrary/arrow_011.png +0 -0
  46. package/lib/assets/ImageLibrary/arrow_012.png +0 -0
  47. package/lib/assets/ImageLibrary/book_001.png +0 -0
  48. package/lib/assets/ImageLibrary/book_002.png +0 -0
  49. package/lib/assets/ImageLibrary/book_003.png +0 -0
  50. package/lib/assets/ImageLibrary/book_004.png +0 -0
  51. package/lib/assets/ImageLibrary/book_005.png +0 -0
  52. package/lib/assets/ImageLibrary/book_006.png +0 -0
  53. package/lib/assets/ImageLibrary/book_007.png +0 -0
  54. package/lib/assets/ImageLibrary/clock_001.png +0 -0
  55. package/lib/assets/ImageLibrary/clock_002.png +0 -0
  56. package/lib/assets/ImageLibrary/clock_003.png +0 -0
  57. package/lib/assets/ImageLibrary/cube_001.png +0 -0
  58. package/lib/assets/ImageLibrary/cube_002.png +0 -0
  59. package/lib/assets/ImageLibrary/cube_003.png +0 -0
  60. package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
  61. package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
  62. package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
  63. package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
  64. package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
  65. package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
  66. package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
  67. package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
  68. package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
  69. package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
  70. package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
  71. package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
  72. package/lib/assets/ImageLibrary/fld_001.png +0 -0
  73. package/lib/assets/ImageLibrary/fld_002.png +0 -0
  74. package/lib/assets/ImageLibrary/fld_003.png +0 -0
  75. package/lib/assets/ImageLibrary/fld_004.png +0 -0
  76. package/lib/assets/ImageLibrary/fld_005.png +0 -0
  77. package/lib/assets/ImageLibrary/fld_006.png +0 -0
  78. package/lib/assets/ImageLibrary/fld_007.png +0 -0
  79. package/lib/assets/ImageLibrary/fld_008.png +0 -0
  80. package/lib/assets/ImageLibrary/fld_009.png +0 -0
  81. package/lib/assets/ImageLibrary/fld_010.png +0 -0
  82. package/lib/assets/ImageLibrary/fld_011.png +0 -0
  83. package/lib/assets/ImageLibrary/fld_012.png +0 -0
  84. package/lib/assets/ImageLibrary/fld_013.png +0 -0
  85. package/lib/assets/ImageLibrary/fld_014.png +0 -0
  86. package/lib/assets/ImageLibrary/fld_015.png +0 -0
  87. package/lib/assets/ImageLibrary/fld_016.png +0 -0
  88. package/lib/assets/ImageLibrary/fld_017.png +0 -0
  89. package/lib/assets/ImageLibrary/fld_018.png +0 -0
  90. package/lib/assets/ImageLibrary/fld_019.png +0 -0
  91. package/lib/assets/ImageLibrary/fld_020.png +0 -0
  92. package/lib/assets/ImageLibrary/fld_021.png +0 -0
  93. package/lib/assets/ImageLibrary/fld_022.png +0 -0
  94. package/lib/assets/ImageLibrary/fld_023.png +0 -0
  95. package/lib/assets/ImageLibrary/fld_024.png +0 -0
  96. package/lib/assets/ImageLibrary/fld_025.png +0 -0
  97. package/lib/assets/ImageLibrary/fld_026.png +0 -0
  98. package/lib/assets/ImageLibrary/fld_027.png +0 -0
  99. package/lib/assets/ImageLibrary/fld_028.png +0 -0
  100. package/lib/assets/ImageLibrary/fld_029.png +0 -0
  101. package/lib/assets/ImageLibrary/fld_030.png +0 -0
  102. package/lib/assets/ImageLibrary/fld_031.png +0 -0
  103. package/lib/assets/ImageLibrary/fld_032.png +0 -0
  104. package/lib/assets/ImageLibrary/fld_033.png +0 -0
  105. package/lib/assets/ImageLibrary/gen_001.png +0 -0
  106. package/lib/assets/ImageLibrary/gen_002.png +0 -0
  107. package/lib/assets/ImageLibrary/gen_003.png +0 -0
  108. package/lib/assets/ImageLibrary/gen_004.png +0 -0
  109. package/lib/assets/ImageLibrary/gen_005.png +0 -0
  110. package/lib/assets/ImageLibrary/gen_006.png +0 -0
  111. package/lib/assets/ImageLibrary/gen_007.png +0 -0
  112. package/lib/assets/ImageLibrary/gen_008.png +0 -0
  113. package/lib/assets/ImageLibrary/gen_009.png +0 -0
  114. package/lib/assets/ImageLibrary/gen_010.png +0 -0
  115. package/lib/assets/ImageLibrary/gen_011.png +0 -0
  116. package/lib/assets/ImageLibrary/gen_012.png +0 -0
  117. package/lib/assets/ImageLibrary/gen_013.png +0 -0
  118. package/lib/assets/ImageLibrary/gen_014.png +0 -0
  119. package/lib/assets/ImageLibrary/gen_015.png +0 -0
  120. package/lib/assets/ImageLibrary/gen_016.png +0 -0
  121. package/lib/assets/ImageLibrary/gen_017.png +0 -0
  122. package/lib/assets/ImageLibrary/gen_018.png +0 -0
  123. package/lib/assets/ImageLibrary/gen_019.png +0 -0
  124. package/lib/assets/ImageLibrary/gen_020.png +0 -0
  125. package/lib/assets/ImageLibrary/gen_021.png +0 -0
  126. package/lib/assets/ImageLibrary/gen_022.png +0 -0
  127. package/lib/assets/ImageLibrary/gen_023.png +0 -0
  128. package/lib/assets/ImageLibrary/gen_024.png +0 -0
  129. package/lib/assets/ImageLibrary/gen_025.png +0 -0
  130. package/lib/assets/ImageLibrary/gen_026.png +0 -0
  131. package/lib/assets/ImageLibrary/gen_027.png +0 -0
  132. package/lib/assets/ImageLibrary/gen_028.png +0 -0
  133. package/lib/assets/ImageLibrary/gen_029.png +0 -0
  134. package/lib/assets/ImageLibrary/gen_030.png +0 -0
  135. package/lib/assets/ImageLibrary/gen_031.png +0 -0
  136. package/lib/assets/ImageLibrary/gen_032.png +0 -0
  137. package/lib/assets/ImageLibrary/gen_033.png +0 -0
  138. package/lib/assets/ImageLibrary/gen_034.png +0 -0
  139. package/lib/assets/ImageLibrary/gen_035.png +0 -0
  140. package/lib/assets/ImageLibrary/gen_036.png +0 -0
  141. package/lib/assets/ImageLibrary/gen_037.png +0 -0
  142. package/lib/assets/ImageLibrary/gen_038.png +0 -0
  143. package/lib/assets/ImageLibrary/gen_039.png +0 -0
  144. package/lib/assets/ImageLibrary/gen_040.png +0 -0
  145. package/lib/assets/ImageLibrary/gen_041.png +0 -0
  146. package/lib/assets/ImageLibrary/gen_042.png +0 -0
  147. package/lib/assets/ImageLibrary/gen_043.png +0 -0
  148. package/lib/assets/ImageLibrary/gen_044.png +0 -0
  149. package/lib/assets/ImageLibrary/gen_045.png +0 -0
  150. package/lib/assets/ImageLibrary/gen_046.png +0 -0
  151. package/lib/assets/ImageLibrary/gen_047.png +0 -0
  152. package/lib/assets/ImageLibrary/gen_048.png +0 -0
  153. package/lib/assets/ImageLibrary/gen_049.png +0 -0
  154. package/lib/assets/ImageLibrary/gen_050.png +0 -0
  155. package/lib/assets/ImageLibrary/gen_051.png +0 -0
  156. package/lib/assets/ImageLibrary/gen_052.png +0 -0
  157. package/lib/assets/ImageLibrary/hand_001.png +0 -0
  158. package/lib/assets/ImageLibrary/hand_002.png +0 -0
  159. package/lib/assets/ImageLibrary/hand_003.png +0 -0
  160. package/lib/assets/ImageLibrary/hand_004.png +0 -0
  161. package/lib/assets/ImageLibrary/hand_005.png +0 -0
  162. package/lib/assets/ImageLibrary/hand_006.png +0 -0
  163. package/lib/assets/ImageLibrary/law_001.png +0 -0
  164. package/lib/assets/ImageLibrary/law_002.png +0 -0
  165. package/lib/assets/ImageLibrary/law_003.png +0 -0
  166. package/lib/assets/ImageLibrary/lock_001.png +0 -0
  167. package/lib/assets/ImageLibrary/lock_002.png +0 -0
  168. package/lib/assets/ImageLibrary/lock_003.png +0 -0
  169. package/lib/assets/ImageLibrary/mail_001.png +0 -0
  170. package/lib/assets/ImageLibrary/mail_002.png +0 -0
  171. package/lib/assets/ImageLibrary/mail_003.png +0 -0
  172. package/lib/assets/ImageLibrary/mail_004.png +0 -0
  173. package/lib/assets/ImageLibrary/mail_005.png +0 -0
  174. package/lib/assets/ImageLibrary/mail_006.png +0 -0
  175. package/lib/assets/ImageLibrary/mail_007.png +0 -0
  176. package/lib/assets/ImageLibrary/mail_008.png +0 -0
  177. package/lib/assets/ImageLibrary/mail_009.png +0 -0
  178. package/lib/assets/ImageLibrary/mail_010.png +0 -0
  179. package/lib/assets/ImageLibrary/mail_011.png +0 -0
  180. package/lib/assets/ImageLibrary/mail_012.png +0 -0
  181. package/lib/assets/ImageLibrary/mail_013.png +0 -0
  182. package/lib/assets/ImageLibrary/mail_014.png +0 -0
  183. package/lib/assets/ImageLibrary/mail_015.png +0 -0
  184. package/lib/assets/ImageLibrary/net_001.png +0 -0
  185. package/lib/assets/ImageLibrary/net_002.png +0 -0
  186. package/lib/assets/ImageLibrary/net_003.png +0 -0
  187. package/lib/assets/ImageLibrary/net_004.png +0 -0
  188. package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
  189. package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
  190. package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
  191. package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
  192. package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
  193. package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
  194. package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
  195. package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
  196. package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
  197. package/lib/assets/ImageLibrary/note_001.png +0 -0
  198. package/lib/assets/ImageLibrary/note_002.png +0 -0
  199. package/lib/assets/ImageLibrary/note_003.png +0 -0
  200. package/lib/assets/ImageLibrary/note_004.png +0 -0
  201. package/lib/assets/ImageLibrary/note_005.png +0 -0
  202. package/lib/assets/ImageLibrary/note_006.png +0 -0
  203. package/lib/assets/ImageLibrary/note_007.png +0 -0
  204. package/lib/assets/ImageLibrary/note_008.png +0 -0
  205. package/lib/assets/ImageLibrary/note_009.png +0 -0
  206. package/lib/assets/ImageLibrary/note_010.png +0 -0
  207. package/lib/assets/ImageLibrary/note_011.png +0 -0
  208. package/lib/assets/ImageLibrary/note_012.png +0 -0
  209. package/lib/assets/ImageLibrary/note_013.png +0 -0
  210. package/lib/assets/ImageLibrary/note_014.png +0 -0
  211. package/lib/assets/ImageLibrary/note_015.png +0 -0
  212. package/lib/assets/ImageLibrary/note_016.png +0 -0
  213. package/lib/assets/ImageLibrary/run_001.png +0 -0
  214. package/lib/assets/ImageLibrary/run_002.png +0 -0
  215. package/lib/assets/ImageLibrary/run_003.png +0 -0
  216. package/lib/assets/ImageLibrary/sem_001.png +0 -0
  217. package/lib/assets/ImageLibrary/sem_002.png +0 -0
  218. package/lib/assets/ImageLibrary/sem_003.png +0 -0
  219. package/lib/assets/ImageLibrary/sem_004.png +0 -0
  220. package/lib/assets/ImageLibrary/sem_005.png +0 -0
  221. package/lib/assets/ImageLibrary/star_001.png +0 -0
  222. package/lib/assets/ImageLibrary/star_002.png +0 -0
  223. package/lib/assets/ImageLibrary/star_003.png +0 -0
  224. package/lib/assets/ImageLibrary/star_004.png +0 -0
  225. package/lib/assets/ImageLibrary/star_005.png +0 -0
  226. package/lib/assets/ImageLibrary/star_006.png +0 -0
  227. package/lib/assets/ImageLibrary/state_001.png +0 -0
  228. package/lib/assets/ImageLibrary/state_002.png +0 -0
  229. package/lib/assets/ImageLibrary/state_003.png +0 -0
  230. package/lib/assets/ImageLibrary/state_004.png +0 -0
  231. package/lib/assets/ImageLibrary/state_005.png +0 -0
  232. package/lib/assets/ImageLibrary/study_001.png +0 -0
  233. package/lib/assets/ImageLibrary/study_002.png +0 -0
  234. package/lib/assets/ImageLibrary/user_001.png +0 -0
  235. package/lib/assets/ImageLibrary/user_002.png +0 -0
  236. package/lib/assets/ImageLibrary/user_003.png +0 -0
  237. package/lib/assets/ImageLibrary/user_004.png +0 -0
  238. package/lib/assets/ImageLibrary/user_005.png +0 -0
  239. package/lib/assets/ImageLibrary/user_006.png +0 -0
  240. package/lib/assets/ImageLibrary/user_007.png +0 -0
  241. package/lib/assets/ImageLibrary/user_008.png +0 -0
  242. package/lib/assets/ImageLibrary/user_009.png +0 -0
  243. package/lib/assets/ImageLibrary/user_010.png +0 -0
  244. package/lib/assets/ImageLibrary/user_011.png +0 -0
  245. package/lib/assets/ImageLibrary/user_012.png +0 -0
  246. package/lib/assets/ImageLibrary/user_013.png +0 -0
  247. package/lib/assets/ImageLibrary/user_014.png +0 -0
  248. package/lib/assets/ImageLibrary/user_015.png +0 -0
  249. package/lib/assets/ImageLibrary/user_016.png +0 -0
  250. package/lib/assets/ImageLibrary/user_017.png +0 -0
  251. package/lib/assets/ImageLibrary/user_018.png +0 -0
  252. package/lib/assets/ImageLibrary/user_019.png +0 -0
  253. package/lib/assets/ImageLibrary/user_020.png +0 -0
  254. package/lib/assets/ImageLibrary/user_021.png +0 -0
  255. package/lib/assets/ImageLibrary/user_022.png +0 -0
  256. package/lib/assets/ImageLibrary/user_023.png +0 -0
  257. package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
  258. package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
  259. package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
  260. package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
  261. package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
  262. package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
  263. package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
  264. package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
  265. package/lib/assets/Toppy-generico.png +0 -0
  266. package/lib/assets/france.svg +1 -0
  267. package/lib/assets/german.svg +1 -0
  268. package/lib/assets/icomoon.eot +0 -0
  269. package/lib/assets/icomoon.svg +97 -0
  270. package/lib/assets/icomoon.ttf +0 -0
  271. package/lib/assets/icomoon.woff +0 -0
  272. package/lib/assets/italy.svg +16 -0
  273. package/lib/assets/loading.png +0 -0
  274. package/lib/assets/login-bg.png +0 -0
  275. package/lib/assets/multipleSelectionManager.jpg +0 -0
  276. package/lib/assets/portugal.svg +1 -0
  277. package/lib/assets/six.png +0 -0
  278. package/lib/assets/six.svg +4 -0
  279. package/lib/assets/spain.svg +1 -0
  280. package/lib/assets/thumbnails/dicom.png +0 -0
  281. package/lib/assets/thumbnails/doc.png +0 -0
  282. package/lib/assets/thumbnails/docx.png +0 -0
  283. package/lib/assets/thumbnails/dwg.png +0 -0
  284. package/lib/assets/thumbnails/email.png +0 -0
  285. package/lib/assets/thumbnails/exe.png +0 -0
  286. package/lib/assets/thumbnails/folder.png +0 -0
  287. package/lib/assets/thumbnails/html.png +0 -0
  288. package/lib/assets/thumbnails/image.png +0 -0
  289. package/lib/assets/thumbnails/index.d.ts +19 -0
  290. package/lib/assets/thumbnails/index.js +19 -0
  291. package/lib/assets/thumbnails/index.ts +39 -0
  292. package/lib/assets/thumbnails/mp4.png +0 -0
  293. package/lib/assets/thumbnails/other.png +0 -0
  294. package/lib/assets/thumbnails/p7m.png +0 -0
  295. package/lib/assets/thumbnails/pdf.png +0 -0
  296. package/lib/assets/thumbnails/ppt.png +0 -0
  297. package/lib/assets/thumbnails/slddrw.png +0 -0
  298. package/lib/assets/thumbnails/txt.png +0 -0
  299. package/lib/assets/thumbnails/xls.png +0 -0
  300. package/lib/assets/thumbnails/xml.png +0 -0
  301. package/lib/assets/thumbnails/zip.png +0 -0
  302. package/lib/assets/topmedia-six.svg +66 -0
  303. package/lib/assets/topmeida-six-bianco.svg +66 -0
  304. package/lib/assets/united-kingdom.svg +1 -0
  305. package/lib/components/base/Styled.d.ts +63 -0
  306. package/lib/components/base/Styled.js +337 -0
  307. package/lib/components/base/TMAccordion.d.ts +12 -0
  308. package/lib/components/base/TMAccordion.js +62 -0
  309. package/lib/components/base/TMAlert.d.ts +73 -0
  310. package/lib/components/base/TMAlert.js +77 -0
  311. package/lib/components/base/TMAreaManager.d.ts +25 -0
  312. package/lib/components/base/TMAreaManager.js +733 -0
  313. package/lib/components/base/TMButton.d.ts +21 -0
  314. package/lib/components/base/TMButton.js +174 -0
  315. package/lib/components/base/TMClosableList.d.ts +10 -0
  316. package/lib/components/base/TMClosableList.js +70 -0
  317. package/lib/components/base/TMConfirm.d.ts +13 -0
  318. package/lib/components/base/TMConfirm.js +119 -0
  319. package/lib/components/base/TMContextMenu.d.ts +25 -0
  320. package/lib/components/base/TMContextMenu.js +109 -0
  321. package/lib/components/base/TMContextMenuOLD.d.ts +26 -0
  322. package/lib/components/base/TMContextMenuOLD.js +56 -0
  323. package/lib/components/base/TMCounterBar.d.ts +10 -0
  324. package/lib/components/base/TMCounterBar.js +43 -0
  325. package/lib/components/base/TMCounterContainer.d.ts +23 -0
  326. package/lib/components/base/TMCounterContainer.js +58 -0
  327. package/lib/components/base/TMCustomButton.d.ts +11 -0
  328. package/lib/components/base/TMCustomButton.js +116 -0
  329. package/lib/components/base/TMDataGrid.d.ts +56 -0
  330. package/lib/components/base/TMDataGrid.js +237 -0
  331. package/lib/components/base/TMDataGridExportForm.d.ts +15 -0
  332. package/lib/components/base/TMDataGridExportForm.js +215 -0
  333. package/lib/components/base/TMDeviceProvider.d.ts +15 -0
  334. package/lib/components/base/TMDeviceProvider.js +41 -0
  335. package/lib/components/base/TMDropDownMenu.d.ts +23 -0
  336. package/lib/components/base/TMDropDownMenu.js +45 -0
  337. package/lib/components/base/TMEditorBase.d.ts +39 -0
  338. package/lib/components/base/TMEditorBase.js +1 -0
  339. package/lib/components/base/TMFileManager.d.ts +45 -0
  340. package/lib/components/base/TMFileManager.js +233 -0
  341. package/lib/components/base/TMFileManagerDataGridView.d.ts +16 -0
  342. package/lib/components/base/TMFileManagerDataGridView.js +101 -0
  343. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +18 -0
  344. package/lib/components/base/TMFileManagerThumbnailItems.js +148 -0
  345. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +19 -0
  346. package/lib/components/base/TMFileManagerThumbnailsView.js +46 -0
  347. package/lib/components/base/TMFileManagerUtils.d.ts +78 -0
  348. package/lib/components/base/TMFileManagerUtils.js +207 -0
  349. package/lib/components/base/TMFloatingToolbar.d.ts +9 -0
  350. package/lib/components/base/TMFloatingToolbar.js +101 -0
  351. package/lib/components/base/TMLayout.d.ts +55 -0
  352. package/lib/components/base/TMLayout.js +201 -0
  353. package/lib/components/base/TMList.d.ts +9 -0
  354. package/lib/components/base/TMList.js +54 -0
  355. package/lib/components/base/TMListView.d.ts +42 -0
  356. package/lib/components/base/TMListView.js +387 -0
  357. package/lib/components/base/TMModal.d.ts +16 -0
  358. package/lib/components/base/TMModal.js +70 -0
  359. package/lib/components/base/TMPanel.d.ts +32 -0
  360. package/lib/components/base/TMPanel.js +181 -0
  361. package/lib/components/base/TMPopUp.d.ts +33 -0
  362. package/lib/components/base/TMPopUp.js +267 -0
  363. package/lib/components/base/TMProgressBar.d.ts +11 -0
  364. package/lib/components/base/TMProgressBar.js +32 -0
  365. package/lib/components/base/TMResizableMenu.d.ts +20 -0
  366. package/lib/components/base/TMResizableMenu.js +98 -0
  367. package/lib/components/base/TMRightSidebar.d.ts +19 -0
  368. package/lib/components/base/TMRightSidebar.js +80 -0
  369. package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +8 -0
  370. package/lib/components/base/TMShowAllOrMaxItemsButton.js +20 -0
  371. package/lib/components/base/TMSpinner.d.ts +14 -0
  372. package/lib/components/base/TMSpinner.js +160 -0
  373. package/lib/components/base/TMTab.d.ts +20 -0
  374. package/lib/components/base/TMTab.js +42 -0
  375. package/lib/components/base/TMToggleButton.d.ts +10 -0
  376. package/lib/components/base/TMToggleButton.js +58 -0
  377. package/lib/components/base/TMToolbarCard.d.ts +19 -0
  378. package/lib/components/base/TMToolbarCard.js +51 -0
  379. package/lib/components/base/TMTooltip.d.ts +14 -0
  380. package/lib/components/base/TMTooltip.js +20 -0
  381. package/lib/components/base/TMTreeView.d.ts +32 -0
  382. package/lib/components/base/TMTreeView.js +356 -0
  383. package/lib/components/base/TMUserAvatar.d.ts +8 -0
  384. package/lib/components/base/TMUserAvatar.js +34 -0
  385. package/lib/components/base/TMVilViewer.d.ts +5 -0
  386. package/lib/components/base/TMVilViewer.js +22 -0
  387. package/lib/components/base/TMWaitPanel.d.ts +32 -0
  388. package/lib/components/base/TMWaitPanel.js +44 -0
  389. package/lib/components/choosers/TMCultureIDPicker.d.ts +9 -0
  390. package/lib/components/choosers/TMCultureIDPicker.js +72 -0
  391. package/lib/components/choosers/TMDataListItemChooser.d.ts +17 -0
  392. package/lib/components/choosers/TMDataListItemChooser.js +49 -0
  393. package/lib/components/choosers/TMDataListItemPicker.d.ts +9 -0
  394. package/lib/components/choosers/TMDataListItemPicker.js +96 -0
  395. package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
  396. package/lib/components/choosers/TMDcmtTypeChooser.js +61 -0
  397. package/lib/components/choosers/TMDiskChooser.d.ts +10 -0
  398. package/lib/components/choosers/TMDiskChooser.js +41 -0
  399. package/lib/components/choosers/TMDistinctValues.d.ts +21 -0
  400. package/lib/components/choosers/TMDistinctValues.js +140 -0
  401. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +40 -0
  402. package/lib/components/choosers/TMDynDataListItemChooser.js +159 -0
  403. package/lib/components/choosers/TMGroupChooser.d.ts +7 -0
  404. package/lib/components/choosers/TMGroupChooser.js +37 -0
  405. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +4 -0
  406. package/lib/components/choosers/TMInvoiceRetrieveFormats.js +22 -0
  407. package/lib/components/choosers/TMMetadataChooser.d.ts +54 -0
  408. package/lib/components/choosers/TMMetadataChooser.js +155 -0
  409. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +4 -0
  410. package/lib/components/choosers/TMOrderRetrieveFormats.js +22 -0
  411. package/lib/components/choosers/TMPathChooser.d.ts +12 -0
  412. package/lib/components/choosers/TMPathChooser.js +147 -0
  413. package/lib/components/choosers/TMRelationChooser.d.ts +31 -0
  414. package/lib/components/choosers/TMRelationChooser.js +94 -0
  415. package/lib/components/choosers/TMUserChooser.d.ts +40 -0
  416. package/lib/components/choosers/TMUserChooser.js +141 -0
  417. package/lib/components/editors/TMCheckBox.d.ts +9 -0
  418. package/lib/components/editors/TMCheckBox.js +90 -0
  419. package/lib/components/editors/TMDateBox.d.ts +17 -0
  420. package/lib/components/editors/TMDateBox.js +75 -0
  421. package/lib/components/editors/TMDropDown.d.ts +10 -0
  422. package/lib/components/editors/TMDropDown.js +62 -0
  423. package/lib/components/editors/TMEditorStyled.d.ts +41 -0
  424. package/lib/components/editors/TMEditorStyled.js +90 -0
  425. package/lib/components/editors/TMFormulaEditor.d.ts +49 -0
  426. package/lib/components/editors/TMFormulaEditor.js +727 -0
  427. package/lib/components/editors/TMHtmlContentDisplay.d.ts +7 -0
  428. package/lib/components/editors/TMHtmlContentDisplay.js +78 -0
  429. package/lib/components/editors/TMHtmlEditor.d.ts +38 -0
  430. package/lib/components/editors/TMHtmlEditor.js +203 -0
  431. package/lib/components/editors/TMLocalizedTextBox.d.ts +19 -0
  432. package/lib/components/editors/TMLocalizedTextBox.js +125 -0
  433. package/lib/components/editors/TMMetadataEditor.d.ts +29 -0
  434. package/lib/components/editors/TMMetadataEditor.js +140 -0
  435. package/lib/components/editors/TMMetadataValues.d.ts +46 -0
  436. package/lib/components/editors/TMMetadataValues.js +530 -0
  437. package/lib/components/editors/TMRadioButton.d.ts +10 -0
  438. package/lib/components/editors/TMRadioButton.js +57 -0
  439. package/lib/components/editors/TMSummary.d.ts +20 -0
  440. package/lib/components/editors/TMSummary.js +92 -0
  441. package/lib/components/editors/TMTextArea.d.ts +17 -0
  442. package/lib/components/editors/TMTextArea.js +155 -0
  443. package/lib/components/editors/TMTextBox.d.ts +20 -0
  444. package/lib/components/editors/TMTextBox.js +249 -0
  445. package/lib/components/editors/TMTextExpression.d.ts +25 -0
  446. package/lib/components/editors/TMTextExpression.js +174 -0
  447. package/lib/components/editors/TMTreeDropDown.d.ts +18 -0
  448. package/lib/components/editors/TMTreeDropDown.js +66 -0
  449. package/lib/components/features/archive/TMArchive.d.ts +29 -0
  450. package/lib/components/features/archive/TMArchive.js +193 -0
  451. package/lib/components/features/assistant/ToppyHelpCenter.d.ts +12 -0
  452. package/lib/components/features/assistant/ToppyHelpCenter.js +173 -0
  453. package/lib/components/features/blog/TMBlogCommentForm.d.ts +17 -0
  454. package/lib/components/features/blog/TMBlogCommentForm.js +333 -0
  455. package/lib/components/features/documents/TMBatchUpdateForm.d.ts +17 -0
  456. package/lib/components/features/documents/TMBatchUpdateForm.js +159 -0
  457. package/lib/components/features/documents/TMDcmtBlog.d.ts +23 -0
  458. package/lib/components/features/documents/TMDcmtBlog.js +65 -0
  459. package/lib/components/features/documents/TMDcmtForm.d.ts +64 -0
  460. package/lib/components/features/documents/TMDcmtForm.js +1498 -0
  461. package/lib/components/features/documents/TMDcmtIcon.d.ts +18 -0
  462. package/lib/components/features/documents/TMDcmtIcon.js +93 -0
  463. package/lib/components/features/documents/TMDcmtPreview.d.ts +31 -0
  464. package/lib/components/features/documents/TMDcmtPreview.js +446 -0
  465. package/lib/components/features/documents/TMDcmtTasks.d.ts +13 -0
  466. package/lib/components/features/documents/TMDcmtTasks.js +24 -0
  467. package/lib/components/features/documents/TMDragDropOverlay.d.ts +6 -0
  468. package/lib/components/features/documents/TMDragDropOverlay.js +97 -0
  469. package/lib/components/features/documents/TMFileUploader.d.ts +14 -0
  470. package/lib/components/features/documents/TMFileUploader.js +115 -0
  471. package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +26 -0
  472. package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
  473. package/lib/components/features/documents/TMRelationViewer.d.ts +121 -0
  474. package/lib/components/features/documents/TMRelationViewer.js +753 -0
  475. package/lib/components/features/search/TMSavedQueryForm.d.ts +9 -0
  476. package/lib/components/features/search/TMSavedQueryForm.js +41 -0
  477. package/lib/components/features/search/TMSavedQuerySelector.d.ts +16 -0
  478. package/lib/components/features/search/TMSavedQuerySelector.js +226 -0
  479. package/lib/components/features/search/TMSearch.d.ts +40 -0
  480. package/lib/components/features/search/TMSearch.js +253 -0
  481. package/lib/components/features/search/TMSearchQueryEditor.d.ts +15 -0
  482. package/lib/components/features/search/TMSearchQueryEditor.js +367 -0
  483. package/lib/components/features/search/TMSearchQueryPanel.d.ts +29 -0
  484. package/lib/components/features/search/TMSearchQueryPanel.js +438 -0
  485. package/lib/components/features/search/TMSearchResult.d.ts +53 -0
  486. package/lib/components/features/search/TMSearchResult.js +1092 -0
  487. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +16 -0
  488. package/lib/components/features/search/TMSearchResultFloatingActionButton.js +50 -0
  489. package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +11 -0
  490. package/lib/components/features/search/TMSearchResultsMenuItems.js +725 -0
  491. package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
  492. package/lib/components/features/search/TMTreeSelector.js +270 -0
  493. package/lib/components/features/tasks/TMTaskForm.d.ts +38 -0
  494. package/lib/components/features/tasks/TMTaskForm.js +392 -0
  495. package/lib/components/features/tasks/TMTasksAgenda.d.ts +17 -0
  496. package/lib/components/features/tasks/TMTasksAgenda.js +107 -0
  497. package/lib/components/features/tasks/TMTasksCalendar.d.ts +21 -0
  498. package/lib/components/features/tasks/TMTasksCalendar.js +240 -0
  499. package/lib/components/features/tasks/TMTasksHeader.d.ts +14 -0
  500. package/lib/components/features/tasks/TMTasksHeader.js +37 -0
  501. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +20 -0
  502. package/lib/components/features/tasks/TMTasksPanelContent.js +65 -0
  503. package/lib/components/features/tasks/TMTasksUtils.d.ts +133 -0
  504. package/lib/components/features/tasks/TMTasksUtils.js +649 -0
  505. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +39 -0
  506. package/lib/components/features/tasks/TMTasksUtilsView.js +140 -0
  507. package/lib/components/features/tasks/TMTasksView.d.ts +40 -0
  508. package/lib/components/features/tasks/TMTasksView.js +566 -0
  509. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +39 -0
  510. package/lib/components/features/wg/TMWGsCopyMoveForm.js +439 -0
  511. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +42 -0
  512. package/lib/components/features/workflow/TMWorkflowPopup.js +286 -0
  513. package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +14 -0
  514. package/lib/components/features/workflow/diagram/ConnectionComponent.js +90 -0
  515. package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +9 -0
  516. package/lib/components/features/workflow/diagram/ConnectionForm.js +73 -0
  517. package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +18 -0
  518. package/lib/components/features/workflow/diagram/DiagramItemComponent.js +264 -0
  519. package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +10 -0
  520. package/lib/components/features/workflow/diagram/DiagramItemForm.js +686 -0
  521. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +12 -0
  522. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +97 -0
  523. package/lib/components/features/workflow/diagram/RecipientList.d.ts +27 -0
  524. package/lib/components/features/workflow/diagram/RecipientList.js +204 -0
  525. package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
  526. package/lib/components/features/workflow/diagram/WFDiagram.js +1680 -0
  527. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +18 -0
  528. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +97 -0
  529. package/lib/components/features/workflow/diagram/interfaces.d.ts +126 -0
  530. package/lib/components/features/workflow/diagram/interfaces.js +26 -0
  531. package/lib/components/features/workflow/diagram/metadataParser.d.ts +14 -0
  532. package/lib/components/features/workflow/diagram/metadataParser.js +54 -0
  533. package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +3 -0
  534. package/lib/components/features/workflow/diagram/queryDescriptorParser.js +188 -0
  535. package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +122 -0
  536. package/lib/components/features/workflow/diagram/workflowHelpers.js +488 -0
  537. package/lib/components/features/workflow/diagram/xmlParser.d.ts +10 -0
  538. package/lib/components/features/workflow/diagram/xmlParser.js +490 -0
  539. package/lib/components/filesystem/ProgressBar.d.ts +7 -0
  540. package/lib/components/filesystem/ProgressBar.js +25 -0
  541. package/lib/components/forms/Login/ChangePassword.d.ts +9 -0
  542. package/lib/components/forms/Login/ChangePassword.js +22 -0
  543. package/lib/components/forms/Login/ChangePasswordInputs.d.ts +14 -0
  544. package/lib/components/forms/Login/ChangePasswordInputs.js +80 -0
  545. package/lib/components/forms/Login/Chooser.d.ts +28 -0
  546. package/lib/components/forms/Login/Chooser.js +145 -0
  547. package/lib/components/forms/Login/LOGINLocalizator.d.ts +29 -0
  548. package/lib/components/forms/Login/LOGINLocalizator.js +247 -0
  549. package/lib/components/forms/Login/LoginValidatorService.d.ts +50 -0
  550. package/lib/components/forms/Login/LoginValidatorService.js +162 -0
  551. package/lib/components/forms/Login/Menu.d.ts +10 -0
  552. package/lib/components/forms/Login/Menu.js +48 -0
  553. package/lib/components/forms/Login/OTPReader.d.ts +14 -0
  554. package/lib/components/forms/Login/OTPReader.js +90 -0
  555. package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +7 -0
  556. package/lib/components/forms/Login/PasswordStrengthChecker.js +45 -0
  557. package/lib/components/forms/Login/RapidAccessLogin.d.ts +25 -0
  558. package/lib/components/forms/Login/RapidAccessLogin.js +310 -0
  559. package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +11 -0
  560. package/lib/components/forms/Login/RecoverPasswordFlow.js +111 -0
  561. package/lib/components/forms/Login/SelectBox.d.ts +23 -0
  562. package/lib/components/forms/Login/SelectBox.js +96 -0
  563. package/lib/components/forms/Login/StepIndicator.d.ts +7 -0
  564. package/lib/components/forms/Login/StepIndicator.js +19 -0
  565. package/lib/components/forms/Login/TMLoginForm.d.ts +44 -0
  566. package/lib/components/forms/Login/TMLoginForm.js +737 -0
  567. package/lib/components/forms/Login/TextBox.d.ts +27 -0
  568. package/lib/components/forms/Login/TextBox.js +111 -0
  569. package/lib/components/forms/TMApplyForm.d.ts +4 -0
  570. package/lib/components/forms/TMApplyForm.js +105 -0
  571. package/lib/components/forms/TMChooserForm.d.ts +3 -0
  572. package/lib/components/forms/TMChooserForm.js +94 -0
  573. package/lib/components/forms/TMResultDialog.d.ts +20 -0
  574. package/lib/components/forms/TMResultDialog.js +44 -0
  575. package/lib/components/forms/TMSaveForm.d.ts +31 -0
  576. package/lib/components/forms/TMSaveForm.js +176 -0
  577. package/lib/components/grids/TMBlogAttachments.d.ts +42 -0
  578. package/lib/components/grids/TMBlogAttachments.js +43 -0
  579. package/lib/components/grids/TMBlogHeader.d.ts +31 -0
  580. package/lib/components/grids/TMBlogHeader.js +41 -0
  581. package/lib/components/grids/TMBlogsPost.d.ts +89 -0
  582. package/lib/components/grids/TMBlogsPost.js +644 -0
  583. package/lib/components/grids/TMBlogsPostUtils.d.ts +113 -0
  584. package/lib/components/grids/TMBlogsPostUtils.js +250 -0
  585. package/lib/components/grids/TMRecentsManager.d.ts +13 -0
  586. package/lib/components/grids/TMRecentsManager.js +155 -0
  587. package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
  588. package/lib/components/grids/TMValidationItemsList.js +82 -0
  589. package/lib/components/index.d.ts +115 -0
  590. package/lib/components/index.js +137 -0
  591. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +10 -0
  592. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +215 -0
  593. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +39 -0
  594. package/lib/components/layout/panelManager/TMPanelManagerContext.js +257 -0
  595. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
  596. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +83 -0
  597. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +21 -0
  598. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +64 -0
  599. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +8 -0
  600. package/lib/components/layout/panelManager/TMPanelWrapper.js +59 -0
  601. package/lib/components/layout/panelManager/types.d.ts +42 -0
  602. package/lib/components/layout/panelManager/types.js +1 -0
  603. package/lib/components/layout/panelManager/utils.d.ts +21 -0
  604. package/lib/components/layout/panelManager/utils.js +208 -0
  605. package/lib/components/pages/TMPage.d.ts +38 -0
  606. package/lib/components/pages/TMPage.js +220 -0
  607. package/lib/components/query/TMQueryEditor.d.ts +58 -0
  608. package/lib/components/query/TMQueryEditor.js +1001 -0
  609. package/lib/components/query/TMQuerySummary.d.ts +16 -0
  610. package/lib/components/query/TMQuerySummary.js +35 -0
  611. package/lib/components/settings/SettingsAppearance.d.ts +14 -0
  612. package/lib/components/settings/SettingsAppearance.js +73 -0
  613. package/lib/components/sidebar/TMAboutApp.d.ts +8 -0
  614. package/lib/components/sidebar/TMAboutApp.js +14 -0
  615. package/lib/components/sidebar/TMCommandsPanel.d.ts +16 -0
  616. package/lib/components/sidebar/TMCommandsPanel.js +27 -0
  617. package/lib/components/sidebar/TMHeader.d.ts +43 -0
  618. package/lib/components/sidebar/TMHeader.js +616 -0
  619. package/lib/components/sidebar/TMSidebar.d.ts +21 -0
  620. package/lib/components/sidebar/TMSidebar.js +61 -0
  621. package/lib/components/sidebar/TMSidebarItem.d.ts +15 -0
  622. package/lib/components/sidebar/TMSidebarItem.js +39 -0
  623. package/lib/components/viewers/TMDataListItemViewer.d.ts +10 -0
  624. package/lib/components/viewers/TMDataListItemViewer.js +80 -0
  625. package/lib/components/viewers/TMMidViewer.d.ts +36 -0
  626. package/lib/components/viewers/TMMidViewer.js +128 -0
  627. package/lib/components/viewers/TMTidViewer.d.ts +256 -0
  628. package/lib/components/viewers/TMTidViewer.js +343 -0
  629. package/lib/components/wizard/TMStepIndicator.d.ts +11 -0
  630. package/lib/components/wizard/TMStepIndicator.js +165 -0
  631. package/lib/components/wizard/TMWizard.d.ts +18 -0
  632. package/lib/components/wizard/TMWizard.js +93 -0
  633. package/lib/css/tm-sdkui.css +1 -0
  634. package/lib/helper/DeepCompareHelper.d.ts +7 -0
  635. package/lib/helper/DeepCompareHelper.js +106 -0
  636. package/lib/helper/Enum_Localizator.d.ts +18 -0
  637. package/lib/helper/Enum_Localizator.js +247 -0
  638. package/lib/helper/GlobalStyles.d.ts +2 -0
  639. package/lib/helper/GlobalStyles.js +10 -0
  640. package/lib/helper/Globalization.d.ts +15 -0
  641. package/lib/helper/Globalization.js +110 -0
  642. package/lib/helper/SDKUI_Globals.d.ts +96 -0
  643. package/lib/helper/SDKUI_Globals.js +174 -0
  644. package/lib/helper/SDKUI_Localizator.d.ts +739 -0
  645. package/lib/helper/SDKUI_Localizator.js +7298 -0
  646. package/lib/helper/TMCommandsContextMenu.d.ts +14 -0
  647. package/lib/helper/TMCommandsContextMenu.js +6 -0
  648. package/lib/helper/TMConditionalWrapper.d.ts +8 -0
  649. package/lib/helper/TMConditionalWrapper.js +4 -0
  650. package/lib/helper/TMCustomSearchBar.d.ts +8 -0
  651. package/lib/helper/TMCustomSearchBar.js +54 -0
  652. package/lib/helper/TMIcons.d.ts +274 -0
  653. package/lib/helper/TMIcons.js +673 -0
  654. package/lib/helper/TMImageLibrary.d.ts +4 -0
  655. package/lib/helper/TMImageLibrary.js +466 -0
  656. package/lib/helper/TMToppyMessage.d.ts +7 -0
  657. package/lib/helper/TMToppyMessage.js +42 -0
  658. package/lib/helper/TMUtils.d.ts +26 -0
  659. package/lib/helper/TMUtils.js +212 -0
  660. package/lib/helper/dcmtsHelper.d.ts +8 -0
  661. package/lib/helper/dcmtsHelper.js +53 -0
  662. package/lib/helper/helpers.d.ts +84 -0
  663. package/lib/helper/helpers.js +826 -0
  664. package/lib/helper/index.d.ts +13 -0
  665. package/lib/helper/index.js +13 -0
  666. package/lib/helper/queryHelper.d.ts +19 -0
  667. package/lib/helper/queryHelper.js +336 -0
  668. package/lib/hooks/useDcmtOperations.d.ts +24 -0
  669. package/lib/hooks/useDcmtOperations.js +482 -0
  670. package/lib/hooks/useForm.d.ts +24 -0
  671. package/lib/hooks/useForm.js +157 -0
  672. package/lib/hooks/useInputDialog.d.ts +9 -0
  673. package/lib/hooks/useInputDialog.js +105 -0
  674. package/lib/hooks/useOutsideClick.d.ts +2 -0
  675. package/lib/hooks/useOutsideClick.js +38 -0
  676. package/lib/hooks/usePreventFileDrop.d.ts +3 -0
  677. package/lib/hooks/usePreventFileDrop.js +37 -0
  678. package/lib/hooks/useQueryParametersDialog.d.ts +2 -0
  679. package/lib/hooks/useQueryParametersDialog.js +71 -0
  680. package/lib/hooks/useRelatedDocuments.d.ts +72 -0
  681. package/lib/hooks/useRelatedDocuments.js +664 -0
  682. package/lib/hooks/useResizeObserver.d.ts +4 -0
  683. package/lib/hooks/useResizeObserver.js +22 -0
  684. package/lib/hooks/useWorkflowApprove.d.ts +11 -0
  685. package/lib/hooks/useWorkflowApprove.js +57 -0
  686. package/lib/index.d.ts +12 -0
  687. package/lib/index.js +15 -0
  688. package/lib/services/index.d.ts +1 -0
  689. package/lib/services/index.js +1 -0
  690. package/lib/services/platform_services.d.ts +18 -0
  691. package/lib/services/platform_services.js +492 -0
  692. package/lib/ts/index.d.ts +1 -0
  693. package/lib/ts/index.js +1 -0
  694. package/lib/ts/types.d.ts +310 -0
  695. package/lib/ts/types.js +100 -0
  696. package/lib/utils/theme.d.ts +69 -0
  697. package/lib/utils/theme.js +81 -0
  698. package/package.json +54 -0
@@ -0,0 +1,54 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import styled from 'styled-components';
4
+ import { TMColors } from '../../utils/theme';
5
+ const StyledListItem = styled.li `
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+ justify-content: flex-start;
10
+ gap: 10px;
11
+ position: relative;
12
+ color: ${TMColors.text_normal};
13
+ padding: 4px 5px;
14
+ height: 40px;
15
+ width: 100%;
16
+ font-size: 1rem;
17
+ letter-spacing: 0px;
18
+ background-color: ${({ $isSelected }) => ($isSelected ? '#d0e5fb' : 'transparent')};
19
+
20
+ &:hover {
21
+ background-color: ${TMColors.border_normal};
22
+ cursor: pointer;
23
+ }
24
+ `;
25
+ const StyledListContainer = styled.div `
26
+ height: 100%;
27
+ width: 100%;
28
+ background-color: ${TMColors.default_background};
29
+ padding: 3px;
30
+ border-radius: 2px;
31
+ box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
32
+ `;
33
+ const StyledIconWrapper = styled.span `
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: 24px;
38
+ height: 24px;
39
+ min-width: 24px;
40
+ min-height: 24px;
41
+ `;
42
+ ;
43
+ const TMList = ({ items }) => {
44
+ const [selectedIndex, setSelectedIndex] = useState(0);
45
+ const handleItemClick = (index, onClick) => {
46
+ setSelectedIndex(index); // Update the selected index
47
+ if (onClick)
48
+ onClick(); // Call the item's onClick handler if provided
49
+ };
50
+ return (_jsx(StyledListContainer, { children: items?.map((item, index) => {
51
+ return (_jsxs(StyledListItem, { "$isSelected": selectedIndex === index, onClick: () => handleItemClick(index, item.onClick), children: [_jsx(StyledIconWrapper, { children: item.icon }), _jsx("span", { children: item.text })] }, index));
52
+ }) }));
53
+ };
54
+ export default TMList;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ interface ITMListViewHeader {
3
+ headerIcon?: React.ReactNode;
4
+ headerTitle?: string;
5
+ firstCounter?: React.ReactNode;
6
+ secondCounter?: React.ReactNode;
7
+ titleColor?: string;
8
+ }
9
+ interface ListProps<T> {
10
+ dataSource?: T[];
11
+ selectedItem?: T;
12
+ autoScrollToSelectedItem?: boolean;
13
+ exprKey?: string;
14
+ searchKeys?: string[];
15
+ customColor?: string;
16
+ searchable?: boolean;
17
+ id?: string;
18
+ scroll?: {
19
+ x: number;
20
+ y: number;
21
+ };
22
+ orderBy?: string;
23
+ grouping?: string;
24
+ showId?: boolean;
25
+ showSearch?: boolean;
26
+ header?: React.ReactNode;
27
+ headerBackGroundColor?: string;
28
+ customGroupingHeaders?: Array<React.ReactNode>;
29
+ setShowId?: React.Dispatch<React.SetStateAction<boolean>>;
30
+ setShowSearch?: React.Dispatch<React.SetStateAction<boolean>>;
31
+ onScrollChange?: (e: {
32
+ x: number;
33
+ y: number;
34
+ }) => void;
35
+ onSelectionChanged?: (item: T) => void;
36
+ onItemClick?: (item: T) => void;
37
+ onItemDblClick?: (item: T) => void;
38
+ itemTemplate?: (item: T) => JSX.Element;
39
+ }
40
+ declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
41
+ export default TMListView;
42
+ export declare const CustomListViewHeader: React.FC<ITMListViewHeader>;
@@ -0,0 +1,387 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useMemo, useRef, useState } from 'react';
3
+ import styled from 'styled-components';
4
+ import { ObjectClasses } from '@topconsultnpm/sdk-ts';
5
+ import TMContextMenu, { useTMContextMenu } from './TMContextMenu';
6
+ import { IconApply, IconCloseCircle, IconColumns, IconDown, IconHide, IconShow, IconUp, IconVisible } from '../../helper/TMIcons';
7
+ import { TMSearchBar } from '../sidebar/TMHeader';
8
+ import TMTooltip from './TMTooltip';
9
+ import { getContrastColor, SDKUI_Localizator } from '../../helper';
10
+ import { TMColors } from '../../utils/theme';
11
+ const StyledListItem = styled.div ` width: 100%; height: max-content; border-bottom: 1px solid #e5e5e5; background-color: ${props => props.$isSelected ? props.$color ? `${props.$color}99` : '#00000030' : 'transparent'} ; color: ${props => props.$isSelected ? props.$textColor : '#000000'} ; &:hover{ background-color: ${props => props.$color ? props.$isSelected ? `${props.$color}99` : `${props.$color}40` : props.$isSelected ? '#00000030' : '#00000010'};} `;
12
+ const StyledListViewContainer = styled.div ` position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; `;
13
+ const StyledSearchContainer = styled.div ` width: 100%; height: max-content; padding: 5px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
14
+ const StyledListViewFooter = styled.div ` background-color: ${props => props.$bgColor}; width: 100%; height: 25px; padding: 5px 15px; border-top: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
15
+ const TMListView = ({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping = '', orderBy, id, onScrollChange, scroll, searchKeys = [], searchable = false, itemTemplate, customColor, dataSource = [], exprKey = 'id', onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem = false }) => {
16
+ const listRef = useRef(null);
17
+ const contRef = useRef(null);
18
+ const orderRef = useRef(null);
19
+ const [localShowId, setLocalShowId] = useState(false);
20
+ const [localShowSearch, setLocalShowSearch] = useState(searchable);
21
+ const [searchValue, setSearchValue] = useState('');
22
+ const [currentDataSource, setCurrentDataSource] = useState(dataSource);
23
+ const [keys, setKeys] = useState(searchKeys);
24
+ const [orderedBy, setOrderedBy] = useState(orderBy ?? '');
25
+ const [orderDir, setOrderDir] = useState(true);
26
+ const [isFocused, setIsFocused] = useState(false);
27
+ const [showOrderMenu, setShowOrderMenu] = useState(false);
28
+ const [showOrderOptions, setShowOrderOptions] = useState(false);
29
+ useEffect(() => { setCurrentDataSource(dataSource); }, [dataSource]);
30
+ const openContextMenu = (e) => { setIsFocused(true); };
31
+ let [coords, show] = useTMContextMenu(contRef);
32
+ useEffect(() => { if (orderBy) {
33
+ setOrderedBy(orderBy);
34
+ } }, [orderBy]);
35
+ // is list item selected
36
+ const isSelected = (item) => {
37
+ if (selectedItem) {
38
+ if (item[exprKey] === selectedItem[exprKey]) {
39
+ return true;
40
+ }
41
+ else
42
+ return false;
43
+ }
44
+ else
45
+ return false;
46
+ };
47
+ // order by key
48
+ const orderByKey = (array) => {
49
+ let arr = [...array];
50
+ if (arr.length > 0 && arr[0][orderedBy]) {
51
+ if (typeof arr[0][orderedBy] === 'string') {
52
+ arr.sort((a, b) => { if (a[orderedBy].toLowerCase() < b[orderedBy].toLowerCase()) {
53
+ return -1;
54
+ } if (a[orderedBy].toLowerCase() > b[orderedBy].toLowerCase()) {
55
+ return 1;
56
+ } return 0; });
57
+ }
58
+ else {
59
+ arr.sort((a, b) => { if (a[orderedBy] < b[orderedBy]) {
60
+ return -1;
61
+ } if (a[orderedBy] > b[orderedBy]) {
62
+ return 1;
63
+ } return 0; });
64
+ }
65
+ }
66
+ return orderDir ? arr : arr.reverse();
67
+ };
68
+ // search keys
69
+ useEffect(() => {
70
+ if (currentDataSource && currentDataSource.length > 0) {
71
+ if (searchKeys.length === 0) {
72
+ setKeys(Object.keys(currentDataSource[0]));
73
+ }
74
+ else {
75
+ setKeys(searchKeys);
76
+ }
77
+ }
78
+ }, []);
79
+ // search logic
80
+ useEffect(() => {
81
+ let arr = [];
82
+ if (searchValue.length > 0) {
83
+ for (let data of dataSource) {
84
+ for (let key of keys) {
85
+ if (typeof data[key] === 'string' || typeof data[key] === 'number') {
86
+ if (data[key].toString().toLowerCase().includes(searchValue.toLowerCase())) {
87
+ if (!arr.includes(data)) {
88
+ arr.push(data);
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ if (orderedBy.length === 0) {
95
+ setCurrentDataSource(arr);
96
+ }
97
+ else {
98
+ setCurrentDataSource(orderByKey(arr));
99
+ }
100
+ }
101
+ else {
102
+ if (orderedBy.length === 0) {
103
+ setCurrentDataSource(dataSource);
104
+ }
105
+ else {
106
+ setCurrentDataSource(orderByKey(dataSource));
107
+ }
108
+ }
109
+ }, [searchValue, keys, orderedBy, dataSource]);
110
+ useEffect(() => { if (!localShowSearch) {
111
+ setSearchValue('');
112
+ } }, [localShowSearch]);
113
+ // order logic
114
+ useEffect(() => { if (orderedBy.length > 0) {
115
+ setCurrentDataSource(orderByKey(currentDataSource));
116
+ } }, [orderedBy, orderDir]);
117
+ // change items by arrow keys logic
118
+ useEffect(() => {
119
+ let selectedItemIndex = currentDataSource.indexOf(selectedItem);
120
+ const canNext = selectedItem !== currentDataSource[currentDataSource.length - 1];
121
+ const canPrev = selectedItem !== currentDataSource[0];
122
+ let cont = listRef.current;
123
+ let next = currentDataSource.indexOf(selectedItem) + 1;
124
+ let before = currentDataSource.indexOf(selectedItem) - 1;
125
+ const changeIndex = (e) => {
126
+ if (isFocused) {
127
+ if (e.key === 'ArrowDown') {
128
+ e.preventDefault();
129
+ if (canNext) {
130
+ onSelectionChanged && onSelectionChanged(currentDataSource[selectedItemIndex + 1]);
131
+ if (selectedItem && cont) {
132
+ let diff = cont.scrollTop;
133
+ let xNext = cont.children.item(next);
134
+ if (xNext) {
135
+ if (xNext.getBoundingClientRect().bottom > (cont.getBoundingClientRect().height + cont.getBoundingClientRect().top)) {
136
+ diff += xNext.getBoundingClientRect().bottom - (cont.getBoundingClientRect().height + cont.getBoundingClientRect().top);
137
+ }
138
+ }
139
+ cont.scrollTo(0, diff);
140
+ }
141
+ }
142
+ }
143
+ if (e.key === 'ArrowUp') {
144
+ e.preventDefault();
145
+ if (canPrev) {
146
+ onSelectionChanged && onSelectionChanged(currentDataSource[selectedItemIndex - 1]);
147
+ if (selectedItem && cont) {
148
+ let diff = cont.scrollTop;
149
+ let xBefore = cont.children.item(before);
150
+ if (xBefore) {
151
+ if (xBefore.getBoundingClientRect().top < (cont.getBoundingClientRect().top)) {
152
+ diff -= cont.getBoundingClientRect().top - xBefore.getBoundingClientRect().top;
153
+ }
154
+ }
155
+ cont.scrollTo(0, diff);
156
+ }
157
+ }
158
+ }
159
+ if (e.key === 'ArrowLeft') {
160
+ e.preventDefault();
161
+ if (cont) {
162
+ cont.scrollBy(-20, 0);
163
+ }
164
+ }
165
+ if (e.key === 'ArrowRight') {
166
+ e.preventDefault();
167
+ if (cont) {
168
+ cont.scrollBy(20, 0);
169
+ }
170
+ }
171
+ }
172
+ };
173
+ if (selectedItem) {
174
+ document.addEventListener('keydown', changeIndex);
175
+ }
176
+ return () => { document?.removeEventListener('keydown', changeIndex); };
177
+ }, [selectedItem, isFocused]);
178
+ // deselect an onBlur listview logic
179
+ useEffect(() => {
180
+ const list = listRef.current;
181
+ const deSelectAll = (e) => { if (list && !list.contains(e.target)) {
182
+ setIsFocused(false);
183
+ } };
184
+ window.addEventListener('click', deSelectAll);
185
+ window.addEventListener('contextmenu', deSelectAll);
186
+ return () => { window.removeEventListener('click', deSelectAll); window.removeEventListener('contextmenu', deSelectAll); };
187
+ }, []);
188
+ // scroll logic
189
+ useEffect(() => {
190
+ let cont = listRef.current;
191
+ if (cont && scroll) {
192
+ cont.addEventListener('scroll', () => onScrollChange && onScrollChange({ x: cont?.scrollLeft, y: cont?.scrollTop }));
193
+ }
194
+ return () => cont?.removeEventListener('scroll', () => onScrollChange && onScrollChange({ x: cont?.scrollLeft, y: cont?.scrollTop }));
195
+ }, [listRef.current]);
196
+ useEffect(() => { let cont = listRef.current; if (cont && scroll) {
197
+ cont.scrollTo(scroll.x, scroll.y);
198
+ } ; }, [scroll, listRef.current]);
199
+ // This effect runs when either selectedItem or dataSource changes
200
+ useEffect(() => {
201
+ // Check if the selected item, list reference, dataSource, and autoScrollToSelectedItem are properly set
202
+ if (selectedItem && listRef.current && dataSource.length > 0 && autoScrollToSelectedItem) {
203
+ // Extract the unique key of the selected item using exprKey
204
+ const selectedItemKey = selectedItem[exprKey];
205
+ // Find the index of the selected item in the dataSource using the key
206
+ const selectedItemIndex = dataSource.findIndex(item => item[exprKey] === selectedItemKey);
207
+ // If the item is found in the dataSource (index is not -1)
208
+ if (selectedItemIndex !== -1 && listRef.current) {
209
+ // Access the list container (the parent element holding the list)
210
+ const listContainer = listRef.current;
211
+ // Get all child elements of the list container (individual items)
212
+ const listItems = listContainer.children;
213
+ // Get the actual DOM element of the selected item
214
+ const selectedItemElement = listItems[selectedItemIndex];
215
+ // If the selected item element exists in the DOM
216
+ if (selectedItemElement) {
217
+ // Use setTimeout to delay the scroll action for 500ms to ensure DOM elements are fully rendered
218
+ setTimeout(() => {
219
+ // Calculate the offsetTop of the selected item (its position relative to the container)
220
+ const offset = selectedItemElement.offsetTop;
221
+ // Scroll the list container smoothly to position the selected item in the center of the container
222
+ listContainer.scrollTo({
223
+ top: offset - listContainer.clientHeight / 2, // Subtract half the container height to center the item
224
+ behavior: 'smooth', // Smooth scrolling
225
+ });
226
+ }, 500); // Delay to allow for DOM rendering before scrolling
227
+ }
228
+ }
229
+ }
230
+ }, [selectedItem, dataSource]);
231
+ //order options
232
+ const orderMenuItems = () => {
233
+ let arr = [];
234
+ if (searchKeys.length > 0) {
235
+ for (let key of searchKeys) {
236
+ arr.push({
237
+ disabled: !localShowId && key === exprKey,
238
+ isSelected: key === orderedBy,
239
+ onItemClick: () => { setOrderedBy(key); setShowOrderOptions(false); },
240
+ icon: _jsx(IconColumns, { fontSize: 16 }),
241
+ text: _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [key, " ", key === orderedBy && _jsx(IconApply, { fontSize: 14, color: 'gray' })] })
242
+ });
243
+ }
244
+ }
245
+ return arr;
246
+ };
247
+ // grouping loginc
248
+ const groupKeys = Object.keys(groupByKey(currentDataSource, grouping));
249
+ const [openList, setOpenList] = useState([true, false, false]);
250
+ function groupByKey(array, key) {
251
+ return array
252
+ .reduce((hash, obj) => {
253
+ if (obj[key] === undefined)
254
+ return hash;
255
+ return Object.assign(hash, { [obj[key]]: (hash[obj[key]] || []).concat(obj) });
256
+ }, {});
257
+ }
258
+ // map memo
259
+ const memoList = useMemo(() => currentDataSource.map((data, index) => {
260
+ return (_jsx(StyledListItem, { "$isSelected": isSelected(data), "$color": getContrastColor(customColor).bgColor, "$textColor": getContrastColor(customColor).textColor, onClick: () => { onSelectionChanged && onSelectionChanged(data); onItemClick && onItemClick(data); }, onDoubleClick: () => onItemDblClick && onItemDblClick(data), children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'flex-start', gap: 5, padding: '5px 5px' }, children: [localShowId && _jsxs("p", { style: { color: isSelected(data) ? 'red' : 'black', backgroundColor: `${customColor}20`, width: '100%', padding: '2px 5px', borderRadius: '5px', height: 'max-content', textAlign: 'left' }, children: [" ", exprKey + ' : ' + data[exprKey], " "] }), _jsxs("div", { style: { width: '100%', height: '100%' }, children: [" ", itemTemplate ? itemTemplate(data) : _jsx("div", {})] })] }) }, index));
261
+ }), [currentDataSource, selectedItem, localShowId, customColor]);
262
+ const groupedMemoList = useMemo(() => groupKeys.map((key, index) => {
263
+ const groupingText = () => {
264
+ if (grouping === 'objectClass') {
265
+ if (key === ObjectClasses.Dossier) {
266
+ return 'Pratiche';
267
+ }
268
+ else if (key === ObjectClasses.WorkingGroup) {
269
+ return 'Gruppi di lavoro';
270
+ }
271
+ else if (key === ObjectClasses.SavedQuery) {
272
+ return 'Ricerche rapide';
273
+ }
274
+ else
275
+ return '';
276
+ }
277
+ else {
278
+ return key;
279
+ }
280
+ };
281
+ return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', width: '100%', height: 'max-content' }, children: [_jsx("div", { style: { borderBottom: `1px solid ${customColor}20`, display: 'flex', alignItems: 'center', height: '40px', justifyContent: 'space-between', padding: '5px', width: '100%', backgroundColor: headerBackGroundColor ?? `${customColor}30` }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }, children: [customGroupingHeaders && customGroupingHeaders.length > 0 ?
282
+ customGroupingHeaders[index] ?
283
+ _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center' }, children: customGroupingHeaders[index] })
284
+ :
285
+ _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: getContrastColor(customColor).textColor, color: getContrastColor(customColor).bgColor, boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] })
286
+ :
287
+ _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: getContrastColor(customColor).textColor, color: getContrastColor(customColor).bgColor, boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] }), _jsxs("div", { style: { cursor: 'pointer' }, onClick: () => { let arr = [...openList]; arr[index] = !arr[index]; setOpenList(arr); }, children: [" ", openList[index] ? _jsx(IconUp, { fontSize: 12 }) : _jsx(IconDown, { fontSize: 12 }), " "] })] }) }), openList[index] && _jsx("div", { style: { width: '100%', height: '100%' }, children: groupByKey(currentDataSource, grouping)[key].map((data, index2) => (_jsx(StyledListItem, { "$isSelected": data === selectedItem, "$color": getContrastColor(customColor).bgColor, "$textColor": getContrastColor(customColor).textColor, onClick: () => { onSelectionChanged && onSelectionChanged(data); onItemClick && onItemClick(data); }, onDoubleClick: () => { onItemDblClick && onItemDblClick(data); }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'column', padding: '5px 5px' }, children: [localShowId && _jsxs("p", { style: { color: data === selectedItem ? 'red' : 'black', backgroundColor: `${customColor}20`, width: '100%', padding: '2px 5px', borderRadius: '5px', height: 'max-content', textAlign: 'left' }, children: [" ", 'ID: ' + data.id, " "] }), _jsxs("div", { style: { width: '100%', height: '100%' }, children: [" ", itemTemplate ? itemTemplate(data) : _jsx("div", {})] })] }) }, index2))) })] }, index));
288
+ }), [currentDataSource, selectedItem, localShowId, customColor, openList, grouping, customGroupingHeaders]);
289
+ // List height
290
+ const listHeight = () => {
291
+ if (localShowSearch) {
292
+ if (showOrderMenu || searchValue.length > 0) {
293
+ return 'calc(100% - 55px)';
294
+ }
295
+ else {
296
+ return 'calc(100% - 30px)';
297
+ }
298
+ }
299
+ else if (showOrderMenu || searchValue.length > 0) {
300
+ return 'calc(100% - 25px)';
301
+ }
302
+ else
303
+ return '100%';
304
+ };
305
+ useEffect(() => {
306
+ if (showId === undefined || showId === localShowId)
307
+ return;
308
+ setLocalShowId(showId);
309
+ }, [showId]);
310
+ useEffect(() => {
311
+ if (showSearch === undefined || showSearch === localShowSearch)
312
+ return;
313
+ setLocalShowSearch(showSearch);
314
+ }, [showSearch]);
315
+ useEffect(() => {
316
+ if (showId === undefined || setShowId === undefined || showId === localShowId)
317
+ return;
318
+ setShowId(localShowId);
319
+ }, [localShowId]);
320
+ useEffect(() => {
321
+ if (showSearch === undefined || setShowSearch === undefined || showSearch === localShowSearch)
322
+ return;
323
+ setShowSearch(localShowSearch);
324
+ }, [localShowSearch]);
325
+ const generateContextMenuItems = (localShowSearch, localShowId, showOrderMenu, grouping, searchKeys) => {
326
+ const items = [];
327
+ // Add search menu item only if showSearch prop is undefined
328
+ if (showSearch === undefined) {
329
+ items.push({
330
+ icon: localShowSearch ? _jsx(IconHide, { fontSize: 16 }) : _jsx(IconShow, { fontSize: 16 }),
331
+ onItemClick: () => setLocalShowSearch(!localShowSearch),
332
+ text: localShowSearch ? SDKUI_Localizator.HideSearch : SDKUI_Localizator.ShowSearch
333
+ });
334
+ }
335
+ // Add ID menu item only if showId prop is undefined
336
+ if (showId === undefined) {
337
+ items.push({
338
+ icon: localShowId ? _jsx(IconHide, { fontSize: 16 }) : _jsx(IconShow, { fontSize: 16 }),
339
+ onItemClick: () => setLocalShowId(!localShowId),
340
+ text: localShowId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show,
341
+ });
342
+ }
343
+ // Add order menu item only if grouping length is zero
344
+ if (grouping.length === 0) {
345
+ items.push({
346
+ icon: showOrderMenu ? _jsx(IconHide, { fontSize: 16 }) : _jsx(IconShow, { fontSize: 16 }),
347
+ disabled: searchKeys.length === 0,
348
+ onItemClick: () => setShowOrderMenu(!showOrderMenu),
349
+ text: showOrderMenu ? 'Nascondi menu di ordinamento' : 'Mostra menu di ordinamento'
350
+ });
351
+ }
352
+ return items;
353
+ };
354
+ const contextMenuItems = generateContextMenuItems(localShowSearch, localShowId, showOrderMenu, grouping, searchKeys);
355
+ return (_jsxs(StyledListViewContainer, { ref: contRef, onContextMenu: openContextMenu, children: [(show && contextMenuItems.length > 0) && _jsx(TMContextMenu, { coords: coords, items: contextMenuItems }), showOrderOptions &&
356
+ _jsx(TMContextMenu, { items: orderMenuItems(), coords: { x: orderRef.current?.getBoundingClientRect().left, y: orderRef.current?.getBoundingClientRect().top - (searchKeys.length * 30) - 10 } }), header && _jsx("div", { style: { width: '100%', height: '40px', backgroundColor: headerBackGroundColor ?? `${customColor}30`, marginBottom: '3px', display: 'flex', alignItems: 'center' }, children: header }), localShowSearch &&
357
+ _jsx(StyledSearchContainer, { children: _jsxs(StyledSearchContainer, { children: [_jsx(TMSearchBar, { marginLeft: '0px', maxWidth: '300px', searchValue: searchValue, onSearchValueChanged: (e) => setSearchValue(e) }), _jsx(TMTooltip, { content: 'Nascondi ricerca', children: _jsx(IconCloseCircle, { style: { cursor: 'pointer' }, color: 'red', fontSize: 14, onClick: () => { setSearchValue(''); setLocalShowSearch(false); } }) })] }) }), _jsx("div", { ref: listRef, onClick: () => setIsFocused(true), style: { width: '100%', overflow: 'auto', height: listHeight() }, children: currentDataSource.length > 0 ?
358
+ grouping.length === 0 ? memoList : groupedMemoList :
359
+ searchValue.length > 0 ? _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: "No data found" }) :
360
+ _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: "No data" }) }), (searchValue.length > 0 || showOrderMenu) &&
361
+ _jsxs(StyledListViewFooter, { "$bgColor": `${customColor}20`, children: [showOrderMenu &&
362
+ _jsxs("div", { style: { width: 'max-content', display: 'flex', alignItems: 'center', gap: 5 }, children: [_jsx("div", { style: { width: 'max-content' }, children: "Ordinato per" }), _jsx("div", { ref: orderRef, onClick: () => { setShowOrderOptions(!showOrderOptions); }, style: { cursor: 'pointer', fontWeight: 'bold' }, children: orderedBy.length > 0 ? orderedBy : 'Nulla' }), orderedBy.length > 0 && _jsxs(TMTooltip, { content: orderDir ? 'ASC' : 'DESC', children: [" ", orderDir ? _jsx(IconUp, { style: { cursor: 'pointer' }, onClick: () => setOrderDir(false), fontSize: 14 }) : _jsx(IconDown, { style: { cursor: 'pointer' }, onClick: () => setOrderDir(true), fontSize: 14 }), " "] }), _jsx(TMTooltip, { content: 'Annulla ordinamento', children: _jsx(IconCloseCircle, { style: { cursor: 'pointer' }, color: 'red', fontSize: 14, onClick: () => { setOrderedBy(''); setShowOrderMenu(false); setShowOrderOptions(false); } }) })] }), searchValue.length > 0 && _jsxs("div", { style: { display: 'flex', alignItems: 'center', width: '100%', justifyContent: 'flex-end', gap: 5 }, children: [_jsx(TMTooltip, { content: 'Visibili', children: _jsx(IconVisible, { fontSize: 14 }) }), currentDataSource.length] })] })] }));
363
+ };
364
+ export default TMListView;
365
+ export const CustomListViewHeader = (props) => {
366
+ return (_jsxs("div", { style: {
367
+ display: 'flex',
368
+ alignItems: 'center',
369
+ justifyContent: 'space-between',
370
+ padding: '0 5px',
371
+ gap: 5,
372
+ width: '100%'
373
+ }, children: [_jsxs("div", { style: {
374
+ display: 'flex',
375
+ alignItems: 'center',
376
+ gap: '5px',
377
+ whiteSpace: 'nowrap',
378
+ overflow: 'hidden',
379
+ textOverflow: 'ellipsis'
380
+ }, children: [props.headerIcon, _jsx("p", { title: props.headerTitle, style: {
381
+ fontWeight: 'bold',
382
+ color: props.titleColor ? props.titleColor : TMColors.text_normal,
383
+ whiteSpace: 'nowrap',
384
+ overflow: 'hidden',
385
+ textOverflow: 'ellipsis'
386
+ }, children: props.headerTitle })] }), _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '5px' }, children: [props.firstCounter, props.secondCounter] })] }));
387
+ };
@@ -0,0 +1,16 @@
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
+ hidePopup?: boolean;
13
+ askClosingConfirm?: boolean;
14
+ }
15
+ declare const TMModal: React.FC<ITMModal>;
16
+ export default TMModal;
@@ -0,0 +1,70 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useState, useEffect } from 'react';
3
+ import { Popup } from 'devextreme-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, hidePopup = true, askClosingConfirm = false }) => {
42
+ const [initialWidth, setInitialWidth] = useState(width);
43
+ const [initialHeight, setInitialHeight] = useState(height);
44
+ const [showPopup, setShowPopup] = useState(false);
45
+ const [isResizing, setIsResizing] = useState(false);
46
+ useEffect(() => {
47
+ setShowPopup(isModal);
48
+ }, [isModal]);
49
+ useEffect(() => {
50
+ setInitialWidth(width);
51
+ setInitialHeight(height);
52
+ }, [width, height]);
53
+ const handleResizeStart = () => {
54
+ setIsResizing(true);
55
+ };
56
+ const handleResizeEnd = (e) => {
57
+ setIsResizing(false);
58
+ setInitialWidth(e.width.toString());
59
+ setInitialHeight(e.height.toString());
60
+ };
61
+ const onHiding = (e) => {
62
+ if (askClosingConfirm)
63
+ e.cancel = true;
64
+ if (hidePopup)
65
+ setShowPopup(false);
66
+ onClose && onClose();
67
+ };
68
+ return (_jsx(_Fragment, { children: isModal ? (_jsx(Popup, { showCloseButton: true, animation: undefined, maxHeight: '95%', maxWidth: '95%', dragEnabled: !isResizing, resizeEnabled: resizable, width: initialWidth, height: initialHeight, title: title, visible: showPopup, onResizeStart: handleResizeStart, onResizeEnd: handleResizeEnd, onHiding: onHiding, children: _jsxs(TMLayoutContainer, { children: [toolbar && (_jsx(TMLayoutItem, { height: "40px", children: _jsx(StyledModalToolbar, { children: toolbar }) })), _jsx(TMLayoutItem, { height: toolbar ? 'calc(100% - 50px)' : 'calc(100% - 10px)', children: _jsx(TMCard, { showBorder: false, padding: false, scrollY: true, children: children }) })] }) })) : (_jsxs(StyledModal, { "$isModal": isModal, className: "temp-modal", "$fontSize": fontSize, "$width": initialWidth, "$height": initialHeight, children: [toolbar ? _jsx(StyledModalToolbar, { children: toolbar }) : _jsx(_Fragment, {}), _jsx(StyledModalContext, { children: children })] })) }));
69
+ };
70
+ export default TMModal;
@@ -0,0 +1,32 @@
1
+ /** Gestione TMPanel "attivo / non attivo" secondo una pattern ibrido (Controlled/Uncontrolled Component):
2
+ 1) Modalità Non Controllata (Uncontrolled): Se non gli viene passata la prop "isActive", il pannello gestisce lo stato "attivo" internamente. Per l'uso singolo ("plug-and-play").
3
+ 2) Modalità Controllata (Controlled): Se il genitore passa la prop "isActive", il pannello cede il controllo e si affida completamente al genitore. Ideale per layout con più pannelli che necessitano di coordinamento.
4
+ */
5
+ import React from 'react';
6
+ export interface ITMPanelRef {
7
+ focusPanel: () => void;
8
+ }
9
+ export interface ITMPanelProps {
10
+ allowMaximize?: boolean;
11
+ color?: string;
12
+ backgroundColor?: string;
13
+ backgroundColorContainer?: string;
14
+ children?: React.ReactNode;
15
+ showHeader?: boolean;
16
+ title?: string;
17
+ displayedItemsCount?: number;
18
+ totalItems?: number;
19
+ toolbar?: any;
20
+ padding?: string;
21
+ isVisible?: boolean;
22
+ panelID?: string;
23
+ isActive?: boolean;
24
+ onActivate?: (panelID: string) => void;
25
+ onActiveChanged?: (isActive: boolean) => void;
26
+ onBack?: () => void;
27
+ onClose?: () => void;
28
+ onHeaderDoubleClick?: () => void;
29
+ onMaximize?: (isMaximized: boolean) => void;
30
+ }
31
+ declare const TMPanel: React.ForwardRefExoticComponent<ITMPanelProps & React.RefAttributes<ITMPanelRef>>;
32
+ export default TMPanel;