@declarion/react 0.142.0 → 0.146.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/dist-lib/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
- package/dist-lib/api/access-expiry.js +1 -2
- package/dist-lib/api/agents.js +1 -2
- package/dist-lib/api/audience.js +1 -2
- package/dist-lib/api/auth-redirect.js +1 -2
- package/dist-lib/api/auth.js +1 -2
- package/dist-lib/api/batch.js +1 -2
- package/dist-lib/api/client.js +27 -28
- package/dist-lib/api/data.js +23 -24
- package/dist-lib/api/entities.js +36 -37
- package/dist-lib/api/events.js +6 -7
- package/dist-lib/api/fileReferences.js +1 -2
- package/dist-lib/api/params.js +1 -2
- package/dist-lib/api/properties.js +1 -2
- package/dist-lib/api/request-bounds.js +1 -2
- package/dist-lib/api/schema.js +5 -6
- package/dist-lib/api/session-renewal.js +6 -7
- package/dist-lib/api/status.js +1 -2
- package/dist-lib/app.js +154 -155
- package/dist-lib/components/actions/ActionButton.js +32 -33
- package/dist-lib/components/actions/ActionDialog.js +85 -86
- package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
- package/dist-lib/components/actions/ActionResultDialog.js +1 -2
- package/dist-lib/components/actions/ActionRunner.js +96 -97
- package/dist-lib/components/actions/ObjectActionBar.js +49 -50
- package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
- package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
- package/dist-lib/components/actions/RowActionsKebab.js +27 -28
- package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
- package/dist-lib/components/agents/AgentChatPanel.js +1 -2
- package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
- package/dist-lib/components/agents/AgentElicitForm.js +13 -14
- package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
- package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
- package/dist-lib/components/agents/AgentPicker.js +1 -2
- package/dist-lib/components/agents/ChatAttachments.js +22 -23
- package/dist-lib/components/agents/transcript-runs.js +1 -2
- package/dist-lib/components/chrome/AssociationTabs.js +44 -45
- package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
- package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
- package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
- package/dist-lib/components/chrome/PageHeader.js +12 -13
- package/dist-lib/components/chrome/PageShell.js +1 -2
- package/dist-lib/components/chrome/RecordHeader.js +1 -2
- package/dist-lib/components/chrome/headerActionZone.js +0 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
- package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
- package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
- package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
- package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
- package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
- package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
- package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
- package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
- package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
- package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
- package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
- package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
- package/dist-lib/components/detail-layout/FieldRow.js +11 -12
- package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
- package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
- package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
- package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
- package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
- package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
- package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
- package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
- package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
- package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
- package/dist-lib/components/detail-layout/blockMeta.js +1 -2
- package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
- package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
- package/dist-lib/components/detail-layout/visibility.js +1 -2
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
- package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
- package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
- package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
- package/dist-lib/components/fields/BoolField.js +1 -2
- package/dist-lib/components/fields/EmailField.js +5 -6
- package/dist-lib/components/fields/EnumField.js +7 -8
- package/dist-lib/components/fields/FileReferenceField.js +18 -19
- package/dist-lib/components/fields/IntArrayField.js +11 -12
- package/dist-lib/components/fields/JsonEditor.js +1 -2
- package/dist-lib/components/fields/JsonField.js +1 -2
- package/dist-lib/components/fields/MultilangArrayField.js +22 -23
- package/dist-lib/components/fields/MultilangField.js +13 -14
- package/dist-lib/components/fields/MultilangTextField.js +13 -14
- package/dist-lib/components/fields/NumberField.js +5 -6
- package/dist-lib/components/fields/PasswordField.js +1 -2
- package/dist-lib/components/fields/PhoneField.js +24 -25
- package/dist-lib/components/fields/RefCombobox.js +42 -43
- package/dist-lib/components/fields/RefField.js +14 -15
- package/dist-lib/components/fields/RichTextField.js +29 -30
- package/dist-lib/components/fields/SecretField.js +1 -2
- package/dist-lib/components/fields/StringArrayField.js +29 -30
- package/dist-lib/components/fields/StringField.js +12 -13
- package/dist-lib/components/fields/StructureField.js +60 -61
- package/dist-lib/components/fields/TextField.js +18 -19
- package/dist-lib/components/fields/TimestampField.js +17 -18
- package/dist-lib/components/fields/UrlField.js +5 -6
- package/dist-lib/components/fields/cells/factories/badge.js +5 -6
- package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
- package/dist-lib/components/fields/cells/factories/code.js +1 -2
- package/dist-lib/components/fields/cells/factories/date.js +1 -2
- package/dist-lib/components/fields/cells/factories/email.js +1 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
- package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
- package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
- package/dist-lib/components/fields/cells/factories/json.js +1 -2
- package/dist-lib/components/fields/cells/factories/link.js +10 -11
- package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
- package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
- package/dist-lib/components/fields/cells/factories/money.js +1 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
- package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
- package/dist-lib/components/fields/cells/factories/number.js +1 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
- package/dist-lib/components/fields/cells/factories/phone.js +1 -2
- package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
- package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
- package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
- package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
- package/dist-lib/components/fields/cells/factories/text.js +1 -2
- package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
- package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
- package/dist-lib/components/fields/cells/factories/url.js +13 -14
- package/dist-lib/components/fields/cells/registry.js +1 -2
- package/dist-lib/components/fields/index.js +19 -20
- package/dist-lib/components/fields/langMap.js +1 -2
- package/dist-lib/components/fields/secretValue.js +1 -2
- package/dist-lib/components/file-widgets/CircleImage.js +1 -2
- package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
- package/dist-lib/components/file-widgets/FileList.js +35 -36
- package/dist-lib/components/file-widgets/Grid.js +119 -120
- package/dist-lib/components/file-widgets/GridLazy.js +1 -2
- package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
- package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
- package/dist-lib/components/file-widgets/SquareImage.js +1 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
- package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
- package/dist-lib/components/file-widgets/WideBanner.js +1 -2
- package/dist-lib/components/file-widgets/builtins.js +1 -2
- package/dist-lib/components/file-widgets/cropper.js +1 -2
- package/dist-lib/components/file-widgets/draft-scope.js +1 -2
- package/dist-lib/components/file-widgets/helpers.js +1 -2
- package/dist-lib/components/file-widgets/host.js +33 -34
- package/dist-lib/components/file-widgets/payload.js +1 -2
- package/dist-lib/components/file-widgets/registry.js +1 -2
- package/dist-lib/components/file-widgets/upload.js +41 -42
- package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
- package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
- package/dist-lib/components/file-widgets/value.js +1 -2
- package/dist-lib/components/filters/FilterChips.js +15 -16
- package/dist-lib/components/filters/FilterConditionValue.js +15 -16
- package/dist-lib/components/filters/FilterDrawer.js +141 -142
- package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
- package/dist-lib/components/filters/filter-op-label.js +1 -2
- package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
- package/dist-lib/components/layout/CommandPalette.js +1 -2
- package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
- package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
- package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
- package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
- package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
- package/dist-lib/components/layout/Layout.js +132 -140
- package/dist-lib/components/layout/Rail.js +11 -12
- package/dist-lib/components/layout/Sidebar.js +60 -61
- package/dist-lib/components/layout/TabStrip.js +66 -67
- package/dist-lib/components/layout/TenantChip.js +21 -22
- package/dist-lib/components/layout/TopBar.js +89 -90
- package/dist-lib/components/layout/tab-close.js +1 -2
- package/dist-lib/components/list/ColumnPicker.js +35 -36
- package/dist-lib/components/list/InlineEditCell.js +22 -23
- package/dist-lib/components/list/PeekFieldCell.js +7 -8
- package/dist-lib/components/list/QuickPeek.js +29 -30
- package/dist-lib/components/list/ViewSwitcher.js +44 -45
- package/dist-lib/components/list/peekDraftStore.js +1 -2
- package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
- package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
- package/dist-lib/components/pages/DocumentsMenu.js +53 -54
- package/dist-lib/components/pages/ExportMenu.js +37 -38
- package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
- package/dist-lib/components/pages/NoScreensPage.js +1 -2
- package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
- package/dist-lib/components/pages/NotFoundPage.js +1 -2
- package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
- package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
- package/dist-lib/components/pages/RecordPanels.js +1 -2
- package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
- package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
- package/dist-lib/components/pages/SmartDetailPage.js +1 -2
- package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartListPage.js +1 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
- package/dist-lib/components/pages/auth/AuthShell.js +14 -15
- package/dist-lib/components/pages/auth/CodeInput.js +0 -1
- package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
- package/dist-lib/components/pages/auth/Forgot.js +1 -2
- package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
- package/dist-lib/components/pages/auth/Reset.js +1 -2
- package/dist-lib/components/pages/auth/SignIn.js +44 -45
- package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
- package/dist-lib/components/pages/auth/SignUp.js +1 -2
- package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
- package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
- package/dist-lib/components/pages/auth/TwoFA.js +1 -2
- package/dist-lib/components/pages/auth/icons.js +1 -2
- package/dist-lib/components/pages/exportRequest.js +1 -2
- package/dist-lib/components/pages/list/DataCell.js +1 -2
- package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
- package/dist-lib/components/pages/list/ListCardRow.js +53 -54
- package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
- package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
- package/dist-lib/components/pages/list/ListFooter.js +17 -18
- package/dist-lib/components/pages/list/ListHeader.js +31 -32
- package/dist-lib/components/pages/list/ListNoRows.js +32 -33
- package/dist-lib/components/pages/list/ListTable.js +29 -30
- package/dist-lib/components/pages/list/ListTableRow.js +1 -2
- package/dist-lib/components/pages/list/ListToolbar.js +58 -59
- package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
- package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
- package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
- package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
- package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
- package/dist-lib/components/pages/list/cardProjection.js +16 -17
- package/dist-lib/components/pages/list/column-sizing.js +1 -2
- package/dist-lib/components/pages/list/columns.js +74 -75
- package/dist-lib/components/pages/list/filter-meta.js +1 -2
- package/dist-lib/components/pages/list/page-size.js +1 -2
- package/dist-lib/components/pages/list/sortable-header.js +1 -2
- package/dist-lib/components/pages/list/table-features.js +1 -2
- package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
- package/dist-lib/components/pages/list/useActiveView.js +1 -2
- package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
- package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
- package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
- package/dist-lib/components/pages/list/useListQuery.js +1 -2
- package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
- package/dist-lib/components/pages/list/useListSelection.js +16 -17
- package/dist-lib/components/pages/list/useListSort.js +1 -2
- package/dist-lib/components/pages/list/useListViews.js +31 -32
- package/dist-lib/components/pages/list/useRowMenu.js +20 -21
- package/dist-lib/components/pages/list/visible-filters.js +1 -2
- package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
- package/dist-lib/components/pages/profile/Preferences.js +1 -2
- package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
- package/dist-lib/components/pages/profile/Profile.js +1 -2
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
- package/dist-lib/components/params/ParamsBlock.js +30 -31
- package/dist-lib/components/params/param-editors.js +58 -59
- package/dist-lib/components/primitives/Avatar.js +1 -2
- package/dist-lib/components/primitives/BoolToggle.js +1 -2
- package/dist-lib/components/primitives/BrandGlyph.js +1 -2
- package/dist-lib/components/primitives/BrandLogo.js +1 -2
- package/dist-lib/components/primitives/Btn.js +1 -2
- package/dist-lib/components/primitives/Check.js +1 -2
- package/dist-lib/components/primitives/Chip.js +1 -2
- package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
- package/dist-lib/components/primitives/Dropdown.js +2 -3
- package/dist-lib/components/primitives/Fields.js +128 -129
- package/dist-lib/components/primitives/HoverCard.js +2 -3
- package/dist-lib/components/primitives/IconBtn.js +1 -2
- package/dist-lib/components/primitives/Icons.js +1 -2
- package/dist-lib/components/primitives/Kbd.js +1 -2
- package/dist-lib/components/primitives/MenuItem.js +1 -2
- package/dist-lib/components/primitives/Pill.js +1 -2
- package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
- package/dist-lib/components/primitives/RetryButton.js +5 -6
- package/dist-lib/components/primitives/RowField.js +1 -2
- package/dist-lib/components/primitives/SectionCard.js +1 -2
- package/dist-lib/components/primitives/Spinner.js +1 -2
- package/dist-lib/components/primitives/StatTile.js +1 -2
- package/dist-lib/components/primitives/Tooltip.js +1 -2
- package/dist-lib/components/primitives/dataTableStyles.js +1 -2
- package/dist-lib/components/shared/BlankScreen.js +1 -2
- package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
- package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
- package/dist-lib/components/shared/ConfirmDialog.js +7 -8
- package/dist-lib/components/shared/ConnectionNotice.js +1 -2
- package/dist-lib/components/shared/CopyButton.js +1 -2
- package/dist-lib/components/shared/DynamicIcon.js +1 -2
- package/dist-lib/components/shared/EmptyState.js +1 -2
- package/dist-lib/components/shared/ErrorBoundary.js +10 -11
- package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
- package/dist-lib/components/shared/LucideIcon.js +1 -2
- package/dist-lib/components/shared/Markdown.js +1 -2
- package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
- package/dist-lib/components/shared/ModalFrame.js +1 -2
- package/dist-lib/components/shared/RefreshControl.js +6 -7
- package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
- package/dist-lib/components/shared/StatusStepper.js +1 -2
- package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
- package/dist-lib/components/shared/useOwnRefresh.js +1 -2
- package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
- package/dist-lib/embed/EmbedContext.js +1 -2
- package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
- package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
- package/dist-lib/embed/EmbedLocationReporter.js +11 -12
- package/dist-lib/embed/EmbedResizeReporter.js +9 -10
- package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
- package/dist-lib/embed/embed-dirty.js +1 -2
- package/dist-lib/embed/embed-history.js +1 -2
- package/dist-lib/embed/embed-nav-guard.js +1 -2
- package/dist-lib/embed/file-src.js +12 -13
- package/dist-lib/embed/handshake.js +1 -2
- package/dist-lib/embed/params.js +1 -2
- package/dist-lib/embed/protocol.js +1 -2
- package/dist-lib/embed/screen-location.js +1 -2
- package/dist-lib/embed/theme.js +1 -2
- package/dist-lib/embed/token.js +1 -2
- package/dist-lib/embed/useEmbedNavigate.js +25 -26
- package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
- package/dist-lib/hooks/useActionData.js +1 -2
- package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
- package/dist-lib/hooks/useAgentConversation.js +122 -123
- package/dist-lib/hooks/useAggregate.js +1 -2
- package/dist-lib/hooks/useAllEntityData.js +9 -10
- package/dist-lib/hooks/useAssociatedData.js +1 -2
- package/dist-lib/hooks/useAuth.js +26 -27
- package/dist-lib/hooks/useBranding.js +1 -2
- package/dist-lib/hooks/useBrandingChrome.js +16 -17
- package/dist-lib/hooks/useChildrenData.js +4 -5
- package/dist-lib/hooks/useColumns.js +1 -2
- package/dist-lib/hooks/useConnectionNotice.js +16 -17
- package/dist-lib/hooks/useCurrentLocation.js +1 -2
- package/dist-lib/hooks/useCurrentScreen.js +1 -2
- package/dist-lib/hooks/useCursorEntityData.js +1 -2
- package/dist-lib/hooks/useDebounce.js +1 -2
- package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
- package/dist-lib/hooks/useDocumentTitle.js +5 -6
- package/dist-lib/hooks/useEntity.js +1 -2
- package/dist-lib/hooks/useEntityData.js +1 -2
- package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
- package/dist-lib/hooks/useFilters.js +5 -6
- package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
- package/dist-lib/hooks/useImpersonation.js +15 -16
- package/dist-lib/hooks/useIntentPrefetch.js +6 -7
- package/dist-lib/hooks/useJsonSnapshot.js +1 -2
- package/dist-lib/hooks/useLanguage.js +11 -12
- package/dist-lib/hooks/useLiveObject.js +6 -7
- package/dist-lib/hooks/useLongPress.js +1 -2
- package/dist-lib/hooks/useMutations.js +31 -32
- package/dist-lib/hooks/useObject.js +1 -2
- package/dist-lib/hooks/useObjectStatus.js +4 -5
- package/dist-lib/hooks/usePageState.js +9 -10
- package/dist-lib/hooks/usePageStateRuntime.js +16 -17
- package/dist-lib/hooks/usePageStateTtl.js +1 -2
- package/dist-lib/hooks/useParams.js +58 -59
- package/dist-lib/hooks/useProperties.js +5 -6
- package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
- package/dist-lib/hooks/useRefRecords.js +31 -32
- package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
- package/dist-lib/hooks/useResponsiveMode.js +1 -2
- package/dist-lib/hooks/useRowTenant.js +1 -2
- package/dist-lib/hooks/useSSE.js +100 -101
- package/dist-lib/hooks/useSchema.js +16 -17
- package/dist-lib/hooks/useScreen.js +1 -2
- package/dist-lib/hooks/useScreenBack.js +17 -18
- package/dist-lib/hooks/useScreenTab.js +1 -2
- package/dist-lib/hooks/useTabNavigate.js +25 -26
- package/dist-lib/hooks/useTabSearchMirror.js +6 -7
- package/dist-lib/hooks/useTabTitle.js +10 -11
- package/dist-lib/hooks/useText.js +6 -7
- package/dist-lib/hooks/useTimelineData.js +5 -6
- package/dist-lib/hooks/useUiPreferences.js +31 -32
- package/dist-lib/hooks/useUnsavedInput.js +1 -2
- package/dist-lib/hooks/useVersionWatcher.js +16 -17
- package/dist-lib/hooks/useViews.js +16 -17
- package/dist-lib/hooks/useWindowConversation.js +1 -2
- package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
- package/dist-lib/icons.d.ts +2 -4
- package/dist-lib/icons.js +5 -5
- package/dist-lib/index.d.ts +4 -272
- package/dist-lib/index.js +129 -129
- package/dist-lib/lib/action-dispatch.js +1 -2
- package/dist-lib/lib/actions.js +26 -27
- package/dist-lib/lib/anchor.js +1 -2
- package/dist-lib/lib/brand-tokens.js +1 -2
- package/dist-lib/lib/branding.js +1 -2
- package/dist-lib/lib/canonical-url.js +1 -2
- package/dist-lib/lib/capabilityPrefetch.js +1 -2
- package/dist-lib/lib/child-config.js +1 -2
- package/dist-lib/lib/children-validation.js +2 -3
- package/dist-lib/lib/date-text.js +1 -2
- package/dist-lib/lib/decimal-text.js +1 -2
- package/dist-lib/lib/display-value.js +1 -2
- package/dist-lib/lib/document-templates.js +1 -2
- package/dist-lib/lib/download.js +13 -14
- package/dist-lib/lib/evidence-verdict.js +1 -2
- package/dist-lib/lib/failure.js +4 -5
- package/dist-lib/lib/field-classification.js +1 -2
- package/dist-lib/lib/field-regions.js +1 -2
- package/dist-lib/lib/filter-evaluator.js +1 -2
- package/dist-lib/lib/filters.js +1 -2
- package/dist-lib/lib/format-count.js +1 -2
- package/dist-lib/lib/html-state.js +1 -2
- package/dist-lib/lib/language.js +1 -2
- package/dist-lib/lib/longPressGesture.js +0 -1
- package/dist-lib/lib/mass-edit.js +1 -2
- package/dist-lib/lib/money-text.js +1 -2
- package/dist-lib/lib/number-text.js +1 -2
- package/dist-lib/lib/page-inset.js +1 -2
- package/dist-lib/lib/phone.js +1 -2
- package/dist-lib/lib/profile.js +1 -2
- package/dist-lib/lib/query-retry.js +1 -2
- package/dist-lib/lib/quick-add.js +1 -2
- package/dist-lib/lib/read-display-state.js +1 -2
- package/dist-lib/lib/realtime-query-keys.js +2 -3
- package/dist-lib/lib/realtime-reconcile.js +32 -33
- package/dist-lib/lib/realtime-resync.js +40 -41
- package/dist-lib/lib/record-documents-key.js +1 -2
- package/dist-lib/lib/ref-choices.js +1 -2
- package/dist-lib/lib/refetch-when-idle.js +1 -2
- package/dist-lib/lib/rich-text.js +1 -2
- package/dist-lib/lib/role-label.js +1 -2
- package/dist-lib/lib/rowClickGesture.js +1 -2
- package/dist-lib/lib/safe-url.js +1 -2
- package/dist-lib/lib/schema-routing.js +1 -2
- package/dist-lib/lib/screen-back.js +1 -2
- package/dist-lib/lib/scroll-restoration.js +21 -22
- package/dist-lib/lib/shortcut.js +1 -2
- package/dist-lib/lib/size-value.js +1 -2
- package/dist-lib/lib/sort.js +1 -2
- package/dist-lib/lib/timestamp.js +1 -2
- package/dist-lib/lib/toast.js +1 -2
- package/dist-lib/lib/ui-actions.js +43 -44
- package/dist-lib/lib/utils.js +1 -2
- package/dist-lib/lib/variants.js +1 -2
- package/dist-lib/lib/versionTracker.js +26 -27
- package/dist-lib/lib/viewport-category.js +1 -2
- package/dist-lib/lib/window-election.js +1 -2
- package/dist-lib/stores/auth.js +32 -33
- package/dist-lib/stores/icon-registry.js +1 -2
- package/dist-lib/stores/list-layout.js +0 -1
- package/dist-lib/stores/page-state.js +1 -2
- package/dist-lib/stores/preferences.js +1 -2
- package/dist-lib/stores/realtime.js +1 -2
- package/dist-lib/stores/screen-registry.js +1 -2
- package/dist-lib/stores/tabs.js +1 -2
- package/dist-lib/test/seed-schema.js +4 -5
- package/dist-lib/testing.d.ts +2 -4
- package/dist-lib/testing.js +49 -50
- package/dist-lib/types/api.js +1 -2
- package/dist-lib/types/fieldType.js +1 -2
- package/dist-lib/types/ordmap.js +1 -2
- package/dist-lib/types/schema.js +1 -2
- package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
- package/dist-lib/vite/index.d.ts +0 -2
- package/dist-lib/vite/index.js +1 -2
- package/package.json +11 -11
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { actionRequiresSelection as e, applyRowState as t, defaultFlatForSlot as n, disableLeavesWhere as r, filterLayoutForSlot as i } from "../../../lib/actions.js";
|
|
2
|
+
import { dispatchAction as a } from "../../../lib/action-dispatch.js";
|
|
3
|
+
import { ResponsiveActionBar as o } from "../../actions/ResponsiveActionBar.js";
|
|
4
|
+
import { buildActionBody as s, executeAction as c } from "../../../api/data.js";
|
|
5
|
+
import { useActionRunner as l } from "../../actions/ActionRunner.js";
|
|
6
|
+
import { Icon as u } from "../../primitives/Icons.js";
|
|
7
|
+
import { IconBtn as d } from "../../primitives/IconBtn.js";
|
|
8
|
+
import { InfoTooltip as f } from "../../primitives/Tooltip.js";
|
|
9
|
+
import { useScreenBack as p } from "../../../hooks/useScreenBack.js";
|
|
10
10
|
import { useBrandingChrome as m } from "../../../hooks/useBrandingChrome.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { useResponsiveMode as h } from "../../../hooks/useResponsiveMode.js";
|
|
12
|
+
import { pageInsetX as g } from "../../../lib/page-inset.js";
|
|
13
|
+
import { useText as _ } from "../../../hooks/useText.js";
|
|
14
14
|
import { useRowTenant as v } from "../../../hooks/useRowTenant.js";
|
|
15
15
|
import { useMemo as y } from "react";
|
|
16
16
|
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
17
|
-
|
|
17
|
+
// src/components/pages/list/ListHeader.tsx
|
|
18
18
|
function S({ title: S, description: C, toolbarActions: w, screenActionLayout: T, entityActionLayout: E, selectedIds: D, data: O, rowKey: k, onActionSuccess: A, widgetContext: j }) {
|
|
19
|
-
let M =
|
|
19
|
+
let M = _(), N = v(j.entity), P = _("errors"), { run: F } = l(), { isPhone: I } = h(), L = m("list"), R = L.isVisible("show_title"), z = L.isVisible("show_actions"), B = p(), V = y(() => {
|
|
20
20
|
let e = {};
|
|
21
21
|
for (let { code: t, action: n } of w) e[t] = n;
|
|
22
22
|
return e;
|
|
23
|
-
}, [w]), H = y(() =>
|
|
23
|
+
}, [w]), H = y(() => i((T ?? E) || n(V, "list_toolbar"), V, void 0, "list_toolbar"), [
|
|
24
24
|
T,
|
|
25
25
|
E,
|
|
26
26
|
V
|
|
27
|
-
]), U = y(() =>
|
|
27
|
+
]), U = y(() => r(H, V, void 0, e, M("list.toolbar.select_rows_first", "Select one or more rows first")), [
|
|
28
28
|
M,
|
|
29
29
|
H,
|
|
30
30
|
V
|
|
@@ -37,23 +37,23 @@ function S({ title: S, description: C, toolbarActions: w, screenActionLayout: T,
|
|
|
37
37
|
D,
|
|
38
38
|
O,
|
|
39
39
|
k
|
|
40
|
-
]), G = y(() =>
|
|
40
|
+
]), G = y(() => t(M, H, V, void 0, {}, W, N), [
|
|
41
41
|
M,
|
|
42
42
|
H,
|
|
43
43
|
V,
|
|
44
44
|
W,
|
|
45
45
|
N
|
|
46
|
-
]), K = D.length > 0 ? G : U, q = (
|
|
47
|
-
let
|
|
48
|
-
if (
|
|
49
|
-
let
|
|
46
|
+
]), K = D.length > 0 ? G : U, q = (e, t) => {
|
|
47
|
+
let n = a(P, e, t, {});
|
|
48
|
+
if (n === null) return;
|
|
49
|
+
let r = M(t.display?.name) || e;
|
|
50
50
|
return F({
|
|
51
|
-
action:
|
|
52
|
-
title:
|
|
51
|
+
action: t,
|
|
52
|
+
title: r,
|
|
53
53
|
bulkSelection: W.length > 0 ? W : void 0,
|
|
54
|
-
execute: async (
|
|
55
|
-
let
|
|
56
|
-
return
|
|
54
|
+
execute: async (e) => {
|
|
55
|
+
let t = D.length > 0 ? D : void 0, r = await c(n, s(e, t));
|
|
56
|
+
return t && t.length > 0 && A(), r;
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
};
|
|
@@ -65,14 +65,14 @@ function S({ title: S, description: C, toolbarActions: w, screenActionLayout: T,
|
|
|
65
65
|
flexWrap: I ? "wrap" : "nowrap",
|
|
66
66
|
paddingTop: I ? 12 : 16,
|
|
67
67
|
paddingBottom: 10,
|
|
68
|
-
...I ?
|
|
68
|
+
...I ? g(12) : {
|
|
69
69
|
paddingLeft: 20,
|
|
70
70
|
paddingRight: 20
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
children: [
|
|
74
|
-
R && B.hasOriginBack && /* @__PURE__ */ b(
|
|
75
|
-
icon: /* @__PURE__ */ b(
|
|
74
|
+
R && B.hasOriginBack && /* @__PURE__ */ b(d, {
|
|
75
|
+
icon: /* @__PURE__ */ b(u.back, { size: 14 }),
|
|
76
76
|
title: M("list.header.back", "Back"),
|
|
77
77
|
onClick: B.goBack
|
|
78
78
|
}),
|
|
@@ -101,13 +101,13 @@ function S({ title: S, description: C, toolbarActions: w, screenActionLayout: T,
|
|
|
101
101
|
color: "var(--text)"
|
|
102
102
|
},
|
|
103
103
|
children: S
|
|
104
|
-
}), C && /* @__PURE__ */ b(
|
|
104
|
+
}), C && /* @__PURE__ */ b(f, {
|
|
105
105
|
label: C,
|
|
106
106
|
"data-testid": "list-description-info"
|
|
107
107
|
})]
|
|
108
108
|
})
|
|
109
109
|
}),
|
|
110
|
-
z && K.length > 0 && /* @__PURE__ */ b(
|
|
110
|
+
z && K.length > 0 && /* @__PURE__ */ b(o, {
|
|
111
111
|
layout: K,
|
|
112
112
|
kind: "toolbar",
|
|
113
113
|
entityActions: V,
|
|
@@ -118,5 +118,4 @@ function S({ title: S, description: C, toolbarActions: w, screenActionLayout: T,
|
|
|
118
118
|
]
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
//#endregion
|
|
122
121
|
export { S as ListHeader };
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { Btn as e } from "../../primitives/Btn.js";
|
|
2
|
+
import { EmptyState as t } from "../../shared/EmptyState.js";
|
|
3
|
+
import { TableSkeleton as n } from "../../shared/LoadingSkeleton.js";
|
|
4
|
+
import { safeExternalUrl as r } from "../../../lib/safe-url.js";
|
|
5
|
+
import { ApiError as i } from "../../../types/api.js";
|
|
6
|
+
import { fieldDisplayName as a } from "../../../types/schema.js";
|
|
7
|
+
import { useText as o } from "../../../hooks/useText.js";
|
|
8
|
+
import { failureTitle as s } from "../../../lib/failure.js";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
function d(
|
|
12
|
-
let
|
|
13
|
-
if (!(
|
|
14
|
-
let c =
|
|
15
|
-
if (!c) return
|
|
16
|
-
let l =
|
|
17
|
-
return d === void 0 ?
|
|
18
|
-
reason:
|
|
10
|
+
// src/components/pages/list/ListNoRows.tsx
|
|
11
|
+
function d(e, t, n, r) {
|
|
12
|
+
let o = s(t, r);
|
|
13
|
+
if (!(r instanceof i)) return o;
|
|
14
|
+
let c = r.ext("field");
|
|
15
|
+
if (!c) return o;
|
|
16
|
+
let l = n.fields.get(c), u = l ? a(e, l, c) : c, d = r.ext("value");
|
|
17
|
+
return d === void 0 ? e("list.rows.failed_field", "{reason} Field: {field}.", {
|
|
18
|
+
reason: o,
|
|
19
19
|
field: u
|
|
20
|
-
}) :
|
|
21
|
-
reason:
|
|
20
|
+
}) : e("list.rows.failed_field_value", "{reason} Field: {field}. Value: {value}.", {
|
|
21
|
+
reason: o,
|
|
22
22
|
field: u,
|
|
23
23
|
value: d
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function f({ isLoading:
|
|
27
|
-
let S =
|
|
28
|
-
return
|
|
26
|
+
function f({ isLoading: i, tableLoadingStale: a, isError: s, error: f, rowCount: p, entity: m, screen: h, screenName: g, screenIcon: _, isFiltered: v, canCreate: y, toolbarActions: b, onRetry: x }) {
|
|
27
|
+
let S = o(), C = o("errors"), w = m.display;
|
|
28
|
+
return i && a ? /* @__PURE__ */ l("div", {
|
|
29
29
|
style: { padding: "0 20px" },
|
|
30
|
-
children: /* @__PURE__ */ l(
|
|
30
|
+
children: /* @__PURE__ */ l(t, {
|
|
31
31
|
icon: "alert-circle",
|
|
32
32
|
title: S("list.rows.loading_slow_title", "Still loading data"),
|
|
33
33
|
description: S("list.rows.loading_slow_body", "This table is taking longer than expected. Retry the request or check network and server health."),
|
|
34
|
-
action: /* @__PURE__ */ l(
|
|
34
|
+
action: /* @__PURE__ */ l(e, {
|
|
35
35
|
kind: "primary",
|
|
36
36
|
size: "sm",
|
|
37
37
|
onClick: x,
|
|
38
38
|
children: S("list.rows.retry", "Retry")
|
|
39
39
|
})
|
|
40
40
|
})
|
|
41
|
-
}) :
|
|
41
|
+
}) : i ? /* @__PURE__ */ l(n, { cols: h.columns?.length ?? 4 }) : s ? /* @__PURE__ */ l("div", {
|
|
42
42
|
style: { padding: "0 20px" },
|
|
43
|
-
children: /* @__PURE__ */ l(
|
|
43
|
+
children: /* @__PURE__ */ l(t, {
|
|
44
44
|
icon: "alert-circle",
|
|
45
45
|
title: C("list.rows_unreadable", "The records could not be loaded."),
|
|
46
46
|
description: d(S, C, m, f),
|
|
47
|
-
action: /* @__PURE__ */ l(
|
|
47
|
+
action: /* @__PURE__ */ l(e, {
|
|
48
48
|
kind: "primary",
|
|
49
49
|
size: "sm",
|
|
50
50
|
onClick: x,
|
|
@@ -54,19 +54,18 @@ function f({ isLoading: e, tableLoadingStale: t, isError: r, error: f, rowCount:
|
|
|
54
54
|
}) : p === 0 ? /* @__PURE__ */ l("div", {
|
|
55
55
|
style: { padding: "0 20px" },
|
|
56
56
|
children: (() => {
|
|
57
|
-
let e = w.empty_state,
|
|
58
|
-
return d = v ? S("list.rows.no_results_body", "Try adjusting your search or filters") :
|
|
59
|
-
href:
|
|
57
|
+
let e = w.empty_state, n = S(e?.title), i = S(e?.body), a = r(e?.learn_more_url), o = v ? S("list.rows.no_results_title", "No results found") : n || S("list.rows.empty_title", "No {name} yet", { name: S(h.display?.name) || S(w.name_plural) || g }), s = y && b.some(({ code: e }) => e === "__new" || e === "__create"), d;
|
|
58
|
+
return d = v ? S("list.rows.no_results_body", "Try adjusting your search or filters") : i ? /* @__PURE__ */ u(c, { children: [i, a && /* @__PURE__ */ u(c, { children: [" ", /* @__PURE__ */ l("a", {
|
|
59
|
+
href: a,
|
|
60
60
|
target: "_blank",
|
|
61
61
|
rel: "noopener noreferrer",
|
|
62
62
|
children: S("list.rows.learn_more", "Learn more")
|
|
63
|
-
})] })] }) : s ? S("list.rows.empty_create", "Create your first {name} to get started", { name: S(w.name) }) : void 0, /* @__PURE__ */ l(
|
|
63
|
+
})] })] }) : s ? S("list.rows.empty_create", "Create your first {name} to get started", { name: S(w.name) }) : void 0, /* @__PURE__ */ l(t, {
|
|
64
64
|
icon: _,
|
|
65
|
-
title:
|
|
65
|
+
title: o,
|
|
66
66
|
description: d
|
|
67
67
|
});
|
|
68
68
|
})()
|
|
69
69
|
}) : null;
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { f as ListNoRows, d as listLoadErrorDescription };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Icon as e } from "../../primitives/Icons.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { headerSizeVar as t, pinnedColumnStyle as n, sizeFromVar as r } from "./column-sizing.js";
|
|
3
|
+
import { isHeaderSortable as i } from "./sortable-header.js";
|
|
4
|
+
import { useText as a } from "../../../hooks/useText.js";
|
|
5
5
|
import { Suspense as o, lazy as s, memo as c } from "react";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
import { flexRender as d } from "@tanstack/react-table";
|
|
8
|
-
|
|
8
|
+
// src/components/pages/list/ListTable.tsx
|
|
9
9
|
var f = s(() => import("./SortHeaderMenu.js").then((e) => ({ default: e.SortHeaderMenu }))), p = c(function({ virtualItems: e, topPad: t, bottomPad: n, colSpan: r, rows: i, renderRow: a, showsPreviousRows: o }) {
|
|
10
10
|
return /* @__PURE__ */ u("tbody", {
|
|
11
11
|
style: o ? {
|
|
@@ -26,7 +26,7 @@ var f = s(() => import("./SortHeaderMenu.js").then((e) => ({ default: e.SortHead
|
|
|
26
26
|
});
|
|
27
27
|
}, (e, t) => t.isResizing);
|
|
28
28
|
function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalColumnsWidth: _, theadRef: v, virtualizer: y, visibleCols: b, headerReorder: x, sortCols: S, sortNullsMap: C, shiftClickColumn: w, applyColumnSort: T, appendColumnSort: E, clearColumnSort: D, clearAllSorts: O, renderRow: k, isResizingColumn: A, showsPreviousRows: j }) {
|
|
29
|
-
let M =
|
|
29
|
+
let M = a();
|
|
30
30
|
return /* @__PURE__ */ u("table", {
|
|
31
31
|
"data-virtual-rows": "true",
|
|
32
32
|
"aria-busy": j || void 0,
|
|
@@ -42,18 +42,18 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
42
42
|
},
|
|
43
43
|
children: [/* @__PURE__ */ l("thead", {
|
|
44
44
|
ref: v,
|
|
45
|
-
children: s.getHeaderGroups().map((
|
|
45
|
+
children: s.getHeaderGroups().map((a) => /* @__PURE__ */ u("tr", {
|
|
46
46
|
style: {
|
|
47
47
|
height: 32,
|
|
48
48
|
background: "var(--surface-2)"
|
|
49
49
|
},
|
|
50
|
-
children: [
|
|
51
|
-
let s = a
|
|
52
|
-
e.shiftKey ? (e.preventDefault(), w(
|
|
53
|
-
} : void 0, j = !p && !m, N = j ? b.indexOf(
|
|
50
|
+
children: [a.headers.map((a) => {
|
|
51
|
+
let s = i(a.id, h), c = a.column.getIsSorted(), p = a.id === "_select", m = a.id === "_actions", g = c ? S.findIndex((e) => e.field === a.id) + 1 : 0, _ = S.length > 1 && g > 0, v = g > 0, y = S.length < 5, k = s ? a.column.getToggleSortingHandler() : void 0, A = s ? (e) => {
|
|
52
|
+
e.shiftKey ? (e.preventDefault(), w(a.id)) : k?.(e);
|
|
53
|
+
} : void 0, j = !p && !m, N = j ? b.indexOf(a.id) : -1, P = x.dragColId === a.id, F = x.isDragging && N !== -1 && x.dropIndex === N, I = x.isDragging && N !== -1 && N === b.length - 1 && x.dropIndex === b.length;
|
|
54
54
|
return /* @__PURE__ */ u("th", {
|
|
55
|
-
"data-col-id": j ?
|
|
56
|
-
onMouseDown: j ? (e) => x.onHeaderMouseDown(
|
|
55
|
+
"data-col-id": j ? a.id : void 0,
|
|
56
|
+
onMouseDown: j ? (e) => x.onHeaderMouseDown(a.id, e) : void 0,
|
|
57
57
|
onClick: (e) => {
|
|
58
58
|
x.consumeDragSuppression() || A?.(e);
|
|
59
59
|
},
|
|
@@ -68,23 +68,23 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
68
68
|
cursor: s ? "pointer" : "default",
|
|
69
69
|
opacity: P ? .4 : 1,
|
|
70
70
|
boxShadow: F ? "inset 2px 0 0 0 var(--accent)" : I ? "inset -2px 0 0 0 var(--accent)" : void 0,
|
|
71
|
-
width:
|
|
72
|
-
minWidth:
|
|
71
|
+
width: r(t(a.id)),
|
|
72
|
+
minWidth: r(t(a.id)),
|
|
73
73
|
borderBottom: "1px solid var(--border)",
|
|
74
74
|
background: "var(--surface-2)",
|
|
75
|
-
...
|
|
75
|
+
...n(a.id),
|
|
76
76
|
position: "sticky",
|
|
77
77
|
top: 0,
|
|
78
78
|
zIndex: p || m ? 3 : 2
|
|
79
79
|
},
|
|
80
|
-
children: [
|
|
80
|
+
children: [a.isPlaceholder ? null : s ? /* @__PURE__ */ u("span", {
|
|
81
81
|
style: {
|
|
82
82
|
display: "inline-flex",
|
|
83
83
|
alignItems: "center",
|
|
84
84
|
gap: 4
|
|
85
85
|
},
|
|
86
86
|
children: [
|
|
87
|
-
d(
|
|
87
|
+
d(a.column.columnDef.header, a.getContext()),
|
|
88
88
|
/* @__PURE__ */ u("span", {
|
|
89
89
|
style: {
|
|
90
90
|
display: "inline-flex",
|
|
@@ -95,7 +95,7 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
95
95
|
children: [c === "asc" ? /* @__PURE__ */ l(e.arrowUp, { size: 11 }) : c === "desc" ? /* @__PURE__ */ l(e.arrowDown, { size: 11 }) : /* @__PURE__ */ l(e.sort, {
|
|
96
96
|
size: 11,
|
|
97
97
|
style: { opacity: .35 }
|
|
98
|
-
}), c && C.get(
|
|
98
|
+
}), c && C.get(a.id) === "first" ? /* @__PURE__ */ l("span", {
|
|
99
99
|
"aria-hidden": "true",
|
|
100
100
|
style: {
|
|
101
101
|
width: 4,
|
|
@@ -120,26 +120,26 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
120
120
|
/* @__PURE__ */ l(o, {
|
|
121
121
|
fallback: null,
|
|
122
122
|
children: /* @__PURE__ */ l(f, {
|
|
123
|
-
field:
|
|
123
|
+
field: a.id,
|
|
124
124
|
activeDir: c,
|
|
125
|
-
activeNulls: C.get(
|
|
125
|
+
activeNulls: C.get(a.id),
|
|
126
126
|
inMultiSort: v,
|
|
127
127
|
canAppend: y,
|
|
128
|
-
onApply: (e,
|
|
129
|
-
onAppend: (e,
|
|
130
|
-
onClearColumn: () => D(
|
|
128
|
+
onApply: (e, t) => T(a.id, e, t),
|
|
129
|
+
onAppend: (e, t) => E(a.id, e, t),
|
|
130
|
+
onClearColumn: () => D(a.id),
|
|
131
131
|
onClearAll: O
|
|
132
132
|
})
|
|
133
133
|
})
|
|
134
134
|
]
|
|
135
|
-
}) : d(
|
|
135
|
+
}) : d(a.column.columnDef.header, a.getContext()), a.column.getCanResize() && /* @__PURE__ */ l("div", {
|
|
136
136
|
"data-testid": "col-resize-handle",
|
|
137
137
|
"aria-hidden": "true",
|
|
138
138
|
onMouseDown: (e) => {
|
|
139
|
-
e.stopPropagation(),
|
|
139
|
+
e.stopPropagation(), a.getResizeHandler()(e);
|
|
140
140
|
},
|
|
141
141
|
onTouchStart: (e) => {
|
|
142
|
-
e.stopPropagation(),
|
|
142
|
+
e.stopPropagation(), a.getResizeHandler()(e);
|
|
143
143
|
},
|
|
144
144
|
onClick: (e) => e.stopPropagation(),
|
|
145
145
|
style: {
|
|
@@ -160,10 +160,10 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
160
160
|
height: "60%",
|
|
161
161
|
alignSelf: "center",
|
|
162
162
|
borderRadius: "var(--radius-xs)",
|
|
163
|
-
background:
|
|
163
|
+
background: a.column.getIsResizing() ? "var(--accent)" : "var(--border)"
|
|
164
164
|
} })
|
|
165
165
|
})]
|
|
166
|
-
},
|
|
166
|
+
}, a.id);
|
|
167
167
|
}), /* @__PURE__ */ l("th", {
|
|
168
168
|
"aria-hidden": "true",
|
|
169
169
|
style: {
|
|
@@ -174,7 +174,7 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
174
174
|
zIndex: 2
|
|
175
175
|
}
|
|
176
176
|
})]
|
|
177
|
-
},
|
|
177
|
+
}, a.id))
|
|
178
178
|
}), /* @__PURE__ */ l(p, {
|
|
179
179
|
virtualItems: y.getVirtualItems(),
|
|
180
180
|
topPad: y.getVirtualItems()[0]?.start ?? 0,
|
|
@@ -187,5 +187,4 @@ function m({ table: s, columns: c, rows: m, entity: h, columnSizeVars: g, totalC
|
|
|
187
187
|
})]
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
//#endregion
|
|
191
190
|
export { m as ListTable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataCell as e } from "./DataCell.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/pages/list/ListTableRow.tsx
|
|
4
4
|
function r({ row: r, rowIndex: i, entity: a, hasSoftDelete: o, zebra: s, hasDetailTarget: c, interaction: l, measureElement: u }) {
|
|
5
5
|
let d = r.original, f = o && d[a.soft_delete] != null, p = r.getIsSelected(), m = s && i % 2 == 1;
|
|
6
6
|
return /* @__PURE__ */ n("tr", {
|
|
@@ -33,5 +33,4 @@ function r({ row: r, rowIndex: i, entity: a, hasSoftDelete: o, zebra: s, hasDeta
|
|
|
33
33
|
})]
|
|
34
34
|
}, r.id);
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { r as ListTableRow };
|