namirasoft-site-react 1.4.133 → 1.4.134

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 (507) hide show
  1. package/.dockerignore +86 -86
  2. package/.env.template +10 -10
  3. package/Dockerfile +18 -18
  4. package/config-overrides.js +72 -72
  5. package/dist/App.d.ts +0 -6
  6. package/dist/App.js +44 -174
  7. package/dist/App.js.map +1 -1
  8. package/dist/Validator.d.ts +2 -1
  9. package/dist/Validator.js +16 -8
  10. package/dist/Validator.js.map +1 -1
  11. package/dist/components/NSBarAction.d.ts +4 -4
  12. package/dist/components/NSBarAction.js +3 -3
  13. package/dist/components/NSBarAction.js.map +1 -1
  14. package/dist/components/NSBarAction.module.css +97 -97
  15. package/dist/components/NSBarAlert.d.ts +5 -5
  16. package/dist/components/NSBarAlert.js +1 -1
  17. package/dist/components/NSBarAlert.js.map +1 -1
  18. package/dist/components/NSBarAlert.module.css +69 -69
  19. package/dist/components/NSBarNotification.d.ts +3 -3
  20. package/dist/components/NSBarNotification.js +1 -1
  21. package/dist/components/NSBarNotification.js.map +1 -1
  22. package/dist/components/NSBarNotification.module.css +34 -34
  23. package/dist/components/NSBarTitle.d.ts +2 -2
  24. package/dist/components/NSBarTitle.js.map +1 -1
  25. package/dist/components/NSBarTitle.module.css +9 -9
  26. package/dist/components/NSBox.module.css +50 -126
  27. package/dist/components/NSBoxBaseCombo.d.ts +58 -0
  28. package/dist/components/NSBoxBaseCombo.js +163 -0
  29. package/dist/components/NSBoxBaseCombo.js.map +1 -0
  30. package/dist/components/{NSBoxCombo.module.css → NSBoxBaseCombo.module.css} +6 -6
  31. package/dist/components/NSBoxBoolean.d.ts +5 -6
  32. package/dist/components/NSBoxBoolean.js +6 -3
  33. package/dist/components/NSBoxBoolean.js.map +1 -1
  34. package/dist/components/NSBoxBoolean.module.css +67 -88
  35. package/dist/components/NSBoxCombo.d.ts +6 -25
  36. package/dist/components/NSBoxCombo.js +31 -61
  37. package/dist/components/NSBoxCombo.js.map +1 -1
  38. package/dist/components/NSBoxDate.d.ts +5 -4
  39. package/dist/components/NSBoxDate.js +11 -4
  40. package/dist/components/NSBoxDate.js.map +1 -1
  41. package/dist/components/NSBoxDate.module.css +4 -56
  42. package/dist/components/NSBoxDateTime.d.ts +5 -4
  43. package/dist/components/NSBoxDateTime.js +11 -5
  44. package/dist/components/NSBoxDateTime.js.map +1 -1
  45. package/dist/components/NSBoxDateTime.module.css +4 -51
  46. package/dist/components/NSBoxDouble.d.ts +4 -4
  47. package/dist/components/NSBoxDouble.js +9 -4
  48. package/dist/components/NSBoxDouble.js.map +1 -1
  49. package/dist/components/NSBoxDuration.d.ts +5 -4
  50. package/dist/components/NSBoxDuration.js +11 -4
  51. package/dist/components/NSBoxDuration.js.map +1 -1
  52. package/dist/components/NSBoxDuration.module.css +5 -0
  53. package/dist/components/NSBoxEmail.d.ts +6 -7
  54. package/dist/components/NSBoxEmail.js +18 -11
  55. package/dist/components/NSBoxEmail.js.map +1 -1
  56. package/dist/components/NSBoxEntity.d.ts +10 -44
  57. package/dist/components/NSBoxEntity.js +19 -92
  58. package/dist/components/NSBoxEntity.js.map +1 -1
  59. package/dist/components/NSBoxEnum.d.ts +12 -9
  60. package/dist/components/NSBoxEnum.js +29 -20
  61. package/dist/components/NSBoxEnum.js.map +1 -1
  62. package/dist/components/NSBoxFile.d.ts +9 -14
  63. package/dist/components/NSBoxFile.js +33 -47
  64. package/dist/components/NSBoxFile.js.map +1 -1
  65. package/dist/components/NSBoxFile.module.css +10 -4
  66. package/dist/components/NSBoxIPV4.d.ts +4 -4
  67. package/dist/components/NSBoxIPV4.js +12 -6
  68. package/dist/components/NSBoxIPV4.js.map +1 -1
  69. package/dist/components/NSBoxIPV6.d.ts +4 -4
  70. package/dist/components/NSBoxIPV6.js +11 -6
  71. package/dist/components/NSBoxIPV6.js.map +1 -1
  72. package/dist/components/NSBoxInteger.d.ts +4 -4
  73. package/dist/components/NSBoxInteger.js +9 -4
  74. package/dist/components/NSBoxInteger.js.map +1 -1
  75. package/dist/components/{NSBoxPrice.d.ts → NSBoxMoney.d.ts} +7 -7
  76. package/dist/components/NSBoxMoney.js +50 -0
  77. package/dist/components/NSBoxMoney.js.map +1 -0
  78. package/dist/components/NSBoxPassword.d.ts +5 -4
  79. package/dist/components/NSBoxPassword.js +18 -5
  80. package/dist/components/NSBoxPassword.js.map +1 -1
  81. package/dist/components/NSBoxPhone.d.ts +7 -8
  82. package/dist/components/NSBoxPhone.js +30 -20
  83. package/dist/components/NSBoxPhone.js.map +1 -1
  84. package/dist/components/NSBoxPhone.module.css +36 -0
  85. package/dist/components/NSBoxRadio.d.ts +5 -6
  86. package/dist/components/NSBoxRadio.js +3 -3
  87. package/dist/components/NSBoxRadio.js.map +1 -1
  88. package/dist/components/NSBoxRadio.module.css +69 -70
  89. package/dist/components/NSBoxSearch.d.ts +4 -6
  90. package/dist/components/NSBoxSearch.js +9 -14
  91. package/dist/components/NSBoxSearch.js.map +1 -1
  92. package/dist/components/NSBoxString.d.ts +4 -6
  93. package/dist/components/NSBoxString.js +10 -10
  94. package/dist/components/NSBoxString.js.map +1 -1
  95. package/dist/components/NSBoxTextArea.d.ts +4 -6
  96. package/dist/components/NSBoxTextArea.js +9 -12
  97. package/dist/components/NSBoxTextArea.js.map +1 -1
  98. package/dist/components/NSBoxTextArea.module.css +45 -83
  99. package/dist/components/NSBoxTime.d.ts +5 -4
  100. package/dist/components/NSBoxTime.js +11 -4
  101. package/dist/components/NSBoxTime.js.map +1 -1
  102. package/dist/components/NSBoxTime.module.css +5 -0
  103. package/dist/components/NSButton.d.ts +2 -2
  104. package/dist/components/NSButton.js.map +1 -1
  105. package/dist/components/NSButton.module.css +42 -42
  106. package/dist/components/NSButtonBlue.d.ts +2 -2
  107. package/dist/components/NSButtonBlue.js.map +1 -1
  108. package/dist/components/NSButtonBlue.module.css +4 -4
  109. package/dist/components/NSButtonGreen.d.ts +2 -2
  110. package/dist/components/NSButtonGreen.js.map +1 -1
  111. package/dist/components/NSButtonGreen.module.css +4 -4
  112. package/dist/components/NSButtonRed.d.ts +2 -2
  113. package/dist/components/NSButtonRed.js.map +1 -1
  114. package/dist/components/NSButtonRed.module.css +4 -4
  115. package/dist/components/NSCard.d.ts +2 -2
  116. package/dist/components/NSCard.js.map +1 -1
  117. package/dist/components/NSCard.module.css +114 -114
  118. package/dist/components/NSCardScreenshot.module.css +41 -41
  119. package/dist/components/NSChartColumn.module.css +7 -7
  120. package/dist/components/NSChartRange.d.ts +2 -2
  121. package/dist/components/NSChartRange.js.map +1 -1
  122. package/dist/components/NSChartTable.module.css +21 -21
  123. package/dist/components/NSCopyBox.d.ts +7 -0
  124. package/dist/components/{NSBoxCopy.js → NSCopyBox.js} +3 -3
  125. package/dist/components/{NSBoxCopy.js.map → NSCopyBox.js.map} +1 -1
  126. package/{src/components/NSBoxCopy.module.css → dist/components/NSCopyBox.module.css} +43 -43
  127. package/dist/components/NSDialog.module.css +106 -106
  128. package/dist/components/NSDialogDelete.d.ts +6 -0
  129. package/dist/components/{NSDeleteDialog.js → NSDialogDelete.js} +4 -4
  130. package/dist/components/NSDialogDelete.js.map +1 -0
  131. package/dist/components/{NSInfoDialog.d.ts → NSDialogInfo.d.ts} +2 -2
  132. package/dist/components/{NSInfoDialog.js → NSDialogInfo.js} +2 -2
  133. package/dist/components/{NSInfoDialog.js.map → NSDialogInfo.js.map} +1 -1
  134. package/dist/components/{NSPageSelectionModal.d.ts → NSDialogPageSelection.d.ts} +4 -4
  135. package/dist/components/{NSPageSelectionModal.js → NSDialogPageSelection.js} +4 -4
  136. package/dist/components/NSDialogPageSelection.js.map +1 -0
  137. package/dist/components/{NSPageSelectionModal.module.css → NSDialogPageSelection.module.css} +103 -103
  138. package/dist/components/NSDownTimer.module.css +55 -55
  139. package/dist/components/NSDownload.js.map +1 -1
  140. package/dist/components/NSDownload.module.css +46 -46
  141. package/dist/components/NSElectronicCard.d.ts +2 -2
  142. package/dist/components/NSElectronicCard.js.map +1 -1
  143. package/dist/components/NSElectronicCard.module.css +60 -60
  144. package/dist/components/NSEntityCardBackground.d.ts +2 -2
  145. package/dist/components/NSEntityCardBackground.js.map +1 -1
  146. package/dist/components/NSEntityCardBackground.module.css +27 -27
  147. package/dist/components/NSFilterBox.d.ts +13 -13
  148. package/dist/components/NSFilterBox.js +4 -4
  149. package/dist/components/NSFilterBox.js.map +1 -1
  150. package/dist/components/NSFilterBox.module.css +62 -62
  151. package/dist/components/NSFilterBoxDialog.js +1 -1
  152. package/dist/components/NSFilterBoxDialog.js.map +1 -1
  153. package/dist/components/NSFilterBoxDialog.module.css +36 -36
  154. package/dist/components/NSFilterItem.module.css +23 -23
  155. package/dist/components/NSFooter.d.ts +3 -3
  156. package/dist/components/NSFooter.js +4 -4
  157. package/dist/components/NSFooter.js.map +1 -1
  158. package/dist/components/NSFooter.module.css +123 -123
  159. package/dist/components/NSHeader.d.ts +3 -3
  160. package/dist/components/NSHeader.js +3 -3
  161. package/dist/components/NSHeader.js.map +1 -1
  162. package/dist/components/NSHeader.module.css +291 -291
  163. package/dist/components/NSHeaderScreenshot.d.ts +2 -2
  164. package/dist/components/NSHeaderScreenshot.js.map +1 -1
  165. package/dist/components/NSHeaderScreenshot.module.css +35 -35
  166. package/dist/components/{NSBoxLabel.d.ts → NSLabel.d.ts} +3 -3
  167. package/dist/components/NSLabel.js +11 -0
  168. package/dist/components/NSLabel.js.map +1 -0
  169. package/{src/components/NSBoxLabel.module.css → dist/components/NSLabel.module.css} +15 -14
  170. package/dist/components/NSLabelErrorNotifier.d.ts +6 -0
  171. package/dist/components/{NSBoxErrorNotifier.js → NSLabelErrorNotifier.js} +3 -3
  172. package/dist/components/NSLabelErrorNotifier.js.map +1 -0
  173. package/dist/components/{NSBoxErrorNotifier.module.css → NSLabelErrorNotifier.module.css} +2 -2
  174. package/dist/components/NSLayout.d.ts +10 -12
  175. package/dist/components/NSLayout.js +2 -4
  176. package/dist/components/NSLayout.js.map +1 -1
  177. package/dist/components/NSLayout.module.css +13 -13
  178. package/dist/components/NSLine.module.css +12 -12
  179. package/dist/components/NSLink.d.ts +2 -2
  180. package/dist/components/NSLink.js.map +1 -1
  181. package/dist/components/NSLink.module.css +36 -36
  182. package/dist/components/NSLinkBlue.d.ts +2 -2
  183. package/dist/components/NSLinkBlue.js.map +1 -1
  184. package/dist/components/NSLinkGreen.d.ts +2 -2
  185. package/dist/components/NSLinkGreen.js.map +1 -1
  186. package/dist/components/NSLinkRed.d.ts +2 -2
  187. package/dist/components/NSLinkRed.js.map +1 -1
  188. package/dist/components/{NSGroupedList.d.ts → NSListGrouped.d.ts} +8 -8
  189. package/dist/components/NSListGrouped.js +40 -0
  190. package/dist/components/{NSGroupedList.js.map → NSListGrouped.js.map} +1 -1
  191. package/dist/components/{NSGroupedList.module.css → NSListGrouped.module.css} +72 -72
  192. package/dist/components/{NSProductList.d.ts → NSListProduct.d.ts} +2 -2
  193. package/dist/components/{NSProductList.js → NSListProduct.js} +2 -2
  194. package/dist/components/{NSProductList.js.map → NSListProduct.js.map} +1 -1
  195. package/dist/components/NSLoading.d.ts +2 -2
  196. package/dist/components/NSLoading.js.map +1 -1
  197. package/dist/components/NSLoading.module.css +30 -30
  198. package/dist/components/{NSActionMenu.d.ts → NSMenuAction.d.ts} +4 -4
  199. package/dist/components/{NSActionMenu.js → NSMenuAction.js} +5 -5
  200. package/dist/components/{NSActionMenu.js.map → NSMenuAction.js.map} +1 -1
  201. package/{src/components/NSActionMenu.module.css → dist/components/NSMenuAction.module.css} +100 -101
  202. package/dist/components/NSMenuButton.d.ts +18 -0
  203. package/dist/components/NSMenuButton.js +42 -0
  204. package/dist/components/NSMenuButton.js.map +1 -0
  205. package/{src/components/NSAssistantButton.module.css → dist/components/NSMenuButton.module.css} +124 -135
  206. package/dist/components/NSNoData.d.ts +2 -2
  207. package/dist/components/NSNoData.js.map +1 -1
  208. package/dist/components/NSNoData.module.css +9 -9
  209. package/dist/components/NSPagination.d.ts +4 -4
  210. package/dist/components/NSPagination.js +2 -2
  211. package/dist/components/NSPagination.js.map +1 -1
  212. package/dist/components/NSPagination.module.css +110 -110
  213. package/dist/components/NSPanel.module.css +46 -46
  214. package/dist/components/{NSAccordion.d.ts → NSPanelAccordion.d.ts} +2 -2
  215. package/dist/components/{NSAccordion.js → NSPanelAccordion.js} +5 -5
  216. package/dist/components/NSPanelAccordion.js.map +1 -0
  217. package/dist/components/{NSAccordion.module.css → NSPanelAccordion.module.css} +4 -4
  218. package/dist/components/NSRange.d.ts +2 -2
  219. package/dist/components/NSRange.js.map +1 -1
  220. package/dist/components/NSRange.module.css +66 -66
  221. package/dist/components/NSSection.d.ts +2 -2
  222. package/dist/components/NSSection.js.map +1 -1
  223. package/dist/components/NSSection.module.css +10 -10
  224. package/dist/components/NSSectionCards.d.ts +4 -4
  225. package/dist/components/NSSectionCards.js.map +1 -1
  226. package/dist/components/NSSectionCards.module.css +38 -38
  227. package/dist/components/NSSectionTiles.d.ts +7 -0
  228. package/dist/components/NSSectionTiles.js +10 -0
  229. package/dist/components/NSSectionTiles.js.map +1 -0
  230. package/dist/components/{NSSectionBars.module.css → NSSectionTiles.module.css} +10 -10
  231. package/dist/components/NSSectionTitle.d.ts +2 -2
  232. package/dist/components/NSSectionTitle.js.map +1 -1
  233. package/dist/components/NSSpace.d.ts +2 -2
  234. package/dist/components/NSSpace.js.map +1 -1
  235. package/dist/components/NSTabPage.js +2 -1
  236. package/dist/components/NSTabPage.js.map +1 -1
  237. package/dist/components/NSTabPage.module.css +59 -59
  238. package/dist/components/NSTable.d.ts +3 -3
  239. package/dist/components/NSTable.js +6 -6
  240. package/dist/components/NSTable.js.map +1 -1
  241. package/dist/components/NSTable.module.css +260 -260
  242. package/dist/components/NSTag.js +2 -2
  243. package/dist/components/NSTag.js.map +1 -1
  244. package/dist/components/NSTag.module.css +52 -52
  245. package/dist/components/{NSEntityBar.d.ts → NSTile.d.ts} +2 -2
  246. package/dist/components/{NSEntityBar.js → NSTile.js} +3 -3
  247. package/dist/components/NSTile.js.map +1 -0
  248. package/{src/components/NSEntityBar.module.css → dist/components/NSTile.module.css} +77 -77
  249. package/dist/components/NSTimelineMonthly.d.ts +2 -2
  250. package/dist/components/NSTimelineMonthly.js.map +1 -1
  251. package/dist/components/NSTimelineMonthly.module.css +71 -71
  252. package/dist/components/NSTitle.d.ts +2 -2
  253. package/dist/components/NSTitle.js.map +1 -1
  254. package/dist/components/NSTitle.module.css +15 -15
  255. package/dist/main.d.ts +21 -26
  256. package/dist/main.js +21 -26
  257. package/dist/main.js.map +1 -1
  258. package/dist/pages/NSNotFoundPage.module.css +17 -17
  259. package/dist/pages/NSUpdating.module.css +35 -35
  260. package/dist/routing/INSRouterState.d.ts +2 -2
  261. package/dist/routing/Notifier.d.ts +2 -2
  262. package/dist/routing/Notifier.js.map +1 -1
  263. package/package.json +76 -75
  264. package/public/index.html +38 -38
  265. package/src/App.css +33 -57
  266. package/src/App.tsx +191 -377
  267. package/src/Color.tsx +10 -10
  268. package/src/CopyToClipboard.ts +6 -6
  269. package/src/Validator.ts +125 -117
  270. package/src/components/NSBarAction.module.css +97 -97
  271. package/src/components/NSBarAction.tsx +89 -89
  272. package/src/components/NSBarAlert.module.css +69 -69
  273. package/src/components/NSBarAlert.tsx +30 -30
  274. package/src/components/NSBarNotification.module.css +34 -34
  275. package/src/components/NSBarNotification.tsx +89 -87
  276. package/src/components/NSBarTitle.module.css +9 -9
  277. package/src/components/NSBarTitle.tsx +29 -29
  278. package/src/components/NSBox.module.css +50 -126
  279. package/src/components/{NSBoxCombo.module.css → NSBoxBaseCombo.module.css} +6 -6
  280. package/src/components/NSBoxBaseCombo.tsx +268 -0
  281. package/src/components/NSBoxBoolean.module.css +67 -88
  282. package/src/components/NSBoxBoolean.tsx +131 -124
  283. package/src/components/NSBoxBooleans.tsx +159 -159
  284. package/src/components/NSBoxCombo.tsx +61 -151
  285. package/src/components/NSBoxDate.module.css +4 -56
  286. package/src/components/NSBoxDate.tsx +101 -88
  287. package/src/components/NSBoxDateTime.module.css +4 -51
  288. package/src/components/NSBoxDateTime.tsx +101 -89
  289. package/src/components/NSBoxDouble.tsx +104 -92
  290. package/src/components/NSBoxDuration.module.css +5 -0
  291. package/src/components/NSBoxDuration.tsx +105 -92
  292. package/src/components/NSBoxEmail.tsx +112 -103
  293. package/src/components/NSBoxEntity.tsx +52 -197
  294. package/src/components/NSBoxEnum.tsx +64 -55
  295. package/src/components/NSBoxFile.module.css +10 -4
  296. package/src/components/NSBoxFile.tsx +101 -124
  297. package/src/components/NSBoxIPV4.tsx +107 -97
  298. package/src/components/NSBoxIPV6.tsx +103 -94
  299. package/src/components/NSBoxInteger.tsx +104 -94
  300. package/src/components/{NSBoxPrice.tsx → NSBoxMoney.tsx} +102 -92
  301. package/src/components/NSBoxPassword.tsx +111 -90
  302. package/src/components/NSBoxPhone.module.css +36 -0
  303. package/src/components/NSBoxPhone.tsx +116 -97
  304. package/src/components/NSBoxRadio.module.css +69 -70
  305. package/src/components/NSBoxRadio.tsx +107 -111
  306. package/src/components/NSBoxSearch.tsx +99 -107
  307. package/src/components/NSBoxString.tsx +104 -106
  308. package/src/components/NSBoxTextArea.module.css +45 -83
  309. package/src/components/NSBoxTextArea.tsx +108 -112
  310. package/src/components/NSBoxTime.module.css +5 -0
  311. package/src/components/NSBoxTime.tsx +104 -92
  312. package/src/components/NSButton.module.css +42 -42
  313. package/src/components/NSButton.tsx +25 -25
  314. package/src/components/NSButtonBlue.module.css +4 -4
  315. package/src/components/NSButtonBlue.tsx +19 -19
  316. package/src/components/NSButtonGreen.module.css +4 -4
  317. package/src/components/NSButtonGreen.tsx +19 -19
  318. package/src/components/NSButtonRed.module.css +4 -4
  319. package/src/components/NSButtonRed.tsx +19 -19
  320. package/src/components/NSCard.module.css +114 -114
  321. package/src/components/NSCard.tsx +63 -63
  322. package/src/components/NSCardScreenshot.module.css +41 -41
  323. package/src/components/NSCardScreenshot.tsx +31 -31
  324. package/src/components/NSChartColumn.module.css +7 -7
  325. package/src/components/NSChartColumn.tsx +106 -106
  326. package/src/components/NSChartDoughnut.tsx +108 -108
  327. package/src/components/NSChartPie.tsx +105 -105
  328. package/src/components/NSChartRange.tsx +14 -15
  329. package/src/components/NSChartTable.module.css +21 -21
  330. package/src/components/NSChartTable.tsx +94 -94
  331. package/src/components/NSCopy.tsx +67 -67
  332. package/{dist/components/NSBoxCopy.module.css → src/components/NSCopyBox.module.css} +43 -43
  333. package/src/components/{NSBoxCopy.tsx → NSCopyBox.tsx} +41 -41
  334. package/src/components/NSDialog.module.css +106 -106
  335. package/src/components/NSDialog.tsx +56 -56
  336. package/src/components/{NSDeleteDialog.tsx → NSDialogDelete.tsx} +26 -26
  337. package/src/components/{NSInfoDialog.tsx → NSDialogInfo.tsx} +36 -36
  338. package/src/components/{NSPageSelectionModal.module.css → NSDialogPageSelection.module.css} +103 -103
  339. package/src/components/{NSPageSelectionModal.tsx → NSDialogPageSelection.tsx} +223 -228
  340. package/src/components/NSDownTimer.module.css +55 -55
  341. package/src/components/NSDownTimer.tsx +77 -77
  342. package/src/components/NSDownload.module.css +46 -46
  343. package/src/components/NSDownload.tsx +63 -62
  344. package/src/components/NSElectronicCard.module.css +60 -60
  345. package/src/components/NSElectronicCard.tsx +46 -45
  346. package/src/components/NSEntityCardBackground.module.css +27 -27
  347. package/src/components/NSEntityCardBackground.tsx +36 -34
  348. package/src/components/NSFilterBox.module.css +62 -62
  349. package/src/components/NSFilterBox.tsx +360 -360
  350. package/src/components/NSFilterBoxDialog.module.css +36 -36
  351. package/src/components/NSFilterBoxDialog.tsx +72 -74
  352. package/src/components/NSFilterItem.module.css +23 -23
  353. package/src/components/NSFilterItem.tsx +72 -72
  354. package/src/components/NSFooter.module.css +123 -123
  355. package/src/components/NSFooter.tsx +316 -316
  356. package/src/components/NSHeader.module.css +291 -291
  357. package/src/components/NSHeader.tsx +250 -250
  358. package/src/components/NSHeaderScreenshot.module.css +35 -35
  359. package/src/components/NSHeaderScreenshot.tsx +39 -38
  360. package/{dist/components/NSBoxLabel.module.css → src/components/NSLabel.module.css} +15 -14
  361. package/src/components/{NSBoxLabel.tsx → NSLabel.tsx} +29 -29
  362. package/src/components/{NSBoxErrorNotifier.module.css → NSLabelErrorNotifier.module.css} +2 -2
  363. package/src/components/{NSBoxErrorNotifier.tsx → NSLabelErrorNotifier.tsx} +32 -32
  364. package/src/components/NSLayout.module.css +13 -13
  365. package/src/components/NSLayout.tsx +100 -109
  366. package/src/components/NSLine.module.css +12 -12
  367. package/src/components/NSLine.tsx +15 -15
  368. package/src/components/NSLink.module.css +36 -36
  369. package/src/components/NSLink.tsx +25 -25
  370. package/src/components/NSLinkBlue.tsx +20 -20
  371. package/src/components/NSLinkGreen.tsx +5 -5
  372. package/src/components/NSLinkRed.tsx +5 -5
  373. package/src/components/{NSGroupedList.module.css → NSListGrouped.module.css} +72 -72
  374. package/src/components/{NSGroupedList.tsx → NSListGrouped.tsx} +112 -112
  375. package/src/components/{NSProductList.tsx → NSListProduct.tsx} +45 -45
  376. package/src/components/NSLoading.module.css +30 -30
  377. package/src/components/NSLoading.tsx +19 -20
  378. package/{dist/components/NSActionMenu.module.css → src/components/NSMenuAction.module.css} +100 -101
  379. package/src/components/{NSActionMenu.tsx → NSMenuAction.tsx} +90 -90
  380. package/{dist/components/NSAssistantButton.module.css → src/components/NSMenuButton.module.css} +124 -135
  381. package/src/components/NSMenuButton.tsx +125 -0
  382. package/src/components/NSNoData.module.css +9 -9
  383. package/src/components/NSNoData.tsx +24 -24
  384. package/src/components/NSPagination.module.css +110 -110
  385. package/src/components/NSPagination.tsx +190 -189
  386. package/src/components/NSPanel.module.css +46 -46
  387. package/src/components/NSPanel.tsx +19 -19
  388. package/src/components/{NSAccordion.module.css → NSPanelAccordion.module.css} +4 -4
  389. package/src/components/{NSAccordion.tsx → NSPanelAccordion.tsx} +51 -51
  390. package/src/components/NSRange.module.css +66 -66
  391. package/src/components/NSRange.tsx +83 -81
  392. package/src/components/NSRepeater.tsx +179 -179
  393. package/src/components/NSSection.module.css +10 -10
  394. package/src/components/NSSection.tsx +23 -23
  395. package/src/components/NSSectionCards.module.css +38 -38
  396. package/src/components/NSSectionCards.tsx +51 -51
  397. package/src/components/{NSSectionBars.module.css → NSSectionTiles.module.css} +10 -10
  398. package/src/components/{NSSectionBars.tsx → NSSectionTiles.tsx} +25 -25
  399. package/src/components/NSSectionTitle.tsx +21 -21
  400. package/src/components/NSSpace.tsx +28 -28
  401. package/src/components/NSTabPage.module.css +59 -59
  402. package/src/components/NSTabPage.tsx +78 -78
  403. package/src/components/NSTable.module.css +260 -260
  404. package/src/components/NSTable.tsx +477 -477
  405. package/src/components/NSTag.module.css +52 -52
  406. package/src/components/NSTag.tsx +78 -78
  407. package/{dist/components/NSEntityBar.module.css → src/components/NSTile.module.css} +77 -77
  408. package/src/components/{NSEntityBar.tsx → NSTile.tsx} +27 -27
  409. package/src/components/NSTimelineMonthly.module.css +71 -71
  410. package/src/components/NSTimelineMonthly.tsx +44 -42
  411. package/src/components/NSTitle.module.css +15 -15
  412. package/src/components/NSTitle.tsx +19 -19
  413. package/src/formatter/BackColorFormatter.tsx +23 -23
  414. package/src/formatter/BaseColumnFormatter.ts +16 -16
  415. package/src/formatter/BooleanFormatter.ts +22 -22
  416. package/src/formatter/DateFormatter.ts +20 -20
  417. package/src/formatter/DateTimeFormatter.ts +20 -20
  418. package/src/formatter/DurationFormatter.ts +13 -13
  419. package/src/formatter/EmailFormatter.ts +13 -13
  420. package/src/formatter/EnumFormatter.ts +13 -13
  421. package/src/formatter/FloatFormatter.ts +16 -16
  422. package/src/formatter/ForeColorFormatter.tsx +24 -24
  423. package/src/formatter/IDFormatter.tsx +30 -30
  424. package/src/formatter/IPFormatter.ts +13 -13
  425. package/src/formatter/IntegerFormatter.ts +16 -16
  426. package/src/formatter/JsonFormatter.ts +14 -14
  427. package/src/formatter/MoneyFormatter.ts +16 -16
  428. package/src/formatter/PhoneFormatter.ts +13 -13
  429. package/src/formatter/StringFormatter.ts +22 -22
  430. package/src/formatter/TimeFormatter.ts +21 -21
  431. package/src/formatter/UnknowFormatter.ts +14 -14
  432. package/src/index.tsx +7 -7
  433. package/src/main.ts +186 -118
  434. package/src/pages/NSNotFoundPage.module.css +17 -17
  435. package/src/pages/NSNotFoundPage.tsx +11 -11
  436. package/src/pages/NSUpdating.module.css +35 -35
  437. package/src/pages/NSUpdating.tsx +32 -32
  438. package/src/props/IBaseComponentProps.ts +8 -8
  439. package/src/props/IHeaderIconProps.ts +10 -10
  440. package/src/props/IHeaderProps.ts +7 -7
  441. package/src/props/IImageProps.ts +4 -4
  442. package/src/props/ILinkProps.ts +5 -5
  443. package/src/props/IValidationNumberProps.ts +4 -4
  444. package/src/props/IValidationProps.ts +7 -7
  445. package/src/props/IValidationRegexProps.ts +4 -4
  446. package/src/props/IValidationStringProps.ts +4 -4
  447. package/src/routing/INSRouterMaker.ts +6 -6
  448. package/src/routing/INSRouterProps.ts +5 -5
  449. package/src/routing/INSRouterState.ts +5 -5
  450. package/src/routing/NSRouterMaker.tsx +33 -33
  451. package/src/routing/Notifier.ts +79 -79
  452. package/tsconfig.json +43 -43
  453. package/dist/App.css +0 -58
  454. package/dist/components/NSAccordion.js.map +0 -1
  455. package/dist/components/NSAssistantButton.d.ts +0 -5
  456. package/dist/components/NSAssistantButton.js +0 -17
  457. package/dist/components/NSAssistantButton.js.map +0 -1
  458. package/dist/components/NSBarHeroBanner.d.ts +0 -7
  459. package/dist/components/NSBarHeroBanner.js +0 -8
  460. package/dist/components/NSBarHeroBanner.js.map +0 -1
  461. package/dist/components/NSBarHeroBanner.module.css +0 -43
  462. package/dist/components/NSBoxCopy.d.ts +0 -7
  463. package/dist/components/NSBoxEntity.module.css +0 -22
  464. package/dist/components/NSBoxErrorNotifier.d.ts +0 -6
  465. package/dist/components/NSBoxErrorNotifier.js.map +0 -1
  466. package/dist/components/NSBoxLabel.js +0 -11
  467. package/dist/components/NSBoxLabel.js.map +0 -1
  468. package/dist/components/NSBoxPrice.js +0 -45
  469. package/dist/components/NSBoxPrice.js.map +0 -1
  470. package/dist/components/NSCopyToClipboard.d.ts +0 -7
  471. package/dist/components/NSCopyToClipboard.js +0 -13
  472. package/dist/components/NSCopyToClipboard.js.map +0 -1
  473. package/dist/components/NSCopyToClipboard.module.css +0 -44
  474. package/dist/components/NSDeleteDialog.d.ts +0 -6
  475. package/dist/components/NSDeleteDialog.js.map +0 -1
  476. package/dist/components/NSEntityBar.js.map +0 -1
  477. package/dist/components/NSGroupedList.js +0 -40
  478. package/dist/components/NSPageSelectionModal.js.map +0 -1
  479. package/dist/components/NSRadioButton.d.ts +0 -25
  480. package/dist/components/NSRadioButton.js +0 -49
  481. package/dist/components/NSRadioButton.js.map +0 -1
  482. package/dist/components/NSSectionBars.d.ts +0 -7
  483. package/dist/components/NSSectionBars.js +0 -10
  484. package/dist/components/NSSectionBars.js.map +0 -1
  485. package/dist/components/NSTimeTable.d.ts +0 -15
  486. package/dist/components/NSTimeTable.js +0 -21
  487. package/dist/components/NSTimeTable.js.map +0 -1
  488. package/dist/components/NSTimeTable.module.css +0 -7
  489. package/dist/formatter/ForeignIDFormatter.d.ts +0 -4
  490. package/dist/formatter/ForeignIDFormatter.js +0 -7
  491. package/dist/formatter/ForeignIDFormatter.js.map +0 -1
  492. package/dist/index.css +0 -6
  493. package/src/components/NSAssistantButton.tsx +0 -71
  494. package/src/components/NSBarHeroBanner.module.css +0 -43
  495. package/src/components/NSBarHeroBanner.tsx +0 -62
  496. package/src/components/NSBoxEntity.module.css +0 -22
  497. package/src/components/NSDeleteDialog.module.css +0 -0
  498. package/src/components/NSInfoDialog.module.css +0 -0
  499. package/src/components/NSProductList.module.css +0 -0
  500. package/src/components/NSTimeTable.module.css +0 -7
  501. package/src/components/NSTimeTable.tsx +0 -50
  502. /package/dist/components/{NSBoxEnum.module.css → NSDialogDelete.module.css} +0 -0
  503. /package/dist/components/{NSChartPie.module.css → NSDialogInfo.module.css} +0 -0
  504. /package/dist/components/{NSDeleteDialog.module.css → NSListProduct.module.css} +0 -0
  505. /package/{dist/components/NSInfoDialog.module.css → src/components/NSDialogDelete.module.css} +0 -0
  506. /package/{dist/components/NSProductList.module.css → src/components/NSDialogInfo.module.css} +0 -0
  507. /package/src/components/{NSBoxEnum.module.css → NSListProduct.module.css} +0 -0
