@declarion/react 0.60.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/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-BY-Ir7Sh.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-CtL7rdT6.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-CYERLdXO.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-B08IJKsZ.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-Dje_rays.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-N0IWjTH5.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-DKKeCGTH.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-nveYLvHR.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 +1532 -5053
- 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-DSExeoAh.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-BavrHfrU.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-By1-WJ8J.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-DbiOpvd6.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 +17 -24
- package/dist-lib/DetailAuditStrip-B9p1XhjC.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-BEWSHtAC.js +0 -399
- package/dist-lib/SmartDetailPage.impl-CYiM-ITJ.js +0 -1565
- package/dist-lib/SmartListPage.impl-Db_Pv9Xc.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-hbbLglC1.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 -109
- 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-BT54OLHy.js +0 -158
- package/dist-lib/format-count-DLFCdtME.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-CRPxNbkk.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 -580
- 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-BPq7HMF1.js +0 -7840
- package/dist-lib/useListQuery-CG1WM4cv.js +0 -103
- package/dist-lib/useOwnRefresh-C18iWRgr.js +0 -1167
- package/dist-lib/useProperties-C35JrjwQ.js +0 -83
- package/dist-lib/useTabSearchMirror-DKktWWLB.js +0 -175
- package/dist-lib/useText-BFDCTUSo.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ListRow } from "./table-features";
|
|
2
|
-
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
3
|
-
import type { ListResponse, RowData } from "../../../types/api.d.ts";
|
|
4
|
-
import type { resolveCellRenderer } from "../../fields/cells/registry.d.ts";
|
|
5
|
-
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
6
|
-
import type { RowInteraction } from "./useListRowInteraction";
|
|
7
|
-
interface ListCardsBodyProps {
|
|
8
|
-
rows: ListRow[];
|
|
9
|
-
virtualizer: Virtualizer<HTMLDivElement, Element>;
|
|
10
|
-
entity: Entity;
|
|
11
|
-
screen: Screen;
|
|
12
|
-
entityCode: string | undefined;
|
|
13
|
-
entities: Record<string, Entity> | undefined;
|
|
14
|
-
savedViewColumns: string[] | undefined;
|
|
15
|
-
refs: ListResponse<RowData>["$refs"];
|
|
16
|
-
renderers: Map<string, ReturnType<typeof resolveCellRenderer>>;
|
|
17
|
-
rowActions: {
|
|
18
|
-
code: string;
|
|
19
|
-
action: Action;
|
|
20
|
-
}[];
|
|
21
|
-
tabNavigate: (href: string, meta?: {
|
|
22
|
-
title?: string;
|
|
23
|
-
icon?: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
interaction: RowInteraction;
|
|
26
|
-
hasSoftDelete: boolean;
|
|
27
|
-
zebra: boolean;
|
|
28
|
-
hasBatchActions: boolean;
|
|
29
|
-
hasDetailTarget: boolean;
|
|
30
|
-
rowKey: (row: Record<string, unknown>) => string;
|
|
31
|
-
}
|
|
32
|
-
export declare function ListCardsBody({ rows, virtualizer, ...card }: ListCardsBodyProps): import("react").JSX.Element;
|
|
33
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ResolvedActionLayoutNode } from "../../../lib/actions.d.ts";
|
|
2
|
-
import { type WidgetContext } from "../../actions/ResponsiveActionBar.d.ts";
|
|
3
|
-
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
4
|
-
export interface ListFloatbarProps {
|
|
5
|
-
selectedIds: string[];
|
|
6
|
-
/** Actions whose visibility includes `list_floatbar` - the floatbar slot.
|
|
7
|
-
* Reason: the parent owns slot filtering via `getScreenActions(...)`;
|
|
8
|
-
* passing `toolbarActions` (list_toolbar slice) here silently dropped
|
|
9
|
-
* __delete (which is list_floatbar/list_row/detail, NOT list_toolbar)
|
|
10
|
-
* and rendered an empty pill. */
|
|
11
|
-
floatbarActions: {
|
|
12
|
-
code: string;
|
|
13
|
-
action: Action;
|
|
14
|
-
}[];
|
|
15
|
-
/** Server-emitted action_layout from screen (highest precedence). */
|
|
16
|
-
screenActionLayout?: ResolvedActionLayoutNode[];
|
|
17
|
-
/** Server-emitted action_layout from entity. Used when screen has none. */
|
|
18
|
-
entityActionLayout?: ResolvedActionLayoutNode[];
|
|
19
|
-
data: Record<string, unknown>[];
|
|
20
|
-
rowKey: (row: Record<string, unknown>) => string;
|
|
21
|
-
entityCode?: string;
|
|
22
|
-
entity?: Entity;
|
|
23
|
-
screen?: Screen;
|
|
24
|
-
onClear: () => void;
|
|
25
|
-
onActionSuccess: () => void;
|
|
26
|
-
/** Dispatch surface threaded into ResponsiveActionBar. */
|
|
27
|
-
widgetContext: WidgetContext;
|
|
28
|
-
}
|
|
29
|
-
export declare function ListFloatbar({ selectedIds, floatbarActions, screenActionLayout, entityActionLayout, data, rowKey, entityCode, entity, screen, onClear, onActionSuccess, widgetContext, }: ListFloatbarProps): import("react").JSX.Element | null;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface ListFooterProps {
|
|
2
|
-
/** An offset list's window shape. Absent on a cursor list. */
|
|
3
|
-
meta: {
|
|
4
|
-
has_more?: boolean;
|
|
5
|
-
} | undefined;
|
|
6
|
-
isCursor: boolean;
|
|
7
|
-
isPhone: boolean;
|
|
8
|
-
rowsLoaded: number;
|
|
9
|
-
selectedCount: number;
|
|
10
|
-
/** The total, and how it was produced. Undefined while the count is in
|
|
11
|
-
* flight or after it failed - the footer degrades to the loaded count. */
|
|
12
|
-
countTotal: number | undefined;
|
|
13
|
-
countStrategy: "exact" | "estimated" | undefined;
|
|
14
|
-
countLoading: boolean;
|
|
15
|
-
countError: boolean;
|
|
16
|
-
page: number;
|
|
17
|
-
totalPages: number | undefined;
|
|
18
|
-
goToPage: (page: number) => void;
|
|
19
|
-
perPage: number;
|
|
20
|
-
setPerPage: (n: number) => void;
|
|
21
|
-
hasMorePages: boolean;
|
|
22
|
-
fetchNextPage: () => void;
|
|
23
|
-
isFetchingNextPage: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare function ListFooter({ meta, isCursor, isPhone, rowsLoaded, selectedCount, countTotal, countStrategy, countLoading, countError, page, totalPages, goToPage, perPage, setPerPage, hasMorePages, fetchNextPage, isFetchingNextPage, }: ListFooterProps): import("react").JSX.Element | null;
|
|
26
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type ResolvedActionLayoutNode } from "../../../lib/actions.d.ts";
|
|
2
|
-
import { type WidgetContext } from "../../actions/ResponsiveActionBar.d.ts";
|
|
3
|
-
import type { Action } from "../../../types/schema.d.ts";
|
|
4
|
-
export interface ListHeaderProps {
|
|
5
|
-
title: string;
|
|
6
|
-
/** Localized explanation of this list, surfaced behind a small info
|
|
7
|
-
* affordance next to the title (screen description, fallback entity
|
|
8
|
-
* description). Empty = no affordance, header renders identically. The
|
|
9
|
-
* affordance is inline with the title baseline: zero height delta. */
|
|
10
|
-
description?: string;
|
|
11
|
-
toolbarActions: {
|
|
12
|
-
code: string;
|
|
13
|
-
action: Action;
|
|
14
|
-
}[];
|
|
15
|
-
/** Server-emitted action_layout from screen (highest precedence). */
|
|
16
|
-
screenActionLayout?: ResolvedActionLayoutNode[];
|
|
17
|
-
/** Server-emitted action_layout from entity. Used when screen has none. */
|
|
18
|
-
entityActionLayout?: ResolvedActionLayoutNode[];
|
|
19
|
-
selectedIds: string[];
|
|
20
|
-
data: Record<string, unknown>[];
|
|
21
|
-
rowKey: (row: Record<string, unknown>) => string;
|
|
22
|
-
onActionSuccess: () => void;
|
|
23
|
-
/** Dispatch surface threaded into ResponsiveActionBar. */
|
|
24
|
-
widgetContext: WidgetContext;
|
|
25
|
-
}
|
|
26
|
-
export declare function ListHeader({ title, description, toolbarActions, screenActionLayout, entityActionLayout, selectedIds, data, rowKey, onActionSuccess, widgetContext, }: ListHeaderProps): import("react").JSX.Element | null;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import { type Action, type Entity, type Screen } from "../../../types/schema.d.ts";
|
|
3
|
-
import { type TextFn } from "../../../hooks/useText.d.ts";
|
|
4
|
-
/** The failure's title, then the field and the value it is about, so the reader
|
|
5
|
-
* knows what to change. The field reads by its declared label, never its code. */
|
|
6
|
-
export declare function listLoadErrorDescription(t: TextFn, errorTitle: TextFn, entity: Entity, error: unknown): string;
|
|
7
|
-
interface ListNoRowsProps {
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
/** The load has been running long enough to be worth saying so. */
|
|
10
|
-
tableLoadingStale: boolean;
|
|
11
|
-
isError: boolean;
|
|
12
|
-
error: unknown;
|
|
13
|
-
rowCount: number;
|
|
14
|
-
entity: Entity;
|
|
15
|
-
screen: Screen;
|
|
16
|
-
screenName: string;
|
|
17
|
-
screenIcon: string;
|
|
18
|
-
/** A search or a filter is active, so "no results" is the honest title
|
|
19
|
-
* rather than "none yet". */
|
|
20
|
-
isFiltered: boolean;
|
|
21
|
-
/** The empty state invites a create only where the toolbar actually serves
|
|
22
|
-
* one, so `disable_defaults: [__new]` is honoured. */
|
|
23
|
-
canCreate: boolean;
|
|
24
|
-
toolbarActions: {
|
|
25
|
-
code: string;
|
|
26
|
-
action: Action;
|
|
27
|
-
}[];
|
|
28
|
-
onRetry: () => void;
|
|
29
|
-
}
|
|
30
|
-
export declare function ListNoRows({ isLoading, tableLoadingStale, isError, error, rowCount, entity, screen, screenName, screenIcon, isFiltered, canCreate, toolbarActions, onRetry, }: ListNoRowsProps): ReactNode;
|
|
31
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { ListColumnDef, ListRow, ListTableInstance } from "./table-features";
|
|
3
|
-
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
4
|
-
import { type SortCol, type SortNulls } from "../../../lib/sort.d.ts";
|
|
5
|
-
import type { Entity } from "../../../types/schema.d.ts";
|
|
6
|
-
import type { useHeaderReorder } from "./useHeaderReorder";
|
|
7
|
-
interface ListTableProps {
|
|
8
|
-
table: ListTableInstance;
|
|
9
|
-
columns: ListColumnDef[];
|
|
10
|
-
rows: ListRow[];
|
|
11
|
-
entity: Entity;
|
|
12
|
-
/** Published as CSS variables on the <table> so a resize drag reflows without
|
|
13
|
-
* re-rendering the memoized body. */
|
|
14
|
-
columnSizeVars: Record<string, number>;
|
|
15
|
-
/** The real columns' summed width, which forces the horizontal scroll. */
|
|
16
|
-
totalColumnsWidth: number;
|
|
17
|
-
theadRef: React.RefObject<HTMLTableSectionElement | null>;
|
|
18
|
-
virtualizer: Virtualizer<HTMLDivElement, Element>;
|
|
19
|
-
/** The ordered visible set, which decides a header's drop slot. */
|
|
20
|
-
visibleCols: string[];
|
|
21
|
-
headerReorder: ReturnType<typeof useHeaderReorder>;
|
|
22
|
-
sortCols: SortCol[];
|
|
23
|
-
sortNullsMap: Map<string, SortNulls>;
|
|
24
|
-
shiftClickColumn: (field: string) => void;
|
|
25
|
-
applyColumnSort: (field: string, dir: "asc" | "desc", nulls: SortNulls | undefined) => void;
|
|
26
|
-
appendColumnSort: (field: string, dir: "asc" | "desc", nulls: SortNulls | undefined) => void;
|
|
27
|
-
clearColumnSort: (field: string) => void;
|
|
28
|
-
clearAllSorts: () => void;
|
|
29
|
-
renderRow: (row: ListRow, index: number) => ReactNode;
|
|
30
|
-
isResizingColumn: string | false;
|
|
31
|
-
}
|
|
32
|
-
export declare function ListTable({ table, columns, rows, entity, columnSizeVars, totalColumnsWidth, theadRef, virtualizer: rowVirtualizer, visibleCols, headerReorder, sortCols, sortNullsMap, shiftClickColumn, applyColumnSort, appendColumnSort, clearColumnSort, clearAllSorts, renderRow, isResizingColumn, }: ListTableProps): import("react").JSX.Element;
|
|
33
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ListRow } from "./table-features";
|
|
2
|
-
import type { Entity } from "../../../types/schema.d.ts";
|
|
3
|
-
import type { RowInteraction } from "./useListRowInteraction";
|
|
4
|
-
interface ListTableRowProps {
|
|
5
|
-
row: ListRow;
|
|
6
|
-
rowIndex: number;
|
|
7
|
-
entity: Entity;
|
|
8
|
-
hasSoftDelete: boolean;
|
|
9
|
-
zebra: boolean;
|
|
10
|
-
/** The entity has a detail route. A composite-PK entity has none, so without
|
|
11
|
-
* the peek branch its rows looked dead. */
|
|
12
|
-
hasDetailTarget: boolean;
|
|
13
|
-
interaction: RowInteraction;
|
|
14
|
-
measureElement: (node: Element | null) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function ListTableRow({ row, rowIndex, entity, hasSoftDelete, zebra, hasDetailTarget, interaction, measureElement, }: ListTableRowProps): import("react").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type ViewItem } from "../../list/ViewSwitcher.d.ts";
|
|
2
|
-
import type { FilterNode } from "../../../lib/filters.d.ts";
|
|
3
|
-
import { type Entity, type Schema, type Screen } from "../../../types/schema.d.ts";
|
|
4
|
-
import type { ListColumnLayout } from "./useListColumnLayout";
|
|
5
|
-
import type { ListQueryResult } from "./useListQuery";
|
|
6
|
-
import type { ListSelection } from "./useListSelection";
|
|
7
|
-
import type { ListSortState } from "./useListSort";
|
|
8
|
-
import type { ListViews } from "./useListViews";
|
|
9
|
-
interface ListToolbarProps {
|
|
10
|
-
screen: Screen;
|
|
11
|
-
entity: Entity;
|
|
12
|
-
entityCode: string | undefined;
|
|
13
|
-
schema: Schema | undefined;
|
|
14
|
-
screenCode: string;
|
|
15
|
-
screenName: string;
|
|
16
|
-
isPhone: boolean;
|
|
17
|
-
/** Cards mode has no column headers, so sorting moves into a menu here. */
|
|
18
|
-
isCardsPresentation: boolean;
|
|
19
|
-
sort: ListSortState;
|
|
20
|
-
columns: ListColumnLayout;
|
|
21
|
-
views: ListViews;
|
|
22
|
-
query: ListQueryResult;
|
|
23
|
-
selection: ListSelection;
|
|
24
|
-
filters: {
|
|
25
|
-
json: FilterNode[];
|
|
26
|
-
debouncedSearch: string;
|
|
27
|
-
count: number;
|
|
28
|
-
onOpen: () => void;
|
|
29
|
-
};
|
|
30
|
-
searchValue: string;
|
|
31
|
-
onSearchChange: (value: string) => void;
|
|
32
|
-
onSaveView: () => void;
|
|
33
|
-
onDeleteView: (view: ViewItem) => void;
|
|
34
|
-
page: number;
|
|
35
|
-
perPage: number;
|
|
36
|
-
includeDeleted: boolean;
|
|
37
|
-
canViewDeleted: boolean;
|
|
38
|
-
onToggleDeleted: () => void;
|
|
39
|
-
/** The entity is declared `realtime: true`, so the refresh control carries
|
|
40
|
-
* the indicator in every state. */
|
|
41
|
-
realtime: boolean;
|
|
42
|
-
/** The screen is current - useScreenIsLive. */
|
|
43
|
-
isLive: boolean;
|
|
44
|
-
}
|
|
45
|
-
export declare function ListToolbar({ screen, entity, entityCode, schema, screenCode, screenName, isPhone, isCardsPresentation, sort, columns, views, query, selection, filters, searchValue, onSearchChange, onSaveView, onDeleteView, page, perPage, includeDeleted, canViewDeleted, onToggleDeleted, realtime, isLive, }: ListToolbarProps): import("react").JSX.Element;
|
|
46
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ListUrlBannerProps {
|
|
2
|
-
filterError: string | null;
|
|
3
|
-
unresolvedViewId: string | null;
|
|
4
|
-
onClearFilters: () => void;
|
|
5
|
-
onClearView: () => void;
|
|
6
|
-
}
|
|
7
|
-
/** A URL the list could not honour. The malformed filter is reported first: it
|
|
8
|
-
* is the one the caller can act on without knowing anything about views. */
|
|
9
|
-
export declare function ListUrlBanner({ filterError, unresolvedViewId, onClearFilters, onClearView, }: ListUrlBannerProps): import("react").JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
2
|
-
export interface RowActionsCellProps {
|
|
3
|
-
row: Record<string, unknown>;
|
|
4
|
-
rowId: string;
|
|
5
|
-
/** detail_screen for row-click navigation. The component reads
|
|
6
|
-
* screen.action_layout via cast to ResolvedActionLayoutNode[] (server emits
|
|
7
|
-
* the resolved wire shape even though the raw Screen TS type
|
|
8
|
-
* declares ActionLayoutNode[] for authoring). */
|
|
9
|
-
screen: {
|
|
10
|
-
detail_screen?: string;
|
|
11
|
-
};
|
|
12
|
-
/** Full Screen object used to build the row-scoped WidgetContext that the
|
|
13
|
-
* ResponsiveActionBar dispatcher passes to href/widget action modes. */
|
|
14
|
-
fullScreen: Screen;
|
|
15
|
-
entity: Entity;
|
|
16
|
-
entityCode?: string;
|
|
17
|
-
rowActions: {
|
|
18
|
-
code: string;
|
|
19
|
-
action: Action;
|
|
20
|
-
}[];
|
|
21
|
-
tabNavigate: (href: string, opts?: {
|
|
22
|
-
title?: string;
|
|
23
|
-
icon?: string;
|
|
24
|
-
search?: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
/** Peek availability for this surface (screen quick_peek + not phone). */
|
|
27
|
-
peekAllowed: boolean;
|
|
28
|
-
/** Whether the entity has a detail route (drives __open availability). */
|
|
29
|
-
hasDetailTarget: boolean;
|
|
30
|
-
/** Opens the Quick peek drawer for the row (used by both the __peek menu
|
|
31
|
-
* item and the hover eye button). */
|
|
32
|
-
onPeek: (row: Record<string, unknown>) => void;
|
|
33
|
-
}
|
|
34
|
-
export declare function RowActionsCell({ row, rowId, screen, fullScreen, entity, entityCode, rowActions, tabNavigate, peekAllowed, hasDetailTarget, onPeek, }: RowActionsCellProps): import("react").JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
2
|
-
export interface RowContextMenuProps {
|
|
3
|
-
/** Cursor coordinates from the contextmenu event. */
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
row: Record<string, unknown>;
|
|
7
|
-
rowId: string;
|
|
8
|
-
screen: {
|
|
9
|
-
detail_screen?: string;
|
|
10
|
-
};
|
|
11
|
-
fullScreen: Screen;
|
|
12
|
-
entity: Entity;
|
|
13
|
-
entityCode?: string;
|
|
14
|
-
rowActions: {
|
|
15
|
-
code: string;
|
|
16
|
-
action: Action;
|
|
17
|
-
}[];
|
|
18
|
-
tabNavigate: (href: string, opts?: {
|
|
19
|
-
title?: string;
|
|
20
|
-
icon?: string;
|
|
21
|
-
search?: string;
|
|
22
|
-
}) => void;
|
|
23
|
-
peekAllowed: boolean;
|
|
24
|
-
hasDetailTarget: boolean;
|
|
25
|
-
onPeek: (row: Record<string, unknown>) => void;
|
|
26
|
-
onClose: () => void;
|
|
27
|
-
}
|
|
28
|
-
export declare function RowContextMenu({ x, y, row, rowId, screen, fullScreen, entity, entityCode, rowActions, tabNavigate, peekAllowed, hasDetailTarget, onPeek, onClose, }: RowContextMenuProps): import("react").JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function SaveViewDialog({ open, pending, onClose, onSave, overwriteViewName, onOverwrite, }: {
|
|
2
|
-
open: boolean;
|
|
3
|
-
pending: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onSave: (name: string) => Promise<void>;
|
|
6
|
-
/** Name of the currently-active OWNED view, when an overwrite is offered. */
|
|
7
|
-
overwriteViewName?: string | null;
|
|
8
|
-
/** Overwrite the active owned view with the current layout (widths excluded). */
|
|
9
|
-
onOverwrite?: () => Promise<void>;
|
|
10
|
-
}): import("react").JSX.Element | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SortNulls } from "../../../lib/sort.d.ts";
|
|
2
|
-
export declare function SortHeaderMenu({ field, activeDir, activeNulls, inMultiSort, canAppend, onApply, onAppend, onClearColumn, onClearAll, }: {
|
|
3
|
-
field: string;
|
|
4
|
-
activeDir: "asc" | "desc" | false;
|
|
5
|
-
activeNulls: SortNulls | undefined;
|
|
6
|
-
/** True if this column is already part of the current sort list. */
|
|
7
|
-
inMultiSort: boolean;
|
|
8
|
-
/** True if the sort has room to add another column (length < cap). */
|
|
9
|
-
canAppend: boolean;
|
|
10
|
-
onApply: (dir: "asc" | "desc", nulls: SortNulls | undefined) => void;
|
|
11
|
-
onAppend: (dir: "asc" | "desc", nulls: SortNulls | undefined) => void;
|
|
12
|
-
onClearColumn: () => void;
|
|
13
|
-
onClearAll: () => void;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { type SortCol } from "../../../lib/sort.d.ts";
|
|
2
|
-
import { type Action, type Entity, type Screen, type Schema } from "../../../types/schema.d.ts";
|
|
3
|
-
export type ListPresentationMode = "table" | "cards";
|
|
4
|
-
export type CardSource = "screen_card" | "entity_card" | "saved_view_columns" | "screen_default_columns" | "screen_columns" | "entity_inference";
|
|
5
|
-
export type CardBucket = "title" | "subtitle" | "badges" | "body" | "meta";
|
|
6
|
-
export interface ResolvedCardField {
|
|
7
|
-
field: string;
|
|
8
|
-
bucket: CardBucket;
|
|
9
|
-
explicit: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ResolvedCard {
|
|
12
|
-
source: CardSource;
|
|
13
|
-
explicit: boolean;
|
|
14
|
-
titleField?: string;
|
|
15
|
-
titleUsesDisplay: boolean;
|
|
16
|
-
subtitleField?: string;
|
|
17
|
-
badgeFields: string[];
|
|
18
|
-
bodyFields: string[];
|
|
19
|
-
metaFields: string[];
|
|
20
|
-
hideEmptyFields: boolean;
|
|
21
|
-
maxBodyFields: number;
|
|
22
|
-
renderFields: string[];
|
|
23
|
-
fields: ResolvedCardField[];
|
|
24
|
-
sourcePrecedence: CardSource[];
|
|
25
|
-
}
|
|
26
|
-
export interface ResolveCardArgs {
|
|
27
|
-
entity: Entity | undefined;
|
|
28
|
-
screen: Screen | undefined;
|
|
29
|
-
savedViewColumns?: readonly string[];
|
|
30
|
-
}
|
|
31
|
-
export type ProjectionReason = "render" | "display" | "display_template" | "condition" | "variant" | "identity" | "sort" | "detail_handoff" | "quick_peek" | "ref_expand" | "status_expand" | "property_expand" | "evidence_expand" | "file_metadata";
|
|
32
|
-
export interface ProjectionReasons {
|
|
33
|
-
fields: Record<string, ProjectionReason[]>;
|
|
34
|
-
expand: Record<string, ProjectionReason[]>;
|
|
35
|
-
}
|
|
36
|
-
export interface ResolvedListProjection {
|
|
37
|
-
renderFields: string[];
|
|
38
|
-
dependencyFields: string[];
|
|
39
|
-
conditionFields: string[];
|
|
40
|
-
identityFields: string[];
|
|
41
|
-
sortFields: string[];
|
|
42
|
-
selectFields: string[] | undefined;
|
|
43
|
-
expandFields: string[] | undefined;
|
|
44
|
-
reasons: ProjectionReasons;
|
|
45
|
-
}
|
|
46
|
-
export interface ActionProjectionInput {
|
|
47
|
-
code?: string;
|
|
48
|
-
action: Action;
|
|
49
|
-
}
|
|
50
|
-
export interface ResolveListProjectionArgs {
|
|
51
|
-
entity: Entity | undefined;
|
|
52
|
-
screen: Screen | undefined;
|
|
53
|
-
presentation: ListPresentationMode;
|
|
54
|
-
visibleColumns: readonly string[];
|
|
55
|
-
card: ResolvedCard;
|
|
56
|
-
rowActions?: readonly ActionProjectionInput[];
|
|
57
|
-
toolbarActions?: readonly ActionProjectionInput[];
|
|
58
|
-
bulkActions?: readonly ActionProjectionInput[];
|
|
59
|
-
sort?: string | readonly SortCol[];
|
|
60
|
-
includeDetailHandoff?: boolean;
|
|
61
|
-
screens?: Schema["screens"];
|
|
62
|
-
}
|
|
63
|
-
export declare function resolveCard(args: ResolveCardArgs): ResolvedCard;
|
|
64
|
-
export declare function resolveListProjection(args: ResolveListProjectionArgs): ResolvedListProjection;
|
|
65
|
-
export declare function resolveVariantRenderFields(entity: Entity | undefined, screen: Screen | undefined, savedViewColumns?: readonly string[]): string[];
|
|
66
|
-
export declare function resolveQuickPeekFieldNames(entity: Entity | undefined, screen: Screen | undefined, screens: Schema["screens"] | undefined): string[];
|
|
67
|
-
export declare function extractDisplayTemplateFields(template: string | undefined): string[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ListTableInstance } from "./table-features";
|
|
2
|
-
/** CSS custom-property name for a header's width. */
|
|
3
|
-
export declare function headerSizeVar(headerId: string): string;
|
|
4
|
-
/** CSS custom-property name for a column's (cell) width. */
|
|
5
|
-
export declare function colSizeVar(columnId: string): string;
|
|
6
|
-
/** `width` value that reads a size variable, e.g. for a `<th>`/`<td>` style. */
|
|
7
|
-
export declare function sizeFromVar(varName: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* Compute the full set of `--header-*-size` / `--col-*-size` variables from the
|
|
10
|
-
* table's current sizing. Reading `columnSizingInfo` + `columnSizing` here
|
|
11
|
-
* establishes the reactivity so the object recomputes on every resize frame;
|
|
12
|
-
* memoize it on those two state slices in the component.
|
|
13
|
-
*/
|
|
14
|
-
export declare function buildColumnSizeVars(table: ListTableInstance): Record<string, number>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
import type { ListColumnDef } from "./table-features";
|
|
3
|
-
import { type Refs } from "../../fields/cells/registry.d.ts";
|
|
4
|
-
import type { Action, Entity, Screen } from "../../../types/schema.d.ts";
|
|
5
|
-
import type { RowData } from "../../../types/api.d.ts";
|
|
6
|
-
import type { TextFn } from "../../../lib/language.d.ts";
|
|
7
|
-
type SchemaMaps = {
|
|
8
|
-
entities?: Record<string, Entity>;
|
|
9
|
-
screens?: Record<string, Screen>;
|
|
10
|
-
};
|
|
11
|
-
export interface BuildListColumnsArgs {
|
|
12
|
-
/** Visible column keys from URL state (not the full screen.columns pool). */
|
|
13
|
-
visibleCols: string[];
|
|
14
|
-
entity: Entity | undefined;
|
|
15
|
-
screen: Screen | undefined;
|
|
16
|
-
schema: SchemaMaps | undefined;
|
|
17
|
-
entityCode: string | undefined;
|
|
18
|
-
/** list_row-slot actions resolved by getScreenActions. */
|
|
19
|
-
rowActions: {
|
|
20
|
-
code: string;
|
|
21
|
-
action: Action;
|
|
22
|
-
}[];
|
|
23
|
-
hasBatchActions: boolean;
|
|
24
|
-
/** True when the screen explicitly binds row_actions (controls full menu). */
|
|
25
|
-
hasExplicitRowActions: boolean;
|
|
26
|
-
canUpdate: boolean;
|
|
27
|
-
canDelete: boolean;
|
|
28
|
-
peekEnabled: boolean;
|
|
29
|
-
/** True when the entity has a detail route; drives __open availability in the
|
|
30
|
-
* row menu (composite-PK entities have no detail page). */
|
|
31
|
-
hasDetailTarget: boolean;
|
|
32
|
-
t: TextFn;
|
|
33
|
-
tabNavigate: (href: string, opts?: {
|
|
34
|
-
title?: string;
|
|
35
|
-
icon?: string;
|
|
36
|
-
search?: string;
|
|
37
|
-
}) => void;
|
|
38
|
-
/** Latest $refs payload, read through a ref so column identity is stable
|
|
39
|
-
* across data fetches (see SmartListPageInner refsRef comment). */
|
|
40
|
-
refsRef: RefObject<Refs | undefined>;
|
|
41
|
-
/** Row-selection key, used as the stable rowId for per-row action dispatch. */
|
|
42
|
-
rowSelectionKey: (entity: Entity, row: RowData) => string;
|
|
43
|
-
setPeekRow: (row: RowData) => void;
|
|
44
|
-
}
|
|
45
|
-
export declare function buildListColumns(args: BuildListColumnsArgs): ListColumnDef[];
|
|
46
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Entity, Screen, ScreenFilterSpecialValues } from "../../../types/schema.d.ts";
|
|
2
|
-
import type { FilterFieldMeta } from "../../filters/FilterDrawer.d.ts";
|
|
3
|
-
import type { TextFn } from "../../../lib/language.d.ts";
|
|
4
|
-
/**
|
|
5
|
-
* Build FilterFieldMeta array from screen + entity for the FilterDrawer.
|
|
6
|
-
*
|
|
7
|
-
* The per-type operator lists come from the server (`screen.filter_operators`),
|
|
8
|
-
* never from a table here. The client used to keep its own map and it had
|
|
9
|
-
* already diverged: array, multilang, json and bytes fields fell through to
|
|
10
|
-
* `["eq","not_eq","is_empty","is_not_empty"]`, offering two operators the query
|
|
11
|
-
* builder rejects and hiding `contains`, the one that works. The server owns
|
|
12
|
-
* the field-type -> operator mapping because the server is what enforces it.
|
|
13
|
-
*
|
|
14
|
-
* A field the server published no operators for is OMITTED rather than given a
|
|
15
|
-
* guessed list: an operator the builder rejects is worse than an absent field,
|
|
16
|
-
* because the user only finds out after building the filter.
|
|
17
|
-
*
|
|
18
|
-
* Which fields appear at all is SCREEN-SCOPED - `screen.filters` when declared,
|
|
19
|
-
* every entity field otherwise. That is a UI affordance, not an access control:
|
|
20
|
-
* the server applies no screen scoping to caller filters.
|
|
21
|
-
*/
|
|
22
|
-
export declare function buildFilterFieldMeta(t: TextFn, screen: (Pick<Screen, "filters"> & {
|
|
23
|
-
filter_special_values?: Record<string, ScreenFilterSpecialValues>;
|
|
24
|
-
filter_operators?: Record<string, string[]>;
|
|
25
|
-
}) | undefined, entity: Pick<Entity, "fields" | "status_groups" | "properties" | "field_access"> | undefined, entities?: Record<string, Entity>): FilterFieldMeta[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Cell, type ColumnDef, type Row, type Table } from "@tanstack/react-table";
|
|
2
|
-
import type { RowData } from "../../../types/api.d.ts";
|
|
3
|
-
export declare const listTableFeatures: {
|
|
4
|
-
rowSortingFeature: import("@tanstack/react-table").TableFeature;
|
|
5
|
-
rowSelectionFeature: import("@tanstack/react-table").TableFeature;
|
|
6
|
-
columnSizingFeature: import("@tanstack/react-table").TableFeature;
|
|
7
|
-
columnResizingFeature: import("@tanstack/react-table").TableFeature;
|
|
8
|
-
columnVisibilityFeature: import("@tanstack/react-table").TableFeature;
|
|
9
|
-
};
|
|
10
|
-
export type ListFeatures = typeof listTableFeatures;
|
|
11
|
-
export type ListTableInstance = Table<ListFeatures, RowData>;
|
|
12
|
-
export type ListRow = Row<ListFeatures, RowData>;
|
|
13
|
-
export type ListCell = Cell<ListFeatures, RowData, unknown>;
|
|
14
|
-
export type ListColumnDef = ColumnDef<ListFeatures, RowData, unknown>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type FilterNode, type FilterValueResolver } from "../../../lib/filters.d.ts";
|
|
2
|
-
import type { Entity } from "../../../types/schema.d.ts";
|
|
3
|
-
import type { FilterFieldMeta } from "../../filters/FilterDrawer.d.ts";
|
|
4
|
-
import type { Refs } from "../../../types/api.d.ts";
|
|
5
|
-
/**
|
|
6
|
-
* useFilterValueLabels - the single source of human labels for stored filter
|
|
7
|
-
* values, shared by the chip strip and the filter drawer's RefCombobox.
|
|
8
|
-
*
|
|
9
|
-
* Per value it resolves, in order: a declared special value (code -> label,
|
|
10
|
-
* synchronous), an enum/$status code (code -> label from the field's options,
|
|
11
|
-
* synchronous), a ref (value -> referenced record label, from the list `$refs`
|
|
12
|
-
* or a batched fetch), else a plain literal (rendered raw). Refs absent from
|
|
13
|
-
* `$refs` are fetched in ONE `in` query per referenced entity through the
|
|
14
|
-
* normal read API; identical queries dedupe in the query cache, so switching a
|
|
15
|
-
* view or reopening the drawer does not re-fetch a label already in hand.
|
|
16
|
-
*
|
|
17
|
-
* Returns `labelFor` (consumed by the chip strip) and a `Refs`-shaped map of
|
|
18
|
-
* resolved records (passed to the drawer's RefCombobox via its `refs` prop, so
|
|
19
|
-
* the combobox reuses this cache instead of its own per-value hydration).
|
|
20
|
-
*/
|
|
21
|
-
export declare function useFilterValueLabels(meta: FilterFieldMeta[], filters: FilterNode[], listRefs: Refs | undefined, entities: Record<string, Entity> | undefined): {
|
|
22
|
-
labelFor: FilterValueResolver;
|
|
23
|
-
refs: Refs;
|
|
24
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { FilterNode } from "../../../lib/filters.d.ts";
|
|
2
|
-
import type { Entity, Screen } from "../../../types/schema.d.ts";
|
|
3
|
-
import type { ViewItem } from "../../list/ViewSwitcher.d.ts";
|
|
4
|
-
export declare function baseViewSearchParams(current: URLSearchParams): URLSearchParams;
|
|
5
|
-
/** Scoped to who is asking as well as to the screen: a tenant switch or a
|
|
6
|
-
* different sign-in is a different caller with a different default. */
|
|
7
|
-
export declare function defaultViewClearedKey(screenCode: string, tenantId?: string, userId?: string): string;
|
|
8
|
-
interface ActiveViewInput {
|
|
9
|
-
screenCode: string;
|
|
10
|
-
screen: Screen | undefined;
|
|
11
|
-
entity: Entity | undefined;
|
|
12
|
-
searchParams: URLSearchParams;
|
|
13
|
-
setSearchParams: (next: URLSearchParams, options?: {
|
|
14
|
-
replace?: boolean;
|
|
15
|
-
}) => void;
|
|
16
|
-
userId: string | undefined;
|
|
17
|
-
tenantId: string | undefined;
|
|
18
|
-
filterError: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface ViewDefaults {
|
|
21
|
-
filters: FilterNode[];
|
|
22
|
-
columns: string[];
|
|
23
|
-
sort: string | undefined;
|
|
24
|
-
}
|
|
25
|
-
/** The query a view (or none) states, less any field the caller may not read,
|
|
26
|
-
* which the server would refuse; an emptied sort falls back to `sort_default`. */
|
|
27
|
-
export declare function viewQuery(entity: Entity | undefined, view: ViewItem | undefined, screen: Screen | undefined): {
|
|
28
|
-
filters: FilterNode[];
|
|
29
|
-
sort: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
export interface ActiveView {
|
|
32
|
-
all: ViewItem[];
|
|
33
|
-
activeId: string | null;
|
|
34
|
-
active: ViewItem | undefined;
|
|
35
|
-
defaults: ViewDefaults;
|
|
36
|
-
clearedKey: string;
|
|
37
|
-
clearActiveView: () => void;
|
|
38
|
-
retryViews: () => void;
|
|
39
|
-
isUnresolved: boolean;
|
|
40
|
-
isHeld: boolean;
|
|
41
|
-
}
|
|
42
|
-
/** Resolves the list's active view from the `view` URL parameter. It runs above
|
|
43
|
-
* the filter, column and sort hooks because each of them falls back to it. */
|
|
44
|
-
export declare function useActiveView({ screenCode, screen, entity, searchParams, setSearchParams, userId, tenantId, filterError, }: ActiveViewInput): ActiveView;
|
|
45
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type MouseEvent as ReactMouseEvent, type RefObject } from "react";
|
|
2
|
-
export interface HeaderReorder {
|
|
3
|
-
/** The column currently being dragged, or null. */
|
|
4
|
-
dragColId: string | null;
|
|
5
|
-
/** Insertion index among `visibleCols` where a drop would land, or null. */
|
|
6
|
-
dropIndex: number | null;
|
|
7
|
-
/** True while an actual drag is in progress (threshold crossed). */
|
|
8
|
-
isDragging: boolean;
|
|
9
|
-
/** Attach to a data `<th>`'s `onMouseDown` to arm a potential drag. */
|
|
10
|
-
onHeaderMouseDown: (colId: string, e: ReactMouseEvent) => void;
|
|
11
|
-
/** Call at the top of the header's `onClick`; returns true (and resets) when
|
|
12
|
-
* the click concludes a drag, so the caller skips the sort. */
|
|
13
|
-
consumeDragSuppression: () => boolean;
|
|
14
|
-
}
|
|
15
|
-
interface UseHeaderReorderArgs {
|
|
16
|
-
/** Ordered visible data columns (the `?columns` array). */
|
|
17
|
-
visibleCols: string[];
|
|
18
|
-
/** Commit a new order (writes URL + working layout). */
|
|
19
|
-
onReorder: (nextCols: string[]) => void;
|
|
20
|
-
/** The horizontal scroll container (for edge auto-scroll). */
|
|
21
|
-
scrollElRef: RefObject<HTMLElement | null>;
|
|
22
|
-
/** The `<thead>` element, to measure data-column boundaries at drag start. */
|
|
23
|
-
theadRef: RefObject<HTMLElement | null>;
|
|
24
|
-
}
|
|
25
|
-
export declare function useHeaderReorder({ visibleCols, onReorder, scrollElRef, theadRef, }: UseHeaderReorderArgs): HeaderReorder;
|
|
26
|
-
export {};
|