@declarion/react 0.65.0 → 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,55 @@
|
|
|
1
|
+
import { Dropdown as e } from "../../primitives/Dropdown.js";
|
|
2
|
+
import { RowMenuContent as t } from "../../actions/ResponsiveActionBar.js";
|
|
3
|
+
import { useRowMenu as n } from "./useRowMenu.js";
|
|
4
|
+
import { useCallback as r, useState as i } from "react";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/pages/list/RowContextMenu.tsx
|
|
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
|
+
let { layout: S, entityActions: C, runRowAction: w, widgetContext: T } = n({
|
|
9
|
+
row: u,
|
|
10
|
+
rowId: d,
|
|
11
|
+
screen: f,
|
|
12
|
+
fullScreen: p,
|
|
13
|
+
entity: m,
|
|
14
|
+
entityCode: h,
|
|
15
|
+
rowActions: g,
|
|
16
|
+
tabNavigate: _,
|
|
17
|
+
peekAllowed: v,
|
|
18
|
+
hasDetailTarget: y,
|
|
19
|
+
onPeek: b
|
|
20
|
+
}), [E, D] = i(null), O = r((e, t) => (x(), w(e, t)), [x, w]);
|
|
21
|
+
return S.length === 0 ? null : /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("div", {
|
|
22
|
+
onClick: x,
|
|
23
|
+
onContextMenu: (e) => {
|
|
24
|
+
e.preventDefault(), x();
|
|
25
|
+
},
|
|
26
|
+
style: {
|
|
27
|
+
position: "fixed",
|
|
28
|
+
inset: 0,
|
|
29
|
+
zIndex: 190
|
|
30
|
+
}
|
|
31
|
+
}), /* @__PURE__ */ o(e, {
|
|
32
|
+
open: !0,
|
|
33
|
+
anchor: null,
|
|
34
|
+
anchorPoint: {
|
|
35
|
+
x: c,
|
|
36
|
+
y: l
|
|
37
|
+
},
|
|
38
|
+
onClose: x,
|
|
39
|
+
width: 220,
|
|
40
|
+
children: /* @__PURE__ */ o("div", {
|
|
41
|
+
onClick: x,
|
|
42
|
+
children: /* @__PURE__ */ o(t, {
|
|
43
|
+
layout: S,
|
|
44
|
+
entityActions: C,
|
|
45
|
+
onRun: O,
|
|
46
|
+
loading: E,
|
|
47
|
+
onLoadingChange: D,
|
|
48
|
+
row: u,
|
|
49
|
+
widgetContext: T
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
})] });
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { c as RowContextMenu };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Btn as e } from "../../primitives/Btn.js";
|
|
2
|
+
import { useText as t } from "../../../hooks/useText.js";
|
|
3
|
+
import { TextInput as n } from "../../primitives/Fields.js";
|
|
4
|
+
import { useEffect as r, useState as i } from "react";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/pages/list/SaveViewDialog.tsx
|
|
7
|
+
function c({ open: c, pending: l, onClose: u, onSave: d, overwriteViewName: f, onOverwrite: p }) {
|
|
8
|
+
let m = t(), [h, g] = i(""), _ = !!(f && p);
|
|
9
|
+
if (r(() => {
|
|
10
|
+
c && g("");
|
|
11
|
+
}, [c]), !c) return null;
|
|
12
|
+
let v = h.trim();
|
|
13
|
+
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("div", {
|
|
14
|
+
onClick: u,
|
|
15
|
+
style: {
|
|
16
|
+
position: "fixed",
|
|
17
|
+
inset: 0,
|
|
18
|
+
background: "var(--scrim)",
|
|
19
|
+
zIndex: 70
|
|
20
|
+
}
|
|
21
|
+
}), /* @__PURE__ */ s("div", {
|
|
22
|
+
role: "dialog",
|
|
23
|
+
"aria-label": m("list.view.save_dialog_title", "Save view"),
|
|
24
|
+
"aria-modal": "true",
|
|
25
|
+
style: {
|
|
26
|
+
position: "fixed",
|
|
27
|
+
top: "50%",
|
|
28
|
+
left: "50%",
|
|
29
|
+
transform: "translate(-50%, -50%)",
|
|
30
|
+
width: 360,
|
|
31
|
+
maxWidth: "calc(100vw - 32px)",
|
|
32
|
+
background: "var(--surface)",
|
|
33
|
+
border: "1px solid var(--border)",
|
|
34
|
+
borderRadius: "var(--radius-lg)",
|
|
35
|
+
boxShadow: "var(--shadow-lg)",
|
|
36
|
+
zIndex: 80,
|
|
37
|
+
padding: 16,
|
|
38
|
+
display: "flex",
|
|
39
|
+
flexDirection: "column",
|
|
40
|
+
gap: 12
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h3", {
|
|
44
|
+
style: {
|
|
45
|
+
margin: 0,
|
|
46
|
+
fontSize: 14,
|
|
47
|
+
color: "var(--text)"
|
|
48
|
+
},
|
|
49
|
+
children: m("list.view.save_dialog_title", "Save view")
|
|
50
|
+
}), /* @__PURE__ */ o("p", {
|
|
51
|
+
style: {
|
|
52
|
+
margin: "4px 0 0",
|
|
53
|
+
fontSize: 12,
|
|
54
|
+
color: "var(--text-3)"
|
|
55
|
+
},
|
|
56
|
+
children: m("list.view.save_dialog_body", "Views save columns, order, filters, and sort. Widths stay personal to this device and are never part of a view.")
|
|
57
|
+
})] }),
|
|
58
|
+
/* @__PURE__ */ s("label", {
|
|
59
|
+
style: {
|
|
60
|
+
display: "flex",
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
gap: 4
|
|
63
|
+
},
|
|
64
|
+
children: [/* @__PURE__ */ o("span", {
|
|
65
|
+
style: {
|
|
66
|
+
fontSize: 11.5,
|
|
67
|
+
color: "var(--text-3)",
|
|
68
|
+
fontWeight: 500
|
|
69
|
+
},
|
|
70
|
+
children: m("list.view.name", "Name")
|
|
71
|
+
}), /* @__PURE__ */ o(n, {
|
|
72
|
+
autoFocus: !0,
|
|
73
|
+
"aria-label": m("list.view.name_input", "View name"),
|
|
74
|
+
value: h,
|
|
75
|
+
onChange: g,
|
|
76
|
+
placeholder: m("list.view.name_placeholder", "My filtered view"),
|
|
77
|
+
onKeyDown: (e) => {
|
|
78
|
+
e.key === "Escape" && u(), e.key === "Enter" && v && !l && d(v);
|
|
79
|
+
}
|
|
80
|
+
})]
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ s("div", {
|
|
83
|
+
style: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
justifyContent: "flex-end",
|
|
86
|
+
gap: 8
|
|
87
|
+
},
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ o(e, {
|
|
90
|
+
onClick: u,
|
|
91
|
+
disabled: l,
|
|
92
|
+
children: m("dialog.cancel", "Cancel")
|
|
93
|
+
}),
|
|
94
|
+
_ && /* @__PURE__ */ o(e, {
|
|
95
|
+
onClick: () => void p(),
|
|
96
|
+
disabled: l,
|
|
97
|
+
children: m("list.view.overwrite", "Overwrite “{name}”", { name: f ?? "" })
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ o(e, {
|
|
100
|
+
kind: "primary",
|
|
101
|
+
onClick: () => void d(v),
|
|
102
|
+
disabled: !v || l,
|
|
103
|
+
children: m("list.view.save_as", "Save as new")
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
})] });
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
export { c as SaveViewDialog };
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
1
|
+
import { Icon as e } from "../../primitives/Icons.js";
|
|
2
|
+
import { Dropdown as t } from "../../primitives/Dropdown.js";
|
|
3
|
+
import { useText as n } from "../../../hooks/useText.js";
|
|
4
|
+
import { MenuItem as r } from "../../primitives/MenuItem.js";
|
|
4
5
|
import { useRef as i, useState as a } from "react";
|
|
5
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
7
|
//#region src/components/pages/list/SortHeaderMenu.tsx
|
|
7
8
|
function l({ field: l, activeDir: u, activeNulls: d, inMultiSort: f, canAppend: p, onApply: m, onAppend: h, onClearColumn: g, onClearAll: _ }) {
|
|
8
|
-
let v =
|
|
9
|
+
let v = n(), y = i(null), [b, x] = a(!1), S = [
|
|
9
10
|
{
|
|
10
11
|
label: v("list.sort.asc_empty_last", "Sort ascending, empty last"),
|
|
11
12
|
dir: "asc",
|
|
12
13
|
nulls: "last",
|
|
13
|
-
icon:
|
|
14
|
+
icon: e.arrowUp
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
17
|
label: v("list.sort.asc_empty_first", "Sort ascending, empty first"),
|
|
17
18
|
dir: "asc",
|
|
18
19
|
nulls: "first",
|
|
19
|
-
icon:
|
|
20
|
+
icon: e.arrowUp
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
label: v("list.sort.desc_empty_last", "Sort descending, empty last"),
|
|
23
24
|
dir: "desc",
|
|
24
25
|
nulls: "last",
|
|
25
|
-
icon:
|
|
26
|
+
icon: e.arrowDown
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
label: v("list.sort.desc_empty_first", "Sort descending, empty first"),
|
|
29
30
|
dir: "desc",
|
|
30
31
|
nulls: "first",
|
|
31
|
-
icon:
|
|
32
|
+
icon: e.arrowDown
|
|
32
33
|
}
|
|
33
34
|
], C = d ?? "last", w = !f && p;
|
|
34
35
|
return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("button", {
|
|
@@ -52,16 +53,16 @@ function l({ field: l, activeDir: u, activeNulls: d, inMultiSort: f, canAppend:
|
|
|
52
53
|
cursor: "pointer",
|
|
53
54
|
opacity: b ? 1 : .55
|
|
54
55
|
},
|
|
55
|
-
children: /* @__PURE__ */ s(
|
|
56
|
-
}), /* @__PURE__ */ c(
|
|
56
|
+
children: /* @__PURE__ */ s(e.cheveron, { size: 12 })
|
|
57
|
+
}), /* @__PURE__ */ c(t, {
|
|
57
58
|
open: b,
|
|
58
59
|
anchor: y.current,
|
|
59
60
|
onClose: () => x(!1),
|
|
60
61
|
align: "start",
|
|
61
62
|
width: 240,
|
|
62
63
|
children: [
|
|
63
|
-
S.map((
|
|
64
|
-
let n = u ===
|
|
64
|
+
S.map((t) => {
|
|
65
|
+
let n = u === t.dir && C === t.nulls, i = t.icon;
|
|
65
66
|
return /* @__PURE__ */ s(r, {
|
|
66
67
|
icon: /* @__PURE__ */ c("span", {
|
|
67
68
|
style: {
|
|
@@ -69,16 +70,16 @@ function l({ field: l, activeDir: u, activeNulls: d, inMultiSort: f, canAppend:
|
|
|
69
70
|
alignItems: "center",
|
|
70
71
|
gap: 2
|
|
71
72
|
},
|
|
72
|
-
children: [/* @__PURE__ */ s(i, { size: 11 }), n ? /* @__PURE__ */ s(
|
|
73
|
+
children: [/* @__PURE__ */ s(i, { size: 11 }), n ? /* @__PURE__ */ s(e.check, { size: 11 }) : null]
|
|
73
74
|
}),
|
|
74
75
|
onClick: () => {
|
|
75
|
-
x(!1), m(
|
|
76
|
+
x(!1), m(t.dir, t.nulls);
|
|
76
77
|
},
|
|
77
|
-
children:
|
|
78
|
-
}, `${
|
|
78
|
+
children: t.label
|
|
79
|
+
}, `${t.dir}:${t.nulls}`);
|
|
79
80
|
}),
|
|
80
81
|
w ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(r, { divider: !0 }), /* @__PURE__ */ s(r, {
|
|
81
|
-
icon: /* @__PURE__ */ s(
|
|
82
|
+
icon: /* @__PURE__ */ s(e.plus, { size: 11 }),
|
|
82
83
|
onClick: () => {
|
|
83
84
|
x(!1), h("asc", d);
|
|
84
85
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getPrimaryKeyFields as e } from "../../../types/schema.js";
|
|
2
|
+
import { parseSort as t } from "../../../lib/sort.js";
|
|
3
3
|
//#region src/components/pages/list/cardProjection.ts
|
|
4
4
|
var n = 4, r = 2, i = 2, a = [
|
|
5
5
|
"screen_card",
|
|
@@ -497,4 +497,4 @@ var Y = class {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
//#endregion
|
|
500
|
-
export {
|
|
500
|
+
export { P as extractDisplayTemplateFields, f as resolveCard, p as resolveListProjection, g as resolveQuickPeekFieldNames, h as resolveVariantRenderFields };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/pages/list/column-sizing.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return `--header-${e}-size`;
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return `--col-${e}-size`;
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return `calc(var(${e}) * 1px)`;
|
|
10
|
+
}
|
|
11
|
+
function r(n) {
|
|
12
|
+
let r = n.getFlatHeaders(), i = {};
|
|
13
|
+
for (let n of r) i[e(n.id)] = n.getSize(), i[t(n.column.id)] = n.column.getSize();
|
|
14
|
+
return i;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as buildColumnSizeVars, t as colSizeVar, e as headerSizeVar, n as sizeFromVar };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { coerceDisplayString as e } from "../../../lib/display-value.js";
|
|
2
|
+
import { fieldDisplayName as t } from "../../../types/schema.js";
|
|
3
|
+
import { Icon as n } from "../../primitives/Icons.js";
|
|
4
|
+
import { Pill as r } from "../../primitives/Pill.js";
|
|
5
|
+
import { Check as i } from "../../primitives/Check.js";
|
|
6
|
+
import { fieldAccessInfo as a, isFieldReadable as o } from "../../../lib/field-classification.js";
|
|
7
|
+
import { MAX_COL_WIDTH as s } from "../../../stores/list-layout.js";
|
|
8
|
+
import { renderSchemaField as c, resolveSchemaFieldLabel as l } from "../../file-widgets/host.js";
|
|
9
|
+
import { resolveCellRenderer as u } from "../../fields/cells/registry.js";
|
|
10
|
+
import { verdictLabel as d, verdictTone as f } from "../../../lib/evidence-verdict.js";
|
|
11
|
+
import { RowActionsCell as p } from "./RowActionsCell.js";
|
|
12
|
+
import { createElement as m } from "react";
|
|
13
|
+
//#region src/components/pages/list/columns.ts
|
|
14
|
+
function h(e, t, r, i, o) {
|
|
15
|
+
let s = a(r, i);
|
|
16
|
+
if (!s || s.read !== "denied") return o ? m("span", { title: o }, t) : t;
|
|
17
|
+
let c = s.required_permission ? e("list.columns.locked_permission", "Locked column: requires \"{permission}\"", { permission: s.required_permission }) : e("list.columns.locked_classification", "Locked column: {classification} classification", { classification: s.classification });
|
|
18
|
+
return m("span", {
|
|
19
|
+
title: c,
|
|
20
|
+
"aria-label": c,
|
|
21
|
+
className: "inline-flex items-center gap-1"
|
|
22
|
+
}, m(n.lock, { size: 12 }), t);
|
|
23
|
+
}
|
|
24
|
+
function g(e) {
|
|
25
|
+
return {
|
|
26
|
+
minSize: Math.min(60, e),
|
|
27
|
+
maxSize: Math.max(s, e)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function _(n) {
|
|
31
|
+
let { visibleCols: a, entity: s, screen: _, schema: v, entityCode: y, rowActions: b, hasBatchActions: x, hasExplicitRowActions: S, canUpdate: C, canDelete: w, peekEnabled: T, hasDetailTarget: E, t: D, tabNavigate: O, refsRef: k, rowSelectionKey: A, setPeekRow: j } = n;
|
|
32
|
+
if (a.length === 0 || !s) return [];
|
|
33
|
+
let M = [];
|
|
34
|
+
x && M.push({
|
|
35
|
+
id: "_select",
|
|
36
|
+
enableResizing: !1,
|
|
37
|
+
header: ({ table: e }) => m(i, {
|
|
38
|
+
checked: e.getIsAllRowsSelected(),
|
|
39
|
+
indeterminate: e.getIsSomeRowsSelected(),
|
|
40
|
+
onChange: () => e.toggleAllRowsSelected()
|
|
41
|
+
}),
|
|
42
|
+
size: 34,
|
|
43
|
+
cell: ({ row: e }) => m("span", { "data-testid": "row-select-checkbox" }, m(i, {
|
|
44
|
+
checked: e.getIsSelected(),
|
|
45
|
+
onChange: () => e.toggleSelected()
|
|
46
|
+
}))
|
|
47
|
+
});
|
|
48
|
+
for (let n of a) {
|
|
49
|
+
if (n.startsWith("$status.")) {
|
|
50
|
+
let e = n.slice(8), t = s.status_groups?.[e];
|
|
51
|
+
if (!t) continue;
|
|
52
|
+
let i = new Map(t.statuses.map((e) => [e.code, e]));
|
|
53
|
+
M.push({
|
|
54
|
+
id: n,
|
|
55
|
+
header: D(t.name) || e,
|
|
56
|
+
size: 140,
|
|
57
|
+
...g(140),
|
|
58
|
+
cell: ({ row: t }) => {
|
|
59
|
+
let n = t.original.$statuses?.find((t) => t.group_code === e);
|
|
60
|
+
if (!n) return m("span", { className: "text-sm text-muted-foreground" }, "-");
|
|
61
|
+
let a = i.get(n.status_code);
|
|
62
|
+
return m(r, {
|
|
63
|
+
tone: a?.color ?? "slate",
|
|
64
|
+
size: "xs"
|
|
65
|
+
}, D(a?.name) || n.status_code);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (n.startsWith("$property.")) {
|
|
71
|
+
let t = n.slice(10), r = s.properties?.[t];
|
|
72
|
+
if (!r) continue;
|
|
73
|
+
M.push({
|
|
74
|
+
id: n,
|
|
75
|
+
header: () => h(D, D(r.name) || t, s, t, D(r.description) || void 0),
|
|
76
|
+
size: 150,
|
|
77
|
+
...g(150),
|
|
78
|
+
enableSorting: !1,
|
|
79
|
+
cell: ({ row: n }) => {
|
|
80
|
+
let r = n.original.$properties?.find((e) => e.property_code === t);
|
|
81
|
+
return !r || r.value == null ? m("span", { className: "text-sm text-muted-foreground" }, "-") : m("span", { className: "text-sm" }, e(r.value));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (n === "$evidence") {
|
|
87
|
+
M.push({
|
|
88
|
+
id: n,
|
|
89
|
+
header: D("list.columns.evidence", "Evidence"),
|
|
90
|
+
size: 140,
|
|
91
|
+
...g(140),
|
|
92
|
+
enableSorting: !1,
|
|
93
|
+
cell: ({ row: e }) => {
|
|
94
|
+
let t = e.original.$evidence?.verdict ?? "unverified";
|
|
95
|
+
return m(r, {
|
|
96
|
+
tone: f(t),
|
|
97
|
+
size: "xs",
|
|
98
|
+
dot: !0
|
|
99
|
+
}, d(D, t));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if (s.files?.get(n)) {
|
|
105
|
+
M.push({
|
|
106
|
+
id: n,
|
|
107
|
+
accessorFn: (e) => e.$files?.[n] ?? null,
|
|
108
|
+
header: () => h(D, l(D, s, n, v?.entities), s, n),
|
|
109
|
+
size: 150,
|
|
110
|
+
...g(150),
|
|
111
|
+
cell: ({ row: e }) => c({
|
|
112
|
+
entity: s,
|
|
113
|
+
entityCode: y,
|
|
114
|
+
fieldName: n,
|
|
115
|
+
record: e.original,
|
|
116
|
+
mode: "display",
|
|
117
|
+
surface: "list",
|
|
118
|
+
refs: k.current,
|
|
119
|
+
t: D
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
let i = s.fields.get(n);
|
|
125
|
+
if (!i) continue;
|
|
126
|
+
let a = t(D, i, n, v?.entities), p = i.display?.width, _ = u({
|
|
127
|
+
field: i,
|
|
128
|
+
fieldName: n,
|
|
129
|
+
surface: "list",
|
|
130
|
+
entity: s,
|
|
131
|
+
entityCode: y,
|
|
132
|
+
entities: v?.entities,
|
|
133
|
+
screens: v?.screens,
|
|
134
|
+
refs: () => k.current,
|
|
135
|
+
t: D
|
|
136
|
+
});
|
|
137
|
+
M.push({
|
|
138
|
+
id: n,
|
|
139
|
+
accessorKey: n,
|
|
140
|
+
header: () => h(D, a, s, n, D(i.display?.description) || void 0),
|
|
141
|
+
enableSorting: i.type !== "json" && o(s, n),
|
|
142
|
+
size: p ?? 150,
|
|
143
|
+
...g(p ?? 150),
|
|
144
|
+
cell: ({ getValue: e, row: t }) => _(e(), t.original)
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
return (!S && C || !S && w || b.length > 0) && M.push({
|
|
148
|
+
id: "_actions",
|
|
149
|
+
enableResizing: !1,
|
|
150
|
+
header: "",
|
|
151
|
+
size: 40,
|
|
152
|
+
cell: ({ row: e }) => m(p, {
|
|
153
|
+
row: e.original,
|
|
154
|
+
rowId: A(s, e.original),
|
|
155
|
+
screen: _,
|
|
156
|
+
fullScreen: _,
|
|
157
|
+
entity: s,
|
|
158
|
+
entityCode: y,
|
|
159
|
+
rowActions: b,
|
|
160
|
+
tabNavigate: O,
|
|
161
|
+
peekAllowed: T,
|
|
162
|
+
hasDetailTarget: E,
|
|
163
|
+
onPeek: j
|
|
164
|
+
})
|
|
165
|
+
}), M;
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
export { _ as buildListColumns };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { effectiveSpecialValues as e, fieldDisplayName as t } from "../../../types/schema.js";
|
|
2
|
+
//#region src/components/pages/list/filter-meta.ts
|
|
3
|
+
function n(e, t, n, r) {
|
|
4
|
+
if (!t || !n) return [];
|
|
5
|
+
let a = t.filter_operators ?? {}, o = (t.filters ?? []).filter((e) => a[e]?.length);
|
|
6
|
+
return i({
|
|
7
|
+
t: e,
|
|
8
|
+
screen: t,
|
|
9
|
+
entity: n,
|
|
10
|
+
entities: r
|
|
11
|
+
}, o, a);
|
|
12
|
+
}
|
|
13
|
+
function r(e, t, n, r) {
|
|
14
|
+
return !t || !n ? [] : i({
|
|
15
|
+
t: e,
|
|
16
|
+
screen: t,
|
|
17
|
+
entity: n,
|
|
18
|
+
entities: r
|
|
19
|
+
}, Object.keys(n.filter_operators), n.filter_operators);
|
|
20
|
+
}
|
|
21
|
+
function i({ t: n, screen: r, entity: i, entities: a }, o, s) {
|
|
22
|
+
let c = [];
|
|
23
|
+
for (let l of o) {
|
|
24
|
+
let o = s[l];
|
|
25
|
+
if (l.startsWith("$status.")) {
|
|
26
|
+
let e = l.slice(8), t = i.status_groups?.[e];
|
|
27
|
+
if (!t) continue;
|
|
28
|
+
c.push({
|
|
29
|
+
code: l,
|
|
30
|
+
label: n(t.name) || e,
|
|
31
|
+
type: "status",
|
|
32
|
+
operators: o,
|
|
33
|
+
options: t.statuses.map((e) => ({
|
|
34
|
+
value: e.code,
|
|
35
|
+
label: n(e.name) || e.code,
|
|
36
|
+
color: e.color
|
|
37
|
+
}))
|
|
38
|
+
});
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (l.startsWith("$property.")) {
|
|
42
|
+
let e = l.slice(10), t = i.properties?.[e];
|
|
43
|
+
if (!t) continue;
|
|
44
|
+
c.push({
|
|
45
|
+
code: l,
|
|
46
|
+
label: n(t.name) || e,
|
|
47
|
+
type: "property",
|
|
48
|
+
operators: o
|
|
49
|
+
});
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
let u = i.fields.get(l);
|
|
53
|
+
if (!u) continue;
|
|
54
|
+
let d = t(n, u, l, a), f = u.values?.map((e) => ({
|
|
55
|
+
value: e.code,
|
|
56
|
+
label: n(e.name) || e.code,
|
|
57
|
+
color: e.color
|
|
58
|
+
})), p = e(u.special_values, r?.special_values?.[l]);
|
|
59
|
+
c.push({
|
|
60
|
+
code: l,
|
|
61
|
+
label: d,
|
|
62
|
+
type: u.type,
|
|
63
|
+
operators: o,
|
|
64
|
+
options: f,
|
|
65
|
+
ref: u.ref,
|
|
66
|
+
specialValues: p.length > 0 ? p : void 0
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return c;
|
|
70
|
+
}
|
|
71
|
+
function a(e, n, r, i) {
|
|
72
|
+
if (i.startsWith("$status.")) {
|
|
73
|
+
let t = n.status_groups?.[i.slice(8)];
|
|
74
|
+
return t && e(t.name) || i;
|
|
75
|
+
}
|
|
76
|
+
if (i.startsWith("$property.")) {
|
|
77
|
+
let t = n.properties?.[i.slice(10)];
|
|
78
|
+
return t && e(t.name) || i;
|
|
79
|
+
}
|
|
80
|
+
let a = n.fields.get(i);
|
|
81
|
+
return a ? t(e, a, i, r) : i;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { r as buildFilterDisplayMeta, n as buildFilterFieldMeta, a as filterFieldLabel };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/components/pages/list/sortable-header.ts
|
|
2
|
+
var e = /* @__PURE__ */ new Set([
|
|
3
|
+
"secret",
|
|
4
|
+
"password",
|
|
5
|
+
"json",
|
|
6
|
+
"string_array",
|
|
7
|
+
"int_array",
|
|
8
|
+
"uuid_array",
|
|
9
|
+
"multilang_array"
|
|
10
|
+
]);
|
|
11
|
+
function t(t, n) {
|
|
12
|
+
if (t === "_actions" || t === "_select" || t.startsWith("$property.") || t.startsWith("$refs.")) return !1;
|
|
13
|
+
if (t.startsWith("$status.")) return !0;
|
|
14
|
+
let r = n?.fields.get(t);
|
|
15
|
+
return !r || n?.list_pagination === "cursor" && r.cross_store_sortable === !1 ? !1 : !e.has(r.type);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { t as isHeaderSortable };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { columnResizingFeature as e, columnSizingFeature as t, columnVisibilityFeature as n, rowSelectionFeature as r, rowSortingFeature as i, tableFeatures as a } from "@tanstack/react-table";
|
|
2
|
+
//#region src/components/pages/list/table-features.ts
|
|
3
|
+
var o = a({
|
|
4
|
+
rowSortingFeature: i,
|
|
5
|
+
rowSelectionFeature: r,
|
|
6
|
+
columnSizingFeature: t,
|
|
7
|
+
columnResizingFeature: e,
|
|
8
|
+
columnVisibilityFeature: n
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { o as listTableFeatures };
|