package/.dockerignore CHANGED
@@ -1,87 +1,87 @@
1
- # Editor
2
- .vscode/
3
- .vscode-test/
4
- .idea
5
-
6
- # Logs
7
- logs
8
- *.log
9
- npm-debug.log*
10
- npm-debug.log*
11
- yarn-debug.log*
12
- yarn-error.log*
13
- lerna-debug.log*
14
- .pnpm-debug.log*
15
- npm-debug.log*
16
- yarn-debug.log*
17
- yarn-error.log*
18
-
19
- # misc
20
- .DS_Store
21
- *.pem
22
-
23
- # Diagnostic reports (https://nodejs.org/api/report.html)
24
- report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
25
-
26
- # local env files
27
- .env
28
- .env.*
29
- !.env.template
30
-
31
- # Runtime data
32
- pids
33
- *.pid
34
- *.seed
35
- *.pid.lock
36
-
37
- # Cache
38
- .npm
39
- .cache
40
- .parcel-cache
41
- .temp
42
- .docusaurus
43
- .fusebox/
44
- .eslintcache
45
- .stylelintcache
46
- .rpt2_cache/
47
- .rts2_cache_cjs/
48
- .rts2_cache_es/
49
- .rts2_cache_umd/
50
-
51
- # Dependency
52
- node_modules/
53
- jspm_packages/
54
- web_modules/
55
- bower_components/
56
-
57
- # Package Json
58
- package-lock.json
59
-
60
- # yarn v2
61
- .yarn/cache
62
- .yarn/unplugged
63
- .yarn/build-state.yml
64
- .yarn/install-state.gz
65
- .yarn-integrity
66
- .pnp.*
67
-
68
- # Build
69
- build/
70
- out/
71
- bin/
72
- dist/
73
-
74
- # typescript
75
- *.tsbuildinfo
76
-
77
- # swagger
78
- *.swg
79
-
80
- #schema
81
- *.schema
82
-
83
- # auto generated
84
- /page/
85
- /pages/
86
- /asset/
1
+ # Editor
2
+ .vscode/
3
+ .vscode-test/
4
+ .idea
5
+
6
+ # Logs
7
+ logs
8
+ *.log
9
+ npm-debug.log*
10
+ npm-debug.log*
11
+ yarn-debug.log*
12
+ yarn-error.log*
13
+ lerna-debug.log*
14
+ .pnpm-debug.log*
15
+ npm-debug.log*
16
+ yarn-debug.log*
17
+ yarn-error.log*
18
+
19
+ # misc
20
+ .DS_Store
21
+ *.pem
22
+
23
+ # Diagnostic reports (https://nodejs.org/api/report.html)
24
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
25
+
26
+ # local env files
27
+ .env
28
+ .env.*
29
+ !.env.template
30
+
31
+ # Runtime data
32
+ pids
33
+ *.pid
34
+ *.seed
35
+ *.pid.lock
36
+
37
+ # Cache
38
+ .npm
39
+ .cache
40
+ .parcel-cache
41
+ .temp
42
+ .docusaurus
43
+ .fusebox/
44
+ .eslintcache
45
+ .stylelintcache
46
+ .rpt2_cache/
47
+ .rts2_cache_cjs/
48
+ .rts2_cache_es/
49
+ .rts2_cache_umd/
50
+
51
+ # Dependency
52
+ node_modules/
53
+ jspm_packages/
54
+ web_modules/
55
+ bower_components/
56
+
57
+ # Package Json
58
+ package-lock.json
59
+
60
+ # yarn v2
61
+ .yarn/cache
62
+ .yarn/unplugged
63
+ .yarn/build-state.yml
64
+ .yarn/install-state.gz
65
+ .yarn-integrity
66
+ .pnp.*
67
+
68
+ # Build
69
+ build/
70
+ out/
71
+ bin/
72
+ dist/
73
+
74
+ # typescript
75
+ *.tsbuildinfo
76
+
77
+ # swagger
78
+ *.swg
79
+
80
+ #schema
81
+ *.schema
82
+
83
+ # auto generated
84
+ /page/
85
+ /pages/
86
+ /asset/
87
87
  /assets/
