@declarion/react 0.65.1 → 0.66.1
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,43 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { useEffect as t, useState as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/shared/LucideIcon.tsx
|
|
5
|
+
var i = /* @__PURE__ */ new Map(), a = null;
|
|
6
|
+
function o() {
|
|
7
|
+
return a ||= import("lucide-react/dynamic.js").then((e) => e.dynamicIconImports), a;
|
|
8
|
+
}
|
|
9
|
+
function s({ name: a, size: s = 14, className: c, style: l }) {
|
|
10
|
+
let [u, d] = n(() => i.get(a)), [f, p] = n(!1);
|
|
11
|
+
if (t(() => {
|
|
12
|
+
let e = i.get(a);
|
|
13
|
+
if (e) {
|
|
14
|
+
d(() => e), p(!1);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
d(void 0), p(!1);
|
|
18
|
+
let t = !0;
|
|
19
|
+
return o().then((e) => {
|
|
20
|
+
let n = e[a];
|
|
21
|
+
if (!n) t && p(!0);
|
|
22
|
+
else return n().then((e) => {
|
|
23
|
+
i.set(a, e.default), t && (d(() => e.default), p(!1));
|
|
24
|
+
});
|
|
25
|
+
}), () => {
|
|
26
|
+
t = !1;
|
|
27
|
+
};
|
|
28
|
+
}, [a]), f) {
|
|
29
|
+
let t = e.folder;
|
|
30
|
+
return /* @__PURE__ */ r(t, {
|
|
31
|
+
size: s,
|
|
32
|
+
cls: c,
|
|
33
|
+
style: l
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return u ? /* @__PURE__ */ r(u, {
|
|
37
|
+
size: s,
|
|
38
|
+
className: c,
|
|
39
|
+
style: l
|
|
40
|
+
}) : null;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { s as LucideIcon };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Suspense as e, lazy as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/shared/Markdown.tsx
|
|
4
|
+
var r = t(() => import("./MarkdownRenderer.js").then((e) => ({ default: e.MarkdownRenderer })));
|
|
5
|
+
function i() {
|
|
6
|
+
return /* @__PURE__ */ n("div", { className: "h-4 w-2/3 rounded bg-muted animate-pulse" });
|
|
7
|
+
}
|
|
8
|
+
function a(t) {
|
|
9
|
+
return /* @__PURE__ */ n(e, {
|
|
10
|
+
fallback: /* @__PURE__ */ n(i, {}),
|
|
11
|
+
children: /* @__PURE__ */ n(r, { ...t })
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { a as Markdown };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useText as e } from "../../hooks/useText.js";
|
|
2
|
+
import { isExternalHref as t } from "../../lib/safe-url.js";
|
|
3
|
+
import { extractDeclarionFileId as n } from "../../lib/rich-text.js";
|
|
3
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
5
|
import i, { defaultUrlTransform as a } from "react-markdown";
|
|
5
6
|
import o from "remark-breaks";
|
|
@@ -12,14 +13,14 @@ function d(e) {
|
|
|
12
13
|
function f(e) {
|
|
13
14
|
return e.startsWith("/") || e.startsWith("https://") || e.startsWith("http://") ? e : null;
|
|
14
15
|
}
|
|
15
|
-
function p({ href:
|
|
16
|
-
return e
|
|
17
|
-
href:
|
|
16
|
+
function p({ href: e, children: n }) {
|
|
17
|
+
return t(e) ? /* @__PURE__ */ r("a", {
|
|
18
|
+
href: e,
|
|
18
19
|
target: "_blank",
|
|
19
20
|
rel: "noopener noreferrer",
|
|
20
21
|
children: n
|
|
21
22
|
}) : /* @__PURE__ */ r("a", {
|
|
22
|
-
href:
|
|
23
|
+
href: e,
|
|
23
24
|
children: n
|
|
24
25
|
});
|
|
25
26
|
}
|
|
@@ -65,8 +66,8 @@ function m(e, t) {
|
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
function h({ content:
|
|
69
|
-
let h =
|
|
69
|
+
function h({ content: t, plugins: n = "breaks", files: a, components: o, skipHtml: s = !0, prose: f = !0 }) {
|
|
70
|
+
let h = e(), g = n === "gfm" ? u : l, _ = {
|
|
70
71
|
a: p,
|
|
71
72
|
...a ? m(h, a) : {},
|
|
72
73
|
...o
|
|
@@ -75,7 +76,7 @@ function h({ content: e, plugins: n = "breaks", files: a, components: o, skipHtm
|
|
|
75
76
|
remarkPlugins: g,
|
|
76
77
|
components: _,
|
|
77
78
|
urlTransform: a ? d : void 0,
|
|
78
|
-
children:
|
|
79
|
+
children: t
|
|
79
80
|
});
|
|
80
81
|
return f ? /* @__PURE__ */ r("div", {
|
|
81
82
|
className: c,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { IconBtn as t } from "../primitives/IconBtn.js";
|
|
3
|
+
import { Pill as n } from "../primitives/Pill.js";
|
|
4
|
+
import { useText as r } from "../../hooks/useText.js";
|
|
5
|
+
import { useResponsiveMode as i } from "../../hooks/useResponsiveMode.js";
|
|
6
|
+
import { Spinner as a } from "../primitives/Spinner.js";
|
|
7
|
+
import { useOwnRefresh as o } from "./useOwnRefresh.js";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/shared/RefreshControl.tsx
|
|
10
|
+
function l({ liveObject: l, realtime: u = !0 }) {
|
|
11
|
+
let d = r(), { isPhone: f } = i(), { refreshing: p, refresh: m } = o(l.refetch), h = l.isLive ? d("control.refresh.live", "Live") : d("control.refresh.paused", "Updates paused"), g = l.isLive && f ? void 0 : h;
|
|
12
|
+
return /* @__PURE__ */ c("span", {
|
|
13
|
+
style: {
|
|
14
|
+
display: "inline-flex",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
gap: 8
|
|
17
|
+
},
|
|
18
|
+
children: [/* @__PURE__ */ s(t, {
|
|
19
|
+
icon: p ? /* @__PURE__ */ s("span", {
|
|
20
|
+
"data-testid": "refresh-spinner",
|
|
21
|
+
style: { display: "inline-flex" },
|
|
22
|
+
children: /* @__PURE__ */ s(a, { size: 14 })
|
|
23
|
+
}) : /* @__PURE__ */ s(e.refresh, { size: 14 }),
|
|
24
|
+
title: d("control.refresh.title", "Refresh"),
|
|
25
|
+
disabled: l.isLoading || p,
|
|
26
|
+
onClick: m
|
|
27
|
+
}), u && /* @__PURE__ */ s("span", {
|
|
28
|
+
"data-testid": "live-indicator",
|
|
29
|
+
role: "status",
|
|
30
|
+
"aria-label": h,
|
|
31
|
+
title: l.isLive ? d("control.refresh.live_hint", "This view updates automatically in realtime.") : d("control.refresh.paused_hint", "Realtime updates are paused. Refresh manually to load the latest data."),
|
|
32
|
+
children: /* @__PURE__ */ s(n, {
|
|
33
|
+
tone: l.isLive ? "emerald" : "amber",
|
|
34
|
+
size: "xs",
|
|
35
|
+
dot: !0,
|
|
36
|
+
children: g
|
|
37
|
+
})
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { l as RefreshControl };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Pill as e } from "../primitives/Pill.js";
|
|
2
|
+
import { useText as t } from "../../hooks/useText.js";
|
|
3
|
+
import { Select as n } from "../primitives/Fields.js";
|
|
4
|
+
import { StatusStepper as r } from "./StatusStepper.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/shared/StatusGroupsDisplay.tsx
|
|
7
|
+
function o({ statusGroups: o, objectStatuses: s, onSetStatus: c, isPending: l, mode: u = "edit" }) {
|
|
8
|
+
let d = t();
|
|
9
|
+
return /* @__PURE__ */ i("div", {
|
|
10
|
+
style: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexWrap: "wrap",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
gap: 16
|
|
15
|
+
},
|
|
16
|
+
children: Object.entries(o).map(([t, o]) => {
|
|
17
|
+
let f = s?.find((e) => e.group_code === t)?.status_code, p = f ? o.statuses.find((e) => e.code === f) : void 0;
|
|
18
|
+
if (o.display_mode === "stepper") {
|
|
19
|
+
let e = u === "edit", n = e ? o.transitions && f ? /* @__PURE__ */ new Set([f, ...o.transitions[f] ?? []]) : new Set(o.statuses.map((e) => e.code)) : void 0;
|
|
20
|
+
return /* @__PURE__ */ a("div", {
|
|
21
|
+
style: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
gap: 8,
|
|
25
|
+
minWidth: 0
|
|
26
|
+
},
|
|
27
|
+
children: [/* @__PURE__ */ a("span", {
|
|
28
|
+
style: {
|
|
29
|
+
fontSize: 12,
|
|
30
|
+
color: "var(--text-3)",
|
|
31
|
+
flexShrink: 0
|
|
32
|
+
},
|
|
33
|
+
children: [d(o.name), ":"]
|
|
34
|
+
}), /* @__PURE__ */ i("div", {
|
|
35
|
+
style: {
|
|
36
|
+
minWidth: 240,
|
|
37
|
+
opacity: l ? .6 : 1,
|
|
38
|
+
pointerEvents: l ? "none" : "auto"
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ i(r, {
|
|
41
|
+
stages: o.statuses.map((e) => ({
|
|
42
|
+
code: e.code,
|
|
43
|
+
label: d(e.name)
|
|
44
|
+
})),
|
|
45
|
+
current: f,
|
|
46
|
+
selectable: n,
|
|
47
|
+
onSelect: e ? (e) => c(t, e) : void 0,
|
|
48
|
+
compact: !0
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
}, t);
|
|
52
|
+
}
|
|
53
|
+
if (u === "display") return /* @__PURE__ */ a("div", {
|
|
54
|
+
style: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
gap: 8
|
|
58
|
+
},
|
|
59
|
+
children: [/* @__PURE__ */ a("span", {
|
|
60
|
+
style: {
|
|
61
|
+
fontSize: 12,
|
|
62
|
+
color: "var(--text-3)"
|
|
63
|
+
},
|
|
64
|
+
children: [d(o.name), ":"]
|
|
65
|
+
}), p ? /* @__PURE__ */ i(e, {
|
|
66
|
+
tone: p.color ?? "slate",
|
|
67
|
+
size: "xs",
|
|
68
|
+
children: d(p.name)
|
|
69
|
+
}) : /* @__PURE__ */ i("span", {
|
|
70
|
+
style: {
|
|
71
|
+
fontSize: 12.5,
|
|
72
|
+
color: "var(--text-4)"
|
|
73
|
+
},
|
|
74
|
+
children: "—"
|
|
75
|
+
})]
|
|
76
|
+
}, t);
|
|
77
|
+
let m = (o.transitions && f ? o.statuses.filter((e) => e.code === f || (o.transitions[f]?.includes(e.code) ?? !1)) : o.statuses).map((e) => ({
|
|
78
|
+
value: e.code,
|
|
79
|
+
label: /* @__PURE__ */ a("span", {
|
|
80
|
+
style: {
|
|
81
|
+
display: "inline-flex",
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
gap: 6
|
|
84
|
+
},
|
|
85
|
+
children: [e.color && /* @__PURE__ */ i("span", { style: {
|
|
86
|
+
width: 8,
|
|
87
|
+
height: 8,
|
|
88
|
+
borderRadius: 999,
|
|
89
|
+
background: `var(--pill-${e.color}, ${e.color})`,
|
|
90
|
+
display: "inline-block"
|
|
91
|
+
} }), d(e.name)]
|
|
92
|
+
})
|
|
93
|
+
}));
|
|
94
|
+
return /* @__PURE__ */ a("div", {
|
|
95
|
+
style: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
gap: 8
|
|
99
|
+
},
|
|
100
|
+
children: [/* @__PURE__ */ a("span", {
|
|
101
|
+
style: {
|
|
102
|
+
fontSize: 12,
|
|
103
|
+
color: "var(--text-3)"
|
|
104
|
+
},
|
|
105
|
+
children: [d(o.name), ":"]
|
|
106
|
+
}), /* @__PURE__ */ i("div", {
|
|
107
|
+
style: {
|
|
108
|
+
minWidth: 180,
|
|
109
|
+
opacity: l ? .6 : 1,
|
|
110
|
+
pointerEvents: l ? "none" : "auto"
|
|
111
|
+
},
|
|
112
|
+
children: /* @__PURE__ */ i(n, {
|
|
113
|
+
value: f ?? "",
|
|
114
|
+
options: m,
|
|
115
|
+
onChange: (e) => c(t, e)
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
118
|
+
}, t);
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { o as StatusGroupsDisplay };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/shared/StatusStepper.tsx
|
|
4
|
+
function r({ stages: r, current: i, selectable: a, onSelect: o, compact: s = !1 }) {
|
|
5
|
+
let c = r.findIndex((e) => e.code === i);
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
role: "list",
|
|
8
|
+
style: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
alignItems: "stretch",
|
|
11
|
+
borderRadius: "var(--radius-md)",
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
border: "1px solid var(--border)",
|
|
14
|
+
background: "var(--surface)"
|
|
15
|
+
},
|
|
16
|
+
children: r.map((i, l) => {
|
|
17
|
+
let u = c >= 0 && l < c, d = l === c, f = c < 0 || l > c, p = !!o && (a?.has(i.code) ?? !1), m = l === 0, h = l === r.length - 1, g = d ? "var(--accent-soft)" : u ? "var(--success-soft)" : "transparent", _ = d ? "var(--accent)" : u ? "var(--success)" : "var(--text-3)", v = m && h ? void 0 : m ? "polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%)" : h ? "polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%)" : "polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%)";
|
|
18
|
+
return /* @__PURE__ */ n("button", {
|
|
19
|
+
role: "listitem",
|
|
20
|
+
type: "button",
|
|
21
|
+
disabled: !p,
|
|
22
|
+
onClick: p ? () => o(i.code) : void 0,
|
|
23
|
+
title: i.label,
|
|
24
|
+
style: {
|
|
25
|
+
flex: 1,
|
|
26
|
+
minWidth: 0,
|
|
27
|
+
display: "flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
gap: 6,
|
|
30
|
+
padding: s ? `6px 8px 6px ${m ? 10 : 20}px` : `8px 10px 8px ${m ? 12 : 24}px`,
|
|
31
|
+
border: 0,
|
|
32
|
+
borderLeft: l > 0 ? "1px solid var(--divider)" : "none",
|
|
33
|
+
background: g,
|
|
34
|
+
color: _,
|
|
35
|
+
fontSize: s ? 11.5 : 12.5,
|
|
36
|
+
fontFamily: "inherit",
|
|
37
|
+
fontWeight: d ? 600 : 500,
|
|
38
|
+
cursor: p ? "pointer" : "default",
|
|
39
|
+
clipPath: v,
|
|
40
|
+
whiteSpace: "nowrap"
|
|
41
|
+
},
|
|
42
|
+
children: [/* @__PURE__ */ t("span", {
|
|
43
|
+
style: {
|
|
44
|
+
width: 16,
|
|
45
|
+
height: 16,
|
|
46
|
+
borderRadius: 999,
|
|
47
|
+
flexShrink: 0,
|
|
48
|
+
background: f ? "transparent" : _,
|
|
49
|
+
border: f ? "1px solid var(--border-strong)" : "none",
|
|
50
|
+
color: f ? "var(--text-4)" : d ? "var(--accent-soft)" : "var(--success-soft)",
|
|
51
|
+
display: "flex",
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
justifyContent: "center",
|
|
54
|
+
fontSize: 9.5,
|
|
55
|
+
fontWeight: 700
|
|
56
|
+
},
|
|
57
|
+
children: u ? /* @__PURE__ */ t(e.check, { size: 10 }) : l + 1
|
|
58
|
+
}), /* @__PURE__ */ t("span", {
|
|
59
|
+
style: {
|
|
60
|
+
overflow: "hidden",
|
|
61
|
+
textOverflow: "ellipsis"
|
|
62
|
+
},
|
|
63
|
+
children: i.label
|
|
64
|
+
})]
|
|
65
|
+
}, i.code);
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { r as StatusStepper };
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { Icon as e } from "../../primitives/Icons.js";
|
|
2
|
+
import { useText as t } from "../../../hooks/useText.js";
|
|
3
|
+
import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/shared/toast/DeclarionToast.tsx
|
|
6
|
+
var c = {
|
|
7
|
+
success: {
|
|
8
|
+
tone: "success",
|
|
9
|
+
defaultTitle: (e) => e("toast.title.success", "Success")
|
|
10
|
+
},
|
|
11
|
+
error: {
|
|
12
|
+
tone: "danger",
|
|
13
|
+
defaultTitle: (e) => e("toast.title.error", "Error")
|
|
14
|
+
},
|
|
15
|
+
warning: {
|
|
16
|
+
tone: "warn",
|
|
17
|
+
defaultTitle: (e) => e("toast.title.warning", "Warning")
|
|
18
|
+
},
|
|
19
|
+
info: {
|
|
20
|
+
tone: "info",
|
|
21
|
+
defaultTitle: (e) => e("toast.title.info", "Heads up")
|
|
22
|
+
},
|
|
23
|
+
loading: {
|
|
24
|
+
tone: "info",
|
|
25
|
+
defaultTitle: (e) => e("toast.title.loading", "Working…")
|
|
26
|
+
}
|
|
27
|
+
}, l = 200;
|
|
28
|
+
function u({ type: t }) {
|
|
29
|
+
let n = { display: "flex" };
|
|
30
|
+
if (t === "loading") return /* @__PURE__ */ o("span", {
|
|
31
|
+
style: {
|
|
32
|
+
...n,
|
|
33
|
+
animation: "dz-toast-spin 0.9s linear infinite"
|
|
34
|
+
},
|
|
35
|
+
children: /* @__PURE__ */ o(e.loader, { size: 11 })
|
|
36
|
+
});
|
|
37
|
+
let r = t === "success" ? e.check : t === "error" ? e.x : t === "warning" ? e.warning : e.info;
|
|
38
|
+
return /* @__PURE__ */ o("span", {
|
|
39
|
+
style: n,
|
|
40
|
+
children: /* @__PURE__ */ o(r, { size: 11 })
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function d({ model: d, onClose: f }) {
|
|
44
|
+
let p = t(), m = c[d.type] ?? c.info, h = m.tone, [g, _] = a(!1), [v, y] = a(!1), [b, x] = a(!1), [S, C] = a(!1), [w, T] = a(1), E = i(d.duration), D = i(!1), O = !d.sticky && d.duration > 0, k = n(() => {
|
|
45
|
+
D.current || (D.current = !0, C(!0), window.setTimeout(f, l));
|
|
46
|
+
}, [f]);
|
|
47
|
+
r(() => {
|
|
48
|
+
E.current = d.duration, T(1);
|
|
49
|
+
}, [d.createdAt, d.duration]), r(() => {
|
|
50
|
+
if (!O || g || S) return;
|
|
51
|
+
let e = Date.now(), t = window.setTimeout(k, E.current), n = 0, r = () => {
|
|
52
|
+
let t = E.current - (Date.now() - e);
|
|
53
|
+
T(Math.max(0, t) / d.duration), t > 0 && (n = requestAnimationFrame(r));
|
|
54
|
+
};
|
|
55
|
+
return n = requestAnimationFrame(r), () => {
|
|
56
|
+
window.clearTimeout(t), cancelAnimationFrame(n), E.current = Math.max(0, E.current - (Date.now() - e));
|
|
57
|
+
};
|
|
58
|
+
}, [
|
|
59
|
+
O,
|
|
60
|
+
g,
|
|
61
|
+
S,
|
|
62
|
+
d.duration,
|
|
63
|
+
d.createdAt,
|
|
64
|
+
k
|
|
65
|
+
]);
|
|
66
|
+
let A = n(() => {
|
|
67
|
+
let e = [
|
|
68
|
+
d.title,
|
|
69
|
+
d.message,
|
|
70
|
+
d.requestId ? `request_id: ${d.requestId}` : null,
|
|
71
|
+
d.details
|
|
72
|
+
].filter(Boolean).join("\n");
|
|
73
|
+
navigator.clipboard?.writeText(e), y(!0), window.setTimeout(() => y(!1), 1500);
|
|
74
|
+
}, [
|
|
75
|
+
d.title,
|
|
76
|
+
d.message,
|
|
77
|
+
d.requestId,
|
|
78
|
+
d.details
|
|
79
|
+
]), j = (e) => `var(--${h}${e})`, M = d.type === "error";
|
|
80
|
+
return /* @__PURE__ */ s("div", {
|
|
81
|
+
role: d.type === "error" ? "alert" : "status",
|
|
82
|
+
"aria-live": d.type === "error" ? "assertive" : "polite",
|
|
83
|
+
onMouseEnter: () => _(!0),
|
|
84
|
+
onMouseLeave: () => _(!1),
|
|
85
|
+
style: {
|
|
86
|
+
width: "100%",
|
|
87
|
+
background: "var(--surface)",
|
|
88
|
+
border: `1px solid ${j("-border")}`,
|
|
89
|
+
borderLeft: `3px solid ${j("")}`,
|
|
90
|
+
borderRadius: "var(--radius-md)",
|
|
91
|
+
boxShadow: "var(--shadow-toast)",
|
|
92
|
+
overflow: "hidden",
|
|
93
|
+
position: "relative",
|
|
94
|
+
animation: S ? `dz-toast-out ${l}ms ease-in forwards` : "dz-toast-in 0.24s cubic-bezier(0.16, 1, 0.3, 1)"
|
|
95
|
+
},
|
|
96
|
+
children: [/* @__PURE__ */ s("div", {
|
|
97
|
+
style: {
|
|
98
|
+
display: "flex",
|
|
99
|
+
padding: "10px 12px 11px 12px",
|
|
100
|
+
gap: 10
|
|
101
|
+
},
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ o("div", {
|
|
104
|
+
style: {
|
|
105
|
+
width: 18,
|
|
106
|
+
height: 18,
|
|
107
|
+
marginTop: 1,
|
|
108
|
+
flexShrink: 0,
|
|
109
|
+
background: j("-soft"),
|
|
110
|
+
borderRadius: 99,
|
|
111
|
+
display: "flex",
|
|
112
|
+
alignItems: "center",
|
|
113
|
+
justifyContent: "center",
|
|
114
|
+
color: j("")
|
|
115
|
+
},
|
|
116
|
+
children: /* @__PURE__ */ o(u, { type: d.type })
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ s("div", {
|
|
119
|
+
style: {
|
|
120
|
+
flex: 1,
|
|
121
|
+
minWidth: 0
|
|
122
|
+
},
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ s("div", {
|
|
125
|
+
style: {
|
|
126
|
+
display: "flex",
|
|
127
|
+
alignItems: "baseline",
|
|
128
|
+
gap: 6
|
|
129
|
+
},
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ o("div", {
|
|
132
|
+
style: {
|
|
133
|
+
fontSize: 12.5,
|
|
134
|
+
fontWeight: 600,
|
|
135
|
+
color: "var(--text)",
|
|
136
|
+
letterSpacing: "-0.005em",
|
|
137
|
+
userSelect: "text"
|
|
138
|
+
},
|
|
139
|
+
children: d.title || m.defaultTitle(p)
|
|
140
|
+
}),
|
|
141
|
+
(d.count ?? 0) > 1 && /* @__PURE__ */ s("span", {
|
|
142
|
+
style: {
|
|
143
|
+
background: j("-soft"),
|
|
144
|
+
color: j(""),
|
|
145
|
+
fontSize: 10,
|
|
146
|
+
padding: "1px 6px",
|
|
147
|
+
borderRadius: 99,
|
|
148
|
+
fontWeight: 600,
|
|
149
|
+
flexShrink: 0
|
|
150
|
+
},
|
|
151
|
+
children: ["×", d.count]
|
|
152
|
+
}),
|
|
153
|
+
d.requestId && /* @__PURE__ */ o("span", {
|
|
154
|
+
className: "mono",
|
|
155
|
+
style: {
|
|
156
|
+
fontSize: 10,
|
|
157
|
+
color: "var(--text-4)",
|
|
158
|
+
marginLeft: "auto",
|
|
159
|
+
userSelect: "text"
|
|
160
|
+
},
|
|
161
|
+
children: d.requestId
|
|
162
|
+
})
|
|
163
|
+
]
|
|
164
|
+
}),
|
|
165
|
+
d.message && /* @__PURE__ */ o("div", {
|
|
166
|
+
style: {
|
|
167
|
+
fontSize: 12,
|
|
168
|
+
color: "var(--text-2)",
|
|
169
|
+
marginTop: 3,
|
|
170
|
+
lineHeight: 1.5,
|
|
171
|
+
userSelect: "text",
|
|
172
|
+
cursor: "text",
|
|
173
|
+
wordBreak: "break-word"
|
|
174
|
+
},
|
|
175
|
+
children: d.message
|
|
176
|
+
}),
|
|
177
|
+
d.details && /* @__PURE__ */ s("div", {
|
|
178
|
+
style: { marginTop: 6 },
|
|
179
|
+
children: [/* @__PURE__ */ s("button", {
|
|
180
|
+
type: "button",
|
|
181
|
+
onClick: () => x((e) => !e),
|
|
182
|
+
style: {
|
|
183
|
+
background: "transparent",
|
|
184
|
+
border: 0,
|
|
185
|
+
padding: 0,
|
|
186
|
+
cursor: "pointer",
|
|
187
|
+
color: "var(--text-3)",
|
|
188
|
+
fontSize: 11,
|
|
189
|
+
fontWeight: 500,
|
|
190
|
+
display: "inline-flex",
|
|
191
|
+
alignItems: "center",
|
|
192
|
+
gap: 4
|
|
193
|
+
},
|
|
194
|
+
children: [/* @__PURE__ */ o(e.down, {
|
|
195
|
+
size: 10,
|
|
196
|
+
style: {
|
|
197
|
+
transform: b ? "rotate(180deg)" : "none",
|
|
198
|
+
transition: "transform .15s"
|
|
199
|
+
}
|
|
200
|
+
}), b ? p("toast.hide_details", "Hide details") : p("toast.show_details", "Show details")]
|
|
201
|
+
}), b && /* @__PURE__ */ o("pre", {
|
|
202
|
+
className: "mono",
|
|
203
|
+
style: {
|
|
204
|
+
margin: "6px 0 0 0",
|
|
205
|
+
padding: "8px 10px",
|
|
206
|
+
background: "var(--surface-2)",
|
|
207
|
+
border: "1px solid var(--border)",
|
|
208
|
+
borderRadius: "var(--radius-sm)",
|
|
209
|
+
fontSize: 11,
|
|
210
|
+
lineHeight: 1.5,
|
|
211
|
+
color: "var(--text-2)",
|
|
212
|
+
whiteSpace: "pre-wrap",
|
|
213
|
+
wordBreak: "break-word",
|
|
214
|
+
userSelect: "text",
|
|
215
|
+
maxHeight: 200,
|
|
216
|
+
overflow: "auto"
|
|
217
|
+
},
|
|
218
|
+
children: d.details
|
|
219
|
+
})]
|
|
220
|
+
}),
|
|
221
|
+
(d.action || M) && /* @__PURE__ */ s("div", {
|
|
222
|
+
style: {
|
|
223
|
+
display: "flex",
|
|
224
|
+
alignItems: "center",
|
|
225
|
+
gap: 6,
|
|
226
|
+
marginTop: 8
|
|
227
|
+
},
|
|
228
|
+
children: [d.action && /* @__PURE__ */ o("button", {
|
|
229
|
+
type: "button",
|
|
230
|
+
onClick: () => {
|
|
231
|
+
d.action?.onClick(), k();
|
|
232
|
+
},
|
|
233
|
+
style: {
|
|
234
|
+
background: j("-soft"),
|
|
235
|
+
color: j(""),
|
|
236
|
+
border: 0,
|
|
237
|
+
padding: "4px 10px",
|
|
238
|
+
borderRadius: "var(--radius-sm)",
|
|
239
|
+
fontSize: 11.5,
|
|
240
|
+
fontWeight: 600,
|
|
241
|
+
cursor: "pointer"
|
|
242
|
+
},
|
|
243
|
+
children: d.action.label
|
|
244
|
+
}), M && /* @__PURE__ */ s("button", {
|
|
245
|
+
type: "button",
|
|
246
|
+
onClick: A,
|
|
247
|
+
title: p("toast.copy_error_message", "Copy error message"),
|
|
248
|
+
"aria-label": p("toast.copy_error_message", "Copy error message"),
|
|
249
|
+
style: {
|
|
250
|
+
display: "inline-flex",
|
|
251
|
+
alignItems: "center",
|
|
252
|
+
gap: 4,
|
|
253
|
+
background: "transparent",
|
|
254
|
+
border: "1px solid var(--border)",
|
|
255
|
+
padding: "3px 7px",
|
|
256
|
+
borderRadius: "var(--radius-sm)",
|
|
257
|
+
fontSize: 11,
|
|
258
|
+
color: v ? "var(--success)" : "var(--text-3)",
|
|
259
|
+
cursor: "pointer",
|
|
260
|
+
fontWeight: 500
|
|
261
|
+
},
|
|
262
|
+
children: [o(v ? e.check : e.copy, { size: 11 }), v ? p("control.copied", "Copied") : p("control.copy", "Copy")]
|
|
263
|
+
})]
|
|
264
|
+
})
|
|
265
|
+
]
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ o("button", {
|
|
268
|
+
type: "button",
|
|
269
|
+
onClick: k,
|
|
270
|
+
"aria-label": p("toast.dismiss", "Dismiss"),
|
|
271
|
+
style: {
|
|
272
|
+
width: 20,
|
|
273
|
+
height: 20,
|
|
274
|
+
padding: 0,
|
|
275
|
+
marginTop: -1,
|
|
276
|
+
flexShrink: 0,
|
|
277
|
+
background: "transparent",
|
|
278
|
+
border: 0,
|
|
279
|
+
borderRadius: "var(--radius-sm)",
|
|
280
|
+
cursor: "pointer",
|
|
281
|
+
color: "var(--text-4)",
|
|
282
|
+
display: "flex",
|
|
283
|
+
alignItems: "center",
|
|
284
|
+
justifyContent: "center"
|
|
285
|
+
},
|
|
286
|
+
children: /* @__PURE__ */ o(e.x, { size: 12 })
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
}), O && /* @__PURE__ */ o("div", {
|
|
290
|
+
style: {
|
|
291
|
+
position: "absolute",
|
|
292
|
+
left: 0,
|
|
293
|
+
right: 0,
|
|
294
|
+
bottom: 0,
|
|
295
|
+
height: 2
|
|
296
|
+
},
|
|
297
|
+
children: /* @__PURE__ */ o("div", { style: {
|
|
298
|
+
height: "100%",
|
|
299
|
+
width: `${w * 100}%`,
|
|
300
|
+
background: j(""),
|
|
301
|
+
opacity: .55,
|
|
302
|
+
transition: g ? "none" : "width 0.1s linear"
|
|
303
|
+
} })
|
|
304
|
+
})]
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
//#endregion
|
|
308
|
+
export { d as DeclarionToast };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
//#region src/components/shared/useOwnRefresh.ts
|
|
3
|
+
function i(i) {
|
|
4
|
+
let [a, o] = r(!1), s = n(!0);
|
|
5
|
+
return t(() => (s.current = !0, () => {
|
|
6
|
+
s.current = !1;
|
|
7
|
+
}), []), {
|
|
8
|
+
refreshing: a,
|
|
9
|
+
refresh: e(() => {
|
|
10
|
+
o(!0);
|
|
11
|
+
let e = () => {
|
|
12
|
+
s.current && o(!1);
|
|
13
|
+
};
|
|
14
|
+
Promise.resolve(i()).then(e, e);
|
|
15
|
+
}, [i])
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as useOwnRefresh };
|