nexus-shared 1.1.21 → 3.0.0

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 (376) hide show
  1. package/CHANGELOG.md +262 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1000 -0
  4. package/dist/Client.Index.d.ts +55 -0
  5. package/dist/Client.Index.js +60 -0
  6. package/dist/Components/Chats/Chat.d.ts +28 -0
  7. package/dist/Components/Chats/Chat.js +19 -0
  8. package/dist/Components/Chats/ChatButton.d.ts +26 -0
  9. package/dist/Components/Chats/ChatButton.js +41 -0
  10. package/dist/Components/Chats/ChatComposer.d.ts +41 -0
  11. package/dist/Components/Chats/ChatComposer.js +177 -0
  12. package/dist/Components/Chats/ChatConversations.d.ts +35 -0
  13. package/dist/Components/Chats/ChatConversations.js +38 -0
  14. package/dist/Components/Chats/ChatPanel.d.ts +66 -0
  15. package/dist/Components/Chats/ChatPanel.js +94 -0
  16. package/dist/Components/Chats/ChatParts.d.ts +87 -0
  17. package/dist/Components/Chats/ChatParts.js +100 -0
  18. package/dist/Components/Chats/ChatThread.d.ts +22 -0
  19. package/dist/Components/Chats/ChatThread.js +96 -0
  20. package/dist/Components/Documents/Button.d.ts +29 -0
  21. package/dist/Components/Documents/Button.js +11 -0
  22. package/dist/Components/Documents/Menu.d.ts +102 -0
  23. package/dist/Components/Documents/Menu.js +242 -0
  24. package/dist/Components/Documents/SplitButton.d.ts +64 -0
  25. package/dist/Components/Documents/SplitButton.js +129 -0
  26. package/dist/Components/Documents/TabButtons.d.ts +80 -0
  27. package/dist/Components/Documents/TabButtons.js +38 -0
  28. package/dist/Components/Forms/ApiForm.d.ts +23 -0
  29. package/dist/Components/Forms/ApiForm.js +100 -0
  30. package/dist/Components/Forms/Crud.d.ts +17 -0
  31. package/dist/Components/Forms/Crud.js +708 -0
  32. package/dist/Components/Forms/CrudParts.d.ts +15 -0
  33. package/dist/Components/Forms/CrudParts.js +36 -0
  34. package/dist/Components/Forms/ExcelImport.d.ts +42 -0
  35. package/dist/Components/Forms/ExcelImport.js +190 -0
  36. package/dist/Components/Forms/Form.d.ts +52 -0
  37. package/dist/Components/Forms/Form.js +323 -0
  38. package/dist/Components/Forms/SubmitForm.d.ts +65 -0
  39. package/dist/Components/Forms/SubmitForm.js +198 -0
  40. package/dist/Components/Inputs/Calendar.d.ts +69 -0
  41. package/dist/Components/Inputs/Calendar.js +258 -0
  42. package/dist/Components/Inputs/CheckBox.d.ts +53 -0
  43. package/dist/Components/Inputs/CheckBox.js +87 -0
  44. package/dist/Components/Inputs/CheckBoxGroup.d.ts +20 -0
  45. package/dist/Components/Inputs/CheckBoxGroup.js +80 -0
  46. package/dist/Components/Inputs/ChoiceField.d.ts +122 -0
  47. package/dist/Components/Inputs/ChoiceField.js +169 -0
  48. package/dist/Components/Inputs/DatePicker.d.ts +54 -0
  49. package/dist/Components/Inputs/DatePicker.js +246 -0
  50. package/dist/Components/Inputs/DateRangePicker.d.ts +62 -0
  51. package/dist/Components/Inputs/DateRangePicker.js +283 -0
  52. package/dist/Components/Inputs/DateTimePicker.d.ts +75 -0
  53. package/dist/Components/Inputs/DateTimePicker.js +400 -0
  54. package/dist/Components/Inputs/Dropdown.d.ts +117 -0
  55. package/dist/Components/Inputs/Dropdown.js +839 -0
  56. package/dist/Components/Inputs/DropdownParts.d.ts +84 -0
  57. package/dist/Components/Inputs/DropdownParts.js +102 -0
  58. package/dist/Components/Inputs/EditorShell.d.ts +45 -0
  59. package/dist/Components/Inputs/EditorShell.js +214 -0
  60. package/dist/Components/Inputs/Field.d.ts +53 -0
  61. package/dist/Components/Inputs/Field.js +16 -0
  62. package/dist/Components/Inputs/GroupForm.d.ts +20 -0
  63. package/dist/Components/Inputs/GroupForm.js +172 -0
  64. package/dist/Components/Inputs/InputField.d.ts +59 -0
  65. package/dist/Components/Inputs/InputField.js +169 -0
  66. package/dist/Components/Inputs/InputRenderer.d.ts +37 -0
  67. package/dist/Components/Inputs/InputRenderer.js +99 -0
  68. package/dist/Components/Inputs/MarkdownEditor.d.ts +67 -0
  69. package/dist/Components/Inputs/MarkdownEditor.js +289 -0
  70. package/dist/Components/Inputs/NumberBox.d.ts +53 -0
  71. package/dist/Components/Inputs/NumberBox.js +228 -0
  72. package/dist/Components/Inputs/RadioGroup.d.ts +20 -0
  73. package/dist/Components/Inputs/RadioGroup.js +43 -0
  74. package/dist/Components/Inputs/ReadOnlyNotice.d.ts +36 -0
  75. package/dist/Components/Inputs/ReadOnlyNotice.js +117 -0
  76. package/dist/Components/Inputs/RichTextEditor.d.ts +103 -0
  77. package/dist/Components/Inputs/RichTextEditor.js +1170 -0
  78. package/dist/Components/Inputs/RichTextParts.d.ts +63 -0
  79. package/dist/Components/Inputs/RichTextParts.js +157 -0
  80. package/dist/Components/Inputs/RowsInput.d.ts +115 -0
  81. package/dist/Components/Inputs/RowsInput.js +308 -0
  82. package/dist/Components/Inputs/Slider.d.ts +87 -0
  83. package/dist/Components/Inputs/Slider.js +216 -0
  84. package/dist/Components/Inputs/TabularForm.d.ts +27 -0
  85. package/dist/Components/Inputs/TabularForm.js +348 -0
  86. package/dist/Components/Inputs/TextArea.d.ts +43 -0
  87. package/dist/Components/Inputs/TextArea.js +31 -0
  88. package/dist/Components/Inputs/TextBox.d.ts +52 -0
  89. package/dist/Components/Inputs/TextBox.js +58 -0
  90. package/dist/Components/Inputs/TextField.d.ts +31 -0
  91. package/dist/Components/Inputs/TextField.js +35 -0
  92. package/dist/Components/Inputs/TimePanel.d.ts +34 -0
  93. package/dist/Components/Inputs/TimePanel.js +288 -0
  94. package/dist/Components/Inputs/TimePicker.d.ts +54 -0
  95. package/dist/Components/Inputs/TimePicker.js +240 -0
  96. package/dist/Components/Inputs/TreeView.d.ts +160 -0
  97. package/dist/Components/Inputs/TreeView.js +947 -0
  98. package/dist/Components/Layouts/MessageBox.d.ts +71 -0
  99. package/dist/Components/Layouts/MessageBox.js +104 -0
  100. package/dist/Components/Layouts/Popup.d.ts +92 -0
  101. package/dist/Components/Layouts/Popup.js +376 -0
  102. package/dist/Components/Layouts/PopupContext.d.ts +2 -0
  103. package/dist/Components/Layouts/PopupContext.js +4 -0
  104. package/dist/Components/Layouts/PopupDock.d.ts +22 -0
  105. package/dist/Components/Layouts/PopupDock.js +121 -0
  106. package/dist/Components/Layouts/PopupHost.d.ts +56 -0
  107. package/dist/Components/Layouts/PopupHost.js +163 -0
  108. package/dist/Components/Layouts/PopupRules.d.ts +30 -0
  109. package/dist/Components/Layouts/PopupRules.js +63 -0
  110. package/dist/Components/Layouts/ThemePicker.d.ts +13 -0
  111. package/dist/Components/Layouts/ThemePicker.js +22 -0
  112. package/dist/Components/Layouts/ThemeScript.d.ts +14 -0
  113. package/dist/Components/Layouts/ThemeScript.js +13 -0
  114. package/dist/Components/Layouts/ThemeSwitcher.d.ts +13 -0
  115. package/dist/Components/Layouts/ThemeSwitcher.js +49 -0
  116. package/dist/Components/Layouts/Toaster.d.ts +76 -0
  117. package/dist/Components/Layouts/Toaster.js +172 -0
  118. package/dist/Components/Viewers/DataTable.d.ts +25 -0
  119. package/dist/Components/Viewers/DataTable.js +596 -0
  120. package/dist/Components/Viewers/DataTableColumns.d.ts +28 -0
  121. package/dist/Components/Viewers/DataTableColumns.js +243 -0
  122. package/dist/Components/Viewers/DataTableParts.d.ts +138 -0
  123. package/dist/Components/Viewers/DataTableParts.js +157 -0
  124. package/dist/Components/Viewers/MarkdownView.d.ts +26 -0
  125. package/dist/Components/Viewers/MarkdownView.js +79 -0
  126. package/dist/Components/Viewers/RichTextView.d.ts +18 -0
  127. package/dist/Components/Viewers/RichTextView.js +17 -0
  128. package/dist/Helpers/AnimationHelpers.d.ts +6 -0
  129. package/dist/Helpers/AnimationHelpers.js +35 -0
  130. package/dist/Helpers/ApiClient.d.ts +96 -0
  131. package/dist/Helpers/ApiClient.js +200 -0
  132. package/dist/Helpers/ApiFormHelpers.d.ts +49 -0
  133. package/dist/Helpers/ApiFormHelpers.js +120 -0
  134. package/dist/Helpers/ApiModules.d.ts +131 -0
  135. package/dist/Helpers/ApiModules.js +195 -0
  136. package/dist/Helpers/ApiResponses.d.ts +51 -0
  137. package/dist/Helpers/ApiResponses.js +250 -0
  138. package/dist/Helpers/ApiRoutes.d.ts +140 -0
  139. package/dist/Helpers/ApiRoutes.js +183 -0
  140. package/dist/Helpers/ApiToasts.d.ts +21 -0
  141. package/dist/Helpers/ApiToasts.js +22 -0
  142. package/dist/Helpers/ChatBackend.d.ts +134 -0
  143. package/dist/Helpers/ChatBackend.js +332 -0
  144. package/dist/Helpers/ChatHelpers.d.ts +189 -0
  145. package/dist/Helpers/ChatHelpers.js +486 -0
  146. package/dist/Helpers/ChatHooks.d.ts +81 -0
  147. package/dist/Helpers/ChatHooks.js +175 -0
  148. package/dist/Helpers/ChatStore.d.ts +132 -0
  149. package/dist/Helpers/ChatStore.js +394 -0
  150. package/dist/Helpers/ChatSummaries.d.ts +39 -0
  151. package/dist/Helpers/ChatSummaries.js +118 -0
  152. package/dist/Helpers/ClassHelpers.d.ts +3 -0
  153. package/dist/Helpers/ClassHelpers.js +4 -0
  154. package/dist/Helpers/CrudBackend.d.ts +98 -0
  155. package/dist/Helpers/CrudBackend.js +214 -0
  156. package/dist/Helpers/CrudHelpers.d.ts +111 -0
  157. package/dist/Helpers/CrudHelpers.js +267 -0
  158. package/dist/Helpers/DateHelpers.d.ts +88 -0
  159. package/dist/Helpers/DateHelpers.js +363 -0
  160. package/dist/Helpers/DatePreferences.d.ts +14 -0
  161. package/dist/Helpers/DatePreferences.js +94 -0
  162. package/dist/Helpers/DateTimeHelpers.d.ts +87 -0
  163. package/dist/Helpers/DateTimeHelpers.js +286 -0
  164. package/dist/Helpers/DragHelpers.d.ts +129 -0
  165. package/dist/Helpers/DragHelpers.js +281 -0
  166. package/dist/Helpers/DropdownHelpers.d.ts +56 -0
  167. package/dist/Helpers/DropdownHelpers.js +180 -0
  168. package/dist/Helpers/ExcelBackend.d.ts +106 -0
  169. package/dist/Helpers/ExcelBackend.js +290 -0
  170. package/dist/Helpers/ExcelHelpers.d.ts +98 -0
  171. package/dist/Helpers/ExcelHelpers.js +302 -0
  172. package/dist/Helpers/FormDrafts.d.ts +18 -0
  173. package/dist/Helpers/FormDrafts.js +76 -0
  174. package/dist/Helpers/FormStore.d.ts +233 -0
  175. package/dist/Helpers/FormStore.js +752 -0
  176. package/dist/Helpers/InputParamsHelpers.d.ts +79 -0
  177. package/dist/Helpers/InputParamsHelpers.js +388 -0
  178. package/dist/Helpers/MarkdownEditing.d.ts +27 -0
  179. package/dist/Helpers/MarkdownEditing.js +250 -0
  180. package/dist/Helpers/MarkdownHelpers.d.ts +82 -0
  181. package/dist/Helpers/MarkdownHelpers.js +775 -0
  182. package/dist/Helpers/MessageBuilder.d.ts +74 -0
  183. package/dist/Helpers/MessageBuilder.js +252 -0
  184. package/dist/Helpers/NepaliCalendar.d.ts +25 -0
  185. package/dist/Helpers/NepaliCalendar.js +107 -0
  186. package/dist/Helpers/NumberHelpers.d.ts +71 -0
  187. package/dist/Helpers/NumberHelpers.js +202 -0
  188. package/dist/Helpers/Permissions.d.ts +62 -0
  189. package/dist/Helpers/Permissions.js +133 -0
  190. package/dist/Helpers/PopoverHelpers.d.ts +68 -0
  191. package/dist/Helpers/PopoverHelpers.js +195 -0
  192. package/dist/Helpers/RichTextHelpers.d.ts +77 -0
  193. package/dist/Helpers/RichTextHelpers.js +1072 -0
  194. package/dist/Helpers/RowsStore.d.ts +166 -0
  195. package/dist/Helpers/RowsStore.js +606 -0
  196. package/dist/Helpers/TableColumns.d.ts +47 -0
  197. package/dist/Helpers/TableColumns.js +282 -0
  198. package/dist/Helpers/TableExport.d.ts +30 -0
  199. package/dist/Helpers/TableExport.js +97 -0
  200. package/dist/Helpers/TableHelpers.d.ts +110 -0
  201. package/dist/Helpers/TableHelpers.js +301 -0
  202. package/dist/Helpers/TableStore.d.ts +142 -0
  203. package/dist/Helpers/TableStore.js +530 -0
  204. package/dist/Helpers/ThemeHelpers.d.ts +15 -0
  205. package/dist/Helpers/ThemeHelpers.js +16 -0
  206. package/dist/Helpers/TimeHelpers.d.ts +73 -0
  207. package/dist/Helpers/TimeHelpers.js +253 -0
  208. package/dist/Helpers/TreeStore.d.ts +188 -0
  209. package/dist/Helpers/TreeStore.js +577 -0
  210. package/dist/Helpers/ValidationHelpers.d.ts +124 -0
  211. package/dist/Helpers/ValidationHelpers.js +301 -0
  212. package/dist/Interfaces/ApiInterfaces.d.ts +174 -0
  213. package/dist/Interfaces/ApiInterfaces.js +30 -0
  214. package/dist/Interfaces/ChatInterfaces.d.ts +240 -0
  215. package/{src/sso-client.tsx → dist/Interfaces/ChatInterfaces.js} +1 -1
  216. package/dist/Interfaces/CrudInterfaces.d.ts +232 -0
  217. package/dist/Interfaces/CrudInterfaces.js +1 -0
  218. package/dist/Interfaces/DateInterfaces.d.ts +154 -0
  219. package/dist/Interfaces/DateInterfaces.js +29 -0
  220. package/dist/Interfaces/ExcelInterfaces.d.ts +215 -0
  221. package/dist/Interfaces/ExcelInterfaces.js +45 -0
  222. package/dist/Interfaces/FormInterfaces.d.ts +402 -0
  223. package/dist/Interfaces/FormInterfaces.js +1 -0
  224. package/dist/Interfaces/InputInterfaces.d.ts +141 -0
  225. package/dist/Interfaces/InputInterfaces.js +1 -0
  226. package/dist/Interfaces/MessageInterfaces.d.ts +111 -0
  227. package/dist/Interfaces/MessageInterfaces.js +5 -0
  228. package/dist/Interfaces/TableInterfaces.d.ts +351 -0
  229. package/dist/Interfaces/TableInterfaces.js +1 -0
  230. package/dist/Interfaces/ThemeInterfaces.d.ts +17 -0
  231. package/dist/Interfaces/ThemeInterfaces.js +17 -0
  232. package/dist/Interfaces/TypeInterfaces.d.ts +4 -0
  233. package/dist/Interfaces/TypeInterfaces.js +1 -0
  234. package/dist/Server.Index.d.ts +2 -0
  235. package/dist/Server.Index.js +5 -0
  236. package/dist/Services/ApiProxy.d.ts +32 -0
  237. package/dist/Services/ApiProxy.js +111 -0
  238. package/dist/Services/BrowserApi.d.ts +95 -0
  239. package/dist/Services/BrowserApi.js +129 -0
  240. package/dist/Services/ChatApi.d.ts +37 -0
  241. package/dist/Services/ChatApi.js +98 -0
  242. package/dist/Services/ExcelApi.d.ts +46 -0
  243. package/dist/Services/ExcelApi.js +196 -0
  244. package/dist/Services/ServerApi.d.ts +54 -0
  245. package/dist/Services/ServerApi.js +78 -0
  246. package/dist/Services/ThemeService.d.ts +17 -0
  247. package/dist/Services/ThemeService.js +83 -0
  248. package/dist/Shared.Index.d.ts +51 -0
  249. package/dist/Shared.Index.js +55 -0
  250. package/package.json +85 -33
  251. package/src/Styles/Nexus.Base.css +70 -0
  252. package/src/Styles/Nexus.Button.css +153 -0
  253. package/src/Styles/Nexus.Calendar.css +275 -0
  254. package/src/Styles/Nexus.Chat.css +1489 -0
  255. package/src/Styles/Nexus.Choice.css +345 -0
  256. package/src/Styles/Nexus.Crud.css +161 -0
  257. package/src/Styles/Nexus.DateTime.css +81 -0
  258. package/src/Styles/Nexus.Dropdown.css +774 -0
  259. package/src/Styles/Nexus.Editor.css +297 -0
  260. package/src/Styles/Nexus.Excel.css +370 -0
  261. package/src/Styles/Nexus.Form.css +321 -0
  262. package/src/Styles/Nexus.Index.css +36 -0
  263. package/src/Styles/Nexus.Input.css +637 -0
  264. package/src/Styles/Nexus.Markdown.css +265 -0
  265. package/src/Styles/Nexus.Menu.css +259 -0
  266. package/src/Styles/Nexus.Popup.css +731 -0
  267. package/src/Styles/Nexus.RichText.css +463 -0
  268. package/src/Styles/Nexus.Rows.css +596 -0
  269. package/src/Styles/Nexus.Slider.css +278 -0
  270. package/src/Styles/Nexus.Tab.Buttons.css +419 -0
  271. package/src/Styles/Nexus.Table.css +1296 -0
  272. package/src/Styles/Nexus.Theme.Picker.css +232 -0
  273. package/src/Styles/Nexus.Themes.css +194 -0
  274. package/src/Styles/Nexus.Time.css +147 -0
  275. package/src/Styles/Nexus.Toast.css +265 -0
  276. package/src/Styles/Nexus.Tokens.css +72 -0
  277. package/src/Styles/Nexus.Tree.css +435 -0
  278. package/src/api-services/authentication-service.tsx +0 -23
  279. package/src/api-services/preference-service.tsx +0 -5
  280. package/src/api-services/system-service.tsx +0 -29
  281. package/src/client.ts +0 -31
  282. package/src/components/documents/button.tsx +0 -133
  283. package/src/components/documents/icon-box.tsx +0 -93
  284. package/src/components/documents/page-title.tsx +0 -7
  285. package/src/components/documents/tab-button.tsx +0 -172
  286. package/src/components/documents/tag.tsx +0 -30
  287. package/src/components/index.js +0 -0
  288. package/src/components/inputs/checkbox-input.tsx +0 -66
  289. package/src/components/inputs/input-box.tsx +0 -48
  290. package/src/components/inputs/input-element.tsx +0 -65
  291. package/src/components/inputs/input-form.tsx +0 -164
  292. package/src/components/inputs/input.tsx +0 -181
  293. package/src/components/inputs/number-input.tsx +0 -108
  294. package/src/components/inputs/radiobox-input.tsx +0 -53
  295. package/src/components/inputs/textarea-input.tsx +0 -47
  296. package/src/components/inputs/textbox-input.tsx +0 -45
  297. package/src/components/layouts/global-dialogbox.tsx +0 -431
  298. package/src/components/layouts/global-layout.tsx +0 -64
  299. package/src/components/layouts/layout-helpers.tsx +0 -20
  300. package/src/components/layouts/panels/user-panel.tsx +0 -112
  301. package/src/components/layouts/utility-menu.tsx +0 -49
  302. package/src/components/panels/theme-panel.tsx +0 -46
  303. package/src/helpers/bitwise-helpers.tsx +0 -11
  304. package/src/helpers/browser-helpers.tsx +0 -156
  305. package/src/helpers/datasource-helpers.tsx +0 -99
  306. package/src/helpers/element-helpers.tsx +0 -123
  307. package/src/helpers/input-helpers.tsx +0 -74
  308. package/src/helpers/string-helpers.tsx +0 -28
  309. package/src/helpers/utility-helpers.tsx +0 -45
  310. package/src/helpers/validation-helpers.tsx +0 -302
  311. package/src/index.ts +0 -26
  312. package/src/interface.ts +0 -19
  313. package/src/interfaces/auth-token-interfaces.tsx +0 -6
  314. package/src/interfaces/browser-interfaces.tsx +0 -36
  315. package/src/interfaces/button-interfaces.tsx +0 -63
  316. package/src/interfaces/datasource-interfaces.tsx +0 -22
  317. package/src/interfaces/datatable-interfaces.tsx +0 -25
  318. package/src/interfaces/dialogbox-interfaces.tsx +0 -5
  319. package/src/interfaces/exception-interfaces.tsx +0 -99
  320. package/src/interfaces/http-interfaces.tsx +0 -129
  321. package/src/interfaces/icon-interfaces.tsx +0 -129
  322. package/src/interfaces/input-interfaces.tsx +0 -410
  323. package/src/interfaces/layout-interfaces.tsx +0 -191
  324. package/src/interfaces/menu-interfaces.tsx +0 -53
  325. package/src/interfaces/message-interfaces.tsx +0 -32
  326. package/src/interfaces/permission-interfaces.tsx +0 -9
  327. package/src/interfaces/storage-interfaces.tsx +0 -5
  328. package/src/interfaces/system-interfaces.tsx +0 -22
  329. package/src/interfaces/theme-interfaces.tsx +0 -123
  330. package/src/interfaces/type-interfaces.tsx +0 -28
  331. package/src/interfaces/user-interfaces.tsx +0 -47
  332. package/src/nexus-client.tsx +0 -21
  333. package/src/nexus.environments.tsx +0 -66
  334. package/src/proxy-api/proxy-backend.tsx +0 -60
  335. package/src/proxy-api/proxy-constants.tsx +0 -28
  336. package/src/proxy-api/proxy-helpers.tsx +0 -91
  337. package/src/proxy-api-client.tsx +0 -1
  338. package/src/proxy-api-server.tsx +0 -2
  339. package/src/services/http-client-services.tsx +0 -75
  340. package/src/services/http-services.tsx +0 -158
  341. package/src/services/loader-service.tsx +0 -185
  342. package/src/services/localstorage-service.tsx +0 -119
  343. package/src/services/message-services.tsx +0 -383
  344. package/src/services/theme-service.tsx +0 -163
  345. package/src/services/user-services.tsx +0 -10
  346. package/src/sso-config/auth-token-validation.ts +0 -16
  347. package/src/sso-config/callback-route.tsx +0 -35
  348. package/src/sso-config/cookie-encryption.ts +0 -51
  349. package/src/sso-config/cookie-helpers.tsx +0 -102
  350. package/src/sso-config/forgot-password-route.tsx +0 -36
  351. package/src/sso-config/oauth-callback-state.ts +0 -61
  352. package/src/sso-config/pkce-helpers.ts +0 -9
  353. package/src/sso-config/provider-complete-route.tsx +0 -18
  354. package/src/sso-config/redirect-context-actions.tsx +0 -45
  355. package/src/sso-config/redirect-context-helpers.tsx +0 -159
  356. package/src/sso-config/redirect-context-persist.tsx +0 -18
  357. package/src/sso-config/redirect-context-route.tsx +0 -45
  358. package/src/sso-config/refresh-route.tsx +0 -23
  359. package/src/sso-config/sign-in-route.tsx +0 -74
  360. package/src/sso-config/sign-out-route.tsx +0 -57
  361. package/src/sso-config/sign-up-route.tsx +0 -57
  362. package/src/sso-config/sso-backend-flow.ts +0 -38
  363. package/src/sso-config/sso-complete-route.tsx +0 -50
  364. package/src/sso-config/sso-config.ts +0 -59
  365. package/src/sso-config/sso-interfaces.tsx +0 -99
  366. package/src/sso-config/sso-response-helpers.tsx +0 -20
  367. package/src/sso-server.tsx +0 -21
  368. package/src/styles/nexus.animation.css +0 -269
  369. package/src/styles/nexus.core.css +0 -119
  370. package/src/styles/nexus.dialog.css +0 -144
  371. package/src/styles/nexus.grid-view.css +0 -42
  372. package/src/styles/nexus.icon.css +0 -51
  373. package/src/styles/nexus.input.css +0 -207
  374. package/src/styles/nexus.loader.css +0 -11
  375. package/src/styles/nexus.logic.css +0 -47
  376. package/src/styles/nexus.utility.css +0 -347