package/.env.template CHANGED
@@ -1,11 +1,11 @@
1
- ## BASE
2
- REACT_APP_BASE_PATH = ""
3
- REACT_APP_BASE_URL_ACCESS = "https://access.namirasoft.com/api/v1"
4
- REACT_APP_BASE_URL_ACCOUNT = "https://account.namirasoft.com/api/v1"
5
- REACT_APP_BASE_URL_ACCOUNT_CONSOLE = "https://account.namirasoft.com"
6
- REACT_APP_BASE_URL_API_LINK = "https://namirasoft.com/api/link/v1"
7
- REACT_APP_BASE_URL_API_PRODUCT = "https://namirasoft.com/api/product/v1"
8
- REACT_APP_BASE_URL_FIELD = "https://field.namirasoft.com/api/v1"
9
- REACT_APP_BASE_URL_HISTORY = "https://history.namirasoft.com/api/v1"
10
- REACT_APP_BASE_URL_MESSAGE = "https://message.namirasoft.com/api/v1"
1
+ ## BASE
2
+ REACT_APP_BASE_PATH = ""
3
+ REACT_APP_BASE_URL_ACCESS = "https://access.namirasoft.com/api/v1"
4
+ REACT_APP_BASE_URL_ACCOUNT = "https://account.namirasoft.com/api/v1"
5
+ REACT_APP_BASE_URL_ACCOUNT_CONSOLE = "https://account.namirasoft.com"
6
+ REACT_APP_BASE_URL_API_LINK = "https://namirasoft.com/api/link/v1"
7
+ REACT_APP_BASE_URL_API_PRODUCT = "https://namirasoft.com/api/product/v1"
8
+ REACT_APP_BASE_URL_FIELD = "https://field.namirasoft.com/api/v1"
9
+ REACT_APP_BASE_URL_HISTORY = "https://history.namirasoft.com/api/v1"
10
+ REACT_APP_BASE_URL_MESSAGE = "https://message.namirasoft.com/api/v1"
11
11
  REACT_APP_BASE_URL_WORKSPACE = "https://workspace.namirasoft.com/api/v1"
