@declarion/react 0.65.1 → 0.66.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/api/access-expiry.js +32 -0
- package/dist-lib/api/agents.js +105 -0
- package/dist-lib/api/auth-redirect.js +30 -0
- package/dist-lib/api/auth.js +67 -0
- package/dist-lib/api/batch.js +34 -0
- package/dist-lib/api/client.js +241 -0
- package/dist-lib/api/data.js +122 -0
- package/dist-lib/api/entities.js +160 -0
- package/dist-lib/api/events.js +120 -0
- package/dist-lib/api/fileReferences.js +8 -0
- package/dist-lib/api/params.js +20 -0
- package/dist-lib/api/properties.js +25 -0
- package/dist-lib/api/request-bounds.js +28 -0
- package/dist-lib/api/schema.js +71 -0
- package/dist-lib/api/session-renewal.js +36 -0
- package/dist-lib/api/status.js +17 -0
- package/dist-lib/app.js +262 -0
- package/dist-lib/components/actions/ActionButton.js +116 -0
- package/dist-lib/{ActionDialog-C6EG-AmC.js → components/actions/ActionDialog.js} +63 -53
- package/dist-lib/{ActionResultDialog.impl-BATutW8J.js → components/actions/ActionResultDialog.impl.js} +53 -48
- package/dist-lib/components/actions/ActionResultDialog.js +12 -0
- package/dist-lib/components/actions/ActionRunner.js +274 -0
- package/dist-lib/components/actions/ObjectActionBar.js +127 -0
- package/dist-lib/components/actions/PropertyGridEditor.js +202 -0
- package/dist-lib/components/actions/ResponsiveActionBar.js +773 -0
- package/dist-lib/components/actions/RowActionsKebab.js +90 -0
- package/dist-lib/{AgentChatPanel.impl-D5y_qEex.js → components/agents/AgentChatPanel.impl.js} +314 -362
- package/dist-lib/components/agents/AgentChatPanel.js +12 -0
- package/dist-lib/components/agents/AgentConversationDrawer.js +59 -0
- package/dist-lib/components/agents/AgentElicitForm.js +152 -0
- package/dist-lib/components/agents/AgentOpenFollower.impl.js +7 -0
- package/dist-lib/components/agents/AgentOpenFollower.js +12 -0
- package/dist-lib/components/agents/AgentPicker.js +58 -0
- package/dist-lib/components/agents/transcript-runs.js +52 -0
- package/dist-lib/components/chrome/AssociationTabs.js +176 -0
- package/dist-lib/components/chrome/AuditMetaStrip.js +64 -0
- package/dist-lib/components/chrome/Breadcrumbs.js +67 -0
- package/dist-lib/components/chrome/HighlightsStrip.js +39 -0
- package/dist-lib/{PageHeader-DiwLe7CO.js → components/chrome/PageHeader.js} +19 -15
- package/dist-lib/{PageShell-BJz1MiTH.js → components/chrome/PageShell.js} +3 -3
- package/dist-lib/components/chrome/RecordHeader.js +119 -0
- package/dist-lib/{headerActionZone-bef-tZZ7.js → components/chrome/headerActionZone.js} +1 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.js +1244 -0
- package/dist-lib/components/detail-layout/AssociatedToolbar.js +87 -0
- package/dist-lib/components/detail-layout/ChildrenBlock.js +80 -0
- package/dist-lib/components/detail-layout/ChildrenCards.js +156 -0
- package/dist-lib/components/detail-layout/ChildrenList.js +135 -0
- package/dist-lib/components/detail-layout/ChildrenTable.js +189 -0
- package/dist-lib/components/detail-layout/ChildrenTimeline.js +609 -0
- package/dist-lib/components/detail-layout/DetailAuditStrip.js +40 -0
- package/dist-lib/components/detail-layout/DetailHighlights.js +54 -0
- package/dist-lib/{DraggableChildrenTable-Dd5SeuF6.js → components/detail-layout/DraggableChildrenTable.js} +56 -53
- package/dist-lib/components/detail-layout/EditableChildrenTable.js +341 -0
- package/dist-lib/components/detail-layout/ErrorSummary.js +89 -0
- package/dist-lib/components/detail-layout/EvidenceBlock.js +66 -0
- package/dist-lib/{FieldRow-DedGIY9R.js → components/detail-layout/FieldRow.js} +8 -7
- package/dist-lib/components/detail-layout/FieldsBlock.js +74 -0
- package/dist-lib/components/detail-layout/LayoutColumn.js +16 -0
- package/dist-lib/components/detail-layout/LayoutRenderer.js +54 -0
- package/dist-lib/components/detail-layout/LayoutRow.js +83 -0
- package/dist-lib/components/detail-layout/LayoutTabs.js +195 -0
- package/dist-lib/components/detail-layout/PropertiesBlock.js +74 -0
- package/dist-lib/components/detail-layout/QuickAddForm.js +81 -0
- package/dist-lib/components/detail-layout/SectionBlock.js +48 -0
- package/dist-lib/components/detail-layout/StatusesBlock.js +18 -0
- package/dist-lib/components/detail-layout/TimelineComposer.js +205 -0
- package/dist-lib/components/detail-layout/blockMeta.js +27 -0
- package/dist-lib/components/detail-layout/useManualColumnResize.js +94 -0
- package/dist-lib/components/detail-layout/useQuickAdd.js +85 -0
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +295 -0
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +107 -0
- package/dist-lib/components/detail-layout/widgets/MonacoJson.js +47 -0
- package/dist-lib/components/detail-layout/widgets/WidgetHost.js +36 -0
- package/dist-lib/components/detail-layout/widgets/builtins.js +10 -0
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +32 -0
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +16 -0
- package/dist-lib/components/detail-layout/widgets/registry.js +13 -0
- package/dist-lib/components/fields/BoolField.js +13 -0
- package/dist-lib/components/fields/EmailField.js +16 -0
- package/dist-lib/components/fields/EnumField.js +38 -0
- package/dist-lib/components/fields/FileReferenceField.js +60 -0
- package/dist-lib/components/fields/IntArrayField.js +83 -0
- package/dist-lib/components/fields/JsonField.js +51 -0
- package/dist-lib/components/fields/MultilangArrayField.js +56 -0
- package/dist-lib/components/fields/MultilangField.js +65 -0
- package/dist-lib/components/fields/MultilangTextField.js +65 -0
- package/dist-lib/components/fields/NumberField.js +64 -0
- package/dist-lib/components/fields/PasswordField.js +34 -0
- package/dist-lib/components/fields/PhoneField.js +84 -0
- package/dist-lib/components/fields/RefCombobox.js +112 -0
- package/dist-lib/components/fields/RefField.js +45 -0
- package/dist-lib/components/fields/RichTextField.js +225 -0
- package/dist-lib/components/fields/SecretField.js +34 -0
- package/dist-lib/components/fields/StringArrayField.js +165 -0
- package/dist-lib/components/fields/StringField.js +39 -0
- package/dist-lib/components/fields/StructureField.js +221 -0
- package/dist-lib/components/fields/TextField.js +76 -0
- package/dist-lib/components/fields/TimestampField.js +110 -0
- package/dist-lib/components/fields/UrlField.js +18 -0
- package/dist-lib/components/fields/cells/factories/badge.js +42 -0
- package/dist-lib/components/fields/cells/factories/boolPill.js +17 -0
- package/dist-lib/components/fields/cells/factories/code.js +11 -0
- package/dist-lib/components/fields/cells/factories/date.js +30 -0
- package/dist-lib/components/fields/cells/factories/email.js +26 -0
- package/dist-lib/components/fields/cells/factories/emptyCell.js +10 -0
- package/dist-lib/components/fields/cells/factories/fileReference.js +17 -0
- package/dist-lib/components/fields/cells/factories/host-icons.js +146 -0
- package/dist-lib/components/fields/cells/factories/json.js +61 -0
- package/dist-lib/components/fields/cells/factories/link.js +32 -0
- package/dist-lib/components/fields/cells/factories/markdown.js +31 -0
- package/dist-lib/components/fields/cells/factories/markdownPreview.js +81 -0
- package/dist-lib/components/fields/cells/factories/money.js +37 -0
- package/dist-lib/components/fields/cells/factories/multilangInline.js +35 -0
- package/dist-lib/components/fields/cells/factories/nextRun.js +46 -0
- package/dist-lib/components/fields/cells/factories/number.js +42 -0
- package/dist-lib/components/fields/cells/factories/passwordMask.js +23 -0
- package/dist-lib/components/fields/cells/factories/phone.js +35 -0
- package/dist-lib/components/fields/cells/factories/refLink.js +57 -0
- package/dist-lib/components/fields/cells/factories/richTextPreview.js +34 -0
- package/dist-lib/components/fields/cells/factories/statusPill.js +35 -0
- package/dist-lib/components/fields/cells/factories/tagList.js +44 -0
- package/dist-lib/components/fields/cells/factories/text.js +5 -0
- package/dist-lib/components/fields/cells/factories/timestamp.js +18 -0
- package/dist-lib/components/fields/cells/factories/url-helpers.js +49 -0
- package/dist-lib/components/fields/cells/factories/url.js +45 -0
- package/dist-lib/components/fields/cells/registry.js +58 -0
- package/dist-lib/components/fields/index.js +80 -0
- package/dist-lib/components/fields/langMap.js +6 -0
- package/dist-lib/components/fields/secretValue.js +7 -0
- package/dist-lib/components/file-widgets/CircleImage.js +11 -0
- package/dist-lib/components/file-widgets/DocumentCard.js +277 -0
- package/dist-lib/components/file-widgets/FileList.js +213 -0
- package/dist-lib/{Grid-XUHm5SDe.js → components/file-widgets/Grid.js} +45 -40
- package/dist-lib/components/file-widgets/GridLazy.js +15 -0
- package/dist-lib/components/file-widgets/ImageWidget.js +354 -0
- package/dist-lib/components/file-widgets/LabeledSlots.js +69 -0
- package/dist-lib/components/file-widgets/SquareImage.js +11 -0
- package/dist-lib/components/file-widgets/UnknownFileWidget.js +22 -0
- package/dist-lib/components/file-widgets/UploadFailureText.js +10 -0
- package/dist-lib/components/file-widgets/WideBanner.js +11 -0
- package/dist-lib/components/file-widgets/builtins.js +15 -0
- package/dist-lib/components/file-widgets/cropper.js +13 -0
- package/dist-lib/components/file-widgets/draft-scope.js +59 -0
- package/dist-lib/components/file-widgets/helpers.js +75 -0
- package/dist-lib/components/file-widgets/host.js +75 -0
- package/dist-lib/{payload-DioMoxMX.js → components/file-widgets/payload.js} +14 -14
- package/dist-lib/components/file-widgets/registry.js +13 -0
- package/dist-lib/components/file-widgets/upload.js +180 -0
- package/dist-lib/components/file-widgets/useEmbedFileSrc.js +45 -0
- package/dist-lib/components/file-widgets/value.js +12 -0
- package/dist-lib/components/filters/FilterChips.js +123 -0
- package/dist-lib/components/filters/FilterConditionValue.js +40 -0
- package/dist-lib/components/filters/FilterDrawer.js +670 -0
- package/dist-lib/components/filters/FilterOmittedNotice.js +14 -0
- package/dist-lib/components/filters/filter-op-label.js +8 -0
- package/dist-lib/{CommandPalette.impl-DRI5kxVY.js → components/layout/CommandPalette.impl.js} +62 -61
- package/dist-lib/components/layout/CommandPalette.js +12 -0
- package/dist-lib/{DirtyTabsCloseDialog.impl-FhAiOmEb.js → components/layout/DirtyTabsCloseDialog.impl.js} +16 -14
- package/dist-lib/components/layout/DirtyTabsCloseDialog.js +12 -0
- package/dist-lib/{ImpersonationBanner.impl--g0iYwcV.js → components/layout/ImpersonationBanner.impl.js} +4 -3
- package/dist-lib/components/layout/ImpersonationBanner.js +12 -0
- package/dist-lib/components/layout/ImpersonationFrame.js +29 -0
- package/dist-lib/{ImpersonationStartModal.impl-BFBN0YJe.js → components/layout/ImpersonationStartModal.impl.js} +9 -9
- package/dist-lib/components/layout/ImpersonationStartModal.js +12 -0
- package/dist-lib/components/layout/Layout.js +755 -0
- package/dist-lib/components/layout/Rail.js +149 -0
- package/dist-lib/components/layout/Sidebar.js +362 -0
- package/dist-lib/components/layout/TabStrip.js +321 -0
- package/dist-lib/components/layout/TenantChip.js +355 -0
- package/dist-lib/components/layout/TopBar.js +305 -0
- package/dist-lib/components/layout/tab-close.js +24 -0
- package/dist-lib/components/list/ColumnPicker.js +112 -0
- package/dist-lib/components/list/InlineEditCell.js +107 -0
- package/dist-lib/components/list/PeekFieldCell.js +143 -0
- package/dist-lib/components/list/QuickPeek.js +263 -0
- package/dist-lib/components/list/ViewSwitcher.js +156 -0
- package/dist-lib/components/list/peekDraftStore.js +14 -0
- package/dist-lib/{AdminCatalogPage.impl-B-7MLqa1.js → components/pages/AdminCatalogPage.impl.js} +53 -49
- package/dist-lib/components/pages/AdminCatalogPage.js +12 -0
- package/dist-lib/components/pages/DocumentsMenu.js +150 -0
- package/dist-lib/components/pages/ExportMenu.js +123 -0
- package/dist-lib/{NotFoundPage.impl-BoX11u-P.js → components/pages/NotFoundPage.impl.js} +6 -4
- package/dist-lib/components/pages/NotFoundPage.js +12 -0
- package/dist-lib/components/pages/RecordDocumentsPanel.js +230 -0
- package/dist-lib/components/pages/RecordNotesPanel.js +200 -0
- package/dist-lib/components/pages/RecordPanels.js +18 -0
- package/dist-lib/components/pages/SSOCallbackPage.impl.js +28 -0
- package/dist-lib/components/pages/SSOCallbackPage.js +12 -0
- package/dist-lib/components/pages/SmartDetailPage.impl.js +986 -0
- package/dist-lib/components/pages/SmartDetailPage.js +12 -0
- package/dist-lib/components/pages/SmartListPage.impl.js +708 -0
- package/dist-lib/components/pages/SmartListPage.js +12 -0
- package/dist-lib/components/pages/SmartRecordListPage.impl.js +818 -0
- package/dist-lib/components/pages/SmartRecordListPage.js +12 -0
- package/dist-lib/components/pages/auth/AuthShell.js +350 -0
- package/dist-lib/{Forgot.impl-6tL6SBlS.js → components/pages/auth/Forgot.impl.js} +13 -12
- package/dist-lib/components/pages/auth/Forgot.js +12 -0
- package/dist-lib/{Reset.impl-D0pjhS6d.js → components/pages/auth/Reset.impl.js} +17 -15
- package/dist-lib/components/pages/auth/Reset.js +12 -0
- package/dist-lib/components/pages/auth/SignIn.js +252 -0
- package/dist-lib/{SignUp.impl-CfEXrUeg.js → components/pages/auth/SignUp.impl.js} +31 -27
- package/dist-lib/components/pages/auth/SignUp.js +12 -0
- package/dist-lib/{TwoFA.impl-B2HtPduH.js → components/pages/auth/TwoFA.impl.js} +9 -8
- package/dist-lib/components/pages/auth/TwoFA.js +12 -0
- package/dist-lib/components/pages/auth/icons.js +56 -0
- package/dist-lib/components/pages/exportRequest.js +17 -0
- package/dist-lib/components/pages/list/DataCell.js +27 -0
- package/dist-lib/components/pages/list/DeleteViewDialog.js +22 -0
- package/dist-lib/{ListCardsBody-BEoYjSZ2.js → components/pages/list/ListCardRow.js} +47 -72
- package/dist-lib/components/pages/list/ListCardsBody.js +31 -0
- package/dist-lib/components/pages/list/ListFloatbar.js +130 -0
- package/dist-lib/components/pages/list/ListFooter.js +138 -0
- package/dist-lib/components/pages/list/ListHeader.js +120 -0
- package/dist-lib/components/pages/list/ListNoRows.js +72 -0
- package/dist-lib/components/pages/list/ListTable.js +191 -0
- package/dist-lib/components/pages/list/ListTableRow.js +37 -0
- package/dist-lib/components/pages/list/ListToolbar.js +261 -0
- package/dist-lib/components/pages/list/ListUrlBanner.js +45 -0
- package/dist-lib/components/pages/list/RowActionsCell.js +49 -0
- package/dist-lib/components/pages/list/RowContextMenu.js +55 -0
- package/dist-lib/components/pages/list/SaveViewDialog.js +111 -0
- package/dist-lib/{SortHeaderMenu-Co5PvhTA.js → components/pages/list/SortHeaderMenu.js} +18 -17
- package/dist-lib/{cardProjection-Cxlogzh8.js → components/pages/list/cardProjection.js} +3 -3
- package/dist-lib/components/pages/list/column-sizing.js +17 -0
- package/dist-lib/components/pages/list/columns.js +168 -0
- package/dist-lib/components/pages/list/filter-meta.js +84 -0
- package/dist-lib/components/pages/list/page-size.js +11 -0
- package/dist-lib/components/pages/list/sortable-header.js +18 -0
- package/dist-lib/components/pages/list/table-features.js +11 -0
- package/dist-lib/components/pages/list/use-filter-value-labels.js +115 -0
- package/dist-lib/components/pages/list/useActiveView.js +98 -0
- package/dist-lib/components/pages/list/useHeaderReorder.js +93 -0
- package/dist-lib/components/pages/list/useListColumnLayout.js +56 -0
- package/dist-lib/components/pages/list/useListFilterPresentation.js +34 -0
- package/dist-lib/components/pages/list/useListQuery.js +101 -0
- package/dist-lib/components/pages/list/useListRowInteraction.js +120 -0
- package/dist-lib/components/pages/list/useListSelection.js +53 -0
- package/dist-lib/components/pages/list/useListSort.js +44 -0
- package/dist-lib/components/pages/list/useListViews.js +148 -0
- package/dist-lib/components/pages/list/useRowMenu.js +106 -0
- package/dist-lib/components/pages/list/visible-filters.js +19 -0
- package/dist-lib/{Preferences.impl-Ct5xwZtT.js → components/pages/profile/Preferences.impl.js} +34 -31
- package/dist-lib/components/pages/profile/Preferences.js +12 -0
- package/dist-lib/components/pages/profile/Profile.impl.js +437 -0
- package/dist-lib/components/pages/profile/Profile.js +12 -0
- package/dist-lib/{TenantParamsPage.impl-BGpdmEZg.js → components/pages/tenant-params/TenantParamsPage.impl.js} +45 -40
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +12 -0
- package/dist-lib/components/params/ParamsBlock.js +119 -0
- package/dist-lib/{param-editors-TYYU7HKK.js → components/params/param-editors.js} +32 -28
- package/dist-lib/components/primitives/Avatar.js +33 -0
- package/dist-lib/components/primitives/BoolToggle.js +35 -0
- package/dist-lib/components/primitives/BrandGlyph.js +38 -0
- package/dist-lib/components/primitives/BrandLogo.js +20 -0
- package/dist-lib/components/primitives/Btn.js +67 -0
- package/dist-lib/{Check-DAfMbQIw.js → components/primitives/Check.js} +2 -2
- package/dist-lib/components/primitives/Chip.js +44 -0
- package/dist-lib/components/primitives/ClassifiedFieldLocked.js +15 -0
- package/dist-lib/components/primitives/Dropdown.js +85 -0
- package/dist-lib/components/primitives/Fields.js +751 -0
- package/dist-lib/components/primitives/HoverCard.js +115 -0
- package/dist-lib/components/primitives/IconBtn.js +37 -0
- package/dist-lib/{Icons-lt-7lhYR.js → components/primitives/Icons.js} +1 -1
- package/dist-lib/{Kbd-CNttVu0z.js → components/primitives/Kbd.js} +2 -2
- package/dist-lib/components/primitives/MenuItem.js +57 -0
- package/dist-lib/{Pill-D-wsfRhx.js → components/primitives/Pill.js} +1 -1
- package/dist-lib/{RecordIdBadge-wbigZaFc.js → components/primitives/RecordIdBadge.js} +5 -5
- package/dist-lib/components/primitives/RowField.js +47 -0
- package/dist-lib/{SectionCard-BYHoHWJc.js → components/primitives/SectionCard.js} +10 -10
- package/dist-lib/components/primitives/Spinner.js +31 -0
- package/dist-lib/components/primitives/StatTile.js +108 -0
- package/dist-lib/components/primitives/Tooltip.js +115 -0
- package/dist-lib/{dataTableStyles-vwD1mVOP.js → components/primitives/dataTableStyles.js} +1 -1
- package/dist-lib/components/shared/BlankScreen.js +13 -0
- package/dist-lib/{ChangePasswordDialog.impl-5hDc0wpE.js → components/shared/ChangePasswordDialog.impl.js} +27 -22
- package/dist-lib/{ChangePasswordDialog-C_T_3pjl.js → components/shared/ChangePasswordDialog.js} +2 -2
- package/dist-lib/components/shared/ConfirmDialog.js +129 -0
- package/dist-lib/components/shared/ConnectionNotice.js +12 -0
- package/dist-lib/components/shared/CopyButton.js +25 -0
- package/dist-lib/components/shared/DynamicIcon.js +73 -0
- package/dist-lib/components/shared/EmptyState.js +56 -0
- package/dist-lib/components/shared/ErrorBoundary.js +96 -0
- package/dist-lib/components/shared/LoadingSkeleton.js +117 -0
- package/dist-lib/components/shared/LucideIcon.js +43 -0
- package/dist-lib/components/shared/Markdown.js +15 -0
- package/dist-lib/{MarkdownRenderer-sK2TRZS-.js → components/shared/MarkdownRenderer.js} +10 -9
- package/dist-lib/components/shared/RefreshControl.js +42 -0
- package/dist-lib/components/shared/StatusGroupsDisplay.js +123 -0
- package/dist-lib/components/shared/StatusStepper.js +70 -0
- package/dist-lib/components/shared/toast/DeclarionToast.js +308 -0
- package/dist-lib/components/shared/useOwnRefresh.js +19 -0
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/embed/EmbedAuthBootstrap.js +71 -0
- package/dist-lib/embed/EmbedContext.js +38 -0
- package/dist-lib/embed/EmbedDirtyReporter.js +17 -0
- package/dist-lib/embed/EmbedHistoryTracker.js +17 -0
- package/dist-lib/embed/EmbedLocationReporter.js +26 -0
- package/dist-lib/embed/EmbedResizeReporter.js +25 -0
- package/dist-lib/embed/EmbedUnsavedGuard.js +23 -0
- package/dist-lib/embed/embed-dirty.js +21 -0
- package/dist-lib/embed/embed-history.js +17 -0
- package/dist-lib/embed/embed-nav-guard.js +13 -0
- package/dist-lib/embed/file-src.js +60 -0
- package/dist-lib/embed/handshake.js +37 -0
- package/dist-lib/embed/params.js +45 -0
- package/dist-lib/embed/protocol.js +26 -0
- package/dist-lib/embed/screen-location.js +44 -0
- package/dist-lib/embed/theme.js +11 -0
- package/dist-lib/embed/token.js +54 -0
- package/dist-lib/embed/useEmbedNavigate.js +65 -0
- package/dist-lib/embed/useGlobalLinkInterceptor.js +63 -0
- package/dist-lib/hooks/useActionData.js +58 -0
- package/dist-lib/hooks/useAgentConversation.js +311 -0
- package/dist-lib/hooks/useAggregate.js +18 -0
- package/dist-lib/hooks/useAllEntityData.js +53 -0
- package/dist-lib/hooks/useAssociatedData.js +37 -0
- package/dist-lib/hooks/useAuth.js +56 -0
- package/dist-lib/hooks/useBranding.js +18 -0
- package/dist-lib/hooks/useBrandingChrome.js +58 -0
- package/dist-lib/hooks/useChildrenData.js +33 -0
- package/dist-lib/hooks/useColumns.js +44 -0
- package/dist-lib/hooks/useConnectionNotice.js +35 -0
- package/dist-lib/{useCurrentLocation-Bq1T72AW.js → hooks/useCurrentLocation.js} +2 -2
- package/dist-lib/hooks/useCurrentScreen.js +20 -0
- package/dist-lib/hooks/useCursorEntityData.js +77 -0
- package/dist-lib/hooks/useDebounce.js +11 -0
- package/dist-lib/hooks/useEntity.js +8 -0
- package/dist-lib/hooks/useEntityData.js +64 -0
- package/dist-lib/hooks/useFileReferenceJSON.js +29 -0
- package/dist-lib/hooks/useFilters.js +28 -0
- package/dist-lib/hooks/useFollowAgentOpen.js +84 -0
- package/dist-lib/hooks/useImpersonation.js +40 -0
- package/dist-lib/hooks/useIntentPrefetch.js +43 -0
- package/dist-lib/hooks/useJsonSnapshot.js +8 -0
- package/dist-lib/hooks/useLanguage.js +21 -0
- package/dist-lib/hooks/useLiveObject.js +17 -0
- package/dist-lib/hooks/useLongPress.js +49 -0
- package/dist-lib/hooks/useMutations.js +70 -0
- package/dist-lib/{useObject-B45F96rC.js → hooks/useObject.js} +2 -2
- package/dist-lib/hooks/useObjectStatus.js +20 -0
- package/dist-lib/hooks/usePageState.js +18 -0
- package/dist-lib/hooks/usePageStateRuntime.js +46 -0
- package/dist-lib/hooks/usePageStateTtl.js +10 -0
- package/dist-lib/hooks/useParams.js +123 -0
- package/dist-lib/hooks/useProperties.js +32 -0
- package/dist-lib/hooks/useRealtimeThresholds.js +31 -0
- package/dist-lib/hooks/useRegisterScreenTab.js +28 -0
- package/dist-lib/hooks/useResponsiveMode.js +84 -0
- package/dist-lib/hooks/useSSE.js +307 -0
- package/dist-lib/hooks/useSchema.js +73 -0
- package/dist-lib/hooks/useScreen.js +8 -0
- package/dist-lib/hooks/useScreenBack.js +60 -0
- package/dist-lib/hooks/useScreenTab.js +11 -0
- package/dist-lib/hooks/useTabNavigate.js +82 -0
- package/dist-lib/hooks/useTabSearchMirror.js +19 -0
- package/dist-lib/{useTabTitle-KrzEo118.js → hooks/useTabTitle.js} +9 -7
- package/dist-lib/hooks/useText.js +15 -0
- package/dist-lib/hooks/useTimelineData.js +44 -0
- package/dist-lib/hooks/useUnsavedInput.js +18 -0
- package/dist-lib/hooks/useVersionWatcher.js +62 -0
- package/dist-lib/hooks/useViews.js +88 -0
- package/dist-lib/hooks/useWindowConversation.js +11 -0
- package/dist-lib/icons.js +5 -3
- package/dist-lib/index.d.ts +42 -20
- package/dist-lib/index.js +131 -3926
- package/dist-lib/lib/action-dispatch.js +7 -0
- package/dist-lib/lib/actions.js +279 -0
- package/dist-lib/lib/anchor.js +41 -0
- package/dist-lib/lib/brand-tokens.js +95 -0
- package/dist-lib/lib/branding.js +25 -0
- package/dist-lib/lib/canonical-url.js +17 -0
- package/dist-lib/lib/capabilityPrefetch.js +57 -0
- package/dist-lib/lib/child-config.js +111 -0
- package/dist-lib/lib/children-validation.js +52 -0
- package/dist-lib/lib/decimal-text.js +15 -0
- package/dist-lib/lib/display-value.js +19 -0
- package/dist-lib/lib/document-templates.js +6 -0
- package/dist-lib/lib/download.js +41 -0
- package/dist-lib/lib/evidence-verdict.js +23 -0
- package/dist-lib/lib/failure.js +9 -0
- package/dist-lib/lib/field-classification.js +58 -0
- package/dist-lib/lib/field-regions.js +13 -0
- package/dist-lib/lib/filter-evaluator.js +98 -0
- package/dist-lib/lib/filters.js +118 -0
- package/dist-lib/lib/format-count.js +24 -0
- package/dist-lib/lib/html-state.js +9 -0
- package/dist-lib/lib/language.js +52 -0
- package/dist-lib/lib/longPressGesture.js +34 -0
- package/dist-lib/lib/mass-edit.js +65 -0
- package/dist-lib/{page-inset-D_kkVwwN.js → lib/page-inset.js} +1 -1
- package/dist-lib/lib/phone.js +28 -0
- package/dist-lib/lib/query-retry.js +7 -0
- package/dist-lib/lib/quick-add.js +23 -0
- package/dist-lib/lib/realtime-query-keys.js +23 -0
- package/dist-lib/lib/realtime-reconcile.js +148 -0
- package/dist-lib/lib/realtime-resync.js +192 -0
- package/dist-lib/lib/record-documents-key.js +4 -0
- package/dist-lib/lib/ref-choices.js +6 -0
- package/dist-lib/lib/refetch-when-idle.js +25 -0
- package/dist-lib/lib/rich-text.js +46 -0
- package/dist-lib/lib/rowClickGesture.js +10 -0
- package/dist-lib/lib/safe-url.js +34 -0
- package/dist-lib/lib/schema-routing.js +51 -0
- package/dist-lib/{screen-back-BtbEp5sO.js → lib/screen-back.js} +2 -2
- package/dist-lib/lib/scroll-restoration.js +156 -0
- package/dist-lib/lib/size-value.js +22 -0
- package/dist-lib/lib/sort.js +59 -0
- package/dist-lib/lib/timestamp.js +97 -0
- package/dist-lib/lib/toast.js +78 -0
- package/dist-lib/lib/ui-actions.js +81 -0
- package/dist-lib/{utils-D_QDpB8_.js → lib/utils.js} +1 -1
- package/dist-lib/lib/variants.js +63 -0
- package/dist-lib/lib/versionTracker.js +102 -0
- package/dist-lib/lib/viewport-category.js +12 -0
- package/dist-lib/{window-election-CHIvIZwx.js → lib/window-election.js} +1 -1
- package/dist-lib/stores/auth.js +84 -0
- package/dist-lib/stores/icon-registry.js +24 -0
- package/dist-lib/stores/list-layout.js +178 -0
- package/dist-lib/{page-state-eA6J_KIR.js → stores/page-state.js} +1 -1
- package/dist-lib/stores/preferences.js +126 -0
- package/dist-lib/stores/realtime.js +115 -0
- package/dist-lib/stores/screen-registry.js +10 -0
- package/dist-lib/stores/tabs.js +220 -0
- package/dist-lib/test/seed-schema.js +8 -0
- package/dist-lib/testing.d.ts +1 -1
- package/dist-lib/testing.js +80 -76
- package/dist-lib/types/api.js +48 -0
- package/dist-lib/types/fieldType.js +4 -0
- package/dist-lib/types/ordmap.js +50 -0
- package/dist-lib/types/schema.js +173 -0
- package/dist-lib/{useResponsiveMode-DIR1bZfo.d.ts → useResponsiveMode-DmrpMbZX.d.ts} +44 -16
- package/package.json +13 -12
- package/dist-lib/ActionRunner-DdBFhqGe.js +0 -1440
- package/dist-lib/AgentOpenFollower.impl-BAs_wGEZ.js +0 -81
- package/dist-lib/AssociatedBlock-BOoPLOjw.js +0 -1515
- package/dist-lib/AuthShell-C8aVwHS7.js +0 -361
- package/dist-lib/BlankScreen-DVc7fh8C.js +0 -61
- package/dist-lib/CopyButton-DRIT_f0k.js +0 -119
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +0 -133
- package/dist-lib/FilterChips-Cv1tlXyo.js +0 -1031
- package/dist-lib/LayoutRenderer-d-tXYPze.js +0 -3239
- package/dist-lib/MenuItem-CfkVXPvC.js +0 -140
- package/dist-lib/MonacoJson-BG3S3GHX.js +0 -60
- package/dist-lib/Profile.impl-Cypk27ah.js +0 -527
- package/dist-lib/PropertyGridEditor-XrP6TZ5s.js +0 -4378
- package/dist-lib/RecordHeader-BfQ0_4wq.js +0 -217
- package/dist-lib/RefreshControl-CRdWPoF5.js +0 -195
- package/dist-lib/SSOCallbackPage.impl-Cfi2pQ59.js +0 -31
- package/dist-lib/SmartDetailPage.impl-BiIX0n7K.js +0 -1609
- package/dist-lib/SmartListPage.impl-Cu83Gv_G.js +0 -2818
- package/dist-lib/SmartRecordListPage.impl-DR6lq7HA.js +0 -795
- package/dist-lib/format-count-lyB4CPen.js +0 -943
- package/dist-lib/peekDraftStore-CaimrOhW.js +0 -200
- package/dist-lib/registry-CGe5kCXN.js +0 -119
- package/dist-lib/use-filter-value-labels-D3YDgUzg.js +0 -413
- package/dist-lib/useAgentConversation-rru-7hnF.js +0 -612
- package/dist-lib/useBranding-zcxEic2k.js +0 -41
- package/dist-lib/useBrandingChrome-bxaR3G1R.js +0 -170
- package/dist-lib/useCurrentScreen-BZOHBGQZ.js +0 -2522
- package/dist-lib/useImpersonation-DBIRRR70.js +0 -35
- package/dist-lib/useOwnRefresh-DJjaje52.js +0 -435
- package/dist-lib/useParams-BFLJi4n3.js +0 -133
- package/dist-lib/useProperties-B7opZ-iy.js +0 -81
- package/dist-lib/useScreenBack-DENlz844.js +0 -71
- package/dist-lib/useTabNavigate-CUqOmcMj.js +0 -78
- package/dist-lib/value-BuQVYx52.js +0 -194
- package/dist-lib/variants-vUtfBbE6.js +0 -1961
- /package/dist-lib/{JsonEditor-Dz1PQHC8.js → components/fields/JsonEditor.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Suspense as e, lazy as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/agents/AgentChatPanel.tsx
|
|
4
|
+
var r = t(() => import("./AgentChatPanel.impl.js").then((e) => ({ default: e.AgentChatPanel })));
|
|
5
|
+
function i(t) {
|
|
6
|
+
return t.open ? /* @__PURE__ */ n(e, {
|
|
7
|
+
fallback: null,
|
|
8
|
+
children: /* @__PURE__ */ n(r, { ...t })
|
|
9
|
+
}) : null;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as AgentChatPanel };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { Btn as t } from "../primitives/Btn.js";
|
|
3
|
+
import { useText as n } from "../../hooks/useText.js";
|
|
4
|
+
import { useEntity as r } from "../../hooks/useEntity.js";
|
|
5
|
+
import { useEffect as i } from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/agents/AgentConversationDrawer.tsx
|
|
8
|
+
function s({ open: s, onClose: c, conversations: l, activeId: u, onSelect: d, onNew: f, onRefresh: p }) {
|
|
9
|
+
let m = n(), h = m(r("agent_conversation")?.display?.name_plural) || "agent_conversation";
|
|
10
|
+
return i(() => {
|
|
11
|
+
s && p();
|
|
12
|
+
}, [s, p]), s ? /* @__PURE__ */ o("aside", {
|
|
13
|
+
className: "fixed left-0 top-0 z-40 flex h-full w-[320px] flex-col border-r border-border bg-card text-foreground shadow-2xl",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ o("header", {
|
|
16
|
+
className: "flex items-center justify-between border-b border-border px-4 py-3",
|
|
17
|
+
children: [/* @__PURE__ */ a("span", {
|
|
18
|
+
className: "font-semibold",
|
|
19
|
+
children: h
|
|
20
|
+
}), /* @__PURE__ */ o(t, {
|
|
21
|
+
kind: "ghost",
|
|
22
|
+
onClick: f,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ a(e.plus, {}),
|
|
25
|
+
" ",
|
|
26
|
+
m("agent.drawer.new", "New")
|
|
27
|
+
]
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ o("div", {
|
|
31
|
+
className: "flex-1 overflow-y-auto",
|
|
32
|
+
children: [l.length === 0 && /* @__PURE__ */ a("div", {
|
|
33
|
+
className: "p-4 text-sm text-muted-foreground",
|
|
34
|
+
children: m("agent.drawer.empty", "No conversations yet.")
|
|
35
|
+
}), l.map((e) => /* @__PURE__ */ o("button", {
|
|
36
|
+
onClick: () => d(e.id),
|
|
37
|
+
className: `block w-full px-4 py-3 text-left border-b border-divider hover:bg-surface ${e.id === u ? "bg-surface" : ""}`,
|
|
38
|
+
children: [/* @__PURE__ */ a("div", {
|
|
39
|
+
className: "text-sm font-medium truncate",
|
|
40
|
+
children: e.title || m("agent.drawer.untitled", "Untitled")
|
|
41
|
+
}), /* @__PURE__ */ o("div", {
|
|
42
|
+
className: "text-xs text-muted-foreground",
|
|
43
|
+
children: [e.agent ? `${e.agent} · ` : "", e.status]
|
|
44
|
+
})]
|
|
45
|
+
}, e.id))]
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ a("footer", {
|
|
48
|
+
className: "border-t border-border p-2",
|
|
49
|
+
children: /* @__PURE__ */ a(t, {
|
|
50
|
+
kind: "ghost",
|
|
51
|
+
onClick: c,
|
|
52
|
+
children: m("agent.drawer.close", "Close")
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}) : null;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { s as AgentConversationDrawer };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { coerceDisplayString as e } from "../../lib/display-value.js";
|
|
2
|
+
import { Btn as t } from "../primitives/Btn.js";
|
|
3
|
+
import { useText as n } from "../../hooks/useText.js";
|
|
4
|
+
import { useState as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/agents/AgentElicitForm.tsx
|
|
7
|
+
function o({ message: e, schema: o, onSubmit: c, onCancel: l }) {
|
|
8
|
+
let f = n(), [p, m] = r(() => d(o)), [h, g] = r(null), _ = () => {
|
|
9
|
+
let e = (o.required ?? []).filter((e) => u(p[e]));
|
|
10
|
+
e.length > 0 ? g(f("agent.elicit.required", "Required: {fields}", { fields: e.join(", ") })) : c(p);
|
|
11
|
+
}, v = Object.entries(o.properties ?? {});
|
|
12
|
+
return /* @__PURE__ */ a("div", {
|
|
13
|
+
className: "rounded-md border border-divider bg-surface p-3 text-sm",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ i("div", {
|
|
16
|
+
className: "mb-3 font-medium",
|
|
17
|
+
children: e
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i("div", {
|
|
20
|
+
className: "space-y-2",
|
|
21
|
+
children: v.map(([e, t]) => /* @__PURE__ */ i(s, {
|
|
22
|
+
name: e,
|
|
23
|
+
prop: t,
|
|
24
|
+
required: (o.required ?? []).includes(e),
|
|
25
|
+
value: p[e],
|
|
26
|
+
onChange: (t) => m((n) => ({
|
|
27
|
+
...n,
|
|
28
|
+
[e]: t
|
|
29
|
+
}))
|
|
30
|
+
}, e))
|
|
31
|
+
}),
|
|
32
|
+
h && /* @__PURE__ */ i("div", {
|
|
33
|
+
className: "mt-2 text-xs text-destructive",
|
|
34
|
+
children: h
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ a("div", {
|
|
37
|
+
className: "mt-3 flex justify-end gap-2",
|
|
38
|
+
children: [l && /* @__PURE__ */ i(t, {
|
|
39
|
+
kind: "ghost",
|
|
40
|
+
onClick: l,
|
|
41
|
+
children: f("dialog.cancel", "Cancel")
|
|
42
|
+
}), /* @__PURE__ */ i(t, {
|
|
43
|
+
onClick: _,
|
|
44
|
+
children: f("agent.elicit.submit", "Submit")
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function s({ name: t, prop: n, required: r, value: o, onChange: s }) {
|
|
51
|
+
let u = (n.title ?? l(t)) + (r ? " *" : ""), d = n.description;
|
|
52
|
+
return n.enum ? /* @__PURE__ */ i(c, {
|
|
53
|
+
label: u,
|
|
54
|
+
help: d,
|
|
55
|
+
children: /* @__PURE__ */ a("select", {
|
|
56
|
+
value: e(o),
|
|
57
|
+
onChange: (e) => s(e.target.value),
|
|
58
|
+
className: "w-full rounded-md border border-border bg-card p-2 text-sm",
|
|
59
|
+
children: [/* @__PURE__ */ i("option", {
|
|
60
|
+
value: "",
|
|
61
|
+
children: "—"
|
|
62
|
+
}), n.enum.map((e) => /* @__PURE__ */ i("option", {
|
|
63
|
+
value: String(e),
|
|
64
|
+
children: String(e)
|
|
65
|
+
}, String(e)))]
|
|
66
|
+
})
|
|
67
|
+
}) : n.type === "boolean" ? /* @__PURE__ */ i(c, {
|
|
68
|
+
label: u,
|
|
69
|
+
help: d,
|
|
70
|
+
children: /* @__PURE__ */ i("input", {
|
|
71
|
+
type: "checkbox",
|
|
72
|
+
checked: !!o,
|
|
73
|
+
onChange: (e) => s(e.target.checked)
|
|
74
|
+
})
|
|
75
|
+
}) : n.type === "array" && n.items?.enum ? /* @__PURE__ */ i(c, {
|
|
76
|
+
label: u,
|
|
77
|
+
help: d,
|
|
78
|
+
children: /* @__PURE__ */ i("select", {
|
|
79
|
+
multiple: !0,
|
|
80
|
+
value: Array.isArray(o) ? o.map(String) : [],
|
|
81
|
+
onChange: (e) => {
|
|
82
|
+
s(Array.from(e.target.selectedOptions).map((e) => e.value));
|
|
83
|
+
},
|
|
84
|
+
className: "w-full rounded-md border border-border bg-card p-2 text-sm",
|
|
85
|
+
children: n.items.enum.map((e) => /* @__PURE__ */ i("option", {
|
|
86
|
+
value: String(e),
|
|
87
|
+
children: String(e)
|
|
88
|
+
}, String(e)))
|
|
89
|
+
})
|
|
90
|
+
}) : n.type === "integer" || n.type === "number" ? /* @__PURE__ */ i(c, {
|
|
91
|
+
label: u,
|
|
92
|
+
help: d,
|
|
93
|
+
children: /* @__PURE__ */ i("input", {
|
|
94
|
+
type: "number",
|
|
95
|
+
step: n.type === "integer" ? 1 : "any",
|
|
96
|
+
min: n.minimum,
|
|
97
|
+
max: n.maximum,
|
|
98
|
+
value: o == null ? "" : e(o),
|
|
99
|
+
onChange: (e) => {
|
|
100
|
+
s(e.target.value === "" ? void 0 : Number(e.target.value));
|
|
101
|
+
},
|
|
102
|
+
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
103
|
+
})
|
|
104
|
+
}) : n.format === "multiline" ? /* @__PURE__ */ i(c, {
|
|
105
|
+
label: u,
|
|
106
|
+
help: d,
|
|
107
|
+
children: /* @__PURE__ */ i("textarea", {
|
|
108
|
+
rows: 3,
|
|
109
|
+
value: e(o),
|
|
110
|
+
onChange: (e) => s(e.target.value),
|
|
111
|
+
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
112
|
+
})
|
|
113
|
+
}) : /* @__PURE__ */ i(c, {
|
|
114
|
+
label: u,
|
|
115
|
+
help: d,
|
|
116
|
+
children: /* @__PURE__ */ i("input", {
|
|
117
|
+
type: n.format === "email" ? "email" : n.format === "url" ? "url" : n.format === "date-time" ? "datetime-local" : "text",
|
|
118
|
+
value: e(o),
|
|
119
|
+
onChange: (e) => s(e.target.value),
|
|
120
|
+
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
121
|
+
})
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function c({ label: e, help: t, children: n }) {
|
|
125
|
+
return /* @__PURE__ */ a("label", {
|
|
126
|
+
className: "block",
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ i("span", {
|
|
129
|
+
className: "block text-xs font-medium text-muted-foreground",
|
|
130
|
+
children: e
|
|
131
|
+
}),
|
|
132
|
+
n,
|
|
133
|
+
t && /* @__PURE__ */ i("span", {
|
|
134
|
+
className: "mt-0.5 block text-xs text-muted-foreground",
|
|
135
|
+
children: t
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function l(e) {
|
|
141
|
+
return e.replace(/[_-]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
142
|
+
}
|
|
143
|
+
function u(e) {
|
|
144
|
+
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
145
|
+
}
|
|
146
|
+
function d(e) {
|
|
147
|
+
let t = {};
|
|
148
|
+
for (let [n, r] of Object.entries(e.properties ?? {})) r.default !== void 0 && (t[n] = r.default);
|
|
149
|
+
return t;
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
export { o as AgentElicitForm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Suspense as e, lazy as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/agents/AgentOpenFollower.tsx
|
|
4
|
+
var r = t(() => import("./AgentOpenFollower.impl.js").then((e) => ({ default: e.AgentOpenFollower })));
|
|
5
|
+
function i() {
|
|
6
|
+
return /* @__PURE__ */ n(e, {
|
|
7
|
+
fallback: null,
|
|
8
|
+
children: /* @__PURE__ */ n(r, {})
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as AgentOpenFollower };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useText as e } from "../../hooks/useText.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/agents/AgentPicker.tsx
|
|
4
|
+
function r({ agents: r, selectedId: a, onSelect: o, label: s }) {
|
|
5
|
+
let c = e();
|
|
6
|
+
if (r.length < 2) return null;
|
|
7
|
+
let l = r.find((e) => e.id === a);
|
|
8
|
+
return /* @__PURE__ */ n("div", {
|
|
9
|
+
style: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
gap: 8,
|
|
13
|
+
padding: "8px 14px",
|
|
14
|
+
borderBottom: "1px solid var(--divider)"
|
|
15
|
+
},
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ t("label", {
|
|
18
|
+
htmlFor: "agent-picker",
|
|
19
|
+
style: {
|
|
20
|
+
fontSize: 10.5,
|
|
21
|
+
color: "var(--text-3)"
|
|
22
|
+
},
|
|
23
|
+
children: s
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ t("select", {
|
|
26
|
+
id: "agent-picker",
|
|
27
|
+
value: a ?? "",
|
|
28
|
+
onChange: (e) => o(e.target.value),
|
|
29
|
+
style: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
fontSize: 11.5,
|
|
32
|
+
padding: "3px 6px",
|
|
33
|
+
borderRadius: "var(--radius-md)",
|
|
34
|
+
border: "1px solid var(--border)",
|
|
35
|
+
background: "var(--surface-2)",
|
|
36
|
+
color: "var(--text)"
|
|
37
|
+
},
|
|
38
|
+
children: r.map((e) => /* @__PURE__ */ t("option", {
|
|
39
|
+
value: e.id,
|
|
40
|
+
children: i(e, c)
|
|
41
|
+
}, e.id))
|
|
42
|
+
}),
|
|
43
|
+
l?.description && /* @__PURE__ */ t("span", {
|
|
44
|
+
style: {
|
|
45
|
+
flex: 2,
|
|
46
|
+
fontSize: 10.5,
|
|
47
|
+
color: "var(--text-3)"
|
|
48
|
+
},
|
|
49
|
+
children: c(l.description)
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function i(e, t) {
|
|
55
|
+
return t(e.name) || e.code;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { r as AgentPicker };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/components/agents/transcript-runs.ts
|
|
2
|
+
var e = /* @__PURE__ */ new Set(["operation.search"]);
|
|
3
|
+
function t(t, o = []) {
|
|
4
|
+
let s = [], c = /* @__PURE__ */ new Map();
|
|
5
|
+
for (let e of o) e.assistant_message_id && e.provider_call_id && c.set(r(e.assistant_message_id, e.provider_call_id), e);
|
|
6
|
+
for (let r of t) {
|
|
7
|
+
let t = n(r, c);
|
|
8
|
+
if (a(r) && s.push({
|
|
9
|
+
kind: "message",
|
|
10
|
+
message: i(r)
|
|
11
|
+
}), t.length === 0) continue;
|
|
12
|
+
let o = s[s.length - 1], l = o?.kind === "run" ? o : (s.push({
|
|
13
|
+
kind: "run",
|
|
14
|
+
id: r.id,
|
|
15
|
+
calls: []
|
|
16
|
+
}), s[s.length - 1]);
|
|
17
|
+
for (let n of t) e.has(n.name) || l.calls.push(n);
|
|
18
|
+
l.calls.length === 0 && s.pop();
|
|
19
|
+
}
|
|
20
|
+
return s;
|
|
21
|
+
}
|
|
22
|
+
function n(e, t) {
|
|
23
|
+
let n = [];
|
|
24
|
+
for (let i of e.content ?? []) {
|
|
25
|
+
if (i.type !== "tool_use") continue;
|
|
26
|
+
let a = i, o = a.id ?? "", s = t.get(r(e.id, o)), c = s?.status;
|
|
27
|
+
n.push({
|
|
28
|
+
id: s?.id ?? `${e.id}:${o || n.length}`,
|
|
29
|
+
name: a.name ?? "",
|
|
30
|
+
input: a.input,
|
|
31
|
+
messageId: e.id,
|
|
32
|
+
status: c,
|
|
33
|
+
...s?.result === void 0 ? {} : { output: s.result },
|
|
34
|
+
...c === "failed" || c === "rejected" || c === "canceled" || c === "outcome_unknown" ? { isError: !0 } : {}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return n;
|
|
38
|
+
}
|
|
39
|
+
function r(e, t) {
|
|
40
|
+
return `${e}\u0000${t}`;
|
|
41
|
+
}
|
|
42
|
+
function i(e) {
|
|
43
|
+
return {
|
|
44
|
+
...e,
|
|
45
|
+
content: (e.content ?? []).filter((e) => e.type !== "tool_use" && e.type !== "tool_result")
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function a(e) {
|
|
49
|
+
return (e.content ?? []).some((e) => e.type !== "tool_use" && e.type !== "tool_result");
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { t as fold };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { fieldDisplayName as e } from "../../types/schema.js";
|
|
2
|
+
import { Icon as t } from "../primitives/Icons.js";
|
|
3
|
+
import { Btn as n } from "../primitives/Btn.js";
|
|
4
|
+
import { useText as r } from "../../hooks/useText.js";
|
|
5
|
+
import { SectionCard as i } from "../primitives/SectionCard.js";
|
|
6
|
+
import { DynamicIcon as a } from "../shared/DynamicIcon.js";
|
|
7
|
+
import { listEntities as o, resolveAssociation as s } from "../../api/data.js";
|
|
8
|
+
import { useTabNavigate as c } from "../../hooks/useTabNavigate.js";
|
|
9
|
+
import { findListScreenForEntity as l } from "../../lib/actions.js";
|
|
10
|
+
import { renderField as u } from "../fields/index.js";
|
|
11
|
+
import { dataTableCellStyle as d, dataTableHeadCellStyle as f, dataTableStyle as p } from "../primitives/dataTableStyles.js";
|
|
12
|
+
import { useMemo as m, useState as h } from "react";
|
|
13
|
+
import { useQuery as g } from "@tanstack/react-query";
|
|
14
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
15
|
+
//#region src/components/chrome/AssociationTabs.tsx
|
|
16
|
+
function y({ entityCode: e, recordId: t, associations: n, schema: o }) {
|
|
17
|
+
let s = r(), c = m(() => Object.entries(n), [n]), [l, u] = h(0);
|
|
18
|
+
if (c.length === 0) return null;
|
|
19
|
+
let [d, f] = c[l];
|
|
20
|
+
return /* @__PURE__ */ _(i, {
|
|
21
|
+
title: /* @__PURE__ */ _("div", {
|
|
22
|
+
style: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
gap: 4,
|
|
26
|
+
borderBottom: "1px solid var(--divider)",
|
|
27
|
+
margin: "-10px -14px 0 -14px",
|
|
28
|
+
padding: "0 14px"
|
|
29
|
+
},
|
|
30
|
+
children: c.map(([e, t], n) => {
|
|
31
|
+
let r = n === l;
|
|
32
|
+
return /* @__PURE__ */ v("button", {
|
|
33
|
+
onClick: (e) => {
|
|
34
|
+
e.stopPropagation(), u(n);
|
|
35
|
+
},
|
|
36
|
+
style: {
|
|
37
|
+
display: "inline-flex",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
gap: 6,
|
|
40
|
+
padding: "10px 12px",
|
|
41
|
+
fontSize: 12.5,
|
|
42
|
+
background: "transparent",
|
|
43
|
+
border: 0,
|
|
44
|
+
borderBottom: `2px solid ${r ? "var(--accent)" : "transparent"}`,
|
|
45
|
+
marginBottom: -1,
|
|
46
|
+
color: r ? "var(--text)" : "var(--text-3)",
|
|
47
|
+
cursor: "pointer",
|
|
48
|
+
fontWeight: r ? 600 : 500
|
|
49
|
+
},
|
|
50
|
+
children: [t.display?.icon && /* @__PURE__ */ _(a, {
|
|
51
|
+
name: t.display.icon,
|
|
52
|
+
size: 13
|
|
53
|
+
}), s(t.display?.name) || e]
|
|
54
|
+
}, e);
|
|
55
|
+
})
|
|
56
|
+
}),
|
|
57
|
+
collapsible: !1,
|
|
58
|
+
padding: "0",
|
|
59
|
+
children: /* @__PURE__ */ _(b, {
|
|
60
|
+
entityCode: e,
|
|
61
|
+
recordId: t,
|
|
62
|
+
assocKey: d,
|
|
63
|
+
association: f,
|
|
64
|
+
schema: o
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function b({ entityCode: i, recordId: a, assocKey: h, association: y, schema: b }) {
|
|
69
|
+
let x = r(), S = r("errors"), C = c(), w = `${i}.${h}`, { data: T, isLoading: E } = g({
|
|
70
|
+
queryKey: [
|
|
71
|
+
"association",
|
|
72
|
+
w,
|
|
73
|
+
a
|
|
74
|
+
],
|
|
75
|
+
queryFn: () => s(w, [a])
|
|
76
|
+
}), D = T?.target_entity ?? y.target, O = b.entities[D], k = m(() => T?.ids ?? [], [T?.ids]), A = m(() => O?.fields.names().find((e) => O.fields.get(e)?.primary) ?? "id", [O]), j = m(() => k.slice(0, 50), [k]), { data: M, isLoading: N } = g({
|
|
77
|
+
queryKey: [
|
|
78
|
+
"association-records",
|
|
79
|
+
D,
|
|
80
|
+
j
|
|
81
|
+
],
|
|
82
|
+
queryFn: () => o(D, {
|
|
83
|
+
per_page: 50,
|
|
84
|
+
filters: [{
|
|
85
|
+
field: A,
|
|
86
|
+
op: "in",
|
|
87
|
+
value: j
|
|
88
|
+
}]
|
|
89
|
+
}),
|
|
90
|
+
enabled: j.length > 0 && !!O
|
|
91
|
+
}), P = M?.data ?? [], F = M?.$refs, I = m(() => O ? O.fields.names().filter((e) => {
|
|
92
|
+
let t = O.fields.get(e);
|
|
93
|
+
return t && !t.primary && !t.auto && t.display?.is_listable !== !1;
|
|
94
|
+
}).slice(0, 6) : [], [O]), L = () => {
|
|
95
|
+
let e = l(b, D);
|
|
96
|
+
if (!e) return;
|
|
97
|
+
let t = x(y.display?.name) || h, n = new URLSearchParams();
|
|
98
|
+
n.set("filters", JSON.stringify([{
|
|
99
|
+
field: A,
|
|
100
|
+
op: "in",
|
|
101
|
+
value: k
|
|
102
|
+
}])), C(e.route, {
|
|
103
|
+
title: t,
|
|
104
|
+
icon: y.display?.icon || e.icon,
|
|
105
|
+
search: n.toString()
|
|
106
|
+
});
|
|
107
|
+
}, R = {
|
|
108
|
+
fontSize: 12.5,
|
|
109
|
+
color: "var(--text-3)",
|
|
110
|
+
padding: "14px 16px"
|
|
111
|
+
};
|
|
112
|
+
if (E || N) return /* @__PURE__ */ _("div", {
|
|
113
|
+
style: R,
|
|
114
|
+
children: x("shell.loading", "Loading…")
|
|
115
|
+
});
|
|
116
|
+
if (!O) return /* @__PURE__ */ _("div", {
|
|
117
|
+
style: R,
|
|
118
|
+
children: S("record.related_entity_not_found", "The related record type is not declared in this deployment.")
|
|
119
|
+
});
|
|
120
|
+
if (k.length === 0) return /* @__PURE__ */ _("div", {
|
|
121
|
+
style: R,
|
|
122
|
+
children: x("shell.association.empty", "No related records.")
|
|
123
|
+
});
|
|
124
|
+
let z = l(b, D);
|
|
125
|
+
return /* @__PURE__ */ v("div", {
|
|
126
|
+
style: { padding: "8px 0" },
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ v("table", {
|
|
129
|
+
style: p,
|
|
130
|
+
children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ _("tr", { children: I.map((t) => /* @__PURE__ */ _("th", {
|
|
131
|
+
style: f,
|
|
132
|
+
children: e(x, O.fields.get(t), t, b.entities)
|
|
133
|
+
}, t)) }) }), /* @__PURE__ */ _("tbody", { children: P.map((e, t) => /* @__PURE__ */ _("tr", { children: I.map((t) => {
|
|
134
|
+
let n = O.fields.get(t);
|
|
135
|
+
return n ? /* @__PURE__ */ _("td", {
|
|
136
|
+
style: d,
|
|
137
|
+
children: u({
|
|
138
|
+
field: n,
|
|
139
|
+
fieldName: t,
|
|
140
|
+
value: e[t],
|
|
141
|
+
mode: "display",
|
|
142
|
+
record: e,
|
|
143
|
+
refs: F,
|
|
144
|
+
t: x
|
|
145
|
+
})
|
|
146
|
+
}, t) : /* @__PURE__ */ _("td", {}, t);
|
|
147
|
+
}) }, t)) })]
|
|
148
|
+
}),
|
|
149
|
+
z && T && T.count > P.length && /* @__PURE__ */ _("div", {
|
|
150
|
+
style: {
|
|
151
|
+
padding: "10px 16px",
|
|
152
|
+
textAlign: "center"
|
|
153
|
+
},
|
|
154
|
+
children: /* @__PURE__ */ _(n, {
|
|
155
|
+
icon: /* @__PURE__ */ _(t.external, { size: 12 }),
|
|
156
|
+
onClick: L,
|
|
157
|
+
children: x("shell.association.view_all", "View all {count} records", { count: T.count })
|
|
158
|
+
})
|
|
159
|
+
}),
|
|
160
|
+
z && P.length > 0 && T && T.count <= P.length && /* @__PURE__ */ _("div", {
|
|
161
|
+
style: {
|
|
162
|
+
padding: "10px 16px",
|
|
163
|
+
textAlign: "center"
|
|
164
|
+
},
|
|
165
|
+
children: /* @__PURE__ */ _(n, {
|
|
166
|
+
kind: "ghost",
|
|
167
|
+
icon: /* @__PURE__ */ _(t.external, { size: 12 }),
|
|
168
|
+
onClick: L,
|
|
169
|
+
children: x("shell.association.open_list", "Open in list view")
|
|
170
|
+
})
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
export { y as AssociationTabs };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/chrome/AuditMetaStrip.tsx
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e.by != null || e.at != null;
|
|
5
|
+
}
|
|
6
|
+
function r({ lines: t }) {
|
|
7
|
+
let r = t.filter(n);
|
|
8
|
+
return r.length === 0 ? null : /* @__PURE__ */ e("div", {
|
|
9
|
+
style: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexWrap: "wrap",
|
|
12
|
+
gap: "8px 24px",
|
|
13
|
+
padding: "10px 14px",
|
|
14
|
+
background: "var(--surface-2)",
|
|
15
|
+
border: "1px solid var(--border)",
|
|
16
|
+
borderRadius: "var(--radius-md)",
|
|
17
|
+
fontSize: 11.5,
|
|
18
|
+
color: "var(--text-3)"
|
|
19
|
+
},
|
|
20
|
+
children: r.map((t, n) => /* @__PURE__ */ e(i, { line: t }, n))
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function i({ line: n }) {
|
|
24
|
+
return /* @__PURE__ */ t("div", {
|
|
25
|
+
style: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
gap: 8,
|
|
29
|
+
minWidth: 0
|
|
30
|
+
},
|
|
31
|
+
children: [/* @__PURE__ */ e("span", {
|
|
32
|
+
style: {
|
|
33
|
+
fontSize: 11,
|
|
34
|
+
fontWeight: 600,
|
|
35
|
+
color: "var(--text-4)",
|
|
36
|
+
flexShrink: 0
|
|
37
|
+
},
|
|
38
|
+
children: n.label
|
|
39
|
+
}), /* @__PURE__ */ t("span", {
|
|
40
|
+
style: {
|
|
41
|
+
display: "inline-flex",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
gap: 6,
|
|
44
|
+
minWidth: 0
|
|
45
|
+
},
|
|
46
|
+
children: [
|
|
47
|
+
n.by != null && /* @__PURE__ */ e("span", {
|
|
48
|
+
style: { color: "var(--text-2)" },
|
|
49
|
+
children: n.by
|
|
50
|
+
}),
|
|
51
|
+
n.by != null && n.at != null && /* @__PURE__ */ e("span", {
|
|
52
|
+
style: { color: "var(--text-4)" },
|
|
53
|
+
children: "·"
|
|
54
|
+
}),
|
|
55
|
+
n.at != null && /* @__PURE__ */ e("span", {
|
|
56
|
+
className: "num",
|
|
57
|
+
children: n.at
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { r as AuditMetaStrip };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { Fragment as t, useState as n } from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/chrome/Breadcrumbs.tsx
|
|
5
|
+
function a({ items: n, onCrumbClick: a }) {
|
|
6
|
+
return !n || n.length === 0 ? null : /* @__PURE__ */ r("nav", {
|
|
7
|
+
style: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
gap: 2,
|
|
11
|
+
fontSize: 12,
|
|
12
|
+
minWidth: 0,
|
|
13
|
+
overflow: "hidden",
|
|
14
|
+
flex: "0 1 auto"
|
|
15
|
+
},
|
|
16
|
+
children: n.map((s, c) => {
|
|
17
|
+
let l = c === n.length - 1, u = !!s.onClick || !!s.target;
|
|
18
|
+
return /* @__PURE__ */ i(t, { children: [c > 0 && /* @__PURE__ */ r("span", {
|
|
19
|
+
style: {
|
|
20
|
+
color: "var(--text-4)",
|
|
21
|
+
padding: "0 4px"
|
|
22
|
+
},
|
|
23
|
+
children: /* @__PURE__ */ r(e.right, { size: 11 })
|
|
24
|
+
}), /* @__PURE__ */ r(o, {
|
|
25
|
+
crumb: s,
|
|
26
|
+
last: l,
|
|
27
|
+
clickable: u,
|
|
28
|
+
onClick: a
|
|
29
|
+
})] }, c);
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function o({ crumb: t, last: a, clickable: o, onClick: s }) {
|
|
34
|
+
let [c, l] = n(!1), u = t.icon && e[t.icon] ? e[t.icon] : e.folder;
|
|
35
|
+
return /* @__PURE__ */ i("button", {
|
|
36
|
+
onClick: () => {
|
|
37
|
+
o && (s ? s(t) : t.onClick && t.onClick());
|
|
38
|
+
},
|
|
39
|
+
disabled: !o,
|
|
40
|
+
onMouseEnter: () => l(!0),
|
|
41
|
+
onMouseLeave: () => l(!1),
|
|
42
|
+
style: {
|
|
43
|
+
background: c && o ? "var(--surface-3)" : "transparent",
|
|
44
|
+
border: 0,
|
|
45
|
+
padding: "4px 6px",
|
|
46
|
+
borderRadius: "var(--radius-sm)",
|
|
47
|
+
color: a || c && o ? "var(--text)" : "var(--text-3)",
|
|
48
|
+
fontWeight: a ? 600 : 500,
|
|
49
|
+
cursor: o ? "pointer" : "default",
|
|
50
|
+
whiteSpace: "nowrap",
|
|
51
|
+
maxWidth: 200,
|
|
52
|
+
overflow: "hidden",
|
|
53
|
+
textOverflow: "ellipsis",
|
|
54
|
+
fontSize: 12.5
|
|
55
|
+
},
|
|
56
|
+
children: [t.icon && u && /* @__PURE__ */ r("span", {
|
|
57
|
+
style: {
|
|
58
|
+
marginRight: 4,
|
|
59
|
+
display: "inline-block",
|
|
60
|
+
verticalAlign: "-2px"
|
|
61
|
+
},
|
|
62
|
+
children: /* @__PURE__ */ r(u, { size: 12 })
|
|
63
|
+
}), t.label]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { a as Breadcrumbs };
|