@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
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { Q as e, _n as t, a as n, cn as r, i, nn as a, o, on as s, pt as c, qn as l, r as u, rt as d, wn as f, wt as p } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { r as m } from "./CopyButton-C0iEvaT1.js";
|
|
3
|
+
import { a as h, s as g } from "./ActionRunner-DAxgnKB3.js";
|
|
4
|
+
import { d as _, i as v } from "./useOwnRefresh-DkOuM4yo.js";
|
|
5
|
+
import { f as y, i as b, r as x } from "./FilterChips-8fMDBXHp.js";
|
|
6
|
+
import { useCallback as S, useEffect as C, useMemo as w, useState as T } from "react";
|
|
7
|
+
import { useQueries as E, useQueryClient as D } from "@tanstack/react-query";
|
|
8
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/pages/list/filter-meta.ts
|
|
10
|
+
function j(e, t, n, r) {
|
|
11
|
+
if (!t || !n) return [];
|
|
12
|
+
let i = t.filter_operators ?? {}, a = (t.filters ?? []).filter((e) => i[e]?.length);
|
|
13
|
+
return N({
|
|
14
|
+
t: e,
|
|
15
|
+
screen: t,
|
|
16
|
+
entity: n,
|
|
17
|
+
entities: r
|
|
18
|
+
}, a, i);
|
|
19
|
+
}
|
|
20
|
+
function M(e, t, n, r) {
|
|
21
|
+
return !t || !n ? [] : N({
|
|
22
|
+
t: e,
|
|
23
|
+
screen: t,
|
|
24
|
+
entity: n,
|
|
25
|
+
entities: r
|
|
26
|
+
}, Object.keys(n.filter_operators), n.filter_operators);
|
|
27
|
+
}
|
|
28
|
+
function N({ t: e, screen: t, entity: n, entities: r }, i, o) {
|
|
29
|
+
let c = [];
|
|
30
|
+
for (let l of i) {
|
|
31
|
+
let i = o[l];
|
|
32
|
+
if (l.startsWith("$status.")) {
|
|
33
|
+
let t = l.slice(8), r = n.status_groups?.[t];
|
|
34
|
+
if (!r) continue;
|
|
35
|
+
c.push({
|
|
36
|
+
code: l,
|
|
37
|
+
label: e(r.name) || t,
|
|
38
|
+
type: "status",
|
|
39
|
+
operators: i,
|
|
40
|
+
options: r.statuses.map((t) => ({
|
|
41
|
+
value: t.code,
|
|
42
|
+
label: e(t.name) || t.code,
|
|
43
|
+
color: t.color
|
|
44
|
+
}))
|
|
45
|
+
});
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (l.startsWith("$property.")) {
|
|
49
|
+
let t = l.slice(10), r = n.properties?.[t];
|
|
50
|
+
if (!r) continue;
|
|
51
|
+
c.push({
|
|
52
|
+
code: l,
|
|
53
|
+
label: e(r.name) || t,
|
|
54
|
+
type: "property",
|
|
55
|
+
operators: i
|
|
56
|
+
});
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
let u = n.fields.get(l);
|
|
60
|
+
if (!u) continue;
|
|
61
|
+
let d = s(e, u, l, r), f = u.values?.map((t) => ({
|
|
62
|
+
value: t.code,
|
|
63
|
+
label: e(t.name) || t.code,
|
|
64
|
+
color: t.color
|
|
65
|
+
})), p = a(u.filter_special_values, t?.filter_special_values?.[l]);
|
|
66
|
+
c.push({
|
|
67
|
+
code: l,
|
|
68
|
+
label: d,
|
|
69
|
+
type: u.type,
|
|
70
|
+
operators: i,
|
|
71
|
+
options: f,
|
|
72
|
+
ref: u.ref,
|
|
73
|
+
specialValues: p.length > 0 ? p : void 0
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return c;
|
|
77
|
+
}
|
|
78
|
+
function P(e, t, n, r) {
|
|
79
|
+
if (r.startsWith("$status.")) {
|
|
80
|
+
let n = t.status_groups?.[r.slice(8)];
|
|
81
|
+
return n && e(n.name) || r;
|
|
82
|
+
}
|
|
83
|
+
if (r.startsWith("$property.")) {
|
|
84
|
+
let n = t.properties?.[r.slice(10)];
|
|
85
|
+
return n && e(n.name) || r;
|
|
86
|
+
}
|
|
87
|
+
let i = t.fields.get(r);
|
|
88
|
+
return i ? s(e, i, r, n) : r;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/pages/list/visible-filters.ts
|
|
92
|
+
function F(e, t) {
|
|
93
|
+
let n = !1, r = (e) => e.flatMap((e) => {
|
|
94
|
+
if (e.or || e.and) {
|
|
95
|
+
let t = e.or ? "or" : "and", n = r(e[t]);
|
|
96
|
+
return n.length === 0 ? [] : [{
|
|
97
|
+
...e,
|
|
98
|
+
[t]: n
|
|
99
|
+
}];
|
|
100
|
+
}
|
|
101
|
+
return e.field && Object.hasOwn(t, e.field) ? [e] : (n = !0, []);
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
filters: r(e),
|
|
105
|
+
omitted: n
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/pages/list/useListFilterPresentation.ts
|
|
110
|
+
function I(e, t, n, r) {
|
|
111
|
+
let i = p(), a = x(r);
|
|
112
|
+
return {
|
|
113
|
+
visibleFilterState: w(() => t ? F(a, t.filter_operators) : {
|
|
114
|
+
filters: a,
|
|
115
|
+
omitted: !1
|
|
116
|
+
}, [a, t]),
|
|
117
|
+
filterFieldMeta: w(() => j(i, e, t, n), [
|
|
118
|
+
i,
|
|
119
|
+
e,
|
|
120
|
+
t,
|
|
121
|
+
n
|
|
122
|
+
]),
|
|
123
|
+
allFilterFieldMeta: w(() => M(i, e, t, n), [
|
|
124
|
+
i,
|
|
125
|
+
e,
|
|
126
|
+
t,
|
|
127
|
+
n
|
|
128
|
+
]),
|
|
129
|
+
filterFieldName: S((e) => t ? P(i, t, n, e) : e, [
|
|
130
|
+
i,
|
|
131
|
+
t,
|
|
132
|
+
n
|
|
133
|
+
])
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/filters/FilterOmittedNotice.tsx
|
|
138
|
+
function L({ className: e }) {
|
|
139
|
+
let t = p()("filter.omitted_notice", "Some filter conditions could not be applied.");
|
|
140
|
+
return /* @__PURE__ */ k("div", {
|
|
141
|
+
role: "status",
|
|
142
|
+
"aria-label": t,
|
|
143
|
+
className: `text-muted-foreground text-xs wrap-anywhere ${e ?? ""}`,
|
|
144
|
+
children: t
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/components/pages/list/useListQuery.ts
|
|
149
|
+
var R = 1e4, z = [];
|
|
150
|
+
function B(e) {
|
|
151
|
+
let t = D(), { entity: r, entityCode: a, screen: s, screenCode: c, page: l, perPage: d, sortForRequest: f, debouncedSearch: p, filters: m, isHeld: v, retryHeld: y, includeDeleted: b, expand: x, select: C, runCountQuery: T, urlKey: E } = e, O = m.length > 0 ? m : void 0, k = {
|
|
152
|
+
page: l,
|
|
153
|
+
per_page: d,
|
|
154
|
+
sort: f,
|
|
155
|
+
search: p || void 0,
|
|
156
|
+
filters: O,
|
|
157
|
+
include_deleted: b || void 0,
|
|
158
|
+
expand: x,
|
|
159
|
+
select: C,
|
|
160
|
+
preview: !0,
|
|
161
|
+
screen: s?.fixed_filters ? c : void 0
|
|
162
|
+
}, A = {
|
|
163
|
+
sort: f,
|
|
164
|
+
filters: O,
|
|
165
|
+
search: p || void 0,
|
|
166
|
+
select: C,
|
|
167
|
+
expand: x,
|
|
168
|
+
includeDeleted: b || void 0,
|
|
169
|
+
screen: s?.fixed_filters ? c : void 0,
|
|
170
|
+
preview: !0,
|
|
171
|
+
limit: d
|
|
172
|
+
}, j = r?.list_pagination === "cursor", M = o(a, k, !j && !v), N = n(a, k, T && !j && !v), P = g(a, A, j && !v);
|
|
173
|
+
_(i(a, k), !j && !v), _(h(a, A), j && !v);
|
|
174
|
+
let F = v || (j ? P.isLoading : M.isLoading), I = w(() => v ? z : j ? P.rows : M.data?.data ?? [], [
|
|
175
|
+
v,
|
|
176
|
+
j,
|
|
177
|
+
P.rows,
|
|
178
|
+
M.data?.data
|
|
179
|
+
]), L = j ? P.total : N.data?.meta?.total, R = w(() => {
|
|
180
|
+
if (!(j || L === void 0 || d <= 0)) return Math.max(1, Math.ceil(L / d));
|
|
181
|
+
}, [
|
|
182
|
+
j,
|
|
183
|
+
L,
|
|
184
|
+
d
|
|
185
|
+
]), B = V(F, E), H = j ? h(a, A) : i(a, k), U = u(a, k), W = T && !j, G = S(async () => {
|
|
186
|
+
v ? y() : a && (await Promise.all([t.cancelQueries({
|
|
187
|
+
queryKey: H,
|
|
188
|
+
exact: !0
|
|
189
|
+
}), W ? t.cancelQueries({
|
|
190
|
+
queryKey: U,
|
|
191
|
+
exact: !0
|
|
192
|
+
}) : void 0]), await Promise.all([j ? P.refetch() : M.refetch(), W ? N.refetch() : void 0]));
|
|
193
|
+
}, [
|
|
194
|
+
v,
|
|
195
|
+
y,
|
|
196
|
+
a,
|
|
197
|
+
t,
|
|
198
|
+
H,
|
|
199
|
+
U,
|
|
200
|
+
W,
|
|
201
|
+
j,
|
|
202
|
+
P,
|
|
203
|
+
M,
|
|
204
|
+
N
|
|
205
|
+
]), K = S(() => {
|
|
206
|
+
P.fetchNextPage();
|
|
207
|
+
}, [P]);
|
|
208
|
+
return {
|
|
209
|
+
rows: I,
|
|
210
|
+
meta: v ? void 0 : M.data?.meta,
|
|
211
|
+
refs: v ? void 0 : j ? P.refs : M.data?.$refs,
|
|
212
|
+
isLoading: F,
|
|
213
|
+
isFetching: v || (j ? P.isFetching : M.isFetching),
|
|
214
|
+
isShowingPreviousRows: !v && (j ? P.isPlaceholderData : M.isPlaceholderData),
|
|
215
|
+
isError: v ? !1 : j ? P.isError : M.isError,
|
|
216
|
+
error: v ? void 0 : j ? P.error : M.error,
|
|
217
|
+
isLoadingStale: B,
|
|
218
|
+
retry: G,
|
|
219
|
+
countTotal: v ? void 0 : L,
|
|
220
|
+
countStrategy: v ? void 0 : j ? P.countMode : N.data?.meta?.count_mode,
|
|
221
|
+
countLoading: v || (j ? P.isLoading : N.isLoading),
|
|
222
|
+
countError: !v && !j && N.isError,
|
|
223
|
+
totalPages: R,
|
|
224
|
+
hasMorePages: j ? P.hasMore : M.data?.meta?.has_more ?? (R !== void 0 && l < R),
|
|
225
|
+
isCursor: j,
|
|
226
|
+
fetchNextPage: K,
|
|
227
|
+
isFetchingNextPage: P.isFetchingNextPage
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function V(e, t) {
|
|
231
|
+
let [n, r] = T(!1);
|
|
232
|
+
return C(() => {
|
|
233
|
+
if (!e) {
|
|
234
|
+
r(!1);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
r(!1);
|
|
238
|
+
let t = window.setTimeout(() => r(!0), R);
|
|
239
|
+
return () => window.clearTimeout(t);
|
|
240
|
+
}, [e, t]), n;
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/components/pages/list/ListNoRows.tsx
|
|
244
|
+
function H(t, n, r, i) {
|
|
245
|
+
let a = e(n, i);
|
|
246
|
+
if (!(i instanceof l)) return a;
|
|
247
|
+
let o = i.ext("field");
|
|
248
|
+
if (!o) return a;
|
|
249
|
+
let c = r.fields.get(o), u = c ? s(t, c, o) : o, d = i.ext("value");
|
|
250
|
+
return d === void 0 ? t("list.rows.failed_field", "{reason} Field: {field}.", {
|
|
251
|
+
reason: a,
|
|
252
|
+
field: u
|
|
253
|
+
}) : t("list.rows.failed_field_value", "{reason} Field: {field}. Value: {value}.", {
|
|
254
|
+
reason: a,
|
|
255
|
+
field: u,
|
|
256
|
+
value: d
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function U({ isLoading: e, tableLoadingStale: t, isError: n, error: r, rowCount: i, entity: a, screen: o, screenName: s, screenIcon: c, isFiltered: l, canCreate: u, toolbarActions: f, onRetry: h }) {
|
|
260
|
+
let g = p(), _ = p("errors"), y = a.display;
|
|
261
|
+
return e && t ? /* @__PURE__ */ k("div", {
|
|
262
|
+
style: { padding: "0 20px" },
|
|
263
|
+
children: /* @__PURE__ */ k(b, {
|
|
264
|
+
icon: "alert-circle",
|
|
265
|
+
title: g("list.rows.loading_slow_title", "Still loading data"),
|
|
266
|
+
description: g("list.rows.loading_slow_body", "This table is taking longer than expected. Retry the request or check network and server health."),
|
|
267
|
+
action: /* @__PURE__ */ k(m, {
|
|
268
|
+
kind: "primary",
|
|
269
|
+
size: "sm",
|
|
270
|
+
onClick: h,
|
|
271
|
+
children: g("list.rows.retry", "Retry")
|
|
272
|
+
})
|
|
273
|
+
})
|
|
274
|
+
}) : e ? /* @__PURE__ */ k(v, { cols: o.columns?.length ?? 4 }) : n ? /* @__PURE__ */ k("div", {
|
|
275
|
+
style: { padding: "0 20px" },
|
|
276
|
+
children: /* @__PURE__ */ k(b, {
|
|
277
|
+
icon: "alert-circle",
|
|
278
|
+
title: _("list.rows_unreadable", "The records could not be loaded."),
|
|
279
|
+
description: H(g, _, a, r),
|
|
280
|
+
action: /* @__PURE__ */ k(m, {
|
|
281
|
+
kind: "primary",
|
|
282
|
+
size: "sm",
|
|
283
|
+
onClick: h,
|
|
284
|
+
children: g("list.rows.retry", "Retry")
|
|
285
|
+
})
|
|
286
|
+
})
|
|
287
|
+
}) : i === 0 ? /* @__PURE__ */ k("div", {
|
|
288
|
+
style: { padding: "0 20px" },
|
|
289
|
+
children: (() => {
|
|
290
|
+
let e = y.empty_state, t = g(e?.title), n = g(e?.body), r = d(e?.learn_more_url), i = l ? g("list.rows.no_results_title", "No results found") : t || g("list.rows.empty_title", "No {name} yet", { name: g(y.name_plural) || s }), a = u && f.some(({ code: e }) => e === "__new" || e === "__create"), o;
|
|
291
|
+
return o = l ? g("list.rows.no_results_body", "Try adjusting your search or filters") : n ? /* @__PURE__ */ A(O, { children: [n, r && /* @__PURE__ */ A(O, { children: [" ", /* @__PURE__ */ k("a", {
|
|
292
|
+
href: r,
|
|
293
|
+
target: "_blank",
|
|
294
|
+
rel: "noopener noreferrer",
|
|
295
|
+
children: g("list.rows.learn_more", "Learn more")
|
|
296
|
+
})] })] }) : a ? g("list.rows.empty_create", "Create your first {name} to get started", { name: g(y.name) }) : void 0, /* @__PURE__ */ k(b, {
|
|
297
|
+
icon: c,
|
|
298
|
+
title: i,
|
|
299
|
+
description: o
|
|
300
|
+
});
|
|
301
|
+
})()
|
|
302
|
+
}) : null;
|
|
303
|
+
}
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/components/pages/list/use-filter-value-labels.ts
|
|
306
|
+
var W = 200;
|
|
307
|
+
function G(e, n, r, i) {
|
|
308
|
+
let a = p(), o = new Map(e.map((e) => [e.code, e])), s = K(o, n, r, i), l = E({ queries: s.map((e) => {
|
|
309
|
+
let t = {
|
|
310
|
+
per_page: W,
|
|
311
|
+
filters: [{
|
|
312
|
+
field: e.lookupField,
|
|
313
|
+
op: "in",
|
|
314
|
+
value: e.values
|
|
315
|
+
}],
|
|
316
|
+
count: "window"
|
|
317
|
+
};
|
|
318
|
+
return {
|
|
319
|
+
queryKey: [
|
|
320
|
+
"entity-data",
|
|
321
|
+
e.entity,
|
|
322
|
+
t
|
|
323
|
+
],
|
|
324
|
+
queryFn: ({ signal: n }) => c(e.entity, t, { signal: n }),
|
|
325
|
+
staleTime: 6e4
|
|
326
|
+
};
|
|
327
|
+
}) }), u = {};
|
|
328
|
+
if (r) for (let [e, t] of Object.entries(r)) u[e] = { ...t };
|
|
329
|
+
let d = /* @__PURE__ */ new Set();
|
|
330
|
+
return l.forEach((e, t) => {
|
|
331
|
+
let n = s[t];
|
|
332
|
+
if (!n) return;
|
|
333
|
+
let r = e.data?.data;
|
|
334
|
+
if (r) {
|
|
335
|
+
let e = u[n.entity] ??= {};
|
|
336
|
+
for (let t of r) {
|
|
337
|
+
let r = f(t[n.lookupField]);
|
|
338
|
+
r && (e[r] = t);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (e.isLoading) for (let e of n.values) u[n.entity]?.[e] || d.add(`${n.entity}::${e}`);
|
|
342
|
+
}), {
|
|
343
|
+
labelFor: (e, n) => {
|
|
344
|
+
let r = f(n), s = o.get(e);
|
|
345
|
+
if (!s) return {
|
|
346
|
+
status: "plain",
|
|
347
|
+
raw: r
|
|
348
|
+
};
|
|
349
|
+
let c = s.specialValues?.find((e) => e.code === r);
|
|
350
|
+
if (c) return {
|
|
351
|
+
status: "special",
|
|
352
|
+
label: a(c.label) || r,
|
|
353
|
+
raw: r
|
|
354
|
+
};
|
|
355
|
+
if (s.options) {
|
|
356
|
+
let e = s.options.find((e) => e.value === r);
|
|
357
|
+
if (e) return {
|
|
358
|
+
status: "resolved",
|
|
359
|
+
label: e.label,
|
|
360
|
+
raw: r
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
if (s.type === "ref" && s.ref?.entity) {
|
|
364
|
+
let e = s.ref.entity, n = u[e]?.[r];
|
|
365
|
+
if (n) {
|
|
366
|
+
let o = s.ref.display?.field ?? i?.[e]?.display?.display_field;
|
|
367
|
+
return {
|
|
368
|
+
status: "resolved",
|
|
369
|
+
label: t(a, n, o, r),
|
|
370
|
+
raw: r
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
return d.has(`${e}::${r}`) ? {
|
|
374
|
+
status: "loading",
|
|
375
|
+
raw: r
|
|
376
|
+
} : {
|
|
377
|
+
status: "unresolved",
|
|
378
|
+
raw: r
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
return {
|
|
382
|
+
status: "plain",
|
|
383
|
+
raw: r
|
|
384
|
+
};
|
|
385
|
+
},
|
|
386
|
+
refs: u
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function K(e, t, n, i) {
|
|
390
|
+
let a = /* @__PURE__ */ new Map();
|
|
391
|
+
for (let o of y(t)) {
|
|
392
|
+
if (!o.field) continue;
|
|
393
|
+
let t = e.get(o.field);
|
|
394
|
+
if (!t || t.type !== "ref" || !t.ref?.entity) continue;
|
|
395
|
+
let s = t.ref.entity, c = i?.[s], l = t.ref.field || (c ? r(c)[0] : "id") || "id", u = Array.isArray(o.value) ? o.value : [o.value];
|
|
396
|
+
for (let e of u) {
|
|
397
|
+
let r = f(e);
|
|
398
|
+
if (!r || t.specialValues?.some((e) => e.code === r) || n?.[s]?.[r]) continue;
|
|
399
|
+
let i = `${s}::${l}`, o = a.get(i);
|
|
400
|
+
o || (o = {
|
|
401
|
+
key: i,
|
|
402
|
+
entity: s,
|
|
403
|
+
lookupField: l,
|
|
404
|
+
values: []
|
|
405
|
+
}, a.set(i, o)), o.values.includes(r) || o.values.push(r);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
let o = [...a.values()];
|
|
409
|
+
for (let e of o) e.values.sort();
|
|
410
|
+
return o.sort((e, t) => e.key.localeCompare(t.key)), o;
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
export { L as a, B as i, U as n, I as o, H as r, G as t };
|