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.
- package/CHANGELOG.md +262 -0
- package/LICENSE +21 -0
- package/README.md +1000 -0
- package/dist/Client.Index.d.ts +55 -0
- package/dist/Client.Index.js +60 -0
- package/dist/Components/Chats/Chat.d.ts +28 -0
- package/dist/Components/Chats/Chat.js +19 -0
- package/dist/Components/Chats/ChatButton.d.ts +26 -0
- package/dist/Components/Chats/ChatButton.js +41 -0
- package/dist/Components/Chats/ChatComposer.d.ts +41 -0
- package/dist/Components/Chats/ChatComposer.js +177 -0
- package/dist/Components/Chats/ChatConversations.d.ts +35 -0
- package/dist/Components/Chats/ChatConversations.js +38 -0
- package/dist/Components/Chats/ChatPanel.d.ts +66 -0
- package/dist/Components/Chats/ChatPanel.js +94 -0
- package/dist/Components/Chats/ChatParts.d.ts +87 -0
- package/dist/Components/Chats/ChatParts.js +100 -0
- package/dist/Components/Chats/ChatThread.d.ts +22 -0
- package/dist/Components/Chats/ChatThread.js +96 -0
- package/dist/Components/Documents/Button.d.ts +29 -0
- package/dist/Components/Documents/Button.js +11 -0
- package/dist/Components/Documents/Menu.d.ts +102 -0
- package/dist/Components/Documents/Menu.js +242 -0
- package/dist/Components/Documents/SplitButton.d.ts +64 -0
- package/dist/Components/Documents/SplitButton.js +129 -0
- package/dist/Components/Documents/TabButtons.d.ts +80 -0
- package/dist/Components/Documents/TabButtons.js +38 -0
- package/dist/Components/Forms/ApiForm.d.ts +23 -0
- package/dist/Components/Forms/ApiForm.js +100 -0
- package/dist/Components/Forms/Crud.d.ts +17 -0
- package/dist/Components/Forms/Crud.js +708 -0
- package/dist/Components/Forms/CrudParts.d.ts +15 -0
- package/dist/Components/Forms/CrudParts.js +36 -0
- package/dist/Components/Forms/ExcelImport.d.ts +42 -0
- package/dist/Components/Forms/ExcelImport.js +190 -0
- package/dist/Components/Forms/Form.d.ts +52 -0
- package/dist/Components/Forms/Form.js +323 -0
- package/dist/Components/Forms/SubmitForm.d.ts +65 -0
- package/dist/Components/Forms/SubmitForm.js +198 -0
- package/dist/Components/Inputs/Calendar.d.ts +69 -0
- package/dist/Components/Inputs/Calendar.js +258 -0
- package/dist/Components/Inputs/CheckBox.d.ts +53 -0
- package/dist/Components/Inputs/CheckBox.js +87 -0
- package/dist/Components/Inputs/CheckBoxGroup.d.ts +20 -0
- package/dist/Components/Inputs/CheckBoxGroup.js +80 -0
- package/dist/Components/Inputs/ChoiceField.d.ts +122 -0
- package/dist/Components/Inputs/ChoiceField.js +169 -0
- package/dist/Components/Inputs/DatePicker.d.ts +54 -0
- package/dist/Components/Inputs/DatePicker.js +246 -0
- package/dist/Components/Inputs/DateRangePicker.d.ts +62 -0
- package/dist/Components/Inputs/DateRangePicker.js +283 -0
- package/dist/Components/Inputs/DateTimePicker.d.ts +75 -0
- package/dist/Components/Inputs/DateTimePicker.js +400 -0
- package/dist/Components/Inputs/Dropdown.d.ts +117 -0
- package/dist/Components/Inputs/Dropdown.js +839 -0
- package/dist/Components/Inputs/DropdownParts.d.ts +84 -0
- package/dist/Components/Inputs/DropdownParts.js +102 -0
- package/dist/Components/Inputs/EditorShell.d.ts +45 -0
- package/dist/Components/Inputs/EditorShell.js +214 -0
- package/dist/Components/Inputs/Field.d.ts +53 -0
- package/dist/Components/Inputs/Field.js +16 -0
- package/dist/Components/Inputs/GroupForm.d.ts +20 -0
- package/dist/Components/Inputs/GroupForm.js +172 -0
- package/dist/Components/Inputs/InputField.d.ts +59 -0
- package/dist/Components/Inputs/InputField.js +169 -0
- package/dist/Components/Inputs/InputRenderer.d.ts +37 -0
- package/dist/Components/Inputs/InputRenderer.js +99 -0
- package/dist/Components/Inputs/MarkdownEditor.d.ts +67 -0
- package/dist/Components/Inputs/MarkdownEditor.js +289 -0
- package/dist/Components/Inputs/NumberBox.d.ts +53 -0
- package/dist/Components/Inputs/NumberBox.js +228 -0
- package/dist/Components/Inputs/RadioGroup.d.ts +20 -0
- package/dist/Components/Inputs/RadioGroup.js +43 -0
- package/dist/Components/Inputs/ReadOnlyNotice.d.ts +36 -0
- package/dist/Components/Inputs/ReadOnlyNotice.js +117 -0
- package/dist/Components/Inputs/RichTextEditor.d.ts +103 -0
- package/dist/Components/Inputs/RichTextEditor.js +1170 -0
- package/dist/Components/Inputs/RichTextParts.d.ts +63 -0
- package/dist/Components/Inputs/RichTextParts.js +157 -0
- package/dist/Components/Inputs/RowsInput.d.ts +115 -0
- package/dist/Components/Inputs/RowsInput.js +308 -0
- package/dist/Components/Inputs/Slider.d.ts +87 -0
- package/dist/Components/Inputs/Slider.js +216 -0
- package/dist/Components/Inputs/TabularForm.d.ts +27 -0
- package/dist/Components/Inputs/TabularForm.js +348 -0
- package/dist/Components/Inputs/TextArea.d.ts +43 -0
- package/dist/Components/Inputs/TextArea.js +31 -0
- package/dist/Components/Inputs/TextBox.d.ts +52 -0
- package/dist/Components/Inputs/TextBox.js +58 -0
- package/dist/Components/Inputs/TextField.d.ts +31 -0
- package/dist/Components/Inputs/TextField.js +35 -0
- package/dist/Components/Inputs/TimePanel.d.ts +34 -0
- package/dist/Components/Inputs/TimePanel.js +288 -0
- package/dist/Components/Inputs/TimePicker.d.ts +54 -0
- package/dist/Components/Inputs/TimePicker.js +240 -0
- package/dist/Components/Inputs/TreeView.d.ts +160 -0
- package/dist/Components/Inputs/TreeView.js +947 -0
- package/dist/Components/Layouts/MessageBox.d.ts +71 -0
- package/dist/Components/Layouts/MessageBox.js +104 -0
- package/dist/Components/Layouts/Popup.d.ts +92 -0
- package/dist/Components/Layouts/Popup.js +376 -0
- package/dist/Components/Layouts/PopupContext.d.ts +2 -0
- package/dist/Components/Layouts/PopupContext.js +4 -0
- package/dist/Components/Layouts/PopupDock.d.ts +22 -0
- package/dist/Components/Layouts/PopupDock.js +121 -0
- package/dist/Components/Layouts/PopupHost.d.ts +56 -0
- package/dist/Components/Layouts/PopupHost.js +163 -0
- package/dist/Components/Layouts/PopupRules.d.ts +30 -0
- package/dist/Components/Layouts/PopupRules.js +63 -0
- package/dist/Components/Layouts/ThemePicker.d.ts +13 -0
- package/dist/Components/Layouts/ThemePicker.js +22 -0
- package/dist/Components/Layouts/ThemeScript.d.ts +14 -0
- package/dist/Components/Layouts/ThemeScript.js +13 -0
- package/dist/Components/Layouts/ThemeSwitcher.d.ts +13 -0
- package/dist/Components/Layouts/ThemeSwitcher.js +49 -0
- package/dist/Components/Layouts/Toaster.d.ts +76 -0
- package/dist/Components/Layouts/Toaster.js +172 -0
- package/dist/Components/Viewers/DataTable.d.ts +25 -0
- package/dist/Components/Viewers/DataTable.js +596 -0
- package/dist/Components/Viewers/DataTableColumns.d.ts +28 -0
- package/dist/Components/Viewers/DataTableColumns.js +243 -0
- package/dist/Components/Viewers/DataTableParts.d.ts +138 -0
- package/dist/Components/Viewers/DataTableParts.js +157 -0
- package/dist/Components/Viewers/MarkdownView.d.ts +26 -0
- package/dist/Components/Viewers/MarkdownView.js +79 -0
- package/dist/Components/Viewers/RichTextView.d.ts +18 -0
- package/dist/Components/Viewers/RichTextView.js +17 -0
- package/dist/Helpers/AnimationHelpers.d.ts +6 -0
- package/dist/Helpers/AnimationHelpers.js +35 -0
- package/dist/Helpers/ApiClient.d.ts +96 -0
- package/dist/Helpers/ApiClient.js +200 -0
- package/dist/Helpers/ApiFormHelpers.d.ts +49 -0
- package/dist/Helpers/ApiFormHelpers.js +120 -0
- package/dist/Helpers/ApiModules.d.ts +131 -0
- package/dist/Helpers/ApiModules.js +195 -0
- package/dist/Helpers/ApiResponses.d.ts +51 -0
- package/dist/Helpers/ApiResponses.js +250 -0
- package/dist/Helpers/ApiRoutes.d.ts +140 -0
- package/dist/Helpers/ApiRoutes.js +183 -0
- package/dist/Helpers/ApiToasts.d.ts +21 -0
- package/dist/Helpers/ApiToasts.js +22 -0
- package/dist/Helpers/ChatBackend.d.ts +134 -0
- package/dist/Helpers/ChatBackend.js +332 -0
- package/dist/Helpers/ChatHelpers.d.ts +189 -0
- package/dist/Helpers/ChatHelpers.js +486 -0
- package/dist/Helpers/ChatHooks.d.ts +81 -0
- package/dist/Helpers/ChatHooks.js +175 -0
- package/dist/Helpers/ChatStore.d.ts +132 -0
- package/dist/Helpers/ChatStore.js +394 -0
- package/dist/Helpers/ChatSummaries.d.ts +39 -0
- package/dist/Helpers/ChatSummaries.js +118 -0
- package/dist/Helpers/ClassHelpers.d.ts +3 -0
- package/dist/Helpers/ClassHelpers.js +4 -0
- package/dist/Helpers/CrudBackend.d.ts +98 -0
- package/dist/Helpers/CrudBackend.js +214 -0
- package/dist/Helpers/CrudHelpers.d.ts +111 -0
- package/dist/Helpers/CrudHelpers.js +267 -0
- package/dist/Helpers/DateHelpers.d.ts +88 -0
- package/dist/Helpers/DateHelpers.js +363 -0
- package/dist/Helpers/DatePreferences.d.ts +14 -0
- package/dist/Helpers/DatePreferences.js +94 -0
- package/dist/Helpers/DateTimeHelpers.d.ts +87 -0
- package/dist/Helpers/DateTimeHelpers.js +286 -0
- package/dist/Helpers/DragHelpers.d.ts +129 -0
- package/dist/Helpers/DragHelpers.js +281 -0
- package/dist/Helpers/DropdownHelpers.d.ts +56 -0
- package/dist/Helpers/DropdownHelpers.js +180 -0
- package/dist/Helpers/ExcelBackend.d.ts +106 -0
- package/dist/Helpers/ExcelBackend.js +290 -0
- package/dist/Helpers/ExcelHelpers.d.ts +98 -0
- package/dist/Helpers/ExcelHelpers.js +302 -0
- package/dist/Helpers/FormDrafts.d.ts +18 -0
- package/dist/Helpers/FormDrafts.js +76 -0
- package/dist/Helpers/FormStore.d.ts +233 -0
- package/dist/Helpers/FormStore.js +752 -0
- package/dist/Helpers/InputParamsHelpers.d.ts +79 -0
- package/dist/Helpers/InputParamsHelpers.js +388 -0
- package/dist/Helpers/MarkdownEditing.d.ts +27 -0
- package/dist/Helpers/MarkdownEditing.js +250 -0
- package/dist/Helpers/MarkdownHelpers.d.ts +82 -0
- package/dist/Helpers/MarkdownHelpers.js +775 -0
- package/dist/Helpers/MessageBuilder.d.ts +74 -0
- package/dist/Helpers/MessageBuilder.js +252 -0
- package/dist/Helpers/NepaliCalendar.d.ts +25 -0
- package/dist/Helpers/NepaliCalendar.js +107 -0
- package/dist/Helpers/NumberHelpers.d.ts +71 -0
- package/dist/Helpers/NumberHelpers.js +202 -0
- package/dist/Helpers/Permissions.d.ts +62 -0
- package/dist/Helpers/Permissions.js +133 -0
- package/dist/Helpers/PopoverHelpers.d.ts +68 -0
- package/dist/Helpers/PopoverHelpers.js +195 -0
- package/dist/Helpers/RichTextHelpers.d.ts +77 -0
- package/dist/Helpers/RichTextHelpers.js +1072 -0
- package/dist/Helpers/RowsStore.d.ts +166 -0
- package/dist/Helpers/RowsStore.js +606 -0
- package/dist/Helpers/TableColumns.d.ts +47 -0
- package/dist/Helpers/TableColumns.js +282 -0
- package/dist/Helpers/TableExport.d.ts +30 -0
- package/dist/Helpers/TableExport.js +97 -0
- package/dist/Helpers/TableHelpers.d.ts +110 -0
- package/dist/Helpers/TableHelpers.js +301 -0
- package/dist/Helpers/TableStore.d.ts +142 -0
- package/dist/Helpers/TableStore.js +530 -0
- package/dist/Helpers/ThemeHelpers.d.ts +15 -0
- package/dist/Helpers/ThemeHelpers.js +16 -0
- package/dist/Helpers/TimeHelpers.d.ts +73 -0
- package/dist/Helpers/TimeHelpers.js +253 -0
- package/dist/Helpers/TreeStore.d.ts +188 -0
- package/dist/Helpers/TreeStore.js +577 -0
- package/dist/Helpers/ValidationHelpers.d.ts +124 -0
- package/dist/Helpers/ValidationHelpers.js +301 -0
- package/dist/Interfaces/ApiInterfaces.d.ts +174 -0
- package/dist/Interfaces/ApiInterfaces.js +30 -0
- package/dist/Interfaces/ChatInterfaces.d.ts +240 -0
- package/{src/sso-client.tsx → dist/Interfaces/ChatInterfaces.js} +1 -1
- package/dist/Interfaces/CrudInterfaces.d.ts +232 -0
- package/dist/Interfaces/CrudInterfaces.js +1 -0
- package/dist/Interfaces/DateInterfaces.d.ts +154 -0
- package/dist/Interfaces/DateInterfaces.js +29 -0
- package/dist/Interfaces/ExcelInterfaces.d.ts +215 -0
- package/dist/Interfaces/ExcelInterfaces.js +45 -0
- package/dist/Interfaces/FormInterfaces.d.ts +402 -0
- package/dist/Interfaces/FormInterfaces.js +1 -0
- package/dist/Interfaces/InputInterfaces.d.ts +141 -0
- package/dist/Interfaces/InputInterfaces.js +1 -0
- package/dist/Interfaces/MessageInterfaces.d.ts +111 -0
- package/dist/Interfaces/MessageInterfaces.js +5 -0
- package/dist/Interfaces/TableInterfaces.d.ts +351 -0
- package/dist/Interfaces/TableInterfaces.js +1 -0
- package/dist/Interfaces/ThemeInterfaces.d.ts +17 -0
- package/dist/Interfaces/ThemeInterfaces.js +17 -0
- package/dist/Interfaces/TypeInterfaces.d.ts +4 -0
- package/dist/Interfaces/TypeInterfaces.js +1 -0
- package/dist/Server.Index.d.ts +2 -0
- package/dist/Server.Index.js +5 -0
- package/dist/Services/ApiProxy.d.ts +32 -0
- package/dist/Services/ApiProxy.js +111 -0
- package/dist/Services/BrowserApi.d.ts +95 -0
- package/dist/Services/BrowserApi.js +129 -0
- package/dist/Services/ChatApi.d.ts +37 -0
- package/dist/Services/ChatApi.js +98 -0
- package/dist/Services/ExcelApi.d.ts +46 -0
- package/dist/Services/ExcelApi.js +196 -0
- package/dist/Services/ServerApi.d.ts +54 -0
- package/dist/Services/ServerApi.js +78 -0
- package/dist/Services/ThemeService.d.ts +17 -0
- package/dist/Services/ThemeService.js +83 -0
- package/dist/Shared.Index.d.ts +51 -0
- package/dist/Shared.Index.js +55 -0
- package/package.json +85 -33
- package/src/Styles/Nexus.Base.css +70 -0
- package/src/Styles/Nexus.Button.css +153 -0
- package/src/Styles/Nexus.Calendar.css +275 -0
- package/src/Styles/Nexus.Chat.css +1489 -0
- package/src/Styles/Nexus.Choice.css +345 -0
- package/src/Styles/Nexus.Crud.css +161 -0
- package/src/Styles/Nexus.DateTime.css +81 -0
- package/src/Styles/Nexus.Dropdown.css +774 -0
- package/src/Styles/Nexus.Editor.css +297 -0
- package/src/Styles/Nexus.Excel.css +370 -0
- package/src/Styles/Nexus.Form.css +321 -0
- package/src/Styles/Nexus.Index.css +36 -0
- package/src/Styles/Nexus.Input.css +637 -0
- package/src/Styles/Nexus.Markdown.css +265 -0
- package/src/Styles/Nexus.Menu.css +259 -0
- package/src/Styles/Nexus.Popup.css +731 -0
- package/src/Styles/Nexus.RichText.css +463 -0
- package/src/Styles/Nexus.Rows.css +596 -0
- package/src/Styles/Nexus.Slider.css +278 -0
- package/src/Styles/Nexus.Tab.Buttons.css +419 -0
- package/src/Styles/Nexus.Table.css +1296 -0
- package/src/Styles/Nexus.Theme.Picker.css +232 -0
- package/src/Styles/Nexus.Themes.css +194 -0
- package/src/Styles/Nexus.Time.css +147 -0
- package/src/Styles/Nexus.Toast.css +265 -0
- package/src/Styles/Nexus.Tokens.css +72 -0
- package/src/Styles/Nexus.Tree.css +435 -0
- package/src/api-services/authentication-service.tsx +0 -23
- package/src/api-services/preference-service.tsx +0 -5
- package/src/api-services/system-service.tsx +0 -29
- package/src/client.ts +0 -31
- package/src/components/documents/button.tsx +0 -133
- package/src/components/documents/icon-box.tsx +0 -93
- package/src/components/documents/page-title.tsx +0 -7
- package/src/components/documents/tab-button.tsx +0 -172
- package/src/components/documents/tag.tsx +0 -30
- package/src/components/index.js +0 -0
- package/src/components/inputs/checkbox-input.tsx +0 -66
- package/src/components/inputs/input-box.tsx +0 -48
- package/src/components/inputs/input-element.tsx +0 -65
- package/src/components/inputs/input-form.tsx +0 -164
- package/src/components/inputs/input.tsx +0 -181
- package/src/components/inputs/number-input.tsx +0 -108
- package/src/components/inputs/radiobox-input.tsx +0 -53
- package/src/components/inputs/textarea-input.tsx +0 -47
- package/src/components/inputs/textbox-input.tsx +0 -45
- package/src/components/layouts/global-dialogbox.tsx +0 -431
- package/src/components/layouts/global-layout.tsx +0 -64
- package/src/components/layouts/layout-helpers.tsx +0 -20
- package/src/components/layouts/panels/user-panel.tsx +0 -112
- package/src/components/layouts/utility-menu.tsx +0 -49
- package/src/components/panels/theme-panel.tsx +0 -46
- package/src/helpers/bitwise-helpers.tsx +0 -11
- package/src/helpers/browser-helpers.tsx +0 -156
- package/src/helpers/datasource-helpers.tsx +0 -99
- package/src/helpers/element-helpers.tsx +0 -123
- package/src/helpers/input-helpers.tsx +0 -74
- package/src/helpers/string-helpers.tsx +0 -28
- package/src/helpers/utility-helpers.tsx +0 -45
- package/src/helpers/validation-helpers.tsx +0 -302
- package/src/index.ts +0 -26
- package/src/interface.ts +0 -19
- package/src/interfaces/auth-token-interfaces.tsx +0 -6
- package/src/interfaces/browser-interfaces.tsx +0 -36
- package/src/interfaces/button-interfaces.tsx +0 -63
- package/src/interfaces/datasource-interfaces.tsx +0 -22
- package/src/interfaces/datatable-interfaces.tsx +0 -25
- package/src/interfaces/dialogbox-interfaces.tsx +0 -5
- package/src/interfaces/exception-interfaces.tsx +0 -99
- package/src/interfaces/http-interfaces.tsx +0 -129
- package/src/interfaces/icon-interfaces.tsx +0 -129
- package/src/interfaces/input-interfaces.tsx +0 -410
- package/src/interfaces/layout-interfaces.tsx +0 -191
- package/src/interfaces/menu-interfaces.tsx +0 -53
- package/src/interfaces/message-interfaces.tsx +0 -32
- package/src/interfaces/permission-interfaces.tsx +0 -9
- package/src/interfaces/storage-interfaces.tsx +0 -5
- package/src/interfaces/system-interfaces.tsx +0 -22
- package/src/interfaces/theme-interfaces.tsx +0 -123
- package/src/interfaces/type-interfaces.tsx +0 -28
- package/src/interfaces/user-interfaces.tsx +0 -47
- package/src/nexus-client.tsx +0 -21
- package/src/nexus.environments.tsx +0 -66
- package/src/proxy-api/proxy-backend.tsx +0 -60
- package/src/proxy-api/proxy-constants.tsx +0 -28
- package/src/proxy-api/proxy-helpers.tsx +0 -91
- package/src/proxy-api-client.tsx +0 -1
- package/src/proxy-api-server.tsx +0 -2
- package/src/services/http-client-services.tsx +0 -75
- package/src/services/http-services.tsx +0 -158
- package/src/services/loader-service.tsx +0 -185
- package/src/services/localstorage-service.tsx +0 -119
- package/src/services/message-services.tsx +0 -383
- package/src/services/theme-service.tsx +0 -163
- package/src/services/user-services.tsx +0 -10
- package/src/sso-config/auth-token-validation.ts +0 -16
- package/src/sso-config/callback-route.tsx +0 -35
- package/src/sso-config/cookie-encryption.ts +0 -51
- package/src/sso-config/cookie-helpers.tsx +0 -102
- package/src/sso-config/forgot-password-route.tsx +0 -36
- package/src/sso-config/oauth-callback-state.ts +0 -61
- package/src/sso-config/pkce-helpers.ts +0 -9
- package/src/sso-config/provider-complete-route.tsx +0 -18
- package/src/sso-config/redirect-context-actions.tsx +0 -45
- package/src/sso-config/redirect-context-helpers.tsx +0 -159
- package/src/sso-config/redirect-context-persist.tsx +0 -18
- package/src/sso-config/redirect-context-route.tsx +0 -45
- package/src/sso-config/refresh-route.tsx +0 -23
- package/src/sso-config/sign-in-route.tsx +0 -74
- package/src/sso-config/sign-out-route.tsx +0 -57
- package/src/sso-config/sign-up-route.tsx +0 -57
- package/src/sso-config/sso-backend-flow.ts +0 -38
- package/src/sso-config/sso-complete-route.tsx +0 -50
- package/src/sso-config/sso-config.ts +0 -59
- package/src/sso-config/sso-interfaces.tsx +0 -99
- package/src/sso-config/sso-response-helpers.tsx +0 -20
- package/src/sso-server.tsx +0 -21
- package/src/styles/nexus.animation.css +0 -269
- package/src/styles/nexus.core.css +0 -119
- package/src/styles/nexus.dialog.css +0 -144
- package/src/styles/nexus.grid-view.css +0 -42
- package/src/styles/nexus.icon.css +0 -51
- package/src/styles/nexus.input.css +0 -207
- package/src/styles/nexus.loader.css +0 -11
- package/src/styles/nexus.logic.css +0 -47
- 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.
|