nexus-shared 1.1.20 → 2.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/LICENSE +21 -0
- package/README.md +903 -0
- package/dist/Client.Index.d.ts +44 -0
- package/dist/Client.Index.js +49 -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 +238 -0
- package/dist/Components/Documents/SplitButton.d.ts +64 -0
- package/dist/Components/Documents/SplitButton.js +127 -0
- package/dist/Components/Documents/TabButtons.d.ts +62 -0
- package/dist/Components/Documents/TabButtons.js +19 -0
- package/dist/Components/Forms/ApiForm.d.ts +21 -0
- package/dist/Components/Forms/ApiForm.js +99 -0
- package/dist/Components/Forms/Crud.d.ts +17 -0
- package/dist/Components/Forms/Crud.js +556 -0
- package/dist/Components/Forms/CrudParts.d.ts +15 -0
- package/dist/Components/Forms/CrudParts.js +36 -0
- package/dist/Components/Forms/Form.d.ts +52 -0
- package/dist/Components/Forms/Form.js +319 -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 +399 -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 +170 -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 +35 -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 +116 -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 +104 -0
- package/dist/Components/Inputs/RowsInput.js +259 -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 +23 -0
- package/dist/Components/Inputs/TabularForm.js +283 -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 +239 -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 +29 -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 +542 -0
- package/dist/Components/Viewers/DataTableParts.d.ts +134 -0
- package/dist/Components/Viewers/DataTableParts.js +145 -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 +74 -0
- package/dist/Helpers/ApiClient.js +197 -0
- package/dist/Helpers/ApiFormHelpers.d.ts +26 -0
- package/dist/Helpers/ApiFormHelpers.js +56 -0
- package/dist/Helpers/ApiModules.d.ts +135 -0
- package/dist/Helpers/ApiModules.js +194 -0
- package/dist/Helpers/ApiResponses.d.ts +41 -0
- package/dist/Helpers/ApiResponses.js +159 -0
- package/dist/Helpers/ApiRoutes.d.ts +150 -0
- package/dist/Helpers/ApiRoutes.js +191 -0
- package/dist/Helpers/ApiToasts.d.ts +21 -0
- package/dist/Helpers/ApiToasts.js +22 -0
- package/dist/Helpers/ClassHelpers.d.ts +3 -0
- package/dist/Helpers/ClassHelpers.js +4 -0
- package/dist/Helpers/CrudBackend.d.ts +56 -0
- package/dist/Helpers/CrudBackend.js +119 -0
- package/dist/Helpers/CrudHelpers.d.ts +76 -0
- package/dist/Helpers/CrudHelpers.js +202 -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/FormDrafts.d.ts +18 -0
- package/dist/Helpers/FormDrafts.js +76 -0
- package/dist/Helpers/FormStore.d.ts +231 -0
- package/dist/Helpers/FormStore.js +734 -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 +254 -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 +43 -0
- package/dist/Helpers/PopoverHelpers.js +91 -0
- package/dist/Helpers/RichTextHelpers.d.ts +77 -0
- package/dist/Helpers/RichTextHelpers.js +1072 -0
- package/dist/Helpers/RowsStore.d.ts +160 -0
- package/dist/Helpers/RowsStore.js +584 -0
- package/dist/Helpers/TableColumns.d.ts +40 -0
- package/dist/Helpers/TableColumns.js +254 -0
- package/dist/Helpers/TableExport.d.ts +30 -0
- package/dist/Helpers/TableExport.js +97 -0
- package/dist/Helpers/TableHelpers.d.ts +102 -0
- package/dist/Helpers/TableHelpers.js +281 -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 +149 -0
- package/dist/Interfaces/ApiInterfaces.js +24 -0
- package/dist/Interfaces/CrudInterfaces.d.ts +171 -0
- package/{src/sso-client.tsx → dist/Interfaces/CrudInterfaces.js} +1 -1
- package/dist/Interfaces/DateInterfaces.d.ts +154 -0
- package/dist/Interfaces/DateInterfaces.js +29 -0
- package/dist/Interfaces/FormInterfaces.d.ts +352 -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 +291 -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 +78 -0
- package/dist/Services/BrowserApi.js +111 -0
- package/dist/Services/ServerApi.d.ts +49 -0
- package/dist/Services/ServerApi.js +75 -0
- package/dist/Services/ThemeService.d.ts +17 -0
- package/dist/Services/ThemeService.js +83 -0
- package/dist/Shared.Index.d.ts +43 -0
- package/dist/Shared.Index.js +47 -0
- package/package.json +82 -33
- package/src/Styles/Nexus.Base.css +70 -0
- package/src/Styles/Nexus.Button.css +151 -0
- package/src/Styles/Nexus.Calendar.css +275 -0
- package/src/Styles/Nexus.Choice.css +345 -0
- package/src/Styles/Nexus.Crud.css +84 -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.Form.css +298 -0
- package/src/Styles/Nexus.Index.css +34 -0
- package/src/Styles/Nexus.Input.css +637 -0
- package/src/Styles/Nexus.Markdown.css +265 -0
- package/src/Styles/Nexus.Menu.css +249 -0
- package/src/Styles/Nexus.Popup.css +731 -0
- package/src/Styles/Nexus.RichText.css +463 -0
- package/src/Styles/Nexus.Rows.css +566 -0
- package/src/Styles/Nexus.Slider.css +278 -0
- package/src/Styles/Nexus.Tab.Buttons.css +364 -0
- package/src/Styles/Nexus.Table.css +1014 -0
- package/src/Styles/Nexus.Theme.Picker.css +159 -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 -34
- package/src/client.ts +0 -31
- package/src/components/documents/button.tsx +0 -142
- 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 -59
- 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 -57
- 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 -49
- 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 -161
- 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.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
|
@@ -0,0 +1,1014 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
/*
|
|
3
|
+
* Data table: a bar (tabs, search, buttons), a frame holding the table (a header that stays while rows scroll, a
|
|
4
|
+
* checkbox column on the left and the actions on the right that stay while columns scroll), and a footer with the
|
|
5
|
+
* range and the pager. While rows are selected, a bar with their actions covers the column headings.
|
|
6
|
+
*/
|
|
7
|
+
.nx-table {
|
|
8
|
+
--nx-table-bg: var(--nx-surface);
|
|
9
|
+
--nx-table-head-bg: color-mix(in oklab, var(--nx-text) 4%, var(--nx-surface));
|
|
10
|
+
--nx-table-hover: color-mix(in oklab, var(--nx-text) 3%, var(--nx-surface));
|
|
11
|
+
--nx-table-selected: color-mix(in oklab, var(--nx-primary) 11%, var(--nx-surface));
|
|
12
|
+
--nx-table-selected-hover: color-mix(in oklab, var(--nx-primary) 16%, var(--nx-surface));
|
|
13
|
+
--nx-table-flash: color-mix(in oklab, var(--nx-success) 18%, var(--nx-surface));
|
|
14
|
+
--nx-table-line: var(--nx-border);
|
|
15
|
+
--nx-table-head-h: 40px;
|
|
16
|
+
--nx-table-row-h: 44px;
|
|
17
|
+
--nx-table-pad-x: 12px;
|
|
18
|
+
--nx-table-select-w: 44px;
|
|
19
|
+
--nx-table-font: var(--nx-text-md);
|
|
20
|
+
--nx-table-edge: light-dark(rgb(16 24 40 / 0.14), rgb(0 0 0 / 0.55));
|
|
21
|
+
|
|
22
|
+
container: nx-table / inline-size;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: var(--nx-space-3);
|
|
26
|
+
min-width: 0;
|
|
27
|
+
color: var(--nx-text);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nx-table--sm {
|
|
31
|
+
--nx-table-head-h: 34px;
|
|
32
|
+
--nx-table-row-h: 36px;
|
|
33
|
+
--nx-table-pad-x: 10px;
|
|
34
|
+
--nx-table-select-w: 38px;
|
|
35
|
+
--nx-table-font: var(--nx-text-sm);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* The bar: tabs and filters on the left, the search and buttons on the right. */
|
|
39
|
+
.nx-table__bar {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: var(--nx-space-2) var(--nx-space-3);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nx-table__bar-start {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-wrap: wrap;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--nx-space-2);
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nx-table__bar-end {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex: 1 1 auto;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: flex-end;
|
|
60
|
+
gap: var(--nx-space-2);
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nx-table__search {
|
|
65
|
+
flex: 0 1 19rem;
|
|
66
|
+
min-width: 12rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Rows per page inside the search box, at its start, with a line between the two. */
|
|
70
|
+
.nx-table__search .nx-field__actions--start {
|
|
71
|
+
align-self: stretch;
|
|
72
|
+
padding-right: 0;
|
|
73
|
+
padding-left: 2px;
|
|
74
|
+
border-right: 1px solid var(--nx-field-border);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.nx-table__page-size--field.nx-btn {
|
|
78
|
+
min-width: 0;
|
|
79
|
+
height: calc(var(--nx-field-height) - 8px);
|
|
80
|
+
gap: 0;
|
|
81
|
+
padding: 0 2px 0 4px;
|
|
82
|
+
color: var(--nx-text-muted);
|
|
83
|
+
font-variant-numeric: tabular-nums;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.nx-table__page-size--field .nx-icon {
|
|
87
|
+
width: 14px;
|
|
88
|
+
height: 14px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.nx-table__page-size--field:hover {
|
|
92
|
+
color: var(--nx-text);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@container nx-table (max-width: 560px) {
|
|
96
|
+
.nx-table__bar-end {
|
|
97
|
+
justify-content: flex-start;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nx-table__search {
|
|
101
|
+
flex: 1 1 100%;
|
|
102
|
+
order: -1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* The frame. */
|
|
107
|
+
.nx-table__frame {
|
|
108
|
+
position: relative;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
border: 1px solid var(--nx-table-line);
|
|
111
|
+
border-radius: var(--nx-radius-lg);
|
|
112
|
+
background: var(--nx-table-bg);
|
|
113
|
+
box-shadow: var(--nx-shadow-sm);
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.nx-table__scroll {
|
|
118
|
+
overflow: auto;
|
|
119
|
+
overscroll-behavior-x: contain;
|
|
120
|
+
scrollbar-width: thin;
|
|
121
|
+
scrollbar-color: color-mix(in oklab, var(--nx-text-subtle) 75%, transparent) transparent;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nx-table__table {
|
|
125
|
+
width: 100%;
|
|
126
|
+
border-collapse: separate;
|
|
127
|
+
border-spacing: 0;
|
|
128
|
+
font-size: var(--nx-table-font);
|
|
129
|
+
line-height: 1.45;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Cells */
|
|
133
|
+
.nx-table__cell,
|
|
134
|
+
.nx-table__heading {
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
padding: 4px var(--nx-table-pad-x);
|
|
137
|
+
text-align: start;
|
|
138
|
+
vertical-align: middle;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.nx-table__cell {
|
|
142
|
+
height: var(--nx-table-row-h);
|
|
143
|
+
border-bottom: 1px solid var(--nx-table-line);
|
|
144
|
+
background: var(--nx-row-bg);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.nx-table__row {
|
|
148
|
+
--nx-row-bg: var(--nx-table-bg);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* The last row's line would double the frame. */
|
|
152
|
+
.nx-table__row:last-child > .nx-table__cell {
|
|
153
|
+
border-bottom: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.nx-table__row:not(.nx-table__row--message, .nx-table__row--skeleton):hover {
|
|
157
|
+
--nx-row-bg: var(--nx-table-hover);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.nx-table__row[data-selected] {
|
|
161
|
+
--nx-row-bg: var(--nx-table-selected);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.nx-table__row[data-selected]:hover {
|
|
165
|
+
--nx-row-bg: var(--nx-table-selected-hover);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Muted text on a selected row's tint moves toward the text color, so it keeps 4.5:1 in every theme. */
|
|
169
|
+
.nx-table__row[data-selected] :is(.nx-table__number, .nx-table__dash, .nx-table__no) {
|
|
170
|
+
color: color-mix(in oklab, var(--nx-text-muted), var(--nx-text) 45%);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Columns scroll under the pinned ones: a soft shadow shows there is more on that side. */
|
|
174
|
+
.nx-table__frame[data-scroll-start] {
|
|
175
|
+
--nx-table-start-edge: 8px 0 8px -8px var(--nx-table-edge);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.nx-table__frame[data-scroll-end] {
|
|
179
|
+
--nx-table-end-edge: -8px 0 8px -8px var(--nx-table-edge);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.nx-table__row[data-busy] > .nx-table__cell:not(.nx-table__cell--actions) {
|
|
183
|
+
color: var(--nx-text-muted);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* A row just added or saved: a green wash that fades (a steady one with reduced motion, until the mark goes). */
|
|
187
|
+
.nx-table__row[data-flash] > .nx-table__cell {
|
|
188
|
+
animation: nx-table-flash 1600ms ease-out;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@keyframes nx-table-flash {
|
|
192
|
+
from {
|
|
193
|
+
background-color: var(--nx-table-flash);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.nx-table__cell--start {
|
|
198
|
+
text-align: start;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.nx-table__cell--center {
|
|
202
|
+
text-align: center;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.nx-table__cell--end {
|
|
206
|
+
text-align: end;
|
|
207
|
+
font-variant-numeric: tabular-nums;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* A value ends in "…" at the column's width (24rem when the column sets none). */
|
|
211
|
+
.nx-table__value {
|
|
212
|
+
display: block;
|
|
213
|
+
max-width: var(--nx-col-max, 24rem);
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
text-overflow: ellipsis;
|
|
216
|
+
white-space: nowrap;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.nx-table__cell--wrap .nx-table__value {
|
|
220
|
+
max-width: var(--nx-col-max, 32rem);
|
|
221
|
+
white-space: normal;
|
|
222
|
+
overflow-wrap: anywhere;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.nx-table__cell--end .nx-table__value {
|
|
226
|
+
margin-left: auto;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.nx-table__cell--center .nx-table__value {
|
|
230
|
+
margin-inline: auto;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/*
|
|
234
|
+
* Pinned columns stay while the others scroll: the numbers and checkbox column and the actions always, and
|
|
235
|
+
* any column the user pins from its menu. Their distance from the edge is measured from the headings before them.
|
|
236
|
+
*/
|
|
237
|
+
.nx-table__cell[data-pin],
|
|
238
|
+
.nx-table__heading[data-pin] {
|
|
239
|
+
position: sticky;
|
|
240
|
+
z-index: 1;
|
|
241
|
+
background: var(--nx-row-bg);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.nx-table__heading[data-pin] {
|
|
245
|
+
z-index: 3;
|
|
246
|
+
background: var(--nx-table-head-bg);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* The last pinned column of a side carries the shadow the others scroll under. */
|
|
250
|
+
.nx-table__cell[data-pin="left"][data-pin-edge],
|
|
251
|
+
.nx-table__heading[data-pin="left"][data-pin-edge] {
|
|
252
|
+
box-shadow: var(--nx-table-start-edge, 0 0 #0000);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.nx-table__cell[data-pin="right"][data-pin-edge],
|
|
256
|
+
.nx-table__heading[data-pin="right"][data-pin-edge] {
|
|
257
|
+
box-shadow: var(--nx-table-end-edge, 0 0 #0000);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* The first column: the row's number, with its checkbox in the same place. */
|
|
261
|
+
.nx-table__cell--index {
|
|
262
|
+
width: var(--nx-table-select-w);
|
|
263
|
+
min-width: var(--nx-table-select-w);
|
|
264
|
+
padding: 0;
|
|
265
|
+
text-align: center;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.nx-table__number {
|
|
269
|
+
display: inline-flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
justify-content: center;
|
|
272
|
+
width: 100%;
|
|
273
|
+
color: var(--nx-text-muted);
|
|
274
|
+
font-size: var(--nx-text-xs);
|
|
275
|
+
font-variant-numeric: tabular-nums;
|
|
276
|
+
font-weight: 500;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.nx-table__check {
|
|
280
|
+
display: inline-flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
justify-content: center;
|
|
283
|
+
width: 100%;
|
|
284
|
+
height: 100%;
|
|
285
|
+
min-height: 28px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.nx-table__check .nx-choice__control {
|
|
289
|
+
margin: 0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* Both in the one cell: the number, until the row is under the pointer or anything is selected. */
|
|
293
|
+
.nx-table__cell--index[data-swap] > .nx-table__number,
|
|
294
|
+
.nx-table__cell--index[data-swap] > .nx-table__check {
|
|
295
|
+
position: absolute;
|
|
296
|
+
inset: 0;
|
|
297
|
+
width: auto;
|
|
298
|
+
transition: opacity var(--nx-duration);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.nx-table__cell--index[data-swap] > .nx-table__check {
|
|
302
|
+
opacity: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.nx-table__row:hover > .nx-table__cell--index[data-swap] > .nx-table__check,
|
|
306
|
+
.nx-table__head:hover > .nx-table__cell--index[data-swap] > .nx-table__check,
|
|
307
|
+
.nx-table__cell--index[data-swap]:focus-within > .nx-table__check,
|
|
308
|
+
.nx-table[data-selecting] .nx-table__cell--index[data-swap] > .nx-table__check {
|
|
309
|
+
opacity: 1;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.nx-table__row:hover > .nx-table__cell--index[data-swap] > .nx-table__number,
|
|
313
|
+
.nx-table__head:hover > .nx-table__cell--index[data-swap] > .nx-table__number,
|
|
314
|
+
.nx-table__cell--index[data-swap]:focus-within > .nx-table__number,
|
|
315
|
+
.nx-table[data-selecting] .nx-table__cell--index[data-swap] > .nx-table__number {
|
|
316
|
+
opacity: 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* A touch screen has no pointer to hover with, so the checkbox stays. */
|
|
320
|
+
@media (hover: none) {
|
|
321
|
+
.nx-table__cell--index[data-swap] > .nx-table__check {
|
|
322
|
+
opacity: 1;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.nx-table__cell--index[data-swap] > .nx-table__number {
|
|
326
|
+
opacity: 0;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/*
|
|
331
|
+
* The pinned section above the page: a row across the table whose button folds the records the user pinned open and
|
|
332
|
+
* shut, and the rows themselves, which show in the list below as well. A pinned row wears a pin where the rows of the
|
|
333
|
+
* page show their number.
|
|
334
|
+
*/
|
|
335
|
+
.nx-table__pins {
|
|
336
|
+
border-bottom: 2px solid var(--nx-table-line);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.nx-table__pin-cell {
|
|
340
|
+
padding: 0;
|
|
341
|
+
border-bottom: 1px solid var(--nx-table-line);
|
|
342
|
+
background: var(--nx-table-head-bg);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.nx-table__pin-toggle {
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
gap: var(--nx-space-2);
|
|
349
|
+
width: 100%;
|
|
350
|
+
min-height: var(--nx-table-head-h);
|
|
351
|
+
padding: 0 var(--nx-table-pad-x);
|
|
352
|
+
border: 0;
|
|
353
|
+
background: none;
|
|
354
|
+
color: var(--nx-text);
|
|
355
|
+
font: inherit;
|
|
356
|
+
font-size: var(--nx-table-font);
|
|
357
|
+
font-weight: 600;
|
|
358
|
+
text-align: start;
|
|
359
|
+
cursor: pointer;
|
|
360
|
+
transition: background-color var(--nx-duration);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.nx-table__pin-toggle:hover {
|
|
364
|
+
background: color-mix(in oklab, var(--nx-text) 5%, transparent);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.nx-table__pin-toggle:focus-visible {
|
|
368
|
+
outline: none;
|
|
369
|
+
box-shadow: inset 0 0 0 2px var(--nx-primary);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.nx-table__pin-caret {
|
|
373
|
+
flex-shrink: 0;
|
|
374
|
+
width: 15px;
|
|
375
|
+
height: 15px;
|
|
376
|
+
color: var(--nx-text-muted);
|
|
377
|
+
transition: transform var(--nx-duration);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.nx-table__pins[data-open] .nx-table__pin-caret {
|
|
381
|
+
transform: rotate(90deg);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.nx-table__pin-icon {
|
|
385
|
+
flex-shrink: 0;
|
|
386
|
+
width: 15px;
|
|
387
|
+
height: 15px;
|
|
388
|
+
color: var(--nx-text-muted);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.nx-table__pin-count {
|
|
392
|
+
color: var(--nx-text-muted);
|
|
393
|
+
font-weight: 400;
|
|
394
|
+
font-variant-numeric: tabular-nums;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.nx-table__pin-loading {
|
|
398
|
+
width: 14px;
|
|
399
|
+
height: 14px;
|
|
400
|
+
color: var(--nx-text-muted);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.nx-table__pin-mark {
|
|
404
|
+
width: 15px;
|
|
405
|
+
height: 15px;
|
|
406
|
+
color: var(--nx-text-muted);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
@media (prefers-reduced-motion: reduce) {
|
|
410
|
+
.nx-table__pin-caret,
|
|
411
|
+
.nx-table__pin-toggle {
|
|
412
|
+
transition: none;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.nx-table__cell--actions {
|
|
417
|
+
width: 1px;
|
|
418
|
+
padding-inline: 4px 8px;
|
|
419
|
+
white-space: nowrap;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/*
|
|
423
|
+
* Once the user has given a column a width, the table lays its columns out from the list of widths, so dragging one
|
|
424
|
+
* edge moves that edge only. The filler column takes whatever space the others leave.
|
|
425
|
+
*/
|
|
426
|
+
.nx-table[data-sized] .nx-table__table {
|
|
427
|
+
table-layout: fixed;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.nx-table__cell--filler {
|
|
431
|
+
padding: 0;
|
|
432
|
+
background: var(--nx-row-bg);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.nx-table__heading.nx-table__cell--filler {
|
|
436
|
+
background: var(--nx-table-head-bg);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.nx-table__actions {
|
|
440
|
+
display: flex;
|
|
441
|
+
align-items: center;
|
|
442
|
+
justify-content: flex-end;
|
|
443
|
+
gap: 2px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* Header: stays at the top while rows scroll. */
|
|
447
|
+
.nx-table__heading {
|
|
448
|
+
position: sticky;
|
|
449
|
+
top: 0;
|
|
450
|
+
z-index: 2;
|
|
451
|
+
height: var(--nx-table-head-h);
|
|
452
|
+
border-bottom: 1px solid var(--nx-table-line);
|
|
453
|
+
background: var(--nx-table-head-bg);
|
|
454
|
+
color: var(--nx-text);
|
|
455
|
+
font-size: var(--nx-text-sm);
|
|
456
|
+
font-weight: 600;
|
|
457
|
+
white-space: nowrap;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* A heading that holds the sort button, the column's menu, and the edge to drag keeps no padding of its own. */
|
|
461
|
+
.nx-table__heading:has(> .nx-table__heading-inner) {
|
|
462
|
+
padding: 0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.nx-table__heading-inner {
|
|
466
|
+
display: flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
min-width: 0;
|
|
469
|
+
height: 100%;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.nx-table__heading-label {
|
|
473
|
+
min-width: 0;
|
|
474
|
+
overflow: hidden;
|
|
475
|
+
text-overflow: ellipsis;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.nx-table__heading-inner > .nx-table__heading-label {
|
|
479
|
+
flex: 1 1 auto;
|
|
480
|
+
padding: 0 var(--nx-table-pad-x);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* A sortable heading is one button across its cell, beside the column's menu. */
|
|
484
|
+
.nx-table__sort {
|
|
485
|
+
display: flex;
|
|
486
|
+
flex: 1 1 auto;
|
|
487
|
+
align-items: center;
|
|
488
|
+
gap: 6px;
|
|
489
|
+
min-width: 0;
|
|
490
|
+
height: 100%;
|
|
491
|
+
padding: 0 4px 0 var(--nx-table-pad-x);
|
|
492
|
+
border: 0;
|
|
493
|
+
background: transparent;
|
|
494
|
+
color: inherit;
|
|
495
|
+
font: inherit;
|
|
496
|
+
text-align: inherit;
|
|
497
|
+
cursor: pointer;
|
|
498
|
+
transition: background-color var(--nx-duration);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.nx-table__cell--end .nx-table__sort {
|
|
502
|
+
flex-direction: row-reverse;
|
|
503
|
+
padding: 0 var(--nx-table-pad-x) 0 4px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.nx-table__cell--center .nx-table__sort {
|
|
507
|
+
justify-content: center;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* The column's menu (pin, move, fit, hide): at the end of the heading, and shown while it is hovered or focused. */
|
|
511
|
+
.nx-table__col-menu.nx-btn {
|
|
512
|
+
flex: 0 0 auto;
|
|
513
|
+
width: 20px;
|
|
514
|
+
min-width: 20px;
|
|
515
|
+
height: calc(var(--nx-table-head-h) - 12px);
|
|
516
|
+
margin-right: 2px;
|
|
517
|
+
padding: 0;
|
|
518
|
+
border-radius: var(--nx-radius-sm);
|
|
519
|
+
opacity: 0;
|
|
520
|
+
transition: opacity var(--nx-duration);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.nx-table__col-menu .nx-icon {
|
|
524
|
+
width: 14px;
|
|
525
|
+
height: 14px;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.nx-table__heading:hover .nx-table__col-menu,
|
|
529
|
+
.nx-table__col-menu:is(:focus, :focus-visible),
|
|
530
|
+
.nx-table__col-menu[aria-expanded="true"] {
|
|
531
|
+
opacity: 1;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@media (hover: none) {
|
|
535
|
+
.nx-table__col-menu.nx-btn {
|
|
536
|
+
opacity: 1;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* The edge of a heading: drag it for the column's width, double-click it to fit the content. */
|
|
541
|
+
.nx-table__resizer {
|
|
542
|
+
position: absolute;
|
|
543
|
+
top: 0;
|
|
544
|
+
right: -2px;
|
|
545
|
+
z-index: 4;
|
|
546
|
+
width: 8px;
|
|
547
|
+
height: 100%;
|
|
548
|
+
touch-action: none;
|
|
549
|
+
cursor: col-resize;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.nx-table__resizer::after {
|
|
553
|
+
content: "";
|
|
554
|
+
position: absolute;
|
|
555
|
+
top: 7px;
|
|
556
|
+
bottom: 7px;
|
|
557
|
+
left: 3px;
|
|
558
|
+
width: 2px;
|
|
559
|
+
border-radius: 1px;
|
|
560
|
+
background: transparent;
|
|
561
|
+
transition: background-color var(--nx-duration);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.nx-table__heading:hover > .nx-table__resizer::after,
|
|
565
|
+
.nx-table__resizer[data-active]::after {
|
|
566
|
+
background: var(--nx-primary);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.nx-table__resizer[data-active]::after {
|
|
570
|
+
top: 0;
|
|
571
|
+
bottom: 0;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/* Dragging a heading to another place: the heading being moved, and a line where it will land. */
|
|
575
|
+
.nx-table__heading[data-dragging] {
|
|
576
|
+
background: color-mix(in oklab, var(--nx-primary) 14%, var(--nx-table-head-bg));
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.nx-table__heading[data-drop-before]::before,
|
|
580
|
+
.nx-table__heading[data-drop-after]::after {
|
|
581
|
+
content: "";
|
|
582
|
+
position: absolute;
|
|
583
|
+
top: 0;
|
|
584
|
+
bottom: 0;
|
|
585
|
+
z-index: 5;
|
|
586
|
+
width: 2px;
|
|
587
|
+
background: var(--nx-primary);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.nx-table__heading[data-drop-before]::before {
|
|
591
|
+
left: 0;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.nx-table__heading[data-drop-after]::after {
|
|
595
|
+
right: 0;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.nx-table[data-col-drag] .nx-table__head {
|
|
599
|
+
user-select: none;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.nx-table[data-col-drag] :is(.nx-table__heading, .nx-table__sort, .nx-table__col-menu, .nx-table__resizer) {
|
|
603
|
+
cursor: grabbing;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.nx-table[data-col-resize] :is(.nx-table__heading, .nx-table__sort, .nx-table__cell) {
|
|
607
|
+
cursor: col-resize;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.nx-table__sort:hover:not(:disabled) {
|
|
611
|
+
background: color-mix(in oklab, var(--nx-text) 5%, transparent);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.nx-table__sort:focus-visible {
|
|
615
|
+
outline: none;
|
|
616
|
+
box-shadow: inset 0 0 0 2px var(--nx-primary);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.nx-table__sort:disabled {
|
|
620
|
+
cursor: default;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.nx-table__sort-icon {
|
|
624
|
+
flex-shrink: 0;
|
|
625
|
+
width: 14px;
|
|
626
|
+
height: 14px;
|
|
627
|
+
color: var(--nx-text-muted);
|
|
628
|
+
opacity: 0;
|
|
629
|
+
transition: opacity var(--nx-duration);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.nx-table__sort[data-sorted] .nx-table__sort-icon {
|
|
633
|
+
color: var(--nx-text);
|
|
634
|
+
opacity: 1;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.nx-table__sort:is(:hover, :focus-visible):not(:disabled) .nx-table__sort-icon {
|
|
638
|
+
opacity: 1;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
@media (hover: none) {
|
|
642
|
+
.nx-table__sort:not(:disabled) .nx-table__sort-icon {
|
|
643
|
+
opacity: 0.7;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/* Values */
|
|
648
|
+
.nx-table__dash,
|
|
649
|
+
.nx-table__no {
|
|
650
|
+
color: var(--nx-text-muted);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.nx-table__yes {
|
|
654
|
+
display: inline-flex;
|
|
655
|
+
color: var(--nx-success);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.nx-table__yes .nx-icon {
|
|
659
|
+
width: 16px;
|
|
660
|
+
height: 16px;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* An option with a tone: a tag with a dot of its color; the text keeps the text color, readable on every tint. */
|
|
664
|
+
.nx-table__tag {
|
|
665
|
+
--nx-tag-tone: var(--nx-text-muted);
|
|
666
|
+
display: inline-flex;
|
|
667
|
+
align-items: center;
|
|
668
|
+
gap: 6px;
|
|
669
|
+
max-width: 100%;
|
|
670
|
+
padding: 1px 8px;
|
|
671
|
+
border-radius: var(--nx-radius-full);
|
|
672
|
+
background: color-mix(in oklab, var(--nx-tag-tone) 14%, var(--nx-surface));
|
|
673
|
+
color: var(--nx-text);
|
|
674
|
+
font-size: var(--nx-text-xs);
|
|
675
|
+
font-weight: 500;
|
|
676
|
+
line-height: 1.6;
|
|
677
|
+
vertical-align: middle;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.nx-table__tag::before {
|
|
681
|
+
content: "";
|
|
682
|
+
flex-shrink: 0;
|
|
683
|
+
width: 6px;
|
|
684
|
+
height: 6px;
|
|
685
|
+
border-radius: 50%;
|
|
686
|
+
background: var(--nx-tag-tone);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.nx-table__tag[data-tone="primary"] {
|
|
690
|
+
--nx-tag-tone: var(--nx-primary);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.nx-table__tag[data-tone="success"] {
|
|
694
|
+
--nx-tag-tone: var(--nx-success);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.nx-table__tag[data-tone="warning"] {
|
|
698
|
+
--nx-tag-tone: var(--nx-warning);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.nx-table__tag[data-tone="danger"] {
|
|
702
|
+
--nx-tag-tone: var(--nx-danger);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.nx-table__tag[data-tone="info"] {
|
|
706
|
+
--nx-tag-tone: var(--nx-info);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* Placeholders while the first rows load. */
|
|
710
|
+
.nx-table__bone {
|
|
711
|
+
display: block;
|
|
712
|
+
height: 0.75em;
|
|
713
|
+
border-radius: var(--nx-radius-sm);
|
|
714
|
+
background: color-mix(in oklab, var(--nx-text) 9%, transparent);
|
|
715
|
+
animation: nx-table-pulse 1.6s ease-in-out infinite;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.nx-table__cell--end .nx-table__bone {
|
|
719
|
+
margin-left: auto;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
@keyframes nx-table-pulse {
|
|
723
|
+
50% {
|
|
724
|
+
opacity: 0.45;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* A message across the table: no rows, no matches, a failed load. */
|
|
729
|
+
.nx-table__message-cell {
|
|
730
|
+
padding: 0;
|
|
731
|
+
background: var(--nx-table-bg);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.nx-table__message {
|
|
735
|
+
display: flex;
|
|
736
|
+
flex-direction: column;
|
|
737
|
+
align-items: center;
|
|
738
|
+
gap: 4px;
|
|
739
|
+
padding: 40px var(--nx-space-4);
|
|
740
|
+
text-align: center;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.nx-table__message-icon {
|
|
744
|
+
width: 28px;
|
|
745
|
+
height: 28px;
|
|
746
|
+
margin-bottom: 6px;
|
|
747
|
+
color: var(--nx-text-muted);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.nx-table__message[data-tone="danger"] .nx-table__message-icon {
|
|
751
|
+
color: var(--nx-danger);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.nx-table__message-title {
|
|
755
|
+
margin: 0;
|
|
756
|
+
font-size: var(--nx-text-md);
|
|
757
|
+
font-weight: 600;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.nx-table__message-detail {
|
|
761
|
+
max-width: 36rem;
|
|
762
|
+
margin: 0;
|
|
763
|
+
color: var(--nx-text-muted);
|
|
764
|
+
font-size: var(--nx-text-sm);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.nx-table__message-actions {
|
|
768
|
+
display: flex;
|
|
769
|
+
flex-wrap: wrap;
|
|
770
|
+
justify-content: center;
|
|
771
|
+
gap: var(--nx-space-2);
|
|
772
|
+
margin-top: var(--nx-space-3);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/* A thin bar under the header while a load runs with rows on screen. The rows dim only if it takes a moment. */
|
|
776
|
+
.nx-table__progress {
|
|
777
|
+
position: absolute;
|
|
778
|
+
top: calc(var(--nx-table-head-h) - 1px);
|
|
779
|
+
right: 0;
|
|
780
|
+
left: 0;
|
|
781
|
+
z-index: 4;
|
|
782
|
+
height: 2px;
|
|
783
|
+
overflow: hidden;
|
|
784
|
+
opacity: 0;
|
|
785
|
+
pointer-events: none;
|
|
786
|
+
transition: opacity var(--nx-duration);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.nx-table__progress::before {
|
|
790
|
+
content: "";
|
|
791
|
+
position: absolute;
|
|
792
|
+
inset: 0 auto 0 0;
|
|
793
|
+
width: 35%;
|
|
794
|
+
background: var(--nx-primary);
|
|
795
|
+
animation: nx-table-progress 1.1s ease-in-out infinite;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
@keyframes nx-table-progress {
|
|
799
|
+
from {
|
|
800
|
+
transform: translateX(-100%);
|
|
801
|
+
}
|
|
802
|
+
to {
|
|
803
|
+
transform: translateX(290%);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.nx-table[data-refreshing] .nx-table__progress {
|
|
808
|
+
opacity: 1;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.nx-table__table > tbody {
|
|
812
|
+
transition: opacity var(--nx-duration);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.nx-table[data-refreshing] .nx-table__table > tbody {
|
|
816
|
+
opacity: 0.55;
|
|
817
|
+
transition-delay: 180ms;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/* The selection bar covers the column headings, so the table does not move when it shows. */
|
|
821
|
+
.nx-table__selection {
|
|
822
|
+
position: absolute;
|
|
823
|
+
top: 0;
|
|
824
|
+
right: 0;
|
|
825
|
+
left: var(--nx-table-index-w, var(--nx-table-select-w));
|
|
826
|
+
z-index: 5;
|
|
827
|
+
display: flex;
|
|
828
|
+
align-items: center;
|
|
829
|
+
gap: var(--nx-space-2);
|
|
830
|
+
height: calc(var(--nx-table-head-h) - 1px);
|
|
831
|
+
padding: 0 var(--nx-space-2) 0 2px;
|
|
832
|
+
background: var(--nx-table-selected);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.nx-table__frame:has(.nx-table__selection) .nx-table__heading.nx-table__cell--index {
|
|
836
|
+
background: var(--nx-table-selected);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.nx-table__selection-count {
|
|
840
|
+
flex-shrink: 0;
|
|
841
|
+
padding-right: var(--nx-space-2);
|
|
842
|
+
font-size: var(--nx-text-sm);
|
|
843
|
+
font-weight: 600;
|
|
844
|
+
font-variant-numeric: tabular-nums;
|
|
845
|
+
white-space: nowrap;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.nx-table__selection-actions {
|
|
849
|
+
display: flex;
|
|
850
|
+
flex: 1 1 auto;
|
|
851
|
+
align-items: center;
|
|
852
|
+
gap: 2px;
|
|
853
|
+
min-width: 0;
|
|
854
|
+
overflow: hidden;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* Every action on the selected rows in one split button: the name of the one shown must stay readable. */
|
|
858
|
+
.nx-table__mass {
|
|
859
|
+
min-width: 0;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.nx-table__mass .nx-btn__label,
|
|
863
|
+
.nx-table__mass .nx-split__main .nx-btn__label {
|
|
864
|
+
overflow: hidden;
|
|
865
|
+
text-overflow: ellipsis;
|
|
866
|
+
white-space: nowrap;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.nx-table__selection-clear {
|
|
870
|
+
flex-shrink: 0;
|
|
871
|
+
margin-left: auto;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/* A narrow table keeps the action's name and drops the word "Clear"; it stays for screen readers and in the tooltip. */
|
|
875
|
+
@container nx-table (max-width: 560px) {
|
|
876
|
+
.nx-table__selection-clear.nx-btn {
|
|
877
|
+
width: var(--nx-btn-height);
|
|
878
|
+
padding: 0;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.nx-table__selection-clear .nx-btn__label {
|
|
882
|
+
position: absolute;
|
|
883
|
+
width: 1px;
|
|
884
|
+
height: 1px;
|
|
885
|
+
overflow: hidden;
|
|
886
|
+
clip-path: inset(50%);
|
|
887
|
+
white-space: nowrap;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/* Footer: the range on the left, rows per page and the pager on the right. */
|
|
892
|
+
.nx-table__footer {
|
|
893
|
+
display: flex;
|
|
894
|
+
flex-wrap: wrap;
|
|
895
|
+
align-items: center;
|
|
896
|
+
justify-content: space-between;
|
|
897
|
+
gap: var(--nx-space-2) var(--nx-space-4);
|
|
898
|
+
min-height: var(--nx-control-sm);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.nx-table__range {
|
|
902
|
+
margin: 0;
|
|
903
|
+
color: var(--nx-text-muted);
|
|
904
|
+
font-size: var(--nx-text-sm);
|
|
905
|
+
font-variant-numeric: tabular-nums;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/* The numbers themselves read as the text colour, so the line is skimmed at a glance. */
|
|
909
|
+
.nx-table__range b {
|
|
910
|
+
color: var(--nx-text);
|
|
911
|
+
font-weight: 600;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.nx-table__page-info {
|
|
915
|
+
color: var(--nx-text-muted);
|
|
916
|
+
font-size: var(--nx-text-sm);
|
|
917
|
+
font-variant-numeric: tabular-nums;
|
|
918
|
+
white-space: nowrap;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.nx-table__paging {
|
|
922
|
+
display: flex;
|
|
923
|
+
flex-wrap: wrap;
|
|
924
|
+
align-items: center;
|
|
925
|
+
gap: var(--nx-space-2);
|
|
926
|
+
margin-left: auto;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.nx-table__page-size {
|
|
930
|
+
color: var(--nx-text-muted);
|
|
931
|
+
font-variant-numeric: tabular-nums;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.nx-table__pager {
|
|
935
|
+
display: flex;
|
|
936
|
+
align-items: center;
|
|
937
|
+
gap: 2px;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
.nx-table__page-list {
|
|
941
|
+
display: flex;
|
|
942
|
+
align-items: center;
|
|
943
|
+
gap: 2px;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.nx-table__page {
|
|
947
|
+
min-width: var(--nx-control-sm);
|
|
948
|
+
height: var(--nx-control-sm);
|
|
949
|
+
padding: 0 6px;
|
|
950
|
+
border: 0;
|
|
951
|
+
border-radius: var(--nx-radius);
|
|
952
|
+
background: transparent;
|
|
953
|
+
color: var(--nx-text);
|
|
954
|
+
font: inherit;
|
|
955
|
+
font-size: var(--nx-text-sm);
|
|
956
|
+
font-variant-numeric: tabular-nums;
|
|
957
|
+
cursor: pointer;
|
|
958
|
+
transition: background-color var(--nx-duration);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.nx-table__page:hover:not(:disabled, [aria-current]) {
|
|
962
|
+
background: var(--nx-surface-hover);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.nx-table__page:focus-visible {
|
|
966
|
+
outline: none;
|
|
967
|
+
box-shadow: var(--nx-focus-ring);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.nx-table__page[aria-current] {
|
|
971
|
+
background: var(--nx-primary-solid);
|
|
972
|
+
color: var(--nx-primary-text);
|
|
973
|
+
font-weight: 600;
|
|
974
|
+
cursor: default;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.nx-table__page:disabled {
|
|
978
|
+
opacity: 0.5;
|
|
979
|
+
cursor: default;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.nx-table__page-gap {
|
|
983
|
+
min-width: 20px;
|
|
984
|
+
color: var(--nx-text-muted);
|
|
985
|
+
text-align: center;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/* A narrow table drops the page buttons: "Page 6 of 24" and the arrows are enough. */
|
|
989
|
+
@container nx-table (max-width: 520px) {
|
|
990
|
+
.nx-table__page-list {
|
|
991
|
+
display: none;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
@media (prefers-reduced-motion: reduce) {
|
|
996
|
+
.nx-table__bone {
|
|
997
|
+
animation: none;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.nx-table__row[data-flash] > .nx-table__cell {
|
|
1001
|
+
animation: none;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.nx-table__row[data-flash] {
|
|
1005
|
+
--nx-row-bg: var(--nx-table-flash);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.nx-table__progress::before {
|
|
1009
|
+
width: 100%;
|
|
1010
|
+
animation: none;
|
|
1011
|
+
opacity: 0.6;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|