@declarion/react 0.141.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,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useUiPreferences as e } from "../../../hooks/useUiPreferences.js";
|
|
2
|
+
import { Btn as t } from "../../primitives/Btn.js";
|
|
3
|
+
import { Dropdown as n } from "../../primitives/Dropdown.js";
|
|
4
|
+
import { Icon as r } from "../../primitives/Icons.js";
|
|
5
|
+
import { IconBtn as i } from "../../primitives/IconBtn.js";
|
|
6
6
|
import { Kbd as ee } from "../../primitives/Kbd.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { canManageDocumentTemplates as f } from "../../../lib/document-templates.js";
|
|
7
|
+
import { MenuItem as a } from "../../primitives/MenuItem.js";
|
|
8
|
+
import { Pill as o } from "../../primitives/Pill.js";
|
|
9
|
+
import { TextInput as te } from "../../primitives/Fields.js";
|
|
10
|
+
import { ColumnPicker as s } from "../../list/ColumnPicker.js";
|
|
11
|
+
import { ViewSwitcher as c } from "../../list/ViewSwitcher.js";
|
|
12
|
+
import { RefreshControl as l } from "../../shared/RefreshControl.js";
|
|
13
|
+
import { resolveSchemaFieldLabel as u } from "../../file-widgets/host.js";
|
|
14
|
+
import { canManageDocumentTemplates as d } from "../../../lib/document-templates.js";
|
|
15
|
+
import { pageInsetX as ne } from "../../../lib/page-inset.js";
|
|
16
|
+
import { usePreferencesStore as re } from "../../../stores/preferences.js";
|
|
17
|
+
import { DocumentsMenu as ie } from "../DocumentsMenu.js";
|
|
18
|
+
import { ExportMenu as f } from "../ExportMenu.js";
|
|
20
19
|
import { isHeaderSortable as p } from "./sortable-header.js";
|
|
21
|
-
import {
|
|
20
|
+
import { useEntity as m } from "../../../hooks/useEntity.js";
|
|
21
|
+
import { useText as ae } from "../../../hooks/useText.js";
|
|
22
22
|
import { useRef as h, useState as g } from "react";
|
|
23
23
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
24
|
-
|
|
24
|
+
// src/components/pages/list/ListToolbar.tsx
|
|
25
25
|
function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, screenName: T, isPhone: E, isCardsPresentation: D, sort: O, columns: k, views: A, query: j, selection: M, filters: N, searchValue: P, onSearchChange: oe, onSaveView: se, onDeleteView: ce, page: F, perPage: I, includeDeleted: L, canViewDeleted: R, onToggleDeleted: z, realtime: B, isLive: V }) {
|
|
26
|
-
let H =
|
|
26
|
+
let H = ae(), U = m("view")?.actions, [W, le] = g(!1), [G, K] = g(!1), [q, J] = g(!1), Y = h(null), X = h(null), Z = re((e) => e.density), { set: ue } = e(), Q = () => {
|
|
27
27
|
ue("density", Z === "compact" ? "comfortable" : Z === "comfortable" ? "cozy" : "compact");
|
|
28
28
|
}, de = !E || W || P !== "", $ = (e) => {
|
|
29
29
|
if (e.startsWith("$status.")) {
|
|
@@ -34,7 +34,7 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
34
34
|
let t = e.slice(10), n = x.properties?.[t];
|
|
35
35
|
return n ? H(n.name) || t : e;
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return u(H, x, e, C?.entities);
|
|
38
38
|
}, fe = (b.columns ?? []).filter((e) => p(e, x));
|
|
39
39
|
return /* @__PURE__ */ y("div", {
|
|
40
40
|
style: {
|
|
@@ -43,14 +43,14 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
43
43
|
gap: E ? 6 : 8,
|
|
44
44
|
paddingTop: 0,
|
|
45
45
|
paddingBottom: 10,
|
|
46
|
-
...E ?
|
|
46
|
+
...E ? ne(12) : {
|
|
47
47
|
paddingLeft: 20,
|
|
48
48
|
paddingRight: 20
|
|
49
49
|
},
|
|
50
50
|
flexWrap: "wrap"
|
|
51
51
|
},
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */ v(
|
|
53
|
+
/* @__PURE__ */ v(c, {
|
|
54
54
|
views: A.all,
|
|
55
55
|
activeViewId: A.activeId,
|
|
56
56
|
isDirty: A.isDirty,
|
|
@@ -69,11 +69,11 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
69
69
|
width: E ? "100%" : 260,
|
|
70
70
|
order: E ? -1 : 0
|
|
71
71
|
},
|
|
72
|
-
children: [/* @__PURE__ */ v(
|
|
72
|
+
children: [/* @__PURE__ */ v(te, {
|
|
73
73
|
value: P,
|
|
74
74
|
onChange: oe,
|
|
75
75
|
placeholder: H("list.toolbar.search_placeholder", "Search {name}…", { name: T }),
|
|
76
|
-
prefix: /* @__PURE__ */ v(
|
|
76
|
+
prefix: /* @__PURE__ */ v(r.search, { size: 13 })
|
|
77
77
|
}), /* @__PURE__ */ v("span", {
|
|
78
78
|
style: {
|
|
79
79
|
position: "absolute",
|
|
@@ -84,34 +84,34 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
84
84
|
},
|
|
85
85
|
children: /* @__PURE__ */ v(ee, { children: "/" })
|
|
86
86
|
})]
|
|
87
|
-
}) : /* @__PURE__ */ v(
|
|
88
|
-
icon: /* @__PURE__ */ v(
|
|
87
|
+
}) : /* @__PURE__ */ v(i, {
|
|
88
|
+
icon: /* @__PURE__ */ v(r.search, { size: 14 }),
|
|
89
89
|
title: H("list.toolbar.search", "Search {name}", { name: T }),
|
|
90
90
|
onClick: () => le(!0)
|
|
91
91
|
}),
|
|
92
|
-
/* @__PURE__ */ y(
|
|
93
|
-
icon: /* @__PURE__ */ v(
|
|
92
|
+
/* @__PURE__ */ y(t, {
|
|
93
|
+
icon: /* @__PURE__ */ v(r.filter, { size: 13 }),
|
|
94
94
|
onClick: N.onOpen,
|
|
95
95
|
active: N.count > 0,
|
|
96
|
-
children: [H("list.toolbar.filters", "Filters"), N.count > 0 && /* @__PURE__ */ v(
|
|
96
|
+
children: [H("list.toolbar.filters", "Filters"), N.count > 0 && /* @__PURE__ */ v(o, {
|
|
97
97
|
tone: "violet",
|
|
98
98
|
size: "xs",
|
|
99
99
|
style: { marginLeft: 4 },
|
|
100
100
|
children: N.count
|
|
101
101
|
})]
|
|
102
102
|
}),
|
|
103
|
-
D && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y(
|
|
103
|
+
D && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y(t, {
|
|
104
104
|
ref: Y,
|
|
105
|
-
icon: /* @__PURE__ */ v(
|
|
105
|
+
icon: /* @__PURE__ */ v(r.sort, { size: 13 }),
|
|
106
106
|
onClick: () => K((e) => !e),
|
|
107
107
|
active: G || O.cols.length > 0,
|
|
108
|
-
children: [H("list.toolbar.sort", "Sort"), O.cols.length > 0 && /* @__PURE__ */ v(
|
|
108
|
+
children: [H("list.toolbar.sort", "Sort"), O.cols.length > 0 && /* @__PURE__ */ v(o, {
|
|
109
109
|
tone: "slate",
|
|
110
110
|
size: "xs",
|
|
111
111
|
style: { marginLeft: 4 },
|
|
112
112
|
children: O.cols.length
|
|
113
113
|
})]
|
|
114
|
-
}), /* @__PURE__ */ y(
|
|
114
|
+
}), /* @__PURE__ */ y(n, {
|
|
115
115
|
open: G,
|
|
116
116
|
anchor: Y.current,
|
|
117
117
|
onClose: () => K(!1),
|
|
@@ -130,21 +130,21 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
130
130
|
children: H("list.toolbar.sort_by", "Sort by")
|
|
131
131
|
}),
|
|
132
132
|
fe.map((e) => {
|
|
133
|
-
let
|
|
134
|
-
return /* @__PURE__ */ v(
|
|
135
|
-
icon:
|
|
133
|
+
let t = O.cols.find((t) => t.field === e);
|
|
134
|
+
return /* @__PURE__ */ v(a, {
|
|
135
|
+
icon: t ? t.dir === "desc" ? /* @__PURE__ */ v(r.arrowDown, { size: 12 }) : /* @__PURE__ */ v(r.arrowUp, { size: 12 }) : /* @__PURE__ */ v("span", { style: {
|
|
136
136
|
width: 12,
|
|
137
137
|
display: "inline-block"
|
|
138
138
|
} }),
|
|
139
|
-
active: !!
|
|
139
|
+
active: !!t,
|
|
140
140
|
onClick: () => {
|
|
141
|
-
O.applyColumn(e,
|
|
141
|
+
O.applyColumn(e, t?.dir === "asc" ? "desc" : "asc", void 0), K(!1);
|
|
142
142
|
},
|
|
143
143
|
children: $(e)
|
|
144
144
|
}, e);
|
|
145
145
|
}),
|
|
146
|
-
O.cols.length > 0 && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
147
|
-
icon: /* @__PURE__ */ v(
|
|
146
|
+
O.cols.length > 0 && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(a, { divider: !0 }), /* @__PURE__ */ v(a, {
|
|
147
|
+
icon: /* @__PURE__ */ v(r.x, { size: 12 }),
|
|
148
148
|
onClick: () => {
|
|
149
149
|
O.clearAll(), K(!1);
|
|
150
150
|
},
|
|
@@ -152,7 +152,7 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
152
152
|
})] })
|
|
153
153
|
]
|
|
154
154
|
})] }),
|
|
155
|
-
!D && /* @__PURE__ */ v(
|
|
155
|
+
!D && /* @__PURE__ */ v(s, {
|
|
156
156
|
availableColumns: b.columns ?? [],
|
|
157
157
|
visibleColumns: k.visible,
|
|
158
158
|
onToggle: (e) => {
|
|
@@ -170,13 +170,13 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
170
170
|
height: 20,
|
|
171
171
|
background: "var(--divider)"
|
|
172
172
|
} }),
|
|
173
|
-
!E && /* @__PURE__ */ v(
|
|
174
|
-
icon: /* @__PURE__ */ v(
|
|
173
|
+
!E && /* @__PURE__ */ v(i, {
|
|
174
|
+
icon: /* @__PURE__ */ v(r.grid, { size: 14 }),
|
|
175
175
|
title: H("list.toolbar.density", "Density"),
|
|
176
176
|
active: Z !== "compact",
|
|
177
177
|
onClick: Q
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */ v(
|
|
179
|
+
/* @__PURE__ */ v(l, {
|
|
180
180
|
liveObject: {
|
|
181
181
|
refetch: j.retry,
|
|
182
182
|
isLoading: j.isLoading,
|
|
@@ -185,41 +185,41 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
185
185
|
realtime: B
|
|
186
186
|
}),
|
|
187
187
|
!E && /* @__PURE__ */ v("div", { style: { flex: 1 } }),
|
|
188
|
-
!E && R && /* @__PURE__ */ v(
|
|
188
|
+
!E && R && /* @__PURE__ */ v(t, {
|
|
189
189
|
kind: "ghost",
|
|
190
190
|
size: "sm",
|
|
191
|
-
icon: v(L ?
|
|
191
|
+
icon: v(L ? r.eyeOff : r.eye, { size: 12 }),
|
|
192
192
|
onClick: z,
|
|
193
193
|
active: L,
|
|
194
194
|
children: L ? H("list.toolbar.hide_deleted", "Hide deleted") : H("list.toolbar.show_deleted", "Show deleted")
|
|
195
195
|
}),
|
|
196
|
-
E && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
196
|
+
E && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(i, {
|
|
197
197
|
ref: X,
|
|
198
|
-
icon: /* @__PURE__ */ v(
|
|
198
|
+
icon: /* @__PURE__ */ v(r.more, { size: 14 }),
|
|
199
199
|
title: H("list.toolbar.more", "More"),
|
|
200
200
|
active: q,
|
|
201
201
|
onClick: () => J((e) => !e)
|
|
202
|
-
}), /* @__PURE__ */ y(
|
|
202
|
+
}), /* @__PURE__ */ y(n, {
|
|
203
203
|
open: q,
|
|
204
204
|
anchor: X.current,
|
|
205
205
|
onClose: () => J(!1),
|
|
206
206
|
align: "end",
|
|
207
207
|
width: 220,
|
|
208
|
-
children: [/* @__PURE__ */ v(
|
|
209
|
-
icon: /* @__PURE__ */ v(
|
|
208
|
+
children: [/* @__PURE__ */ v(a, {
|
|
209
|
+
icon: /* @__PURE__ */ v(r.grid, { size: 13 }),
|
|
210
210
|
onClick: () => {
|
|
211
211
|
Q(), J(!1);
|
|
212
212
|
},
|
|
213
213
|
children: H("list.toolbar.density", "Density")
|
|
214
|
-
}), R && /* @__PURE__ */ v(
|
|
215
|
-
icon: v(L ?
|
|
214
|
+
}), R && /* @__PURE__ */ v(a, {
|
|
215
|
+
icon: v(L ? r.eyeOff : r.eye, { size: 13 }),
|
|
216
216
|
onClick: () => {
|
|
217
217
|
z(), J(!1);
|
|
218
218
|
},
|
|
219
219
|
children: L ? H("list.toolbar.hide_deleted", "Hide deleted") : H("list.toolbar.show_deleted", "Show deleted")
|
|
220
220
|
})]
|
|
221
221
|
})] }),
|
|
222
|
-
S && x && /* @__PURE__ */ v(
|
|
222
|
+
S && x && /* @__PURE__ */ v(ie, {
|
|
223
223
|
entityCode: S,
|
|
224
224
|
scope: "list",
|
|
225
225
|
selectedIds: M.ids,
|
|
@@ -233,9 +233,9 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
233
233
|
perPage: I
|
|
234
234
|
},
|
|
235
235
|
capability: x.documents,
|
|
236
|
-
canManageTemplates:
|
|
236
|
+
canManageTemplates: d(C)
|
|
237
237
|
}),
|
|
238
|
-
S && x && /* @__PURE__ */ v(
|
|
238
|
+
S && x && /* @__PURE__ */ v(f, {
|
|
239
239
|
entityCode: S,
|
|
240
240
|
entity: x,
|
|
241
241
|
screen: b,
|
|
@@ -257,5 +257,4 @@ function b({ screen: b, entity: x, entityCode: S, schema: C, screenCode: w, scre
|
|
|
257
257
|
]
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
//#endregion
|
|
261
260
|
export { b as ListToolbar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Btn as e } from "../../primitives/Btn.js";
|
|
2
2
|
import { useText as t } from "../../../hooks/useText.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/pages/list/ListUrlBanner.tsx
|
|
5
5
|
var i = {
|
|
6
6
|
margin: "0 20px 10px",
|
|
7
7
|
padding: "8px 10px",
|
|
@@ -41,5 +41,4 @@ function a({ filterError: a, unresolvedViewId: o, onClearFilters: s, onClearView
|
|
|
41
41
|
})]
|
|
42
42
|
}) : null;
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { a as ListUrlBanner };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Icon as e } from "../../primitives/Icons.js";
|
|
2
2
|
import { IconBtn as t } from "../../primitives/IconBtn.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ResponsiveActionBar as n } from "../../actions/ResponsiveActionBar.js";
|
|
4
|
+
import { useRowMenu as r } from "./useRowMenu.js";
|
|
5
|
+
import { useText as i } from "../../../hooks/useText.js";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/pages/list/RowActionsCell.tsx
|
|
8
8
|
function s({ row: s, rowId: c, screen: l, fullScreen: u, entity: d, entityCode: f, rowActions: p, tabNavigate: m, peekAllowed: h, hasDetailTarget: g, onPeek: _ }) {
|
|
9
|
-
let v =
|
|
9
|
+
let v = i(), { layout: y, entityActions: b, runRowAction: x, widgetContext: S, hasPeek: C } = r({
|
|
10
10
|
row: s,
|
|
11
11
|
rowId: c,
|
|
12
12
|
screen: l,
|
|
@@ -34,7 +34,7 @@ function s({ row: s, rowId: c, screen: l, fullScreen: u, entity: d, entityCode:
|
|
|
34
34
|
e.stopPropagation(), _(s);
|
|
35
35
|
},
|
|
36
36
|
title: v("list.row.peek", "Peek")
|
|
37
|
-
}), y.length > 0 && /* @__PURE__ */ a(
|
|
37
|
+
}), y.length > 0 && /* @__PURE__ */ a(n, {
|
|
38
38
|
layout: y,
|
|
39
39
|
row: s,
|
|
40
40
|
kind: "row",
|
|
@@ -45,5 +45,4 @@ function s({ row: s, rowId: c, screen: l, fullScreen: u, entity: d, entityCode:
|
|
|
45
45
|
})]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { s as RowActionsCell };
|
|
@@ -3,7 +3,7 @@ import { RowMenuContent as t } from "../../actions/ResponsiveActionBar.js";
|
|
|
3
3
|
import { useRowMenu as n } from "./useRowMenu.js";
|
|
4
4
|
import { useCallback as r, useState as i } from "react";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/pages/list/RowContextMenu.tsx
|
|
7
7
|
function c({ x: c, y: l, row: u, rowId: d, screen: f, fullScreen: p, entity: m, entityCode: h, rowActions: g, tabNavigate: _, peekAllowed: v, hasDetailTarget: y, onPeek: b, onClose: x }) {
|
|
8
8
|
let { layout: S, entityActions: C, runRowAction: w, widgetContext: T } = n({
|
|
9
9
|
row: u,
|
|
@@ -51,5 +51,4 @@ function c({ x: c, y: l, row: u, rowId: d, screen: f, fullScreen: p, entity: m,
|
|
|
51
51
|
})
|
|
52
52
|
})] });
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { c as RowContextMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Btn as e } from "../../primitives/Btn.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TextInput as t } from "../../primitives/Fields.js";
|
|
3
|
+
import { useText as n } from "../../../hooks/useText.js";
|
|
4
4
|
import { useEffect as r, useState as i } from "react";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/pages/list/SaveViewDialog.tsx
|
|
7
7
|
function c({ open: c, pending: l, onClose: u, onSave: d, overwriteViewName: f, onOverwrite: p }) {
|
|
8
|
-
let m =
|
|
8
|
+
let m = n(), [h, g] = i(""), _ = !!(f && p);
|
|
9
9
|
if (r(() => {
|
|
10
10
|
c && g("");
|
|
11
11
|
}, [c]), !c) return null;
|
|
@@ -68,7 +68,7 @@ function c({ open: c, pending: l, onClose: u, onSave: d, overwriteViewName: f, o
|
|
|
68
68
|
fontWeight: 500
|
|
69
69
|
},
|
|
70
70
|
children: m("list.view.name", "Name")
|
|
71
|
-
}), /* @__PURE__ */ o(
|
|
71
|
+
}), /* @__PURE__ */ o(t, {
|
|
72
72
|
autoFocus: !0,
|
|
73
73
|
"aria-label": m("list.view.name_input", "View name"),
|
|
74
74
|
value: h,
|
|
@@ -107,5 +107,4 @@ function c({ open: c, pending: l, onClose: u, onSave: d, overwriteViewName: f, o
|
|
|
107
107
|
]
|
|
108
108
|
})] });
|
|
109
109
|
}
|
|
110
|
-
//#endregion
|
|
111
110
|
export { c as SaveViewDialog };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Dropdown as e } from "../../primitives/Dropdown.js";
|
|
2
|
+
import { Icon as t } from "../../primitives/Icons.js";
|
|
3
|
+
import { MenuItem as n } from "../../primitives/MenuItem.js";
|
|
4
|
+
import { useText as r } from "../../../hooks/useText.js";
|
|
5
5
|
import { useRef as i, useState as a } from "react";
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/pages/list/SortHeaderMenu.tsx
|
|
8
8
|
function l({ field: l, activeDir: u, activeNulls: d, inMultiSort: f, canAppend: p, onApply: m, onAppend: h, onClearColumn: g, onClearAll: _ }) {
|
|
9
|
-
let v =
|
|
9
|
+
let v = r(), y = i(null), [b, x] = a(!1), S = [
|
|
10
10
|
{
|
|
11
11
|
label: v("list.sort.asc_empty_last", "Sort ascending, empty last"),
|
|
12
12
|
dir: "asc",
|
|
13
13
|
nulls: "last",
|
|
14
|
-
icon:
|
|
14
|
+
icon: t.arrowUp
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
label: v("list.sort.asc_empty_first", "Sort ascending, empty first"),
|
|
18
18
|
dir: "asc",
|
|
19
19
|
nulls: "first",
|
|
20
|
-
icon:
|
|
20
|
+
icon: t.arrowUp
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
label: v("list.sort.desc_empty_last", "Sort descending, empty last"),
|
|
24
24
|
dir: "desc",
|
|
25
25
|
nulls: "last",
|
|
26
|
-
icon:
|
|
26
|
+
icon: t.arrowDown
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
label: v("list.sort.desc_empty_first", "Sort descending, empty first"),
|
|
30
30
|
dir: "desc",
|
|
31
31
|
nulls: "first",
|
|
32
|
-
icon:
|
|
32
|
+
icon: t.arrowDown
|
|
33
33
|
}
|
|
34
34
|
], C = d ?? "last", w = !f && p;
|
|
35
35
|
return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("button", {
|
|
@@ -53,48 +53,48 @@ function l({ field: l, activeDir: u, activeNulls: d, inMultiSort: f, canAppend:
|
|
|
53
53
|
cursor: "pointer",
|
|
54
54
|
opacity: b ? 1 : .55
|
|
55
55
|
},
|
|
56
|
-
children: /* @__PURE__ */ s(
|
|
57
|
-
}), /* @__PURE__ */ c(
|
|
56
|
+
children: /* @__PURE__ */ s(t.cheveron, { size: 12 })
|
|
57
|
+
}), /* @__PURE__ */ c(e, {
|
|
58
58
|
open: b,
|
|
59
59
|
anchor: y.current,
|
|
60
60
|
onClose: () => x(!1),
|
|
61
61
|
align: "start",
|
|
62
62
|
width: 240,
|
|
63
63
|
children: [
|
|
64
|
-
S.map((
|
|
65
|
-
let
|
|
66
|
-
return /* @__PURE__ */ s(
|
|
64
|
+
S.map((e) => {
|
|
65
|
+
let r = u === e.dir && C === e.nulls, i = e.icon;
|
|
66
|
+
return /* @__PURE__ */ s(n, {
|
|
67
67
|
icon: /* @__PURE__ */ c("span", {
|
|
68
68
|
style: {
|
|
69
69
|
display: "inline-flex",
|
|
70
70
|
alignItems: "center",
|
|
71
71
|
gap: 2
|
|
72
72
|
},
|
|
73
|
-
children: [/* @__PURE__ */ s(i, { size: 11 }),
|
|
73
|
+
children: [/* @__PURE__ */ s(i, { size: 11 }), r ? /* @__PURE__ */ s(t.check, { size: 11 }) : null]
|
|
74
74
|
}),
|
|
75
75
|
onClick: () => {
|
|
76
|
-
x(!1), m(
|
|
76
|
+
x(!1), m(e.dir, e.nulls);
|
|
77
77
|
},
|
|
78
|
-
children:
|
|
79
|
-
}, `${
|
|
78
|
+
children: e.label
|
|
79
|
+
}, `${e.dir}:${e.nulls}`);
|
|
80
80
|
}),
|
|
81
|
-
w ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(
|
|
82
|
-
icon: /* @__PURE__ */ s(
|
|
81
|
+
w ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(n, { divider: !0 }), /* @__PURE__ */ s(n, {
|
|
82
|
+
icon: /* @__PURE__ */ s(t.plus, { size: 11 }),
|
|
83
83
|
onClick: () => {
|
|
84
84
|
x(!1), h("asc", d);
|
|
85
85
|
},
|
|
86
86
|
children: v("list.sort.append", "Add to multi-sort (Shift-click shortcut)")
|
|
87
87
|
})] }) : null,
|
|
88
|
-
/* @__PURE__ */ s(
|
|
89
|
-
/* @__PURE__ */ s(
|
|
88
|
+
/* @__PURE__ */ s(n, { divider: !0 }),
|
|
89
|
+
/* @__PURE__ */ s(n, {
|
|
90
90
|
disabled: u === !1,
|
|
91
91
|
onClick: () => {
|
|
92
92
|
x(!1), u !== !1 && g();
|
|
93
93
|
},
|
|
94
94
|
children: v("list.sort.clear_column", "Clear sort on this column")
|
|
95
95
|
}),
|
|
96
|
-
/* @__PURE__ */ s(
|
|
97
|
-
/* @__PURE__ */ s(
|
|
96
|
+
/* @__PURE__ */ s(n, { divider: !0 }),
|
|
97
|
+
/* @__PURE__ */ s(n, {
|
|
98
98
|
disabled: u === !1,
|
|
99
99
|
onClick: () => {
|
|
100
100
|
x(!1), _();
|
|
@@ -104,5 +104,4 @@ function l({ field: l, activeDir: u, activeNulls: d, inMultiSort: f, canAppend:
|
|
|
104
104
|
]
|
|
105
105
|
})] });
|
|
106
106
|
}
|
|
107
|
-
//#endregion
|
|
108
107
|
export { l as SortHeaderMenu };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { parseSort as e } from "../../../lib/sort.js";
|
|
2
|
+
import { getPrimaryKeyFields as t } from "../../../types/schema.js";
|
|
3
|
+
// src/components/pages/list/cardProjection.ts
|
|
4
4
|
var n = 4, r = 2, i = 2, a = [
|
|
5
5
|
"screen_card",
|
|
6
6
|
"entity_card",
|
|
@@ -302,15 +302,15 @@ function P(e, t) {
|
|
|
302
302
|
let n = e?.tenant_key;
|
|
303
303
|
return !n || X(e, n).kind === "missing" ? [] : (t.addField(n, "row_tenant"), [n]);
|
|
304
304
|
}
|
|
305
|
-
function F(
|
|
306
|
-
if (!
|
|
305
|
+
function F(e, n) {
|
|
306
|
+
if (!e) return [];
|
|
307
307
|
let r = new Z();
|
|
308
|
-
for (let i of e
|
|
309
|
-
let i = w(
|
|
310
|
-
i && (r.add(i), n.addField(i, "display"), J(
|
|
311
|
-
for (let
|
|
312
|
-
let i = w(
|
|
313
|
-
i && (r.add(i), n.addField(i, "display_template"), J(
|
|
308
|
+
for (let i of t(e)) r.add(i), n.addField(i, "identity");
|
|
309
|
+
let i = w(e, e.display.display_field, { explicit: !0 });
|
|
310
|
+
i && (r.add(i), n.addField(i, "display"), J(e, i, n, "display"));
|
|
311
|
+
for (let t of I(e.display.display_template)) {
|
|
312
|
+
let i = w(e, t, { explicit: !0 });
|
|
313
|
+
i && (r.add(i), n.addField(i, "display_template"), J(e, i, n, "display_template"));
|
|
314
314
|
}
|
|
315
315
|
return r.values();
|
|
316
316
|
}
|
|
@@ -373,11 +373,11 @@ function B(e, t, n) {
|
|
|
373
373
|
}
|
|
374
374
|
return r.values();
|
|
375
375
|
}
|
|
376
|
-
function V(
|
|
377
|
-
let i = typeof n == "string" ?
|
|
378
|
-
for (let
|
|
379
|
-
let n = w(
|
|
380
|
-
n && (a.add(n), r.addField(n, "sort"), J(
|
|
376
|
+
function V(t, n, r) {
|
|
377
|
+
let i = typeof n == "string" ? e(n) : n ?? [], a = new Z();
|
|
378
|
+
for (let e of i) {
|
|
379
|
+
let n = w(t, e.field, { explicit: !0 });
|
|
380
|
+
n && (a.add(n), r.addField(n, "sort"), J(t, n, r, "sort"));
|
|
381
381
|
}
|
|
382
382
|
return a.values();
|
|
383
383
|
}
|
|
@@ -514,5 +514,4 @@ var Z = class {
|
|
|
514
514
|
r ? r.includes(n) || r.push(n) : e.set(t, [n]);
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
|
-
//#endregion
|
|
518
517
|
export { I as extractDisplayTemplateFields, f as resolveCard, p as resolveListProjection, _ as resolveQuickPeekFieldNames, g as resolveVariantRenderFields };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/pages/list/column-sizing.ts
|
|
2
2
|
function e(e) {
|
|
3
3
|
return `--header-${e}-size`;
|
|
4
4
|
}
|
|
@@ -23,5 +23,4 @@ function i(e) {
|
|
|
23
23
|
boxShadow: "inset 1px 0 0 var(--divider)"
|
|
24
24
|
} : {};
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { r as buildColumnSizeVars, t as colSizeVar, e as headerSizeVar, i as pinnedColumnStyle, n as sizeFromVar };
|