package/Dockerfile CHANGED
@@ -1,19 +1,19 @@
1
- FROM nexus.namirasoft.com:8443/arm-nodets:latest
2
-
3
- WORKDIR /app
4
-
5
- ENV NODE_ENV=production
6
-
7
- # Install
8
- COPY package*.json ./
9
- RUN npm install
10
-
11
- # Copy
12
- COPY . .
13
-
14
- # Build
15
- RUN tsc
16
-
17
- EXPOSE 3000
18
-
1
+ FROM nexus.namirasoft.com:8443/arm-nodets:latest
2
+
3
+ WORKDIR /app
4
+
5
+ ENV NODE_ENV=production
6
+
7
+ # Install
8
+ COPY package*.json ./
9
+ RUN npm install
10
+
11
+ # Copy
12
+ COPY . .
13
+
14
+ # Build
15
+ RUN tsc
16
+
17
+ EXPOSE 3000
18
+
19
19
  CMD ["node", "./dist/index.js"]
@@ -1,73 +1,73 @@
1
- const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
2
- const webpack = require('webpack');
3
-
4
- const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
5
-
6
- module.exports = function config_overrides(config, webpackEnv)
7
- {
8
- console.log('overriding webpack config...');
9
- const isEnvDevelopment = webpackEnv === 'development';
10
- const isEnvProduction = webpackEnv === 'production';
11
- const loaders = config.module.rules[1].oneOf;
12
-
13
- loaders.splice(loaders.length - 1, 0, {
14
- test: /\.(js|mjs|cjs)$/,
15
- exclude: /@babel(?:\/|\\{1,2})runtime/,
16
- loader: require.resolve('babel-loader'),
17
- options: {
18
- babelrc: false,
19
- configFile: false,
20
- compact: false,
21
- presets: [
22
- [
23
- require.resolve('babel-preset-react-app/dependencies'),
24
- { helpers: true },
25
- ],
26
- ],
27
- cacheDirectory: true,
28
- // See #6846 for context on why cacheCompression is disabled
29
- cacheCompression: false,
30
- // @remove-on-eject-begin
31
- cacheIdentifier: getCacheIdentifier(
32
- isEnvProduction
33
- ? 'production'
34
- : isEnvDevelopment && 'development',
35
- [
36
- 'babel-plugin-named-asset-import',
37
- 'babel-preset-react-app',
38
- 'react-dev-utils',
39
- 'react-scripts',
40
- ]
41
- ),
42
- // @remove-on-eject-end
43
- // Babel sourcemaps are needed for debugging into node_modules
44
- // code. Without the options below, debuggers like VSCode
45
- // show incorrect code and set breakpoints on the wrong lines.
46
- sourceMaps: shouldUseSourceMap,
47
- inputSourceMap: shouldUseSourceMap,
48
- },
49
- });
50
-
51
- config.resolve.fallback = {
52
- "child_process": false,
53
- "crypto": false,
54
- // "crypto": require.resolve("crypto-browserify")
55
- "fs": false,
56
- // "http": require.resolve("stream-http"),
57
- "https": false,
58
- "net": false,
59
- "os": require.resolve("os-browserify"),
60
- "path": require.resolve("path-browserify"),
61
- // "stream": require.resolve("stream-browserify"),
62
- "tls": false,
63
- // "util": require.resolve("util/"),
64
- // "zlib": require.resolve("browserify-zlib"),
65
- }
66
- config.plugins = (config.plugins || []).concat([
67
- new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
68
- {
69
- resource.request = resource.request.replace(/^node:/, "");
70
- })
71
- ]);
72
- return config;
1
+ const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
2
+ const webpack = require('webpack');
3
+
4
+ const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
5
+
6
+ module.exports = function config_overrides(config, webpackEnv)
7
+ {
8
+ console.log('overriding webpack config...');
9
+ const isEnvDevelopment = webpackEnv === 'development';
10
+ const isEnvProduction = webpackEnv === 'production';
11
+ const loaders = config.module.rules[1].oneOf;
12
+
13
+ loaders.splice(loaders.length - 1, 0, {
14
+ test: /\.(js|mjs|cjs)$/,
15
+ exclude: /@babel(?:\/|\\{1,2})runtime/,
16
+ loader: require.resolve('babel-loader'),
17
+ options: {
18
+ babelrc: false,
19
+ configFile: false,
20
+ compact: false,
21
+ presets: [
22
+ [
23
+ require.resolve('babel-preset-react-app/dependencies'),
24
+ { helpers: true },
25
+ ],
26
+ ],
27
+ cacheDirectory: true,
28
+ // See #6846 for context on why cacheCompression is disabled
29
+ cacheCompression: false,
30
+ // @remove-on-eject-begin
31
+ cacheIdentifier: getCacheIdentifier(
32
+ isEnvProduction
33
+ ? 'production'
34
+ : isEnvDevelopment && 'development',
35
+ [
36
+ 'babel-plugin-named-asset-import',
37
+ 'babel-preset-react-app',
38
+ 'react-dev-utils',
39
+ 'react-scripts',
40
+ ]
41
+ ),
42
+ // @remove-on-eject-end
43
+ // Babel sourcemaps are needed for debugging into node_modules
44
+ // code. Without the options below, debuggers like VSCode
45
+ // show incorrect code and set breakpoints on the wrong lines.
46
+ sourceMaps: shouldUseSourceMap,
47
+ inputSourceMap: shouldUseSourceMap,
48
+ },
49
+ });
50
+
51
+ config.resolve.fallback = {
52
+ "child_process": false,
53
+ "crypto": false,
54
+ // "crypto": require.resolve("crypto-browserify")
55
+ "fs": false,
56
+ // "http": require.resolve("stream-http"),
57
+ "https": false,
58
+ "net": false,
59
+ "os": require.resolve("os-browserify"),
60
+ "path": require.resolve("path-browserify"),
61
+ // "stream": require.resolve("stream-browserify"),
62
+ "tls": false,
63
+ // "util": require.resolve("util/"),
64
+ // "zlib": require.resolve("browserify-zlib"),
65
+ }
66
+ config.plugins = (config.plugins || []).concat([
67
+ new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
68
+ {
69
+ resource.request = resource.request.replace(/^node:/, "");
70
+ })
71
+ ]);
72
+ return config;
73
73
  };