package/CHANGELOG.md ADDED
@@ -0,0 +1,262 @@
1
+ # Changelog
2
+
3
+ Notable changes to `nexus-shared`. The **values** of exported constants count as API here: several of them are the
4
+ Nexus backend's own numbers, and a value that differs from the backend by one does not fail loudly — it silently
5
+ means the wrong thing on every record and every permission check.
6
+
7
+ ## 3.0.0
8
+
9
+ **Breaking. This changes the value of exported constants, and `2.0.0` is on npm with the old ones.** Publishing it
10
+ as a patch or a minor would hand `^2.0.0` consumers different numbers under a compatible-looking range, which is the
11
+ worst way to ship this, so it takes a major. The owner chose the number on 2026-10-02, together with `nexus-public`
12
+ and `nexus-admin`, which both depend on this package and so move to `3.0.0` with it; their `nexus-shared` range is
13
+ now `^3.0.0`, because a bump of this one alone would leave them pulling the old, wrong constants.
14
+
15
+ **`nexus-icons` must be installed at `1.1.0` or newer**, and the dependency range here says so. The chat components
16
+ added in this version use `iconChecks`, `iconCornerUpLeft`, `iconMessageCircle`, `iconPaperclip`, `iconSend` and
17
+ `iconUserPlus`, none of which exist in `nexus-icons@1.0.0`: with the old range a fresh install resolved to `1.0.0`
18
+ and the build failed on six missing exports.
19
+
20
+ ### `NexusModule` — `Chat` added, and every module after it moved up one bit
21
+
22
+ The backend's `EModules` gained `Chat` at bit 6, and everything after it shifted. `NexusModule` follows it exactly.
23
+ A permission is a bitmask of these flags, so a package that kept the old numbers would grant and deny the wrong
24
+ modules without any error to show for it.
25
+
26
+ | Module | Was | Now |
27
+ |---|---|---|
28
+ | `None` | 0 | 0 |
29
+ | `Migrations` | 1 | 1 |
30
+ | `Configuration` | 2 | 2 |
31
+ | `Identity` | 4 | 4 |
32
+ | `Enterprise` | 8 | 8 |
33
+ | `Drive` | 16 | 16 |
34
+ | `Message` | 32 | 32 |
35
+ | **`Chat`** | *(did not exist)* | **64** |
36
+ | `Accounting` | 64 | **128** |
37
+ | `Report` | 128 | **256** |
38
+ | `Requisition` | 256 | **512** |
39
+ | `Tenant` | 512 | **1024** |
40
+ | `Subscription` | 1024 | **2048** |
41
+ | `Reservation` | 2048 | **4096** |
42
+ | `School` | 4096 | **8192** |
43
+ | `Pharmacy` | 8192 | **16384** |
44
+ | `Staffing` | 16384 | **32768** |
45
+ | `Portfolio` | 32768 | **65536** |
46
+
47
+ `NEXUS_MODULES` gained the matching entry (`key: "chat"`, `label: "Chat"`, `env: "API_CHAT"`), so `Chat` can be
48
+ looked up, proxied and named in messages like every other module.
49
+
50
+ **What to check when you upgrade.** Code that uses the names (`NexusModule.Reservation`) needs nothing. Anything
51
+ that stored, transmitted or hard-coded a **number** has to be revisited:
52
+
53
+ - permission masks saved in a database, a cache, a token claim or a settings file;
54
+ - proxy URLs written with a number in place of a key (`/api/app/2048/…` is now `/api/app/4096/…`, and `reservation`
55
+ by key has always worked and still does);
56
+ - a backend that has not taken the `Chat` shift yet — both sides move together or neither does.
57
+
58
+ ### `NEXUS_FLAGGED_STATUS` — 15 → 25
59
+
60
+ The owner settled the record-status bands, and `ERecordStatus.Flagged` is seeded at **25**. `NexusCrudBackend`
61
+ decides whether a row is flagged by comparing `recordStatus` to this constant, so a package on 15 while the backend
62
+ writes 25 shows the wrong flag on every row, and flagging one writes a status the backend does not recognise.
63
+
64
+ The bands, for anything that reasons about them:
65
+
66
+ | Band | Range |
67
+ |---|---|
68
+ | Active | 0–39 |
69
+ | — Active account | 0–29 |
70
+ | — Flag | **25–29** |
71
+ | — Pending, unverified, in review, approval required | 30–39 |
72
+ | Trash | 40–59 |
73
+ | Delete | 60 and above |
74
+
75
+ `NEXUS_ACTIVE_STATUS` stays 0, and the `recordStatus < 40` reading of "a live record" that the rest of the code
76
+ already assumes stays right.
77
+
78
+ Note that **the flag is a range, 25–29, and this release still checks a single value.** Only the seeded member at 25
79
+ has a meaning today, and the bands are about to become configurable per project, so a range-aware check belongs with
80
+ that work rather than here. Do not read the single value as the final answer.
81
+
82
+ ### Removed: the archive
83
+
84
+ The owner removed the archive on 2026-09-30: a record is live, in the trash, or deleted, and the way back from
85
+ deleted lands it in the trash. The second put-away list and its second recovery path were the only reason the CRUD
86
+ had both Restore and Recover, and the bands close up behind it — **Trash is 40–59 and Delete 60 and above**, so
87
+ nothing stored keeps a meaning it no longer has. `recordStatus < 40` still reads "a live record".
88
+
89
+ What goes, all of it breaking for anything that named it:
90
+
91
+ - `CrudMode` loses `"archive"`, so a CRUD shows All, Flagged, Trash and Deleted.
92
+ - `CrudRowActionName` and `CrudMassActionName` lose `"archive"` and `"restore"`. Recover, the trash's own way back,
93
+ is untouched: a CRUD that offered both now offers one.
94
+ - `CrudEndpoints` loses `archive` and `restore`; `apiController` stops naming `Archive`, `Restore`, `MassArchive`,
95
+ `MassRestore`, `ArchiveListing` and `ArchivePagination`, and `lists`/`pages` lose their `archive` key.
96
+ - `MessageActionName` loses `"archive"`, and the message builder its words and its "It can be restored from the
97
+ archive." confirmation detail. `"restore"` stays in the vocabulary: it is a plain verb, not the archive's.
98
+
99
+ **What to check when you upgrade.** A CRUD that listed `"archive"` in `modes` or `actions` no longer compiles,
100
+ which is the point — the endpoint behind it is gone from the backend too. A backend that still answers
101
+ `ArchiveListing` is not asked for it any more.
102
+
103
+ ### Added: the chat
104
+
105
+ A discussion on any record — a leave request the manager and a co-worker talk through, a purchase order, an
106
+ applicant, a tender — behind one icon that says whether anything is waiting. Nothing that does not use it changes.
107
+
108
+ - A conversation is named by three values, `ChatScope`: the **domain** (which kind of record), the **parent id** (the
109
+ record) and the **user id** (who is reading). The domain is the app's own enum, given either as a template
110
+ (`<Chat<EDomainTypes> …>`) or once in `ChatRegister`, the same way `ApiRegister` names the module enum. Without one
111
+ it is a plain number.
112
+ - **No domain numbers are defined here.** They belong to the backend's `EDomainTypes`, and the warning at the top of
113
+ this file applies to them in full. `defineChatDomains` only gives an app's domains their names on screen.
114
+ - `ChatButton` is an icon in three looks: quiet with no messages, the accent on its tint once there are messages, and
115
+ the accent filled with an unread badge once some are unread. One size in all three, with the badge over the corner,
116
+ so a column of them in a table does not move as the counts arrive.
117
+ - `ChatSummaryCache` fills every icon that mounted in the same moment with **one call per domain**. A list whose rows
118
+ already carry their counts passes `summary` and makes no call at all.
119
+ - `Chat` is the icon with the conversation in a popup; `ChatPanel` is the conversation on its own, for a record's own
120
+ page. Messages are **Markdown**: written in `MarkdownEditor` and drawn by `MarkdownView`. Enter sends and
121
+ Shift+Enter starts a line, except in a list or a code fence, where the editor keeps Enter; `sendKey="modifier"`
122
+ moves sending to Ctrl+Enter.
123
+ - One mark where the time sits says how far a message of your own has got: a spinner while sending, a tick once the
124
+ server has it, two once `deliveredTo` holds somebody, two in the accent once `readBy` does.
125
+ - Where the data comes from is one interface, `ChatSource`. `apiChatSource` goes through the app's `ChatBackend`
126
+ (`NexusChatBackend` by default); `localChatSource` keeps a conversation in memory for a demo or a test.
127
+ - **The Nexus endpoints are the shape the Chat module is expected to take, not an API that answers today.**
128
+ `NexusModule.Chat` is a number and a proxy key; the controller is not built. Each difference, when it lands, is one
129
+ override on `NexusChatBackend`.
130
+ - `check:themes` gained a rule: body text on the primary tint, which is a message bubble of your own. Every theme
131
+ clears AAA except catppuccin light at 6.84, so it is held to the AA 4.5 that applies to body text.
132
+ - **A record holds many conversations.** `ChatScope` names the record; each conversation in it is a
133
+ `ChatConversation` with its own id and a type, `one-to-one` or `group`. `ChatPlaceSource` lists them and starts
134
+ them, `useChatPlace` is the hook, and `apiChatPlace` is the API one. A panel given a `source` still shows that one
135
+ conversation and no switch, so nothing that used the first round changes.
136
+ - The panel's body has three views — the thread, the list of conversations, and New chat — and the bar moves between
137
+ them. With several conversations the title is the switch; with one it is just the title.
138
+ - Starting a chat never asks for the type: one person makes a one-to-one, more make a group, and a name makes a
139
+ group either way. A one-to-one with somebody who already has one is expected to come back rather than be made
140
+ twice; `localChatPlace` keeps that rule.
141
+ - `@` at the start of a word offers the people in the conversation, narrows as it is typed, and owns Enter while it
142
+ is open. A mention is plain `@Name`, or a Markdown link with `mentionHref`; either way the ids travel in the
143
+ draft's `mentions`.
144
+ - `ChatSnapshot` gained `loaded`: a store that has read nothing yet holds empty counts, and a panel must not write
145
+ those over what a conversation list already knows.
146
+
147
+ ### Added: several at once, `TabButtons multiple`
148
+
149
+ `TabButtons` picks one option; with `multiple` it picks several, so a list of choices that must be seen all at once
150
+ (the weekdays a rule runs on, the letters or symbols a pattern allows) needs no second control. Nothing that does
151
+ not pass it changes.
152
+
153
+ - `value` is an array and `onChange` hands back the chosen values **in option order**, whatever order they were
154
+ clicked in. Values that match no option are ignored and never handed back.
155
+ - The options are native checkboxes in a `role="group"`: Tab moves between them and Space toggles one. The group
156
+ still needs `aria-label` or `aria-labelledby`.
157
+ - There is no sliding indicator: each chosen option is raised with the indicator's own colors, border and shadow,
158
+ and keeps the pointer, since a click takes it away again. An option that is not chosen sits flat on the track.
159
+ - The options **wrap** onto more rows when they do not fit, each row as tall as a one-row track's options, and an
160
+ option is never narrower than it is tall, so a row of single letters lines up. On a touch screen
161
+ (`pointer: coarse`) every option is a medium control's height: 26 letters on a phone are 34px targets, not 22px.
162
+ - Made and checked for the `nav` design (`/demo/tab-buttons`, "Several at once"); `design="list"` with `multiple`
163
+ renders checkboxes too, but has not been checked yet.
164
+
165
+ ### Added: inputs that follow others, `dependsOn`, and a row's own params, `cellParams`
166
+
167
+ Two optional keys, added 2026-09-26 for the builder's class form, whose company model shows only when the class has a
168
+ company or a branch and whose type arguments offer a key type in one row and a model in the next. Nothing that does
169
+ not pass them changes.
170
+
171
+ - **`dependsOn: ["hasCompany"]`** on an input's params (Form only). When a named input's value changes — typed, or
172
+ set from code — this input draws again **without mounting again** (nothing typed in it is lost) and its params are
173
+ read afresh, so getters for `hidden`, `readOnly`, `readOnlyMessage`, `label`, `hint` or `options` answer for the
174
+ values as they are now. Its rule is asked again too, so a `required` a getter switched on counts at once. An input
175
+ that names any is asked `hidden` each time it draws, so it can come and go; one that names none is asked once, when
176
+ the form draws, as before. Name the input itself to follow its own typing.
177
+ - **`cellParams(row, name, index)`** on `TabularForm` and `GroupForm`: the params of one cell that differ from its
178
+ column's, such as a picker's `options` and `selectedOptions`. Asked as the row draws; return nothing for the
179
+ column's own params, and the **same object** for the same answer (the merged params are kept per answer, so the cell
180
+ does not draw again for nothing). Getters on either side stay getters. Rules still come from the column.
181
+
182
+ ### Added: a generated column in a tabular or group form
183
+
184
+ Two optional props on `TabularForm` and `GroupForm`, for a column whose values a row's **position** decides rather
185
+ than the user — a bitwise enum's value, a line number, a running total. Nothing that does not pass them changes.
186
+
187
+ - `deriveRows(rows)` returns one patch per row and runs after every change, including a row being added, removed,
188
+ duplicated or **moved**. The patches are written as code writes, so only the cells whose value really changed
189
+ mount again and focus stays on the row's own menu: a keyboard can move a row twice in a row.
190
+ - `cellReadOnly(row, name, index)` is asked for every cell as it renders and returns the reason a cell is
191
+ generated. The cell is locked and shows that reason as its read-only note. Because it is asked per render, a
192
+ column can lock and unlock while the form around it changes, which params cannot do — they are fixed once a form
193
+ opens.
194
+
195
+ ### Added: rows nobody may change, `rowReadOnly`
196
+
197
+ One optional prop on `TabularForm` and `GroupForm`, for rows the user did not write and may not change — the fields
198
+ a class inherits from its parent, shown first in the same grid as its own. Nothing that does not pass it changes.
199
+
200
+ - `rowReadOnly(row, index)` returns the reason (or `true`). Every cell of such a row is read-only with that reason
201
+ as its note, the row's menu in a tabular form offers nothing (no insert, duplicate, move or remove), and the row
202
+ below it cannot move up past it. Nothing reorders the rows: keep the locked ones first.
203
+ - A locked row says nothing about its columns: the column-header lock is worked out from the other rows in view, so
204
+ a grid of inherited rows and one own row does not put a lock on every header.
205
+
206
+ ### Added: a panel beside a CRUD form, `form.aside`
207
+
208
+ An Add or Edit popup can show a panel next to its form: a preview of what a save would produce, a summary, a help
209
+ panel. It takes a node, or a function handed `{ form, action, row }` — `form` being that popup's own `FormStore`, so
210
+ a panel follows what is typed through `subscribeValue()` and the form around it never re-renders for it.
211
+
212
+ The two are columns above 1000px, each scrolling on its own so a long form cannot push the panel off the screen, and
213
+ they stack below that with the **form first**, in the DOM as well as on the screen. `--nx-crud-aside-width` sets the
214
+ panel's share (default `clamp(20rem, 38%, 44rem)`). Pair it with a wide `form.size` — `xl` or `full`; a panel in a
215
+ 560px popup leaves the form nothing. A CRUD that passes no `aside` renders exactly what it did before, wrapper and
216
+ all.
217
+
218
+ ### `TabularForm` reworked: one row control, rows that do not move, one lock per column
219
+
220
+ The owner called the tabular design bad, from a screenshot of an 18-row table with one generated column. Every fault
221
+ was in this component rather than in the page that used it, so every fix is here. Nothing needs a new prop, and a
222
+ table that passed nothing new looks different — deliberately.
223
+
224
+ **Breaking, visually and for tests.** Two things a consumer may be reaching for have moved:
225
+
226
+ - **The remove column is gone.** Remove was a column of unlabelled `×` buttons at the end, beside a row menu that
227
+ already held Remove: two ways to act on one row, and a whole column spent on one of them. Now a row has one
228
+ control, the menu beside its number, holding Insert above, Insert below, Duplicate, Move up, Move down and Remove.
229
+ `removable` still decides whether Remove is offered. A test that clicked a button named `Remove <row>` opens the
230
+ row's menu instead: `Row 2 actions`, then the `Remove` item. `.nx-tabular__end` and `.nx-tabular__remove` are gone
231
+ from the DOM and the stylesheet; so is `--nx-tabular-end`, replaced by `--nx-tabular-menu` (the menu's slot width).
232
+ - **The row number no longer opens the menu.** It used to *become* the menu on hover: the number faded out and dots
233
+ faded in over it, so the numbering looked broken and the grid felt unstable as the pointer crossed it. The number
234
+ now stays where it is, right-aligned, at every moment, and the menu button sits beside it in its own space,
235
+ always present. The number column is that much wider.
236
+
237
+ **Fixed, with no change to how a table is written:**
238
+
239
+ - **Every row is one line high, whatever it holds.** The row's grid track was sized by its tallest cell, so a single
240
+ `textarea` column of `rows: 2` made every cell of its row 20px taller than the row's own box — drawing the cells,
241
+ their edges and their focus rings over the rows below. One row of content therefore looked taller than its
242
+ neighbours, and a focus ring bled outside its cell. The row now has one track exactly its own height, cells keep
243
+ what they hold inside their bounds, and a `textarea` fills its cell and scrolls inside it.
244
+ - **No resize grips in cells.** A `textarea` in a cell took `resize: vertical` from the multi-line input rule, so
245
+ every cell of such a column offered a grip that would break the alignment of its row. They are `resize: none` now.
246
+ - **A filled cell and an empty one are drawn the same.** Same consequence as the above: only the cell with text was
247
+ tall enough to show what the overflow was doing.
248
+ - **`maxHeight` comes down to whole rows.** The scroller used to end wherever the number fell, cutting the last row
249
+ in half, which reads as broken rather than as scrollable. The component measures its header, its frame and its
250
+ real row height and caps itself just under what was asked for. A number too small for one row is left alone.
251
+ - **A generated column says so once.** `cellReadOnly` put a lock in every cell of the column it locked — eighteen
252
+ locks for one fact. The lock is now on the **column header**, with the reason as its title, and the cells keep the
253
+ read-only tint and their own reason, which still shows under the table when one is used. A lock that really is per
254
+ row (some rows locked, not all) leaves the header alone and is drawn per cell as before.
255
+ - **Less chrome.** The frame is `--nx-border` rather than `--nx-border-strong`: the sheet draws every line it needs
256
+ inside itself, and in a popup or a panel the strong edge was a box around a box around boxes.
257
+
258
+ ## 2.0.0
259
+
260
+ The rewrite: compiled `dist` with the entry points `.`, `/client`, `/server` and `/styles.css`, in place of 1.x's
261
+ raw TypeScript from `src` with `.`, `/client` and `/interface`. A major version, so nobody on `^1.1.21` is moved
262
+ into a different API.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bijay Adhikari
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.