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
@@ -1,108 +1,100 @@
1
- "use client";
2
- import React from "react";
3
- import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
- import { IValidationProps } from "../props/IValidationProps";
5
- import { IValidationStringProps } from "../props/IValidationStringProps";
6
- import { Validator } from "../Validator";
7
- import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
- import { NSAssistantButton } from "./NSAssistantButton";
9
- import Styles from "./NSBox.module.css";
10
-
11
- export interface INSBoxSearchProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
12
- {
13
- title: string;
14
- placeholder?: string;
15
- defaultValue?: string;
16
- onChanged?: (e: NSBoxSearch, callback?: () => void) => void;
17
- onClicked?: (e: NSBoxSearch) => void;
18
- }
19
-
20
- export interface INSBoxSearchState
21
- {
22
- value: string;
23
- error?: string;
24
- isFullScreen: boolean;
25
- }
26
-
27
- export class NSBoxSearch extends React.Component<INSBoxSearchProps, INSBoxSearchState>
28
- {
29
- constructor(props: INSBoxSearchProps)
30
- {
31
- super(props);
32
- this.state = { value: props.defaultValue ?? "", isFullScreen: false };
33
- this.getValue = this.getValue.bind(this);
34
- this.setValue = this.setValue.bind(this);
35
- this.onChanged = this.onChanged.bind(this);
36
- this.toggleFullScreen = this.toggleFullScreen.bind(this);
37
- }
38
- getError(): string | null
39
- {
40
- return (
41
- Validator.getError(this.props.title, this.state.value, this.props) ||
42
- Validator.getErrorString(this.props.title, this.state.value, this.props)
43
- );
44
- }
45
- getValue(checkError: boolean = true): string
46
- {
47
- if (checkError)
48
- {
49
- let error = this.getError();
50
- if (error)
51
- {
52
- this.setState({ error });
53
- throw new Error(error);
54
- }
55
- }
56
- return this.state.value;
57
- }
58
- setValue(value: string, callback?: () => void): void
59
- {
60
- this.setState({ value }, () =>
61
- {
62
- if (this.props.onChanged)
63
- this.props.onChanged(this, callback);
64
- else if (callback)
65
- callback();
66
- });
67
- }
68
- private onChanged(e: React.ChangeEvent<HTMLInputElement>): void
69
- {
70
- this.setValue(e.target.value);
71
- }
72
- private toggleFullScreen(): void
73
- {
74
- this.setState(prevState => ({ isFullScreen: !prevState.isFullScreen }));
75
- }
76
- override render()
77
- {
78
- return (
79
- <>
80
- <div id={this.props.id} className={`${Styles.ns_input_parent} ${this.props.classList?.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`} style={this.props.style}>
81
- <div className="d-flex justify-content-between align-items-center">
82
- <span className={Styles.ns_input_title}>
83
- {this.props.required && <span style={{ color: "red" }}>*</span>} {this.props.title}
84
- </span>
85
- <NSAssistantButton value={this.state.value} setValue={this.setValue} />
86
- </div>
87
- <input
88
- type="text"
89
- name={this.props.name}
90
- className={Styles.ns_input}
91
- placeholder={this.props.placeholder}
92
- value={this.state.value}
93
- onChange={this.onChanged}
94
- onClick={() => this.props.onClicked}
95
- style=
96
- {{
97
- background: `url(${"https://static.namirasoft.com/image/concept/search/blue.svg"}) white no-repeat left`,
98
- backgroundSize: "24px",
99
- backgroundPosition: "10px",
100
- paddingLeft: "48px",
101
- }}
102
- />
103
- <NSBoxErrorNotifier error={this.state.error} clearError={() => this.setState({ error: "" })} />
104
- </div>
105
- </>
106
- );
107
- }
1
+ "use client";
2
+ import React from "react";
3
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
+ import { IValidationProps } from "../props/IValidationProps";
5
+ import { IValidationStringProps } from "../props/IValidationStringProps";
6
+ import { Validator } from "../Validator";
7
+ import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
8
+ import { NSMenuButton } from "./NSMenuButton";
9
+ import StylesNSBox from "./NSBox.module.css";
10
+
11
+ export interface NSBoxSearchProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
12
+ {
13
+ title: string;
14
+ placeholder?: string;
15
+ defaultValue?: string;
16
+ onChanged?: (e: NSBoxSearch, callback?: () => void) => void;
17
+ onClicked?: (e: NSBoxSearch) => void;
18
+ }
19
+
20
+ export interface NSBoxSearchState
21
+ {
22
+ value: string;
23
+ error?: string;
24
+ }
25
+
26
+ export class NSBoxSearch extends React.Component<NSBoxSearchProps, NSBoxSearchState>
27
+ {
28
+ constructor(props: NSBoxSearchProps)
29
+ {
30
+ super(props);
31
+ this.state = { value: props.defaultValue ?? "" };
32
+ this.getValue = this.getValue.bind(this);
33
+ this.setValue = this.setValue.bind(this);
34
+ this.onChanged = this.onChanged.bind(this);
35
+ }
36
+ getError(): string | null
37
+ {
38
+ return (
39
+ Validator.getError(this.props.title, this.state.value, this.props) ||
40
+ Validator.getErrorString(this.props.title, this.state.value, this.props)
41
+ );
42
+ }
43
+ getValue(checkError: boolean = true): string
44
+ {
45
+ if (checkError)
46
+ {
47
+ let error = this.getError();
48
+ if (error)
49
+ {
50
+ this.setState({ error });
51
+ throw new Error(error);
52
+ }
53
+ }
54
+ return this.state.value;
55
+ }
56
+ setValue(value: string, callback?: () => void): void
57
+ {
58
+ this.setState({ value }, () =>
59
+ {
60
+ if (this.props.onChanged)
61
+ this.props.onChanged(this, callback);
62
+ else if (callback)
63
+ callback();
64
+ });
65
+ }
66
+ private onChanged(e: React.ChangeEvent<HTMLInputElement>): void
67
+ {
68
+ this.setValue(e.target.value);
69
+ }
70
+ override render()
71
+ {
72
+ return (
73
+ <>
74
+ <div className={`${StylesNSBox.ns_input_parent} ${this.props.classList?.join(" ")}`} style={this.props.style ?? {}}>
75
+ <div className={`${StylesNSBox.ns_input_bar}`}>
76
+ <span className={StylesNSBox.ns_input_title}>
77
+ {this.props.required && <span style={{ color: "red" }}>*</span>} {this.props.title}
78
+ </span>
79
+ <NSMenuButton value={this.state.value} setValue={this.setValue} />
80
+ </div>
81
+ <input
82
+ id={this.props.id}
83
+ name={this.props.name}
84
+ type="text"
85
+ className={StylesNSBox.ns_input}
86
+ placeholder={this.props.placeholder}
87
+ value={this.state.value}
88
+ onChange={this.onChanged}
89
+ onClick={() => { if (this.props.onClicked) this.props.onClicked(this); }}
90
+ style={{
91
+ background: `url(${"https://static.namirasoft.com/image/concept/search/blue.svg"}) white no-repeat scroll center right 4px`,
92
+ backgroundSize: "24px",
93
+ }}
94
+ />
95
+ <NSLabelErrorNotifier error={this.state.error} clearError={() => this.setState({ error: "" })} />
96
+ </div>
97
+ </>
98
+ );
99
+ }
108
100
  }
@@ -1,107 +1,105 @@
1
- "use client";
2
- import React from "react";
3
- import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
- import { IValidationProps } from "../props/IValidationProps";
5
- import { IValidationStringProps } from "../props/IValidationStringProps";
6
- import { Validator } from "../Validator";
7
- import { NSBoxErrorNotifier } from "./NSBoxErrorNotifier";
8
- import { NSAssistantButton } from "./NSAssistantButton";
9
- import Styles from "./NSBox.module.css";
10
-
11
- export interface INSBoxStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
12
- {
13
- title: string;
14
- placeholder?: string;
15
- defaultValue?: string;
16
- onChanged?: (e: NSBoxString, callback?: () => void) => void;
17
- onClicked?: (e: NSBoxString) => void;
18
- getError?: (value: string) => string | null;
19
- }
20
-
21
- export interface INSBoxStringState
22
- {
23
- value: string;
24
- error?: string;
25
- isFullScreen: boolean;
26
- }
27
-
28
- export class NSBoxString extends React.Component<INSBoxStringProps, INSBoxStringState>
29
- {
30
- constructor(props: INSBoxStringProps)
31
- {
32
- super(props);
33
- this.state = { value: props.defaultValue ?? "", isFullScreen: false };
34
- this.getValue = this.getValue.bind(this);
35
- this.setValue = this.setValue.bind(this);
36
- this.onChanged = this.onChanged.bind(this);
37
- this.toggleFullScreen = this.toggleFullScreen.bind(this);
38
- }
39
- getError(): string | null
40
- {
41
- let custom = null;
42
- if (this.props.getError)
43
- custom = this.props.getError(this.state.value);
44
- return (
45
- Validator.getError(this.props.title, this.state.value, this.props) ||
46
- Validator.getErrorString(this.props.title, this.state.value, this.props) ||
47
- custom
48
- );
49
- }
50
- getValue(checkError: boolean = true): string
51
- {
52
- if (checkError)
53
- {
54
- let error = this.getError();
55
- if (error)
56
- {
57
- this.setState({ error });
58
- throw new Error(error);
59
- }
60
- }
61
- return this.state.value;
62
- }
63
- setValue(value: string, callback?: () => void): void
64
- {
65
- this.setState({ value }, () =>
66
- {
67
- if (this.props.onChanged)
68
- this.props.onChanged(this, callback);
69
- else if (callback)
70
- callback();
71
- });
72
- }
73
- private onChanged(e: React.ChangeEvent<HTMLInputElement>): void
74
- {
75
- this.setValue(e.target.value);
76
- }
77
- private toggleFullScreen(): void
78
- {
79
- this.setState(prevState => ({ isFullScreen: !prevState.isFullScreen }));
80
- }
81
- override render()
82
- {
83
- return (
84
- <>
85
- <div id={this.props.id} className={`${Styles.ns_input_parent} ${this.props.classList?.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`} style={this.props.style}>
86
- <div className="d-flex justify-content-between align-items-center">
87
- <span className={Styles.ns_input_title}>
88
- {this.props.required && <span style={{ color: "red" }}>*</span>} {this.props.title}
89
- </span>
90
- <NSAssistantButton value={this.state.value} setValue={this.setValue} />
91
- </div>
92
- <input
93
- type="text"
94
- name={this.props.name}
95
- className={Styles.ns_input}
96
- placeholder={this.props.placeholder}
97
- value={this.state.value}
98
- onChange={this.onChanged}
99
- onClick={() => this.props.onClicked}
100
- style={{ background: `url("https://static.namirasoft.com/image/concept/nsbox/string.png") white no-repeat scroll center right 16px`, backgroundSize: "24px" }}
101
- />
102
- <NSBoxErrorNotifier error={this.state.error} clearError={() => this.setState({ error: "" })} />
103
- </div>
104
- </>
105
- );
106
- }
1
+ "use client";
2
+ import React from "react";
3
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
+ import { IValidationProps } from "../props/IValidationProps";
5
+ import { IValidationStringProps } from "../props/IValidationStringProps";
6
+ import { Validator } from "../Validator";
7
+ import { NSLabelErrorNotifier } from "./NSLabelErrorNotifier";
8
+ import { NSMenuButton } from "./NSMenuButton";
9
+ import StylesNSBox from "./NSBox.module.css";
10
+
11
+ export interface NSBoxStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps
12
+ {
13
+ title: string;
14
+ placeholder?: string;
15
+ defaultValue?: string;
16
+ onChanged?: (e: NSBoxString, callback?: () => void) => void;
17
+ onClicked?: (e: NSBoxString) => void;
18
+ getError?: (value: string) => string | null;
19
+ }
20
+
21
+ export interface NSBoxStringState
22
+ {
23
+ value: string;
24
+ error?: string;
25
+ }
26
+
27
+ export class NSBoxString extends React.Component<NSBoxStringProps, NSBoxStringState>
28
+ {
29
+ constructor(props: NSBoxStringProps)
30
+ {
31
+ super(props);
32
+ this.state = { value: props.defaultValue ?? "" };
33
+ this.getValue = this.getValue.bind(this);
34
+ this.setValue = this.setValue.bind(this);
35
+ this.onChanged = this.onChanged.bind(this);
36
+ }
37
+ getError(): string | null
38
+ {
39
+ let custom = null;
40
+ if (this.props.getError)
41
+ custom = this.props.getError(this.state.value);
42
+ return (
43
+ Validator.getError(this.props.title, this.state.value, this.props) ||
44
+ Validator.getErrorString(this.props.title, this.state.value, this.props) ||
45
+ custom
46
+ );
47
+ }
48
+ getValue(checkError: boolean = true): string
49
+ {
50
+ if (checkError)
51
+ {
52
+ let error = this.getError();
53
+ if (error)
54
+ {
55
+ this.setState({ error });
56
+ throw new Error(error);
57
+ }
58
+ }
59
+ return this.state.value;
60
+ }
61
+ setValue(value: string, callback?: () => void): void
62
+ {
63
+ this.setState({ value }, () =>
64
+ {
65
+ if (this.props.onChanged)
66
+ this.props.onChanged(this, callback);
67
+ else if (callback)
68
+ callback();
69
+ });
70
+ }
71
+ private onChanged(e: React.ChangeEvent<HTMLInputElement>): void
72
+ {
73
+ this.setValue(e.target.value);
74
+ }
75
+ override render()
76
+ {
77
+ return (
78
+ <>
79
+ <div className={`${StylesNSBox.ns_input_parent} ${this.props.classList?.join(" ")}`} style={this.props.style ?? {}}>
80
+ <div className={`${StylesNSBox.ns_input_bar}`}>
81
+ <span className={StylesNSBox.ns_input_title}>
82
+ {this.props.required && <span style={{ color: "red" }}>*</span>} {this.props.title}
83
+ </span>
84
+ <NSMenuButton value={this.state.value} setValue={this.setValue} />
85
+ </div>
86
+ <input
87
+ id={this.props.id}
88
+ name={this.props.name}
89
+ type="text"
90
+ className={StylesNSBox.ns_input}
91
+ placeholder={this.props.placeholder}
92
+ value={this.state.value}
93
+ onChange={this.onChanged}
94
+ onClick={() => { if (this.props.onClicked) this.props.onClicked(this); }}
95
+ style={{
96
+ background: `url("https://static.namirasoft.com/image/concept/type/string.png") white no-repeat scroll center right 4px`,
97
+ backgroundSize: "24px"
98
+ }}
99
+ />
100
+ <NSLabelErrorNotifier error={this.state.error} clearError={() => this.setState({ error: "" })} />
101
+ </div>
102
+ </>
103
+ );
104
+ }
107
105
  }
@@ -1,84 +1,46 @@
1
- .ns_text_area_parent {
2
- display: flex;
3
- flex-direction: column;
4
- width: fit-content;
5
- color: #141B5C;
6
- position: relative;
7
- justify-content: center;
8
- width: 100%;
9
- max-width: 560px;
10
- }
11
-
12
- .ns_text_area_container {
13
- display: flex;
14
- align-items: center;
15
- position: relative;
16
- width: 100%;
17
- height: 100%;
18
- }
19
-
20
- .ns_text_area_icon_container {
21
- margin: 0 !important;
22
- position: absolute;
23
- right: 12px;
24
- top: 10px;
25
- }
26
-
27
- .ns_text_area {
28
- border-radius: 8px;
29
- padding: 10px 42px 10px 12px;
30
- font-size: 16px;
31
- font-weight: 400;
32
- border: 1px solid rgba(0, 0, 0, 1) !important;
33
- width: 100%;
34
- }
35
-
36
- .ns_text_area:focus-visible {
37
- border-color: rgba(0, 0, 0, 1) !important;
38
- outline: solid 1px #4096ff !important;
39
- }
40
-
41
- .ns_text_area_title {
42
- font-size: 16px;
43
- font-weight: 400;
44
- display: flex;
45
- gap: 4px;
46
- }
47
-
48
- .ns_btn_box {
49
- opacity: 0;
50
- visibility: hidden;
51
- color: #000;
52
- border: none;
53
- cursor: pointer;
54
- width: max-content;
55
- background-color: transparent;
56
- }
57
-
58
- .ns_text_area_parent:hover .ns_btn_box {
59
- opacity: 1;
60
- visibility: visible;
61
- transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
62
- }
63
-
64
- .ns_btn_box img {
65
- position: inherit;
66
- }
67
-
68
- .ns_full_screen {
69
- position: fixed;
70
- top: 0;
71
- left: 0;
72
- width: 100%;
73
- height: 100%;
74
- background: #0101015c;
75
- z-index: 1000;
76
- padding: 5%;
77
- max-width: 100% !important;
78
- }
79
-
80
- .ns_full_screen textarea {
81
- width: 100% !important;
82
- max-width: 100%;
83
- height: 100% !important;
1
+ .ns_text_area_parent {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: fit-content;
5
+ color: #141B5C;
6
+ position: relative;
7
+ justify-content: center;
8
+ width: 100%;
9
+ max-width: 560px;
10
+ }
11
+
12
+ .ns_text_area_container {
13
+ display: flex;
14
+ align-items: center;
15
+ position: relative;
16
+ width: 100%;
17
+ height: 100%;
18
+ }
19
+
20
+ .ns_text_area_icon_container {
21
+ margin: 0 !important;
22
+ position: absolute;
23
+ right: 12px;
24
+ top: 10px;
25
+ }
26
+
27
+ .ns_text_area {
28
+ border-radius: 8px;
29
+ padding: 10px 42px 10px 12px;
30
+ font-size: 16px;
31
+ font-weight: 400;
32
+ border: 1px solid rgba(0, 0, 0, 1) !important;
33
+ width: 100%;
34
+ }
35
+
36
+ .ns_text_area:focus-visible {
37
+ border-color: rgba(0, 0, 0, 1) !important;
38
+ outline: solid 1px #4096ff !important;
39
+ }
40
+
41
+ .ns_text_area_title {
42
+ font-size: 16px;
43
+ font-weight: 400;
44
+ display: flex;
45
+ gap: 4px;
84
46
  }