@declarion/react 0.61.1 → 0.63.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/ActionDialog-uiuse5W8.js +374 -0
- package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
- package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
- package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
- package/dist-lib/{AgentChatPanel.impl-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
- package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
- package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
- package/dist-lib/AuthShell-DdiughRT.js +361 -0
- package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
- package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
- package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
- package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
- package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
- package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
- package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
- package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
- package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
- package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
- package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
- package/dist-lib/Icons-lt-7lhYR.js +151 -0
- package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
- package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
- package/dist-lib/Kbd-CNttVu0z.js +23 -0
- package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
- package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
- package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
- package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
- package/dist-lib/PageShell-tI-mm0C5.js +47 -0
- package/dist-lib/Pill-D-wsfRhx.js +42 -0
- package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
- package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
- package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
- package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
- package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
- package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
- package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
- package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
- package/dist-lib/SectionCard-VonaiLrx.js +150 -0
- package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
- package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
- package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
- package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
- package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
- package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
- package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
- package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/format-count-CSEFw2ht.js +943 -0
- package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
- package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
- package/dist-lib/icons.d.ts +20 -4
- package/dist-lib/icons.js +3 -2
- package/dist-lib/index.d.ts +2516 -150
- package/dist-lib/index.js +1588 -5117
- package/dist-lib/page-inset-D_kkVwwN.js +9 -0
- package/dist-lib/page-state-eA6J_KIR.js +124 -0
- package/dist-lib/param-editors-9yJr7xmN.js +201 -0
- package/dist-lib/payload-B2wODLAX.js +86 -0
- package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
- package/dist-lib/registry-BpzE8-h8.js +119 -0
- package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
- package/dist-lib/testing.d.ts +53 -56
- package/dist-lib/testing.js +54 -55
- package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
- package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
- package/dist-lib/useAuth-CR2YKKXb.js +49 -0
- package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
- package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
- package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
- package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
- package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
- package/dist-lib/useObject-1OCeV34A.js +26 -0
- package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
- package/dist-lib/useParams-ei6w4I7w.js +133 -0
- package/dist-lib/useProperties-CbdhlhZd.js +81 -0
- package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
- package/dist-lib/useScreenBack-J861tbwn.js +71 -0
- package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
- package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
- package/dist-lib/utils-D_QDpB8_.js +11 -0
- package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
- package/dist-lib/vite/index.d.ts +42 -16
- package/dist-lib/window-election-CHIvIZwx.js +45 -0
- package/package.json +16 -23
- package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
- package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
- package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
- package/dist-lib/api/agents.d.ts +0 -140
- package/dist-lib/api/auth-redirect.d.ts +0 -3
- package/dist-lib/api/auth.d.ts +0 -26
- package/dist-lib/api/batch.d.ts +0 -25
- package/dist-lib/api/client.d.ts +0 -51
- package/dist-lib/api/data.d.ts +0 -153
- package/dist-lib/api/entities.d.ts +0 -149
- package/dist-lib/api/events.d.ts +0 -91
- package/dist-lib/api/params.d.ts +0 -28
- package/dist-lib/api/properties.d.ts +0 -3
- package/dist-lib/api/schema.d.ts +0 -2
- package/dist-lib/api/status.d.ts +0 -2
- package/dist-lib/app.d.ts +0 -1
- package/dist-lib/components/actions/ActionButton.d.ts +0 -18
- package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
- package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
- package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
- package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
- package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
- package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
- package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
- package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
- package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
- package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
- package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
- package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
- package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
- package/dist-lib/components/chrome/PageShell.d.ts +0 -7
- package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
- package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
- package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
- package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
- package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
- package/dist-lib/components/detail-layout/index.d.ts +0 -21
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
- package/dist-lib/components/fields/BoolField.d.ts +0 -2
- package/dist-lib/components/fields/EmailField.d.ts +0 -2
- package/dist-lib/components/fields/EnumField.d.ts +0 -2
- package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
- package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
- package/dist-lib/components/fields/JsonField.d.ts +0 -3
- package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
- package/dist-lib/components/fields/NumberField.d.ts +0 -2
- package/dist-lib/components/fields/PasswordField.d.ts +0 -2
- package/dist-lib/components/fields/PhoneField.d.ts +0 -2
- package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
- package/dist-lib/components/fields/RefField.d.ts +0 -2
- package/dist-lib/components/fields/RichTextField.d.ts +0 -2
- package/dist-lib/components/fields/SecretField.d.ts +0 -2
- package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
- package/dist-lib/components/fields/StringField.d.ts +0 -2
- package/dist-lib/components/fields/StructureField.d.ts +0 -2
- package/dist-lib/components/fields/TextField.d.ts +0 -2
- package/dist-lib/components/fields/TimestampField.d.ts +0 -2
- package/dist-lib/components/fields/UrlField.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
- package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
- package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
- package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
- package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
- package/dist-lib/components/fields/cells/registry.d.ts +0 -21
- package/dist-lib/components/fields/index.d.ts +0 -28
- package/dist-lib/components/fields/langMap.d.ts +0 -2
- package/dist-lib/components/fields/secretValue.d.ts +0 -2
- package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
- package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
- package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
- package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
- package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
- package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
- package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
- package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
- package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
- package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
- package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
- package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
- package/dist-lib/components/file-widgets/host.d.ts +0 -28
- package/dist-lib/components/file-widgets/index.d.ts +0 -16
- package/dist-lib/components/file-widgets/payload.d.ts +0 -21
- package/dist-lib/components/file-widgets/registry.d.ts +0 -5
- package/dist-lib/components/file-widgets/types.d.ts +0 -17
- package/dist-lib/components/file-widgets/upload.d.ts +0 -45
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
- package/dist-lib/components/file-widgets/value.d.ts +0 -4
- package/dist-lib/components/filters/FilterChips.d.ts +0 -14
- package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
- package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
- package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
- package/dist-lib/components/layout/Layout.d.ts +0 -6
- package/dist-lib/components/layout/Rail.d.ts +0 -22
- package/dist-lib/components/layout/Sidebar.d.ts +0 -12
- package/dist-lib/components/layout/TabStrip.d.ts +0 -6
- package/dist-lib/components/layout/TenantChip.d.ts +0 -26
- package/dist-lib/components/layout/TopBar.d.ts +0 -22
- package/dist-lib/components/layout/tab-close.d.ts +0 -13
- package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
- package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
- package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
- package/dist-lib/components/list/QuickPeek.d.ts +0 -59
- package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
- package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
- package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
- package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
- package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
- package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
- package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
- package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
- package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
- package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
- package/dist-lib/components/pages/auth/icons.d.ts +0 -6
- package/dist-lib/components/pages/exportRequest.d.ts +0 -69
- package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
- package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
- package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
- package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
- package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
- package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
- package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
- package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
- package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
- package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
- package/dist-lib/components/pages/list/columns.d.ts +0 -46
- package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
- package/dist-lib/components/pages/list/page-size.d.ts +0 -3
- package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
- package/dist-lib/components/pages/list/table-features.d.ts +0 -14
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
- package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
- package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
- package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
- package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
- package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
- package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
- package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
- package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
- package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
- package/dist-lib/components/params/param-editors.d.ts +0 -20
- package/dist-lib/components/primitives/Avatar.d.ts +0 -6
- package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
- package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
- package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
- package/dist-lib/components/primitives/Btn.d.ts +0 -19
- package/dist-lib/components/primitives/Check.d.ts +0 -7
- package/dist-lib/components/primitives/Chip.d.ts +0 -9
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
- package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
- package/dist-lib/components/primitives/Fields.d.ts +0 -111
- package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
- package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
- package/dist-lib/components/primitives/Icons.d.ts +0 -136
- package/dist-lib/components/primitives/Kbd.d.ts +0 -4
- package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
- package/dist-lib/components/primitives/Pill.d.ts +0 -11
- package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
- package/dist-lib/components/primitives/RowField.d.ts +0 -10
- package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
- package/dist-lib/components/primitives/Spinner.d.ts +0 -3
- package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
- package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
- package/dist-lib/components/primitives/index.d.ts +0 -37
- package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
- package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
- package/dist-lib/components/shared/CopyButton.d.ts +0 -8
- package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
- package/dist-lib/components/shared/EmptyState.d.ts +0 -9
- package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
- package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
- package/dist-lib/components/shared/Markdown.d.ts +0 -3
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
- package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
- package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
- package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
- package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
- package/dist-lib/embed/EmbedContext.d.ts +0 -50
- package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
- package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
- package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
- package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
- package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
- package/dist-lib/embed/embed-dirty.d.ts +0 -24
- package/dist-lib/embed/embed-history.d.ts +0 -19
- package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
- package/dist-lib/embed/file-src.d.ts +0 -63
- package/dist-lib/embed/handshake.d.ts +0 -57
- package/dist-lib/embed/index.d.ts +0 -19
- package/dist-lib/embed/params.d.ts +0 -75
- package/dist-lib/embed/protocol.d.ts +0 -165
- package/dist-lib/embed/screen-location.d.ts +0 -50
- package/dist-lib/embed/theme.d.ts +0 -34
- package/dist-lib/embed/token.d.ts +0 -57
- package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
- package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
- package/dist-lib/failure-BUxXuP4c.js +0 -158
- package/dist-lib/format-count-bXVfHzbI.js +0 -1771
- package/dist-lib/hooks/useActionData.d.ts +0 -61
- package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
- package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
- package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
- package/dist-lib/hooks/useAuth.d.ts +0 -22
- package/dist-lib/hooks/useBranding.d.ts +0 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
- package/dist-lib/hooks/useChildrenData.d.ts +0 -3
- package/dist-lib/hooks/useColumns.d.ts +0 -13
- package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
- package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
- package/dist-lib/hooks/useDebounce.d.ts +0 -1
- package/dist-lib/hooks/useEntity.d.ts +0 -2
- package/dist-lib/hooks/useEntityData.d.ts +0 -41
- package/dist-lib/hooks/useFilters.d.ts +0 -14
- package/dist-lib/hooks/useImpersonation.d.ts +0 -23
- package/dist-lib/hooks/useLanguage.d.ts +0 -4
- package/dist-lib/hooks/useLiveObject.d.ts +0 -9
- package/dist-lib/hooks/useLongPress.d.ts +0 -29
- package/dist-lib/hooks/useMutations.d.ts +0 -13
- package/dist-lib/hooks/useObject.d.ts +0 -11
- package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
- package/dist-lib/hooks/usePageState.d.ts +0 -32
- package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
- package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
- package/dist-lib/hooks/useParams.d.ts +0 -49
- package/dist-lib/hooks/useProperties.d.ts +0 -5
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
- package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
- package/dist-lib/hooks/useSSE.d.ts +0 -31
- package/dist-lib/hooks/useSchema.d.ts +0 -1
- package/dist-lib/hooks/useScreen.d.ts +0 -2
- package/dist-lib/hooks/useScreenBack.d.ts +0 -21
- package/dist-lib/hooks/useScreenTab.d.ts +0 -10
- package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
- package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
- package/dist-lib/hooks/useTabTitle.d.ts +0 -2
- package/dist-lib/hooks/useText.d.ts +0 -3
- package/dist-lib/hooks/useTimelineData.d.ts +0 -10
- package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
- package/dist-lib/hooks/useViews.d.ts +0 -26
- package/dist-lib/lib/action-dispatch.d.ts +0 -8
- package/dist-lib/lib/actions.d.ts +0 -254
- package/dist-lib/lib/anchor.d.ts +0 -36
- package/dist-lib/lib/brand-tokens.d.ts +0 -43
- package/dist-lib/lib/branding.d.ts +0 -20
- package/dist-lib/lib/canonical-url.d.ts +0 -27
- package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
- package/dist-lib/lib/child-config.d.ts +0 -24
- package/dist-lib/lib/children-validation.d.ts +0 -5
- package/dist-lib/lib/decimal-text.d.ts +0 -1
- package/dist-lib/lib/display-value.d.ts +0 -1
- package/dist-lib/lib/document-templates.d.ts +0 -11
- package/dist-lib/lib/download.d.ts +0 -21
- package/dist-lib/lib/evidence-verdict.d.ts +0 -11
- package/dist-lib/lib/failure.d.ts +0 -2
- package/dist-lib/lib/field-classification.d.ts +0 -61
- package/dist-lib/lib/field-regions.d.ts +0 -8
- package/dist-lib/lib/filter-evaluator.d.ts +0 -16
- package/dist-lib/lib/filters.d.ts +0 -93
- package/dist-lib/lib/format-count.d.ts +0 -41
- package/dist-lib/lib/html-state.d.ts +0 -11
- package/dist-lib/lib/language.d.ts +0 -19
- package/dist-lib/lib/longPressGesture.d.ts +0 -55
- package/dist-lib/lib/mass-edit.d.ts +0 -32
- package/dist-lib/lib/page-inset.d.ts +0 -3
- package/dist-lib/lib/quick-add.d.ts +0 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
- package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
- package/dist-lib/lib/realtime-resync.d.ts +0 -23
- package/dist-lib/lib/record-documents-key.d.ts +0 -1
- package/dist-lib/lib/rich-text.d.ts +0 -14
- package/dist-lib/lib/rowClickGesture.d.ts +0 -26
- package/dist-lib/lib/safe-url.d.ts +0 -15
- package/dist-lib/lib/schema-routing.d.ts +0 -3
- package/dist-lib/lib/screen-back.d.ts +0 -70
- package/dist-lib/lib/scroll-restoration.d.ts +0 -90
- package/dist-lib/lib/size-value.d.ts +0 -16
- package/dist-lib/lib/sort.d.ts +0 -72
- package/dist-lib/lib/timestamp.d.ts +0 -53
- package/dist-lib/lib/toast.d.ts +0 -49
- package/dist-lib/lib/ui-actions.d.ts +0 -12
- package/dist-lib/lib/utils.d.ts +0 -9
- package/dist-lib/lib/variants.d.ts +0 -7
- package/dist-lib/lib/versionTracker.d.ts +0 -72
- package/dist-lib/lib/viewport-category.d.ts +0 -44
- package/dist-lib/main.d.ts +0 -1
- package/dist-lib/registry-nSeHd5si.js +0 -1956
- package/dist-lib/safe-url-oSJw5pzO.js +0 -34
- package/dist-lib/stores/auth.d.ts +0 -16
- package/dist-lib/stores/list-layout.d.ts +0 -85
- package/dist-lib/stores/page-state.d.ts +0 -61
- package/dist-lib/stores/preferences.d.ts +0 -37
- package/dist-lib/stores/realtime.d.ts +0 -96
- package/dist-lib/stores/screen-registry.d.ts +0 -17
- package/dist-lib/stores/tabs.d.ts +0 -73
- package/dist-lib/types/api.d.ts +0 -579
- package/dist-lib/types/fieldType.d.ts +0 -2
- package/dist-lib/types/files.d.ts +0 -79
- package/dist-lib/types/ordmap.d.ts +0 -39
- package/dist-lib/types/schema.d.ts +0 -1089
- package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
- package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
- package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
- package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
- package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
- package/dist-lib/useText-BsedsJ-J.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ChildDisplayMode, ChildQuickAdd, ChildRelation, CardsConfig, Entity, LayoutNode, LocalizedString, TimelineConfig } from "../types/schema.d.ts";
|
|
2
|
-
export interface ResolvedChildConfig {
|
|
3
|
-
entity: string;
|
|
4
|
-
foreign_key: string | string[];
|
|
5
|
-
name: LocalizedString;
|
|
6
|
-
icon: string;
|
|
7
|
-
mode: ChildDisplayMode;
|
|
8
|
-
columns: string[];
|
|
9
|
-
sort: string;
|
|
10
|
-
limit: number;
|
|
11
|
-
timeline?: TimelineConfig;
|
|
12
|
-
cards?: CardsConfig;
|
|
13
|
-
quick_add?: ChildQuickAdd;
|
|
14
|
-
editable: boolean;
|
|
15
|
-
position_field?: string;
|
|
16
|
-
interaction: "navigate" | "inline_edit" | "row_edit" | "readonly";
|
|
17
|
-
}
|
|
18
|
-
export declare function resolveChildConfig(relation: ChildRelation, childEntity: Entity, screenNode?: LayoutNode): ResolvedChildConfig;
|
|
19
|
-
export declare function inferSort(entity: Entity): string;
|
|
20
|
-
export declare function inferColumns(entity: Entity, fk: string | string[]): string[];
|
|
21
|
-
export declare function inferTimelineFields(tc: TimelineConfig, entity: Entity): TimelineConfig;
|
|
22
|
-
export declare function findPrimaryKey(entity: Entity): string | undefined;
|
|
23
|
-
export declare function findPrimaryKeys(entity: Entity): string[];
|
|
24
|
-
export declare function findChildRelation(parentEntity: Entity, childCode: string): ChildRelation | undefined;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Entity, Schema } from "../types/schema.d.ts";
|
|
2
|
-
import type { PendingChildRow } from "../components/detail-layout/LayoutRenderer.d.ts";
|
|
3
|
-
export declare function findMissingRequiredFields(entity: Entity, formData: Record<string, unknown>, isNew: boolean): string[];
|
|
4
|
-
export declare function findInvalidEmailFields(entity: Entity, formData: Record<string, unknown>): string[];
|
|
5
|
-
export declare function validatePendingChildren(pendingChildren: Record<string, PendingChildRow[]> | undefined, schema: Schema | undefined): Record<string, Record<string, string[]>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatDecimalText(value: string, formatter: Intl.NumberFormat): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function coerceDisplayString(value: unknown): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Schema } from "../types/schema.d.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Heuristic used by DocumentsMenu mount sites to decide whether the caller
|
|
4
|
-
* can manage TENANT document templates: the `document_template` entity is
|
|
5
|
-
* present in the projected schema (schema.entities is already RBAC-pruned -
|
|
6
|
-
* `document_template` appears only when the caller can read it). Gates the
|
|
7
|
-
* lazy `document.templates.available` tenant-template visibility probe so a
|
|
8
|
-
* caller who cannot manage templates never fires it, which is the default.
|
|
9
|
-
* One shared predicate so SmartDetailPage and SmartListPage agree.
|
|
10
|
-
*/
|
|
11
|
-
export declare function canManageDocumentTemplates(schema: Schema | undefined): boolean;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TextFn } from "./language.d.ts";
|
|
2
|
-
export declare class DownloadError extends Error {
|
|
3
|
-
readonly code?: string | undefined;
|
|
4
|
-
constructor(message: string, code?: string | undefined);
|
|
5
|
-
}
|
|
6
|
-
/** True when `err` is the download failing because the underlying blob is
|
|
7
|
-
* gone (purged, superseded, never generated). Callers use this to disable a
|
|
8
|
-
* dead Download button instead of leaving it re-clickable against nothing. */
|
|
9
|
-
export declare function isMissingArtifactError(err: unknown): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Fetches `url` as an authenticated (same-origin cookie) request, then
|
|
12
|
-
* triggers a browser download of the resulting blob. Refuses any URL whose
|
|
13
|
-
* scheme is not in the safeExternalUrl allowlist (http/https/mailto/relative)
|
|
14
|
-
* BEFORE issuing the fetch - a `javascript:`/`data:` URL never reaches
|
|
15
|
-
* `fetch` or an anchor's `href`.
|
|
16
|
-
*
|
|
17
|
-
* Blob-fetch (not a bare `<a href>`) so a non-2xx response (404 FILE_NOT_FOUND,
|
|
18
|
-
* 403, etc.) surfaces as a thrown DownloadError instead of silently
|
|
19
|
-
* navigating the browser to an error page.
|
|
20
|
-
*/
|
|
21
|
-
export declare function downloadFile(errorTitle: TextFn, url: string, filename?: string): Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PillTone } from "../components/primitives/Pill.d.ts";
|
|
2
|
-
import type { TextFn } from "./language.d.ts";
|
|
3
|
-
export declare const EVIDENCE_VERDICT: {
|
|
4
|
-
readonly verified: "verified";
|
|
5
|
-
readonly unverified: "unverified";
|
|
6
|
-
readonly tampered: "tampered";
|
|
7
|
-
readonly indeterminate: "indeterminate";
|
|
8
|
-
readonly outsideCoverage: "outside_coverage";
|
|
9
|
-
};
|
|
10
|
-
export declare function verdictLabel(t: TextFn, verdict: string): string;
|
|
11
|
-
export declare function verdictTone(verdict: string): PillTone;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { Entity, FieldAccessInfo, ClassificationTierDef, Schema } from "../types/schema";
|
|
2
|
-
import type { FilterNode } from "./filters";
|
|
3
|
-
/**
|
|
4
|
-
* isFieldReadable returns true when the caller can see the field's
|
|
5
|
-
* value. Non-classified fields are always readable (no entry in
|
|
6
|
-
* field_access). Classified fields are readable when field_access
|
|
7
|
-
* marks read="granted".
|
|
8
|
-
*/
|
|
9
|
-
export declare function isFieldReadable(entity: Pick<Entity, "field_access"> | undefined, fieldName: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* isFieldWritable returns true when the caller can submit a new value
|
|
12
|
-
* for the field. Form components disable input + show a lock badge
|
|
13
|
-
* when this returns false. Non-classified fields are always writable
|
|
14
|
-
* (gating happens via entity-level RBAC at the HTTP layer).
|
|
15
|
-
*/
|
|
16
|
-
export declare function isFieldWritable(entity: Entity | undefined, fieldName: string): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* fieldClassification returns the classification tier code gating
|
|
19
|
-
* the field, or undefined when the field is non-classified. Lets
|
|
20
|
-
* UI code render a tier badge without re-implementing the field_access
|
|
21
|
-
* lookup.
|
|
22
|
-
*/
|
|
23
|
-
export declare function fieldClassification(entity: Entity | undefined, fieldName: string): string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* fieldRequiredPermission returns the exact grant string an
|
|
26
|
-
* administrator must add to a role to unlock the field for the
|
|
27
|
-
* current caller. Returns undefined when the field is readable +
|
|
28
|
-
* writable (no hint needed).
|
|
29
|
-
*/
|
|
30
|
-
export declare function fieldRequiredPermission(entity: Entity | undefined, fieldName: string): string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* classificationTier returns the localized tier metadata for a field
|
|
33
|
-
* (display name, description, audit_on_read flag, icon). Resolves
|
|
34
|
-
* via the top-level schema.classifications map. Returns undefined when
|
|
35
|
-
* the field is non-classified or the tier code is unknown in the
|
|
36
|
-
* catalog (defense — points at a misconfigured registry).
|
|
37
|
-
*/
|
|
38
|
-
export declare function classificationTier(schema: Schema | undefined, entity: Entity | undefined, fieldName: string): ClassificationTierDef | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* isFieldSoDProtected reports whether the field's tier carries
|
|
41
|
-
* sod_protected:true in the catalog. Used by UI to surface a stronger
|
|
42
|
-
* visual treatment (e.g. red lock vs. grey lock) for tiers that
|
|
43
|
-
* trigger the stricter SoD controls (superadmin-bypass-disabled
|
|
44
|
-
* tenants, role self-assignment refusal, etc).
|
|
45
|
-
*/
|
|
46
|
-
export declare function isFieldSoDProtected(schema: Schema | undefined, entity: Entity | undefined, fieldName: string): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* fieldAccessInfo returns the raw FieldAccessInfo entry for a field,
|
|
49
|
-
* or undefined when the field is non-classified. Convenience for
|
|
50
|
-
* components that need the full structure (e.g. a tooltip rendering
|
|
51
|
-
* both classification name + required_permission hint).
|
|
52
|
-
*/
|
|
53
|
-
export declare function fieldAccessInfo(entity: Entity | undefined, fieldName: string): FieldAccessInfo | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* The server refuses a filter, sort or search naming a field the caller may not
|
|
56
|
-
* read (`classification.field_unreadable`). A DECLARED default the SDK sends -
|
|
57
|
-
* `sort_default`, a view, `options_filter` - is trimmed to what the caller may read.
|
|
58
|
-
*/
|
|
59
|
-
export declare function isQueryFieldReadable(entity: Pick<Entity, "field_access"> | undefined, code: string): boolean;
|
|
60
|
-
export declare function readableSort(entity: Pick<Entity, "field_access"> | undefined, sort: string | undefined): string | undefined;
|
|
61
|
-
export declare function readableFilters(entity: Pick<Entity, "field_access"> | undefined, nodes: FilterNode[]): FilterNode[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface FieldRegion {
|
|
2
|
-
getField: (fieldName: string) => unknown;
|
|
3
|
-
setField: (fieldName: string, value: unknown) => void;
|
|
4
|
-
focusField: (fieldName: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function registerFieldRegion(name: string, region: FieldRegion): () => void;
|
|
7
|
-
export declare function getFieldRegion(name: string): FieldRegion | undefined;
|
|
8
|
-
export declare function useFieldRegion(name: string, region: FieldRegion): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FilterNode } from "./filters";
|
|
2
|
-
/** Metadata needed to evaluate a record-only filter condition. */
|
|
3
|
-
export interface FilterRecordField {
|
|
4
|
-
type: "string" | "text" | "rich_text" | "email" | "url" | "phone" | "enum" | "int" | "float" | "decimal" | "date" | "timestamp" | "time" | "bool" | "ref" | "uuid" | (string & {});
|
|
5
|
-
}
|
|
6
|
-
export type FilterRecordFields = Readonly<Record<string, FilterRecordField>>;
|
|
7
|
-
export type FilterRecord = Readonly<Record<string, unknown>>;
|
|
8
|
-
/**
|
|
9
|
-
* Evaluate a loader-validated filter tree against one already-loaded record.
|
|
10
|
-
*
|
|
11
|
-
* This deliberately accepts only the deterministic record subset: it has no
|
|
12
|
-
* caller, clock, relation lookup, or value coercion input. A missing field is
|
|
13
|
-
* the same as null for `is_empty`; every other operator returns false for a
|
|
14
|
-
* missing, null, or empty value.
|
|
15
|
-
*/
|
|
16
|
-
export declare function evaluateFilterTree(nodes: FilterNode[], fields: FilterRecordFields, record: FilterRecord): boolean;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/** A single node in the recursive filter tree. */
|
|
2
|
-
export interface FilterNode {
|
|
3
|
-
/** Field condition */
|
|
4
|
-
field?: string;
|
|
5
|
-
op?: FilterOp;
|
|
6
|
-
value?: unknown;
|
|
7
|
-
/** OR group: child nodes are OR-ed. */
|
|
8
|
-
or?: FilterNode[];
|
|
9
|
-
/** Explicit AND group (rarely needed, top-level is implicit AND) */
|
|
10
|
-
and?: FilterNode[];
|
|
11
|
-
}
|
|
12
|
-
/** All supported filter operator codes. */
|
|
13
|
-
export type FilterOp = "eq" | "not_eq" | "gt" | "gte" | "lt" | "lte" | "in" | "not_in" | "between" | "contains" | "starts_with" | "is_empty" | "is_not_empty" | "today" | "this_week" | "this_month" | "last_7_days" | "last_30_days" | "last_hour" | "last_24_hours";
|
|
14
|
-
/**
|
|
15
|
-
* Resolution status of one filter value, produced by the filter-value label
|
|
16
|
-
* resolver (`useFilterValueLabels`). `special` / `resolved` carry a `label`
|
|
17
|
-
* and are terminal-synchronous (no flicker); `loading` is a ref fetch in
|
|
18
|
-
* flight (render a skeleton, never the raw uuid); `unresolved` is a ref that
|
|
19
|
-
* could not be labeled (deleted / no access); `plain` is a literal/number/date
|
|
20
|
-
* (rendered raw, as before).
|
|
21
|
-
*/
|
|
22
|
-
export type FilterValueStatus = "special" | "resolved" | "loading" | "unresolved" | "plain";
|
|
23
|
-
/** Resolver result for one `(field, value)`: a label when known, the raw
|
|
24
|
-
* coerced value always (the terminal fallback). */
|
|
25
|
-
export interface FilterValueLabel {
|
|
26
|
-
status: FilterValueStatus;
|
|
27
|
-
label?: string;
|
|
28
|
-
raw: string;
|
|
29
|
-
}
|
|
30
|
-
/** Maps one stored filter `(field, value)` to its human label. The single
|
|
31
|
-
* source of chip + drawer value labels; see `useFilterValueLabels`. */
|
|
32
|
-
export type FilterValueResolver = (field: string, value: unknown) => FilterValueLabel;
|
|
33
|
-
/** Operators that don't take a value. */
|
|
34
|
-
export declare const NO_VALUE_OPS: Set<FilterOp>;
|
|
35
|
-
/** Operators whose value is a LIST of values ("is any of" / "is none of"): the
|
|
36
|
-
* editor renders a multi-select and the stored value is an array. Keeping this
|
|
37
|
-
* declared (not hardcoded in the drawer) lets every layer agree on which ops
|
|
38
|
-
* carry arrays. */
|
|
39
|
-
export declare const MULTI_VALUE_OPS: Set<FilterOp>;
|
|
40
|
-
/** Human-friendly display names for operators. */
|
|
41
|
-
export declare const OP_LABELS: Record<FilterOp, string>;
|
|
42
|
-
export type FilterURLErrorCode = "filter.url_not_json" | "filter.url_not_tree";
|
|
43
|
-
export declare class FilterURLError extends Error {
|
|
44
|
-
readonly code: FilterURLErrorCode;
|
|
45
|
-
constructor(code: FilterURLErrorCode, message: string);
|
|
46
|
-
}
|
|
47
|
-
export interface FilterURLState {
|
|
48
|
-
filters: FilterNode[];
|
|
49
|
-
error: string | null;
|
|
50
|
-
errorCode: FilterURLErrorCode | null;
|
|
51
|
-
}
|
|
52
|
-
/** Parse filters from URL search params (JSON `filters` param). */
|
|
53
|
-
export declare function parseFilterURLState(searchParams: URLSearchParams): FilterURLState;
|
|
54
|
-
/** Parse the final tree and reject malformed URL state instead of treating it as no filter. */
|
|
55
|
-
export declare function parseFiltersFromURL(searchParams: URLSearchParams): FilterNode[];
|
|
56
|
-
/** True when two filter trees say the same thing. */
|
|
57
|
-
export declare function filtersEqual(a: FilterNode[], b: FilterNode[]): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Write filters to URL search params.
|
|
60
|
-
*
|
|
61
|
-
* The parameter is present only while the tree differs from `defaults` - what
|
|
62
|
-
* this list resolves to with no `filters` in the URL, which is the active
|
|
63
|
-
* view's tree on a list screen and nothing anywhere else. So an empty tree is
|
|
64
|
-
* an OVERRIDE where a view supplies conditions (`filters=[]`, no conditions)
|
|
65
|
-
* and an absence where nothing does.
|
|
66
|
-
*/
|
|
67
|
-
export declare function setFiltersInURL(filters: FilterNode[], searchParams: URLSearchParams, defaults?: FilterNode[]): void;
|
|
68
|
-
/**
|
|
69
|
-
* Convert FilterNode array to API query params.
|
|
70
|
-
* Uses the JSON `filters` param for the API request.
|
|
71
|
-
*/
|
|
72
|
-
export declare function filtersToApiParams(filters: FilterNode[]): URLSearchParams;
|
|
73
|
-
/** Check if the filter tree has any OR groups. */
|
|
74
|
-
export declare function hasOrGroups(nodes: FilterNode[]): boolean;
|
|
75
|
-
/** Extract flat field conditions from a FilterNode array (ignoring OR/AND structure). */
|
|
76
|
-
export declare function flatFieldConditions(nodes: FilterNode[]): FilterNode[];
|
|
77
|
-
/** Count active field conditions in the filter tree. */
|
|
78
|
-
export declare function countActiveFilters(nodes: FilterNode[]): number;
|
|
79
|
-
/**
|
|
80
|
-
* Format a filter node for chip display as a string (op label + value).
|
|
81
|
-
*
|
|
82
|
-
* When a `resolveValue` resolver is passed, each value is humanized to its
|
|
83
|
-
* label for the synchronous statuses (`special` / `resolved`) and falls back
|
|
84
|
-
* to the raw value otherwise. Without a resolver, values render raw exactly as
|
|
85
|
-
* before. This string form is used in OR-group joins and as a fallback; the
|
|
86
|
-
* single-chip renderer (`FilterChips`) uses a richer per-value renderer that
|
|
87
|
-
* also shows a skeleton while a ref label loads.
|
|
88
|
-
*/
|
|
89
|
-
export declare function formatFilterChip(node: FilterNode, resolveValue?: FilterValueResolver): string;
|
|
90
|
-
/** Create a simple equality filter node. */
|
|
91
|
-
export declare function eqFilter(field: string, value: string): FilterNode;
|
|
92
|
-
/** Remove a filter node by field name, recursing through the final tree. */
|
|
93
|
-
export declare function removeFilter(nodes: FilterNode[], field: string): FilterNode[];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Row-count formatting for list views. Display precision MUST match data
|
|
3
|
-
* accuracy:
|
|
4
|
-
*
|
|
5
|
-
* - an exact count renders to the unit with thousands separators
|
|
6
|
-
* (3,613,711) - it is known precisely;
|
|
7
|
-
* - an estimate renders coarse (~3.6M) - showing an estimate to the unit
|
|
8
|
-
* is false precision and is wrong.
|
|
9
|
-
*
|
|
10
|
-
* This is the single shared count formatter; the SDK has no other. Field
|
|
11
|
-
* cell factories that call `toLocaleString` for per-cell numbers are a
|
|
12
|
-
* separate concern and are not routed through here.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* formatEstimatedCount renders a coarse estimate: a `~` prefix, ~2
|
|
16
|
-
* significant figures, and the magnitude suffix of Intl compact notation in
|
|
17
|
-
* `language` (K/M/B in English, "mil"/"M" in Spanish, "тыс."/"млн" in Russian).
|
|
18
|
-
*
|
|
19
|
-
* 3_613_711 -> "~3.6M"
|
|
20
|
-
* 850_000 -> "~850K"
|
|
21
|
-
* 12_000 -> "~12K"
|
|
22
|
-
* 940 -> "~940" (below 1000: no suffix, the ~ still signals an estimate)
|
|
23
|
-
*
|
|
24
|
-
* Two significant figures: a value's first 2 digits are kept and the rest
|
|
25
|
-
* collapse to the magnitude suffix. 3_613_711 -> 3.6M (one decimal because
|
|
26
|
-
* the leading digit is single); 12_000 -> 12K (no decimal because 2 leading
|
|
27
|
-
* digits already give 2 sig figs).
|
|
28
|
-
*/
|
|
29
|
-
export declare function formatEstimatedCount(total: number, language?: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* formatExactCount renders an exact count to the unit with the thousands
|
|
32
|
-
* separators of `language`: 3613711 -> "3,613,711" in English.
|
|
33
|
-
*/
|
|
34
|
-
export declare function formatExactCount(total: number, language?: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* formatCount picks the rendering by the count strategy actually used to
|
|
37
|
-
* produce `total` (the server's `meta.count_mode`), NOT the entity schema:
|
|
38
|
-
* a forced exact count must render exact even on a `count: estimated`
|
|
39
|
-
* entity.
|
|
40
|
-
*/
|
|
41
|
-
export declare function formatCount(total: number, mode: "exact" | "estimated", language?: string): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** The device class the SDK renders for. Mirrors ViewportCategory. */
|
|
2
|
-
export type HtmlViewport = "phone" | "tablet" | "desktop";
|
|
3
|
-
export declare function applyViewportAttribute(viewport: HtmlViewport): void;
|
|
4
|
-
/**
|
|
5
|
-
* Mark the document as an embed. Written once at boot: `?embed=1` is a boot
|
|
6
|
-
* property of the document, not a value that changes while it lives.
|
|
7
|
-
*
|
|
8
|
-
* Always written, `"false"` included, so a consumer can select on either state
|
|
9
|
-
* without an `:not()` and without depending on the attribute's absence.
|
|
10
|
-
*/
|
|
11
|
-
export declare function applyEmbedAttribute(enabled: boolean): void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { LocalizedString } from "../types/schema.d.ts";
|
|
3
|
-
export declare const MANDATORY_LANGUAGE = "en";
|
|
4
|
-
export declare const LANGUAGE_PARAMETER = "ui_language";
|
|
5
|
-
export declare function pickLocalizedEntry(ls: LocalizedString | null | undefined, language: string, deploymentLanguage: string): [code: string, value: string] | undefined;
|
|
6
|
-
export declare function pickLocalized(ls: LocalizedString | null | undefined, language: string, deploymentLanguage: string): string | undefined;
|
|
7
|
-
export type TextVars = Record<string, string | number>;
|
|
8
|
-
export interface TextFn {
|
|
9
|
-
(code: string, fallback: string, vars?: TextVars): string;
|
|
10
|
-
(value: LocalizedString | null | undefined): string;
|
|
11
|
-
readonly language: string;
|
|
12
|
-
readonly deploymentLanguage: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function makeTextFn(messages: Record<string, LocalizedString> | undefined, language: string, deploymentLanguage: string): TextFn;
|
|
15
|
-
export declare function pluralText(t: TextFn, code: string, count: number, english: {
|
|
16
|
-
one: string;
|
|
17
|
-
other: string;
|
|
18
|
-
}, more?: TextVars): string;
|
|
19
|
-
export declare function textWithNodes(text: string, nodes: Record<string, ReactNode>): ReactNode[];
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How long a press is held before it becomes a Row Menu request. 500ms is what
|
|
3
|
-
* Android and iOS both use for their own long-press, so a user's thumb already
|
|
4
|
-
* knows this number.
|
|
5
|
-
*/
|
|
6
|
-
export declare const LONG_PRESS_HOLD_MS = 500;
|
|
7
|
-
/**
|
|
8
|
-
* How far the pointer may drift and still be a press. Past this the gesture is a
|
|
9
|
-
* scroll, and a list that opens menus while the user is scrolling it is worse
|
|
10
|
-
* than one with no long-press at all.
|
|
11
|
-
*/
|
|
12
|
-
export declare const LONG_PRESS_MOVE_TOLERANCE_PX = 10;
|
|
13
|
-
/** Where a press started. `null` means no press is in progress. */
|
|
14
|
-
export type PressOrigin = {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
} | null;
|
|
18
|
-
export type LongPressInput = {
|
|
19
|
-
type: "down";
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
}
|
|
23
|
-
/** Pointer moved, or the surface under it scrolled. */
|
|
24
|
-
| {
|
|
25
|
-
type: "move";
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
}
|
|
29
|
-
/** Released, cancelled by the OS, or the element lost the pointer. */
|
|
30
|
-
| {
|
|
31
|
-
type: "release";
|
|
32
|
-
}
|
|
33
|
-
/** The hold timer elapsed. */
|
|
34
|
-
| {
|
|
35
|
-
type: "held";
|
|
36
|
-
};
|
|
37
|
-
export type LongPressOutcome =
|
|
38
|
-
/** A press is in progress; keep the timer running. */
|
|
39
|
-
"pending"
|
|
40
|
-
/** No press is in progress; cancel any timer. */
|
|
41
|
-
| "idle"
|
|
42
|
-
/** Open the Row Menu at the press origin. */
|
|
43
|
-
| "fire";
|
|
44
|
-
export interface LongPressStep {
|
|
45
|
-
origin: PressOrigin;
|
|
46
|
-
outcome: LongPressOutcome;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Advances the gesture. Returns the new origin and what the caller should do.
|
|
50
|
-
*
|
|
51
|
-
* A `held` without an origin cannot fire: the timer is cleared on every exit,
|
|
52
|
-
* but a timer that has already been queued when the press ends would otherwise
|
|
53
|
-
* open a menu after the user let go.
|
|
54
|
-
*/
|
|
55
|
-
export declare function stepLongPress(origin: PressOrigin, input: LongPressInput, tolerance?: number): LongPressStep;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Entity, EntityField, PropertyDef, StatusGroupDef } from "../types/schema.d.ts";
|
|
2
|
-
import type { TextFn } from "./language.d.ts";
|
|
3
|
-
/** Target kinds mirror engine.MassEditTargetKind in Go. */
|
|
4
|
-
export type MassEditTargetKind = "field" | "status" | "property";
|
|
5
|
-
/** Metadata a property-grid row needs to render a target + editable value cell. */
|
|
6
|
-
export interface MassEditTarget {
|
|
7
|
-
/** Picker key — bare field code, or `$status.<group>` / `$property.<code>`. */
|
|
8
|
-
code: string;
|
|
9
|
-
/** Bare identifier (without prefix) — "priority", "approval", "color". */
|
|
10
|
-
bare: string;
|
|
11
|
-
kind: MassEditTargetKind;
|
|
12
|
-
label: string;
|
|
13
|
-
/** For field targets, the underlying EntityField drives the value renderer. */
|
|
14
|
-
field?: EntityField;
|
|
15
|
-
/** For status targets, the group definition drives the status-picker options. */
|
|
16
|
-
statusGroup?: StatusGroupDef;
|
|
17
|
-
/** For property targets, the property definition drives type/widget/ref. */
|
|
18
|
-
property?: PropertyDef;
|
|
19
|
-
}
|
|
20
|
-
/** Parse `HandlerParam.Filter["targets"]` into a list of allowed keys. */
|
|
21
|
-
export declare function parseTargetFilter(raw: string | undefined): string[];
|
|
22
|
-
/**
|
|
23
|
-
* Build the list of writable mass-edit targets for an entity.
|
|
24
|
-
* - When `whitelist` is set, narrows to those keys only (preserves the
|
|
25
|
-
* order in the whitelist so action authors can curate a picker order).
|
|
26
|
-
* - Without a whitelist, emits every non-PK, non-auto field plus all
|
|
27
|
-
* status groups and properties (when not composite PK). Matches the
|
|
28
|
-
* engine-side BuildMassEditTargets contract.
|
|
29
|
-
* - entities without generic update globally hide every target (UI mirrors
|
|
30
|
-
* the server gate; the dispatcher still enforces permissions).
|
|
31
|
-
*/
|
|
32
|
-
export declare function buildMassEditTargets(t: TextFn, entity: Entity | undefined, whitelistRaw?: string | string[]): MassEditTarget[];
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare function buildQuickAddPayload(fieldValues: Record<string, unknown>, defaults: Record<string, unknown> | undefined, foreignKey: string | string[], parentId: string | string[]): Record<string, unknown>;
|
|
2
|
-
export declare function isQuickAddReady(fieldValues: Record<string, unknown>, requiredFields: string[]): boolean;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every list-shaped cache the SDK ships. The REFETCH-ONLY kind is the cursor
|
|
3
|
-
* list, whose cold tables a key does not prune.
|
|
4
|
-
*/
|
|
5
|
-
export declare const NARROWED_LIST_CACHE_KEYS: readonly ["entity-data", "entity-data-all"];
|
|
6
|
-
export declare const REFETCH_ONLY_LIST_CACHE_KEYS: readonly ["entity-data-cursor"];
|
|
7
|
-
export declare const LIST_CACHE_KEYS: readonly string[];
|
|
8
|
-
/**
|
|
9
|
-
* The entity code backing RecordDocumentsPanel's realtime flip, declared once
|
|
10
|
-
* so the "generated_document" ↔ RECORD_DOCUMENTS_KEY link is a single fact.
|
|
11
|
-
*/
|
|
12
|
-
export declare const GENERATED_DOCUMENT_ENTITY = "generated_document";
|
|
13
|
-
export declare function isListCacheKey(key: readonly unknown[]): boolean;
|
|
14
|
-
export declare function isRefetchOnlyListKey(key: readonly unknown[]): boolean;
|
|
15
|
-
/** A list, count or detail cache: the queries whose rows ARE an entity's rows. */
|
|
16
|
-
export declare function isEntityRowsKey(key: readonly unknown[]): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The entity whose frames keep this cache fresh, or null when realtime does not
|
|
19
|
-
* keep it - the one list of realtime-backed caches.
|
|
20
|
-
*/
|
|
21
|
-
export declare function entityOfRealtimeQueryKey(key: readonly unknown[]): string | null;
|
|
22
|
-
export declare function isRealtimeBackedQueryKey(key: readonly unknown[]): boolean;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a change frame does to the list caches of one entity: the client applies
|
|
3
|
-
* a fixed outcome table and decides nothing itself.
|
|
4
|
-
*/
|
|
5
|
-
import type { QueryClient } from "@tanstack/react-query";
|
|
6
|
-
import type { ListParams } from "../types/api.d.ts";
|
|
7
|
-
/** One row a frame named, plus whether every frame naming it said `created`. */
|
|
8
|
-
export interface ChangedRow {
|
|
9
|
-
pk: Record<string, string>;
|
|
10
|
-
/**
|
|
11
|
-
* True when nothing but a creation named this row in this window - the one
|
|
12
|
-
* absence the client may read as certain.
|
|
13
|
-
*/
|
|
14
|
-
createdOnly: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Reconciles every cached list of one entity, resolving once each query it
|
|
18
|
-
* touched claims no freshness it lacks - never waiting for a refetch to
|
|
19
|
-
* COMPLETE. Returns whether the entity's count must be re-read.
|
|
20
|
-
*/
|
|
21
|
-
export declare function reconcileListCaches(queryClient: QueryClient, entity: string, rows: ChangedRow[], signal?: AbortSignal): Promise<boolean>;
|
|
22
|
-
/**
|
|
23
|
-
* The screen's own query with the changed keys added as a membership test and
|
|
24
|
-
* only the WINDOWING inputs removed. Every other input stays, including the
|
|
25
|
-
* ones that decide what the screen may show at all: dropping the fixed filters
|
|
26
|
-
* or the search returns rows the screen excludes, and dropping the projection
|
|
27
|
-
* gives the replaced row a different field set from its neighbours and strips
|
|
28
|
-
* the very sort fields the comparison reads.
|
|
29
|
-
*
|
|
30
|
-
* The read states the size it needs - the key count - so it is by construction
|
|
31
|
-
* inside the deployment's own page ceiling and cannot be clamped.
|
|
32
|
-
*/
|
|
33
|
-
export declare function narrowedParams(params: ListParams, rows: ChangedRow[]): ListParams;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type QueryClient, type QueryKey } from "@tanstack/react-query";
|
|
2
|
-
import { type ResyncScope } from "../stores/realtime.d.ts";
|
|
3
|
-
export interface ResyncRequest {
|
|
4
|
-
scope: ResyncScope;
|
|
5
|
-
/** The fixed keys of a `keys` scope. */
|
|
6
|
-
keys?: readonly QueryKey[];
|
|
7
|
-
standing?: boolean;
|
|
8
|
-
jitter?: boolean;
|
|
9
|
-
carriedMarks?: ReadonlyMap<string, number>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Opens a resync over the keys the request names, taking the current fetch
|
|
13
|
-
* generation. An `all` request folds into an `all` resync not yet issued: that
|
|
14
|
-
* one re-reads everything already, and a fold moves its generation forward so
|
|
15
|
-
* nothing fetched before the newer cause satisfies it.
|
|
16
|
-
*/
|
|
17
|
-
export declare function openResync(queryClient: QueryClient, request: ResyncRequest): void;
|
|
18
|
-
/**
|
|
19
|
-
* Mounts the engine for this client for as long as the caller is mounted -
|
|
20
|
-
* outside any SSE connection, so a token refresh, a tab hide or a reconnect
|
|
21
|
-
* leaves every obligation where it was.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useResyncEngine(queryClient: QueryClient): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RECORD_DOCUMENTS_KEY: "record-documents";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HydratedFile } from "../types/files.d.ts";
|
|
2
|
-
export interface RichTextValue {
|
|
3
|
-
markdown: string;
|
|
4
|
-
files: Record<string, HydratedFile>;
|
|
5
|
-
}
|
|
6
|
-
export declare function richTextMarkdown(value: unknown): string;
|
|
7
|
-
export declare function richTextFiles(value: unknown): Record<string, HydratedFile>;
|
|
8
|
-
export declare function createRichTextValue(markdownValue: unknown, inlineFilesValue: unknown): RichTextValue;
|
|
9
|
-
export declare function withRichTextFile(value: unknown, file: HydratedFile): RichTextValue;
|
|
10
|
-
export declare function withoutRichTextFiles(value: unknown, removedIds: Iterable<string>): RichTextValue;
|
|
11
|
-
export declare function inlineFilesById(value: unknown): Record<string, HydratedFile>;
|
|
12
|
-
export declare function extractDeclarionFileIds(markdown: string): string[];
|
|
13
|
-
export declare function extractDeclarionFileId(url: string | undefined): string | null;
|
|
14
|
-
export declare function richTextTokenForFile(file: Pick<HydratedFile, "id" | "content_type" | "filename">): string;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Window to wait for a second click before committing to the single-click
|
|
2
|
-
* (peek) action. Comfortably inside the OS double-click interval so real
|
|
3
|
-
* double-clicks are caught, short enough that the peek does not feel laggy. */
|
|
4
|
-
export declare const ROW_DOUBLE_CLICK_MS = 250;
|
|
5
|
-
/** A deferred single click awaiting a possible second click. */
|
|
6
|
-
export type RowClickPending = {
|
|
7
|
-
rowId: string;
|
|
8
|
-
} | null;
|
|
9
|
-
/**
|
|
10
|
-
* The row's own controls: a ref-link cell, the kebab, the select checkbox, a
|
|
11
|
-
* menu item. Each owns its navigation or its action, so a row-level gesture -
|
|
12
|
-
* click or long press - must not also fire on it.
|
|
13
|
-
*
|
|
14
|
-
* A target-closest test is more reliable than expecting every child to
|
|
15
|
-
* stopPropagation: synthetic-event propagation across the virtualized row and
|
|
16
|
-
* the cell-factory subtree proved leaky.
|
|
17
|
-
*/
|
|
18
|
-
export declare const INTERACTIVE_ROW_TARGET = "a, button, input, select, [role='button'], [role='menuitem']";
|
|
19
|
-
/** Whether an event's target sits inside one of the row's own controls. */
|
|
20
|
-
export declare function isInteractiveRowTarget(target: EventTarget | null): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Classify a click on `rowId` given the pending deferred-click state:
|
|
23
|
-
* "double" when the same row already has an undelivered deferred click (this is
|
|
24
|
-
* its second click), otherwise "single".
|
|
25
|
-
*/
|
|
26
|
-
export declare function classifyRowClick(pending: RowClickPending, rowId: string): "single" | "double";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare function safeExternalUrl(input: string | undefined | null): string | undefined;
|
|
2
|
-
/**
|
|
3
|
-
* An href is "external" exactly when the global link interceptor will NOT
|
|
4
|
-
* handle it: a cross-origin URL, a protocol-relative URL, or a non-http scheme
|
|
5
|
-
* (mailto:, tel:, ...). Those open in a new window so a cross-origin link can
|
|
6
|
-
* never navigate the embed iframe away from Declarion. Same-origin links -
|
|
7
|
-
* whether relative (/cases/5) OR absolute (https://<this-origin>/cases/5) -
|
|
8
|
-
* are INTERNAL: they stay plain <a href> so the interceptor routes them in-app.
|
|
9
|
-
* This mirrors the interceptor's own predicate (same-origin http(s) only).
|
|
10
|
-
*
|
|
11
|
-
* Rendering an internal path with `target="_blank"` is the bug this prevents:
|
|
12
|
-
* the interceptor skips any anchor carrying a target, so the click leaves the
|
|
13
|
-
* SPA for a full document load in a new tab instead of navigating.
|
|
14
|
-
*/
|
|
15
|
-
export declare function isExternalHref(href: string | undefined): boolean;
|