@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
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useSchema as e } from "../../hooks/useSchema.js";
|
|
2
|
+
import { Icon as t } from "../primitives/Icons.js";
|
|
3
|
+
import { Btn as n } from "../primitives/Btn.js";
|
|
4
|
+
import { IconBtn as r } from "../primitives/IconBtn.js";
|
|
5
|
+
import { useText as i } from "../../hooks/useText.js";
|
|
6
|
+
import { useResponsiveMode as a } from "../../hooks/useResponsiveMode.js";
|
|
7
|
+
import { Spinner as o } from "../primitives/Spinner.js";
|
|
8
|
+
import { FieldLabel as s, PasswordInput as c } from "../primitives/Fields.js";
|
|
9
|
+
import { failureTitle as l } from "../../lib/failure.js";
|
|
5
10
|
import { useId as u, useState as d } from "react";
|
|
6
11
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
12
|
//#region src/components/shared/ChangePasswordDialog.impl.tsx
|
|
8
13
|
var h = "auth.change_password", g = "auth.change_password@v1";
|
|
9
14
|
function _({ open: _, onClose: v, onSubmit: y }) {
|
|
10
|
-
let b =
|
|
15
|
+
let b = i(), x = i("errors"), { data: S } = e(), C = b(S?.actions?.[h]?.display?.name) || h, w = a().isPhone, T = u(), [E, D] = d(""), [O, k] = d(""), [A, j] = d(""), [M, N] = d(!1), [P, F] = d(null);
|
|
11
16
|
if (!_) return null;
|
|
12
17
|
let I = () => {
|
|
13
18
|
D(""), k(""), j(""), F(null), N(!1);
|
|
@@ -34,7 +39,7 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
34
39
|
width: w ? "calc(100vw - 24px)" : 460,
|
|
35
40
|
maxWidth: "calc(100vw - 24px)",
|
|
36
41
|
background: "var(--surface)",
|
|
37
|
-
borderRadius:
|
|
42
|
+
borderRadius: "var(--radius-lg)",
|
|
38
43
|
boxShadow: "var(--shadow-lg)",
|
|
39
44
|
border: "1px solid var(--border)",
|
|
40
45
|
overflow: "hidden"
|
|
@@ -52,14 +57,14 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
52
57
|
style: {
|
|
53
58
|
width: 28,
|
|
54
59
|
height: 28,
|
|
55
|
-
borderRadius:
|
|
60
|
+
borderRadius: "var(--radius-md)",
|
|
56
61
|
background: "var(--accent-soft)",
|
|
57
62
|
color: "var(--accent)",
|
|
58
63
|
display: "inline-flex",
|
|
59
64
|
alignItems: "center",
|
|
60
65
|
justifyContent: "center"
|
|
61
66
|
},
|
|
62
|
-
children: /* @__PURE__ */ p(
|
|
67
|
+
children: /* @__PURE__ */ p(t.key, { size: 15 })
|
|
63
68
|
}),
|
|
64
69
|
/* @__PURE__ */ m("div", {
|
|
65
70
|
style: { flex: 1 },
|
|
@@ -78,8 +83,8 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
78
83
|
children: b("account.password.subtitle", "Pick something strong. You'll stay signed in on this device.")
|
|
79
84
|
})]
|
|
80
85
|
}),
|
|
81
|
-
/* @__PURE__ */ p(
|
|
82
|
-
icon: /* @__PURE__ */ p(
|
|
86
|
+
/* @__PURE__ */ p(r, {
|
|
87
|
+
icon: /* @__PURE__ */ p(t.x, { size: 14 }),
|
|
83
88
|
title: b("dialog.close", "Close"),
|
|
84
89
|
onClick: L
|
|
85
90
|
})
|
|
@@ -93,32 +98,32 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
93
98
|
gap: 12
|
|
94
99
|
},
|
|
95
100
|
children: [
|
|
96
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(
|
|
101
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(s, {
|
|
97
102
|
required: !0,
|
|
98
103
|
htmlFor: `${T}-current`,
|
|
99
104
|
children: b("account.password.current", "Current password")
|
|
100
|
-
}), /* @__PURE__ */ p(
|
|
105
|
+
}), /* @__PURE__ */ p(c, {
|
|
101
106
|
id: `${T}-current`,
|
|
102
107
|
value: E,
|
|
103
108
|
onChange: D,
|
|
104
109
|
placeholder: b("account.password.current_placeholder", "Enter your current password")
|
|
105
110
|
})] }),
|
|
106
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(
|
|
111
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(s, {
|
|
107
112
|
required: !0,
|
|
108
113
|
htmlFor: `${T}-new`,
|
|
109
114
|
children: b("account.password.new", "New password")
|
|
110
|
-
}), /* @__PURE__ */ p(
|
|
115
|
+
}), /* @__PURE__ */ p(c, {
|
|
111
116
|
id: `${T}-new`,
|
|
112
117
|
value: O,
|
|
113
118
|
onChange: k,
|
|
114
119
|
placeholder: b("account.password.new_placeholder", "At least 8 characters"),
|
|
115
120
|
showStrength: !0
|
|
116
121
|
})] }),
|
|
117
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(
|
|
122
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(s, {
|
|
118
123
|
required: !0,
|
|
119
124
|
htmlFor: `${T}-confirm`,
|
|
120
125
|
children: b("account.password.confirm", "Confirm new password")
|
|
121
|
-
}), /* @__PURE__ */ p(
|
|
126
|
+
}), /* @__PURE__ */ p(c, {
|
|
122
127
|
id: `${T}-confirm`,
|
|
123
128
|
value: A,
|
|
124
129
|
onChange: j,
|
|
@@ -128,13 +133,13 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
128
133
|
style: {
|
|
129
134
|
padding: "8px 10px",
|
|
130
135
|
background: "var(--danger-soft)",
|
|
131
|
-
borderRadius:
|
|
136
|
+
borderRadius: "var(--radius-md)",
|
|
132
137
|
fontSize: 11.5,
|
|
133
138
|
color: "var(--danger)",
|
|
134
139
|
display: "flex",
|
|
135
140
|
gap: 6
|
|
136
141
|
},
|
|
137
|
-
children: [/* @__PURE__ */ p(
|
|
142
|
+
children: [/* @__PURE__ */ p(t.info, { size: 13 }), /* @__PURE__ */ p("span", { children: P })]
|
|
138
143
|
})
|
|
139
144
|
]
|
|
140
145
|
}),
|
|
@@ -159,13 +164,13 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
159
164
|
children: g
|
|
160
165
|
}),
|
|
161
166
|
/* @__PURE__ */ p("div", { style: { flex: 1 } }),
|
|
162
|
-
/* @__PURE__ */ p(
|
|
167
|
+
/* @__PURE__ */ p(n, {
|
|
163
168
|
onClick: L,
|
|
164
169
|
children: b("dialog.cancel", "Cancel")
|
|
165
170
|
}),
|
|
166
|
-
/* @__PURE__ */ p(
|
|
171
|
+
/* @__PURE__ */ p(n, {
|
|
167
172
|
kind: "primary",
|
|
168
|
-
icon: p(M ?
|
|
173
|
+
icon: p(M ? o : t.key, { size: 13 }),
|
|
169
174
|
onClick: async () => {
|
|
170
175
|
if (!R) O.length < 8 ? F(b("account.password.too_short", "New password must be at least 8 characters.")) : F(A === O ? b("account.password.fill_all", "Fill in all fields.") : b("account.password.mismatch", "Passwords do not match."));
|
|
171
176
|
else {
|
|
@@ -176,7 +181,7 @@ function _({ open: _, onClose: v, onSubmit: y }) {
|
|
|
176
181
|
next: O
|
|
177
182
|
}), I(), v();
|
|
178
183
|
} catch (e) {
|
|
179
|
-
F(
|
|
184
|
+
F(l(x, e));
|
|
180
185
|
} finally {
|
|
181
186
|
N(!1);
|
|
182
187
|
}
|
package/dist-lib/{ChangePasswordDialog-C_T_3pjl.js → components/shared/ChangePasswordDialog.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/shared/ChangePasswordDialog.tsx
|
|
4
|
-
var r = t(() => import("./ChangePasswordDialog.impl
|
|
4
|
+
var r = t(() => import("./ChangePasswordDialog.impl.js").then((e) => ({ default: e.ChangePasswordDialog })));
|
|
5
5
|
function i(t) {
|
|
6
6
|
return /* @__PURE__ */ n(e, {
|
|
7
7
|
fallback: null,
|
|
@@ -9,4 +9,4 @@ function i(t) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { i as
|
|
12
|
+
export { i as ChangePasswordDialog };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { Btn as t } from "../primitives/Btn.js";
|
|
3
|
+
import { IconBtn as n } from "../primitives/IconBtn.js";
|
|
4
|
+
import { useText as r } from "../../hooks/useText.js";
|
|
5
|
+
import { useEffect as i, useRef as a } from "react";
|
|
6
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/shared/ConfirmDialog.tsx
|
|
8
|
+
function l({ open: l, onOpenChange: u, title: d, description: f, confirmLabel: p, onConfirm: m, destructive: h = !1 }) {
|
|
9
|
+
let g = r(), _ = a(null);
|
|
10
|
+
return i(() => {
|
|
11
|
+
l && _.current?.focus();
|
|
12
|
+
}, [l]), l ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("div", {
|
|
13
|
+
onClick: () => u(!1),
|
|
14
|
+
style: {
|
|
15
|
+
position: "fixed",
|
|
16
|
+
inset: 0,
|
|
17
|
+
background: "var(--scrim)",
|
|
18
|
+
zIndex: 60,
|
|
19
|
+
backdropFilter: "blur(2px)"
|
|
20
|
+
}
|
|
21
|
+
}), /* @__PURE__ */ c("div", {
|
|
22
|
+
ref: _,
|
|
23
|
+
role: "dialog",
|
|
24
|
+
"aria-modal": "true",
|
|
25
|
+
"aria-label": d,
|
|
26
|
+
tabIndex: -1,
|
|
27
|
+
onKeyDown: (e) => {
|
|
28
|
+
e.key === "Escape" && u(!1);
|
|
29
|
+
},
|
|
30
|
+
style: {
|
|
31
|
+
position: "fixed",
|
|
32
|
+
top: "50%",
|
|
33
|
+
left: "50%",
|
|
34
|
+
transform: "translate(-50%, -50%)",
|
|
35
|
+
zIndex: 61,
|
|
36
|
+
width: "calc(100vw - 24px)",
|
|
37
|
+
maxWidth: 460,
|
|
38
|
+
maxHeight: "calc(var(--app-height) - var(--safe-area-top) - var(--safe-area-bottom) - 16px)",
|
|
39
|
+
background: "var(--surface)",
|
|
40
|
+
borderRadius: "var(--radius-lg)",
|
|
41
|
+
boxShadow: "var(--shadow-lg)",
|
|
42
|
+
border: "1px solid var(--border)",
|
|
43
|
+
overflow: "hidden",
|
|
44
|
+
display: "flex",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
outline: "none"
|
|
47
|
+
},
|
|
48
|
+
children: [/* @__PURE__ */ c("div", {
|
|
49
|
+
style: {
|
|
50
|
+
padding: "14px 18px",
|
|
51
|
+
display: "flex",
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
gap: 10,
|
|
54
|
+
minWidth: 0,
|
|
55
|
+
overflowY: "auto"
|
|
56
|
+
},
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ s("span", {
|
|
59
|
+
style: {
|
|
60
|
+
width: 28,
|
|
61
|
+
height: 28,
|
|
62
|
+
borderRadius: "var(--radius-md)",
|
|
63
|
+
background: h ? "var(--danger-soft)" : "var(--accent-soft)",
|
|
64
|
+
color: h ? "var(--danger)" : "var(--accent)",
|
|
65
|
+
display: "inline-flex",
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
justifyContent: "center",
|
|
68
|
+
flexShrink: 0
|
|
69
|
+
},
|
|
70
|
+
children: s(h ? e.trash : e.info, { size: 15 })
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ c("div", {
|
|
73
|
+
style: {
|
|
74
|
+
flex: 1,
|
|
75
|
+
minWidth: 0
|
|
76
|
+
},
|
|
77
|
+
children: [/* @__PURE__ */ s("div", {
|
|
78
|
+
style: {
|
|
79
|
+
fontSize: 14,
|
|
80
|
+
fontWeight: 600,
|
|
81
|
+
color: "var(--text)"
|
|
82
|
+
},
|
|
83
|
+
children: d
|
|
84
|
+
}), /* @__PURE__ */ s("div", {
|
|
85
|
+
style: {
|
|
86
|
+
fontSize: 11.5,
|
|
87
|
+
color: "var(--text-3)",
|
|
88
|
+
marginTop: 2
|
|
89
|
+
},
|
|
90
|
+
children: f
|
|
91
|
+
})]
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ s(n, {
|
|
94
|
+
icon: /* @__PURE__ */ s(e.x, { size: 14 }),
|
|
95
|
+
onClick: () => u(!1)
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
}), /* @__PURE__ */ c("div", {
|
|
99
|
+
style: {
|
|
100
|
+
padding: "10px 16px",
|
|
101
|
+
borderTop: "1px solid var(--divider)",
|
|
102
|
+
display: "flex",
|
|
103
|
+
alignItems: "center",
|
|
104
|
+
justifyContent: "flex-end",
|
|
105
|
+
flexWrap: "wrap",
|
|
106
|
+
gap: 8,
|
|
107
|
+
background: "var(--surface-2)",
|
|
108
|
+
flexShrink: 0
|
|
109
|
+
},
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ s("div", { style: { flex: 1 } }),
|
|
112
|
+
/* @__PURE__ */ s(t, {
|
|
113
|
+
onClick: () => u(!1),
|
|
114
|
+
children: g("dialog.cancel", "Cancel")
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ s(t, {
|
|
117
|
+
kind: "primary",
|
|
118
|
+
danger: h,
|
|
119
|
+
onClick: () => {
|
|
120
|
+
m(), u(!1);
|
|
121
|
+
},
|
|
122
|
+
children: p ?? g("dialog.confirm", "Confirm")
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
})]
|
|
126
|
+
})] }) : null;
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
export { l as ConfirmDialog };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Suspense as e, lazy as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/shared/ConnectionNotice.tsx
|
|
4
|
+
var r = t(() => import("../../hooks/useConnectionNotice.js").then((e) => ({ default: e.ConnectionNotice })));
|
|
5
|
+
function i() {
|
|
6
|
+
return /* @__PURE__ */ n(e, {
|
|
7
|
+
fallback: null,
|
|
8
|
+
children: /* @__PURE__ */ n(r, {})
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as ConnectionNotice };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { IconBtn as t } from "../primitives/IconBtn.js";
|
|
3
|
+
import { useText as n } from "../../hooks/useText.js";
|
|
4
|
+
import { useCallback as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/shared/CopyButton.tsx
|
|
7
|
+
function o({ value: o, title: s, size: c = "icon" }) {
|
|
8
|
+
let l = n(), [u, d] = i(!1), f = r(async (e) => {
|
|
9
|
+
e.stopPropagation(), e.preventDefault();
|
|
10
|
+
try {
|
|
11
|
+
await navigator.clipboard.writeText(o), d(!0), setTimeout(() => d(!1), 2e3);
|
|
12
|
+
} catch {}
|
|
13
|
+
}, [o]), p = c === "sm" ? 12 : 14;
|
|
14
|
+
return /* @__PURE__ */ a(t, {
|
|
15
|
+
size: c === "sm" ? 22 : 28,
|
|
16
|
+
icon: u ? /* @__PURE__ */ a(e.check, {
|
|
17
|
+
size: p,
|
|
18
|
+
style: { color: "var(--success)" }
|
|
19
|
+
}) : /* @__PURE__ */ a(e.copy, { size: p }),
|
|
20
|
+
onClick: f,
|
|
21
|
+
title: s ?? l("control.copy_to_clipboard", "Copy to clipboard")
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { o as CopyButton };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Icon as e } from "../primitives/Icons.js";
|
|
2
|
+
import { getIcon as t, getIconRegistryVersion as n, subscribeIconRegistry as r } from "../../stores/icon-registry.js";
|
|
3
|
+
import { LucideIcon as i } from "./LucideIcon.js";
|
|
4
|
+
import { useSyncExternalStore as a } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/shared/DynamicIcon.tsx
|
|
7
|
+
var s = "lucide:";
|
|
8
|
+
function c({ name: c, size: u, className: d, style: f }) {
|
|
9
|
+
a(r, n, n);
|
|
10
|
+
let p = typeof u == "number" ? u : typeof u == "string" ? parseFloat(u) : 14, m = t(c);
|
|
11
|
+
if (m) return /* @__PURE__ */ o(l, {
|
|
12
|
+
def: m,
|
|
13
|
+
size: p,
|
|
14
|
+
className: d,
|
|
15
|
+
style: f
|
|
16
|
+
});
|
|
17
|
+
let h = e[c];
|
|
18
|
+
if (h) return /* @__PURE__ */ o(h, {
|
|
19
|
+
size: p,
|
|
20
|
+
cls: d,
|
|
21
|
+
style: f
|
|
22
|
+
});
|
|
23
|
+
let g = c.startsWith(s) ? c.slice(7) : c;
|
|
24
|
+
return /* @__PURE__ */ o(i, {
|
|
25
|
+
name: g,
|
|
26
|
+
size: p,
|
|
27
|
+
className: d,
|
|
28
|
+
style: f
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function l({ def: e, size: t, className: n, style: r }) {
|
|
32
|
+
switch (e.kind) {
|
|
33
|
+
case "svg": return /* @__PURE__ */ o(u, {
|
|
34
|
+
paths: e.paths,
|
|
35
|
+
size: t,
|
|
36
|
+
className: n,
|
|
37
|
+
style: r
|
|
38
|
+
});
|
|
39
|
+
case "url": return /* @__PURE__ */ o("img", {
|
|
40
|
+
src: e.src,
|
|
41
|
+
alt: "",
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
width: t,
|
|
44
|
+
height: t,
|
|
45
|
+
className: n,
|
|
46
|
+
style: r
|
|
47
|
+
});
|
|
48
|
+
case "lucide": return /* @__PURE__ */ o(i, {
|
|
49
|
+
name: e.name,
|
|
50
|
+
size: t,
|
|
51
|
+
className: n,
|
|
52
|
+
style: r
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function u({ paths: e, size: t, className: n, style: r }) {
|
|
57
|
+
return /* @__PURE__ */ o("svg", {
|
|
58
|
+
width: t,
|
|
59
|
+
height: t,
|
|
60
|
+
viewBox: "0 0 24 24",
|
|
61
|
+
fill: "none",
|
|
62
|
+
stroke: "currentColor",
|
|
63
|
+
strokeWidth: 1.5,
|
|
64
|
+
strokeLinecap: "round",
|
|
65
|
+
strokeLinejoin: "round",
|
|
66
|
+
className: n,
|
|
67
|
+
style: r,
|
|
68
|
+
"aria-hidden": "true",
|
|
69
|
+
children: e.map((e, t) => /* @__PURE__ */ o("path", { d: e }, t))
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { c as DynamicIcon };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DynamicIcon as e } from "./DynamicIcon.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/shared/EmptyState.tsx
|
|
4
|
+
function r({ icon: r, title: i, description: a, action: o }) {
|
|
5
|
+
return /* @__PURE__ */ n("div", {
|
|
6
|
+
"data-testid": "empty-state",
|
|
7
|
+
style: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
padding: "64px 16px",
|
|
13
|
+
textAlign: "center"
|
|
14
|
+
},
|
|
15
|
+
children: [
|
|
16
|
+
r && /* @__PURE__ */ t("div", {
|
|
17
|
+
style: {
|
|
18
|
+
marginBottom: 16,
|
|
19
|
+
borderRadius: 999,
|
|
20
|
+
background: "var(--surface-3)",
|
|
21
|
+
padding: 16,
|
|
22
|
+
color: "var(--text-3)",
|
|
23
|
+
display: "inline-flex"
|
|
24
|
+
},
|
|
25
|
+
children: /* @__PURE__ */ t(e, {
|
|
26
|
+
name: r,
|
|
27
|
+
size: 32
|
|
28
|
+
})
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ t("h3", {
|
|
31
|
+
style: {
|
|
32
|
+
margin: 0,
|
|
33
|
+
fontSize: 15,
|
|
34
|
+
fontWeight: 600,
|
|
35
|
+
color: "var(--text)"
|
|
36
|
+
},
|
|
37
|
+
children: i
|
|
38
|
+
}),
|
|
39
|
+
a && /* @__PURE__ */ t("p", {
|
|
40
|
+
style: {
|
|
41
|
+
marginTop: 4,
|
|
42
|
+
fontSize: 12.5,
|
|
43
|
+
color: "var(--text-3)",
|
|
44
|
+
maxWidth: 420
|
|
45
|
+
},
|
|
46
|
+
children: a
|
|
47
|
+
}),
|
|
48
|
+
o && /* @__PURE__ */ t("div", {
|
|
49
|
+
style: { marginTop: 16 },
|
|
50
|
+
children: o
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { r as EmptyState };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { makeTextFn as e } from "../../lib/language.js";
|
|
2
|
+
import { Btn as t } from "../primitives/Btn.js";
|
|
3
|
+
import { useText as n } from "../../hooks/useText.js";
|
|
4
|
+
import { Component as r, useContext as i } from "react";
|
|
5
|
+
import { QueryClientContext as a } from "@tanstack/react-query";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/shared/ErrorBoundary.tsx
|
|
8
|
+
var c = class extends r {
|
|
9
|
+
constructor(e) {
|
|
10
|
+
super(e), this.state = {
|
|
11
|
+
hasError: !1,
|
|
12
|
+
error: null
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static getDerivedStateFromError(e) {
|
|
16
|
+
return {
|
|
17
|
+
hasError: !0,
|
|
18
|
+
error: e
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
componentDidCatch(e, t) {
|
|
22
|
+
console.error("[ErrorBoundary]", e, t.componentStack);
|
|
23
|
+
}
|
|
24
|
+
handleRetry = () => {
|
|
25
|
+
this.setState({
|
|
26
|
+
hasError: !1,
|
|
27
|
+
error: null
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
render() {
|
|
31
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ o(u, {
|
|
32
|
+
message: this.state.error?.message,
|
|
33
|
+
onRetry: this.handleRetry
|
|
34
|
+
}) : this.props.children;
|
|
35
|
+
}
|
|
36
|
+
}, l = e(void 0, "en", "en");
|
|
37
|
+
function u(e) {
|
|
38
|
+
return i(a) ? /* @__PURE__ */ o(d, { ...e }) : /* @__PURE__ */ o(f, {
|
|
39
|
+
...e,
|
|
40
|
+
t: l,
|
|
41
|
+
errorTitle: l
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function d(e) {
|
|
45
|
+
let t = n(), r = n("errors");
|
|
46
|
+
return /* @__PURE__ */ o(f, {
|
|
47
|
+
...e,
|
|
48
|
+
t,
|
|
49
|
+
errorTitle: r
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function f({ message: e, onRetry: n, t: r, errorTitle: i }) {
|
|
53
|
+
return /* @__PURE__ */ o("div", {
|
|
54
|
+
style: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
minHeight: 200,
|
|
59
|
+
padding: 32
|
|
60
|
+
},
|
|
61
|
+
children: /* @__PURE__ */ s("div", {
|
|
62
|
+
style: {
|
|
63
|
+
textAlign: "center",
|
|
64
|
+
maxWidth: 420,
|
|
65
|
+
display: "flex",
|
|
66
|
+
flexDirection: "column",
|
|
67
|
+
gap: 10
|
|
68
|
+
},
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ o("h2", {
|
|
71
|
+
style: {
|
|
72
|
+
fontSize: 16,
|
|
73
|
+
fontWeight: 600,
|
|
74
|
+
margin: 0,
|
|
75
|
+
color: "var(--text)"
|
|
76
|
+
},
|
|
77
|
+
children: i("ui.render_failed", "This part of the page could not be shown.")
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ o("p", {
|
|
80
|
+
style: {
|
|
81
|
+
fontSize: 12.5,
|
|
82
|
+
color: "var(--text-3)",
|
|
83
|
+
margin: 0
|
|
84
|
+
},
|
|
85
|
+
children: e || i("ui.render_failed_undescribed", "An unexpected error occurred.")
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(t, {
|
|
88
|
+
onClick: n,
|
|
89
|
+
children: r("control.try_again", "Try again")
|
|
90
|
+
}) })
|
|
91
|
+
]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { c as ErrorBoundary };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/shared/LoadingSkeleton.tsx
|
|
3
|
+
var r = "@keyframes declarion-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}", i = {
|
|
4
|
+
display: "block",
|
|
5
|
+
background: "linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 40%, var(--surface-3) 80%)",
|
|
6
|
+
backgroundSize: "200% 100%",
|
|
7
|
+
borderRadius: "var(--radius-md)",
|
|
8
|
+
animation: "declarion-shimmer 1.2s ease-in-out infinite"
|
|
9
|
+
};
|
|
10
|
+
function a({ height: a, width: o }) {
|
|
11
|
+
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("style", { children: r }), /* @__PURE__ */ t("span", { style: {
|
|
12
|
+
...i,
|
|
13
|
+
height: a,
|
|
14
|
+
width: o ?? "100%"
|
|
15
|
+
} })] });
|
|
16
|
+
}
|
|
17
|
+
function o({ rows: e = 8, cols: r = 4 }) {
|
|
18
|
+
return /* @__PURE__ */ n("div", {
|
|
19
|
+
style: {
|
|
20
|
+
padding: 16,
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: 10
|
|
24
|
+
},
|
|
25
|
+
children: [/* @__PURE__ */ t("div", {
|
|
26
|
+
style: {
|
|
27
|
+
display: "flex",
|
|
28
|
+
gap: 16
|
|
29
|
+
},
|
|
30
|
+
children: Array.from({ length: r }).map((e, n) => /* @__PURE__ */ t("div", {
|
|
31
|
+
style: { flex: 1 },
|
|
32
|
+
children: /* @__PURE__ */ t(a, { height: 14 })
|
|
33
|
+
}, n))
|
|
34
|
+
}), Array.from({ length: e }).map((e, n) => /* @__PURE__ */ t("div", {
|
|
35
|
+
style: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
gap: 16
|
|
38
|
+
},
|
|
39
|
+
children: Array.from({ length: r }).map((e, n) => /* @__PURE__ */ t("div", {
|
|
40
|
+
style: { flex: 1 },
|
|
41
|
+
children: /* @__PURE__ */ t(a, { height: 28 })
|
|
42
|
+
}, n))
|
|
43
|
+
}, n))]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function s() {
|
|
47
|
+
return /* @__PURE__ */ n("div", {
|
|
48
|
+
style: {
|
|
49
|
+
padding: 20,
|
|
50
|
+
display: "flex",
|
|
51
|
+
flexDirection: "column",
|
|
52
|
+
gap: 16
|
|
53
|
+
},
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ t(a, {
|
|
56
|
+
height: 12,
|
|
57
|
+
width: 160
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ n("div", {
|
|
60
|
+
style: {
|
|
61
|
+
display: "flex",
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
gap: 12
|
|
64
|
+
},
|
|
65
|
+
children: [/* @__PURE__ */ t("span", { style: {
|
|
66
|
+
...i,
|
|
67
|
+
width: 32,
|
|
68
|
+
height: 32,
|
|
69
|
+
borderRadius: "var(--radius-md)"
|
|
70
|
+
} }), /* @__PURE__ */ t(a, {
|
|
71
|
+
height: 22,
|
|
72
|
+
width: 240
|
|
73
|
+
})]
|
|
74
|
+
}),
|
|
75
|
+
Array.from({ length: 2 }).map((e, r) => /* @__PURE__ */ n("div", {
|
|
76
|
+
style: {
|
|
77
|
+
border: "1px solid var(--border)",
|
|
78
|
+
borderRadius: "var(--radius-lg)",
|
|
79
|
+
background: "var(--surface)",
|
|
80
|
+
overflow: "hidden"
|
|
81
|
+
},
|
|
82
|
+
children: [/* @__PURE__ */ t("div", {
|
|
83
|
+
style: {
|
|
84
|
+
padding: "11px 14px",
|
|
85
|
+
borderBottom: "1px solid var(--divider)"
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ t(a, {
|
|
88
|
+
height: 13,
|
|
89
|
+
width: 150
|
|
90
|
+
})
|
|
91
|
+
}), /* @__PURE__ */ t("div", {
|
|
92
|
+
style: {
|
|
93
|
+
padding: 16,
|
|
94
|
+
display: "grid",
|
|
95
|
+
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
|
|
96
|
+
gap: "12px 24px"
|
|
97
|
+
},
|
|
98
|
+
children: Array.from({ length: 6 }).map((e, r) => /* @__PURE__ */ n("div", {
|
|
99
|
+
style: {
|
|
100
|
+
display: "flex",
|
|
101
|
+
gap: 16
|
|
102
|
+
},
|
|
103
|
+
children: [/* @__PURE__ */ t(a, {
|
|
104
|
+
height: 13,
|
|
105
|
+
width: 110
|
|
106
|
+
}), /* @__PURE__ */ t("div", {
|
|
107
|
+
style: { flex: 1 },
|
|
108
|
+
children: /* @__PURE__ */ t(a, { height: 13 })
|
|
109
|
+
})]
|
|
110
|
+
}, r))
|
|
111
|
+
})]
|
|
112
|
+
}, r))
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
export { s as DetailSkeleton, r as SHIMMER_KEYFRAMES, o as TableSkeleton };
|