package/dist/App.d.ts CHANGED
@@ -1,9 +1,3 @@
1
1
  import './App.css';
2
2
  import 'bootstrap/dist/css/bootstrap.min.css';
3
- export interface INSBarActionState {
4
- id: string;
5
- menu_item: string;
6
- handler: () => void;
7
- isActive: () => boolean;
8
- }
9
3
  export declare function App(): import("react/jsx-runtime").JSX.Element;
package/dist/App.js CHANGED
@@ -1,179 +1,49 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
11
2
  import './App.css';
3
+ import { VariableType } from 'namirasoft-schema';
12
4
  import 'bootstrap/dist/css/bootstrap.min.css';
13
- import { NSTable } from './components/NSTable';
14
- import { BooleanFormatter, DateFormatter, DateTimeFormatter, EmailFormatter, EnumFormatter, FloatFormatter, ForeColorFormatter, IDFormatter, IntegerFormatter, IPFormatter, NSBarAlert, NSBoxBoolean, NSBoxBooleans, NSBoxDate, NSBoxEnum, NSBoxInteger, NSBoxPhone, NSBoxRadio, NSBoxSearch, NSBoxString, NSBoxTextArea, NSButtonBlue, NSCard, NSChartDoughnut, NSDialog, NSDownTimer, NSFooter, NSNotFoundPage, NSRepeater, NSTabPage, PhoneFormatter, TimeFormatter } from './main';
15
- import { useState } from 'react';
16
- const columns = [
17
- {
18
- index: 0,
19
- name: 'id',
20
- text: 'ID',
21
- formatter: new IDFormatter(),
22
- },
23
- {
24
- index: 1,
25
- name: 'valid',
26
- text: 'Valid',
27
- formatter: new ForeColorFormatter(new BooleanFormatter("Yes", "Invalid"), { true: "green", false: "red" }),
28
- },
29
- {
30
- index: 2,
31
- name: 'data',
32
- text: 'Date',
33
- formatter: new DateFormatter(),
34
- },
35
- {
36
- index: 3,
37
- name: 'time',
38
- text: 'Time',
39
- formatter: new TimeFormatter(),
40
- },
41
- {
42
- index: 4,
43
- name: 'datetime',
44
- text: 'DateTime',
45
- formatter: new DateTimeFormatter(),
46
- },
47
- {
48
- index: 5,
49
- name: 'email',
50
- text: 'Email',
51
- formatter: new EmailFormatter(),
52
- },
53
- {
54
- index: 5,
55
- name: 'status',
56
- text: 'Status',
57
- formatter: new EnumFormatter(),
58
- },
59
- {
60
- index: 5,
61
- name: 'float',
62
- text: 'Float',
63
- formatter: new FloatFormatter(),
64
- },
65
- {
66
- index: 5,
67
- name: 'int',
68
- text: 'Int',
69
- formatter: new IntegerFormatter(),
70
- },
71
- {
72
- index: 5,
73
- name: 'ip',
74
- text: 'IP',
75
- formatter: new IPFormatter(),
76
- },
77
- {
78
- index: 5,
79
- name: 'phone',
80
- text: 'Phone',
81
- formatter: new PhoneFormatter(),
82
- },
83
- ];
84
- let rows = [
85
- { index: 0, id: 'bln-trn-401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "jane.doe123@example.com", status: "Active", float: 0.0123, int: -500, ip: "127.0.0.1", phone: "(123) 456-7890" },
86
- { index: 1, id: 'sss-0123401234012340', valid: false, data: new Date(), time: new Date(), datetime: new Date(), email: "random.guy45@fakeemail.net", status: "Pending", float: 200, int: 0.123, ip: "localhost", phone: "+1-234-567-8901" },
87
- { index: 2, id: 'pym-0123401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "hello.world99@sample.org", status: "Done", float: 4000, int: 9.999, ip: "192.168.10.255", phone: "123.456.7890" },
88
- { index: 2, id: 'pym-0123401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "user.name2024@testmail.com", status: "Done", float: 5999.0099, int: 4200, ip: "10.10.0.0/24", phone: "+44 20 7946 0958" },
89
- { index: 2, id: 'pym-0123401234012340', valid: true, data: new Date(), time: new Date(), datetime: new Date(), email: "cool.kid77@domain.io", status: "Done", float: 800000.99, int: 250000000000, ip: "200.122.43.555/24", phone: "+1 (555) 555-5555" },
90
- ];
91
- let getFakeRows = () => __awaiter(void 0, void 0, void 0, function* () {
92
- return { rows, count: rows.length };
93
- });
94
- const getFakeRowKey = (row) => { return `${row.index}`; };
5
+ import { NSMenuAction, NSBarAction, NSBoxEmail, NSBoxPhone, NSBoxSearch, NSBoxCombo, NSBoxBoolean, NSSection, NSPanel, NSBoxDate, NSBoxDateTime, NSBoxDouble, NSBoxInteger, NSBoxDuration, NSBoxTime, NSBoxEnum, NSBoxFile, NSBoxIPV4, NSBoxIPV6, NSBoxPassword, NSBoxMoney, NSBoxRadio, NSBoxTextArea, } from './main';
6
+ import { NSBoxEntity } from './components/NSBoxEntity';
7
+ import { NamirasoftAPIProductServer } from 'namirasoft-api-product';
8
+ import { useRef } from 'react';
95
9
  export function App() {
96
- const tableProps = {
97
- name: "Test",
98
- checkbox: true,
99
- columns: columns,
100
- getRows: getFakeRows,
101
- getRowKey: getFakeRowKey,
102
- };
103
- let [state, setState] = useState(true);
104
- return (_jsxs(_Fragment, { children: [_jsx(NSFooter, { isLoggedIn: () => false, logo: '', name: '', scope: '' }), _jsx(NSTable, Object.assign({}, tableProps)), _jsx(NSRepeater, { createItem: (_, lIndex, ref, onChange, onDelete, __, style) => {
105
- return _jsx(NSBoxString, { ref: ref, required: false, title: lIndex.toString(), style: style, onChanged: (x) => {
106
- if (x.getValue() === "d")
107
- onDelete(lIndex);
108
- else
109
- onChange(lIndex);
110
- } });
111
- }, getValue: (item, checkError) => item.getValue(checkError), isEmpty: value => value === "", updateItem: (item, _, value) => {
112
- if (value)
113
- item.setValue(value);
114
- } }), _jsx(NSBoxBoolean, { checked: state, required: false, title: state + "", indeterminate: false, onChanged: (e) => {
115
- setState(e.getValue());
116
- } }), _jsx(NSButtonBlue, { onClick: () => {
117
- setState(!state);
118
- } }), _jsx(NSNotFoundPage, {}), _jsx(NSBoxDate, { required: true, title: '' }), _jsx(NSBoxPhone, { required: true, title: '' }), _jsx(NSBoxInteger, { required: true, title: '', min: 8, max: 12 }), _jsx(NSBoxTextArea, { required: true, title: 'asd' }), _jsx(NSBoxEnum, { title: 'Retention Unit', required: true, multiple: false, options: [
119
- { title: "LogGroupRetentionUnit.Day", value: "LogGroupRetentionUnit.Day" },
120
- { title: "LogGroupRetentionUnit.Week", value: "LogGroupRetentionUnit.Week" },
121
- { title: "LogGroupRetentionUnit.Month", value: "LogGroupRetentionUnit.Month" },
122
- { title: "LogGroupRetentionUnit.Year", value: "LogGroupRetentionUnit.Year" },
123
- ] }), _jsx(NSBoxRadio, { required: true, title: 'asd' }), _jsx(NSTabPage, { tabs: [{
124
- title: "asdasd",
125
- getContent: () => {
126
- return (_jsx("div", { style: { backgroundColor: "#fff", width: "100%", color: "#fff" }, className: 'ns_tab_page_custom_style', children: _jsx(NSBoxPhone, { required: true, title: 'teststs' }) }));
127
- }
128
- },
129
- {
130
- title: "qwe asd ",
131
- getContent: () => {
132
- return (_jsxs(_Fragment, { children: [_jsx("div", { style: { backgroundColor: "#fff", width: "100%", color: "#fff" }, className: 'ns_tab_page_custom_style', children: _jsx(NSBoxPhone, { required: true, title: 'teststs' }) }), _jsx(NSButtonBlue, { title: "Send", onClick: () => { } })] }));
133
- }
134
- },
135
- {
136
- title: ";lkjqwiu lasid yh",
137
- getContent: () => {
138
- return (_jsx("div", { style: { backgroundColor: "#fff", width: "100%", color: "#fff" }, className: 'ns_tab_page_custom_style', children: _jsx(NSBoxPhone, { required: true, title: 'teststs' }) }));
139
- }
140
- }
141
- ] }), _jsx(NSBoxDate, { required: true, title: 'Test Test' }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
142
- title: "Verify Your Email",
143
- description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
144
- } }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
145
- title: "Verify Your Email",
146
- description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
147
- } }), _jsx("div", { style: { width: "560px" }, children: _jsx(NSBoxSearch, { required: true, title: 'asdasd', style: { width: "100%", maxWidth: "100%" } }) }), _jsx(NSButtonBlue, { onClick: () => { }, title: 'sssssssssss', disabled: true }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
148
- title: "Verify Your Email",
149
- description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
150
- } }), _jsx(NSCard, { title: "Namirasoft Job Arranger ", description: "asdasd asda sd asd asdd asd ", image: {
151
- src: "https://static.namirasoft.com/image/namirasoft/history/logo/base.png",
152
- }, link: {
153
- href: "ss",
154
- title: "test",
155
- target: "_seld"
156
- } }), _jsx("div", { className: "flex justify-content-center align-items-center w-100", children: _jsx(NSChartDoughnut, { datas: [7, 5, 8, 22, 5, 18], labels: ["test", "test2", "test3", "test4", "test5", "test6",], backgroundColors: ["#FF5733",
157
- "#42A5F5",
158
- "#FFC107",
159
- "#8BC34A",
160
- "#FF5722",
161
- "#673AB7",
162
- "#E91E63",
163
- "#4CAF50",
164
- "#FF9800",
165
- "#9C27B0",
166
- "#2196F3",
167
- "#FFEB3B",
168
- "#FF4081",
169
- "#00BCD4",
170
- "#CDDC39",], title: 'test' }) }), _jsx(NSBoxBoolean, { required: false, title: 'test', checked: true }), _jsx("div", { className: 'out', children: _jsx("div", { className: "middle", children: _jsx("div", { className: 'in' }) }) }), _jsx(NSDownTimer, { date: new Date(), text: 'Test ' }), _jsx(NSBoxBooleans, { items: [
171
- { value: "test1", text: "test1" },
172
- { value: "test2", text: "test2" },
173
- { value: "test3", text: "test3" },
174
- ], onChanged: (box) => {
175
- console.log(box.getValues());
176
- } }), state &&
177
- _jsx(NSDialog, { center_dialog: true, onClose: () => { setState(false); }, children: _jsx(_Fragment, {}) })] }));
10
+ let NSBoxTest = useRef(null);
11
+ return (_jsxs(_Fragment, { children: [_jsx(NSMenuAction, { items: [{
12
+ handler: () => { },
13
+ id: "1",
14
+ menu_item: "Name",
15
+ isActive: () => true
16
+ }, {
17
+ handler: () => { },
18
+ id: "2",
19
+ menu_item: "Text",
20
+ isActive: () => false
21
+ }], name: 'Test' }), _jsx(NSBarAction, { menus: {
22
+ "Test": [{
23
+ handler: () => { },
24
+ id: "1",
25
+ menu_item: "Name",
26
+ isActive: () => true
27
+ }, {
28
+ handler: () => { },
29
+ id: "2",
30
+ menu_item: "Text",
31
+ isActive: () => false
32
+ }]
33
+ }, title: 'Title' }), _jsx(NSSection, { center_items: true, children: _jsxs(NSPanel, { grid: true, children: [_jsx(NSBoxBoolean, { style: { width: "100%" }, title: 'Text', required: true, indeterminate: true }), _jsx(NSBoxCombo, { style: { width: "100%" }, title: 'Text', required: true, multiple: false, getOptions: () => [{
34
+ value: "1",
35
+ title: "1",
36
+ }] }), _jsx(NSBoxEnum, { style: { width: "100%" }, title: 'Type', required: true, multiple: true, getEnumObject: () => { return VariableType; }, onChanged: e => {
37
+ console.log(e.getValues(VariableType, VariableType.Any));
38
+ } }), _jsx(NSBoxEntity, { style: { width: "100%" }, title: 'Product', required: true, multiple: false, getItems: new NamirasoftAPIProductServer("https://namirasoft.com/api/product/v1", console.error).product.List, getValue: x => x.id, getTitle: x => x.name, onChanged: e => {
39
+ var _a, _b;
40
+ let box = e;
41
+ console.log((_a = box.NSBoxBaseCombo.current) === null || _a === void 0 ? void 0 : _a.getData());
42
+ try {
43
+ (_b = NSBoxTest.current) === null || _b === void 0 ? void 0 : _b.getValue();
44
+ }
45
+ catch (error) {
46
+ }
47
+ } }), _jsx(NSBoxEmail, { style: { width: "100%" }, title: 'Email', required: true }), _jsx(NSBoxTextArea, { style: { width: "100%" }, title: 'Test', required: true }), _jsx(NSBoxMoney, { style: { width: "100%" }, title: 'Money', required: true }), _jsx(NSBoxRadio, { style: { width: "100%" }, title: 'NSBoxRadio', required: true }), _jsx(NSBoxPhone, { style: { width: "100%" }, title: 'Phone', required: true }), _jsx(NSBoxPassword, { style: { width: "100%" }, title: 'Password', required: true }), _jsx(NSBoxIPV4, { style: { width: "100%" }, ref: NSBoxTest, title: 'IPV4', required: true }), _jsx(NSBoxIPV6, { style: { width: "100%" }, title: 'IPV6', required: true }), _jsx(NSBoxDate, { style: { width: "100%" }, title: 'Date', required: true }), _jsx(NSBoxDateTime, { style: { width: "100%" }, title: 'Datetime', required: true }), _jsx(NSBoxDouble, { style: { width: "100%" }, title: 'Double', required: true }), _jsx(NSBoxDuration, { style: { width: "100%" }, title: 'Duration', required: true }), _jsx(NSBoxTime, { style: { width: "100%" }, title: 'Time', required: true }), _jsx(NSBoxInteger, { style: { width: "100%" }, title: 'Integer', required: true }), _jsx(NSBoxSearch, { style: { width: "100%" }, title: 'Search', required: true }), _jsx(NSBoxFile, { style: { width: "100%" }, required: true, title: 'Driver License', multiple: true, maxFilesCount: 3 })] }) })] }));
178
48
  }
179
49
  //# sourceMappingURL=App.js.map