@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,795 @@
|
|
|
1
|
+
import { Ft as e, Pt as t, g as n, in as r, on as i, sn as a, wn as o, wt as s, xt as c, yn as l } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as u } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { n as d, r as f } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { A as p, Q as m, X as ee, _ as te, h } from "./PropertyGridEditor-BTjscqfz.js";
|
|
5
|
+
import { t as ne } from "./useScreenBack-J861tbwn.js";
|
|
6
|
+
import { t as re } from "./page-inset-D_kkVwwN.js";
|
|
7
|
+
import { g } from "./ActionRunner-DAxgnKB3.js";
|
|
8
|
+
import { c as ie, n as _ } from "./useOwnRefresh-DkOuM4yo.js";
|
|
9
|
+
import { n as v } from "./useObject-1OCeV34A.js";
|
|
10
|
+
import { f as y, g as b, h as x, p as S, u as ae } from "./variants-CbAwl3Mn.js";
|
|
11
|
+
import { n as oe, t as C } from "./payload-B2wODLAX.js";
|
|
12
|
+
import { n as w, r as T } from "./useProperties-CbdhlhZd.js";
|
|
13
|
+
import { _ as se, a as ce, g as E, m as D, n as O, o as k, t as A, u as j } from "./FilterChips-8fMDBXHp.js";
|
|
14
|
+
import { t as le } from "./LayoutRenderer-DEHtYtzV.js";
|
|
15
|
+
import { n as M, t as ue } from "./cardProjection-Cr7fG6wJ.js";
|
|
16
|
+
import { a as de, i as fe, o as pe, r as me, t as he } from "./use-filter-value-labels-DuqvAIVG.js";
|
|
17
|
+
import { useCallback as N, useEffect as P, useMemo as F, useRef as I, useState as L } from "react";
|
|
18
|
+
import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
|
|
19
|
+
import { useSearchParams as ge } from "react-router";
|
|
20
|
+
//#region src/components/pages/SmartRecordListPage.impl.tsx
|
|
21
|
+
var _e = 200, ve = "items:";
|
|
22
|
+
function V({ screenCode: t }) {
|
|
23
|
+
let r = s(), i = s("errors"), [a, l] = ge(), { data: m, refetch: te } = e(), h = c(), [ie, _] = L(!1), v = m?.screens[t], y = v?.entity ? m?.entities[v.entity] : void 0, b = v?.entity;
|
|
24
|
+
k(v, y, a.toString()), ce(v?.route);
|
|
25
|
+
let x = ne(), S = a.get("selected") ?? null, ae = a.get("search") ?? "", oe = p(ae, 300), C = a.get("sort") ?? n(y, v?.sort_default) ?? "", w = F(() => D(a), [a]), { visibleFilterState: T, filterFieldMeta: le, allFilterFieldMeta: ve, filterFieldName: V } = pe(v, y, m?.entities, w.filters), U = T.filters, W = N((e) => {
|
|
26
|
+
l((t) => {
|
|
27
|
+
let n = new URLSearchParams(t);
|
|
28
|
+
return se(e, n), n;
|
|
29
|
+
}, { replace: !0 });
|
|
30
|
+
}, [l]), G = F(() => v?.columns ?? y?.fields.names().filter((e) => !y.fields.get(e)?.primary && !y.fields.get(e)?.auto && y.fields.get(e)?.display?.is_listable !== !1).slice(0, 4) ?? [], [v?.columns, y]), K = F(() => {
|
|
31
|
+
let e = v?.responsive?.[h.category]?.presentation;
|
|
32
|
+
return h.category === "phone" ? "drilldown" : e === "split" || e === "drilldown" || e === "stacked" ? e : "split";
|
|
33
|
+
}, [v?.responsive, h.category]), q = F(() => {
|
|
34
|
+
let e = v?.responsive?.[h.category];
|
|
35
|
+
return e?.list?.presentation === "table" || e?.list?.presentation === "cards" ? e.list.presentation : e?.presentation === "table" || e?.presentation === "cards" ? e.presentation : h.category === "phone" ? "cards" : "table";
|
|
36
|
+
}, [v?.responsive, h.category]), be = v?.responsive?.[h.category]?.layout?.related_records, xe = F(() => ue({
|
|
37
|
+
entity: y,
|
|
38
|
+
screen: v
|
|
39
|
+
}), [y, v]), Se = F(() => M({
|
|
40
|
+
entity: y,
|
|
41
|
+
screen: v,
|
|
42
|
+
presentation: q,
|
|
43
|
+
visibleColumns: G,
|
|
44
|
+
card: xe,
|
|
45
|
+
sort: C
|
|
46
|
+
}), [
|
|
47
|
+
y,
|
|
48
|
+
v,
|
|
49
|
+
q,
|
|
50
|
+
G,
|
|
51
|
+
xe,
|
|
52
|
+
C
|
|
53
|
+
]), J = fe({
|
|
54
|
+
entity: y,
|
|
55
|
+
entityCode: b,
|
|
56
|
+
screen: v,
|
|
57
|
+
screenCode: t,
|
|
58
|
+
page: 1,
|
|
59
|
+
perPage: _e,
|
|
60
|
+
sortForRequest: g(C),
|
|
61
|
+
debouncedSearch: oe,
|
|
62
|
+
filters: U,
|
|
63
|
+
includeDeleted: !1,
|
|
64
|
+
expand: Se.expandFields,
|
|
65
|
+
select: Se.selectFields,
|
|
66
|
+
isHeld: !y,
|
|
67
|
+
retryHeld: () => {
|
|
68
|
+
te();
|
|
69
|
+
},
|
|
70
|
+
runCountQuery: !1,
|
|
71
|
+
urlKey: `${b ?? ""}|${a.toString()}`
|
|
72
|
+
}), Ce = J.rows, we = J.refs, Te = J.isLoading, { labelFor: Ee, refs: De } = he(ve, U, we, m?.entities), Oe = F(() => y?.fields.names().find((e) => y.fields.get(e)?.primary) ?? "id", [y]), ke = N((e, t) => {
|
|
73
|
+
l((t) => {
|
|
74
|
+
let n = new URLSearchParams(t);
|
|
75
|
+
return e ? n.set("selected", e) : n.delete("selected"), n;
|
|
76
|
+
}, { replace: t?.replace ?? !0 });
|
|
77
|
+
}, [l]), Ae = N((e) => {
|
|
78
|
+
l((t) => {
|
|
79
|
+
let n = new URLSearchParams(t);
|
|
80
|
+
return e ? n.set("search", e) : n.delete("search"), n;
|
|
81
|
+
}, { replace: !0 });
|
|
82
|
+
}, [l]), Y = (v?.list_resizable ?? !1) && K === "split" && h.category !== "phone" && !h.touch, X = I(null), [Z, Q] = L(null), je = I(!1), $ = v?.list_width;
|
|
83
|
+
P(() => {
|
|
84
|
+
Y && $?.endsWith("%") && Q(null);
|
|
85
|
+
}, [
|
|
86
|
+
Y,
|
|
87
|
+
$,
|
|
88
|
+
h.width,
|
|
89
|
+
h.height
|
|
90
|
+
]), P(() => {
|
|
91
|
+
if (!Y || Z !== null) return;
|
|
92
|
+
let e = X.current;
|
|
93
|
+
if (e) {
|
|
94
|
+
if ($ && $.endsWith("%")) {
|
|
95
|
+
let t = parseFloat($) / 100;
|
|
96
|
+
Q(Math.round(e.getBoundingClientRect().width * t));
|
|
97
|
+
} else Q($ && parseInt($, 10) || 320);
|
|
98
|
+
}
|
|
99
|
+
}, [
|
|
100
|
+
Y,
|
|
101
|
+
$,
|
|
102
|
+
Z,
|
|
103
|
+
y
|
|
104
|
+
]);
|
|
105
|
+
let Me = I(null);
|
|
106
|
+
P(() => () => {
|
|
107
|
+
Me.current?.();
|
|
108
|
+
}, []);
|
|
109
|
+
let Ne = N((e) => {
|
|
110
|
+
e.preventDefault(), je.current = !0;
|
|
111
|
+
let t = e.clientX, n = Z ?? 320, r = (e) => {
|
|
112
|
+
if (!je.current) return;
|
|
113
|
+
let r = (X.current?.getBoundingClientRect().width ?? window.innerWidth) - 300, i = Math.max(200, Math.min(r, n + e.clientX - t));
|
|
114
|
+
Q(i);
|
|
115
|
+
}, i = () => {
|
|
116
|
+
je.current = !1, document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", i), document.body.style.cursor = "", document.body.style.userSelect = "", Me.current = null;
|
|
117
|
+
};
|
|
118
|
+
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", r), document.addEventListener("mouseup", i), Me.current = i;
|
|
119
|
+
}, [Z]);
|
|
120
|
+
if (!m || !v || !y) return null;
|
|
121
|
+
let Pe = j(U), Fe = K === "split" || K === "stacked" || !S, Ie = K === "split" || K === "stacked" || !!S, Le = K !== "split" && S ? () => ke(null, { replace: !0 }) : void 0, Re = K === "split" ? Y && Z !== null ? Z : v.list_width ?? "320px" : "100%";
|
|
122
|
+
return /* @__PURE__ */ B("div", {
|
|
123
|
+
ref: X,
|
|
124
|
+
"data-record-list-presentation": K,
|
|
125
|
+
style: {
|
|
126
|
+
display: "flex",
|
|
127
|
+
flexDirection: K === "stacked" ? "column" : "row",
|
|
128
|
+
height: "100%",
|
|
129
|
+
minWidth: 0,
|
|
130
|
+
overflow: "hidden"
|
|
131
|
+
},
|
|
132
|
+
children: [
|
|
133
|
+
Fe && /* @__PURE__ */ B("div", {
|
|
134
|
+
"data-testid": "record-list-panel",
|
|
135
|
+
style: {
|
|
136
|
+
flex: K === "split" ? "none" : "1 1 auto",
|
|
137
|
+
display: "flex",
|
|
138
|
+
flexDirection: "column",
|
|
139
|
+
overflow: "hidden",
|
|
140
|
+
borderRight: K === "split" && !Y ? "1px solid var(--divider)" : "none",
|
|
141
|
+
borderBottom: K === "stacked" ? "1px solid var(--divider)" : "none",
|
|
142
|
+
width: Re,
|
|
143
|
+
minWidth: 0,
|
|
144
|
+
height: K === "stacked" ? "50%" : "100%"
|
|
145
|
+
},
|
|
146
|
+
children: [/* @__PURE__ */ B("div", {
|
|
147
|
+
style: {
|
|
148
|
+
paddingTop: 12,
|
|
149
|
+
paddingBottom: 12,
|
|
150
|
+
...re(12),
|
|
151
|
+
display: "flex",
|
|
152
|
+
flexDirection: "column",
|
|
153
|
+
gap: 8,
|
|
154
|
+
borderBottom: "1px solid var(--divider)"
|
|
155
|
+
},
|
|
156
|
+
children: [
|
|
157
|
+
x.hasOriginBack && /* @__PURE__ */ B("div", {
|
|
158
|
+
style: {
|
|
159
|
+
display: "flex",
|
|
160
|
+
alignItems: "center",
|
|
161
|
+
gap: 8
|
|
162
|
+
},
|
|
163
|
+
children: [/* @__PURE__ */ z(d, {
|
|
164
|
+
icon: /* @__PURE__ */ z(u.back, { size: 14 }),
|
|
165
|
+
title: r("list.header.back", "Back"),
|
|
166
|
+
onClick: x.goBack
|
|
167
|
+
}), /* @__PURE__ */ z("span", {
|
|
168
|
+
style: {
|
|
169
|
+
fontSize: 12.5,
|
|
170
|
+
fontWeight: 600,
|
|
171
|
+
color: "var(--text)"
|
|
172
|
+
},
|
|
173
|
+
children: r(v.display?.name) || r(y.display.name_plural)
|
|
174
|
+
})]
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ z(ee, {
|
|
177
|
+
value: ae,
|
|
178
|
+
onChange: Ae,
|
|
179
|
+
placeholder: r("list.toolbar.search_placeholder", "Search {name}…", { name: r(y.display.name_plural) }),
|
|
180
|
+
prefix: /* @__PURE__ */ z(u.search, { size: 13 })
|
|
181
|
+
}),
|
|
182
|
+
w.error && /* @__PURE__ */ B("div", {
|
|
183
|
+
role: "alert",
|
|
184
|
+
"data-testid": "record-list-filter-url-error",
|
|
185
|
+
style: {
|
|
186
|
+
padding: "7px 9px",
|
|
187
|
+
border: "1px solid var(--danger)",
|
|
188
|
+
borderRadius: 6,
|
|
189
|
+
color: "var(--danger)",
|
|
190
|
+
fontSize: 11.5
|
|
191
|
+
},
|
|
192
|
+
children: [
|
|
193
|
+
i(w.errorCode ?? "", w.error),
|
|
194
|
+
" ",
|
|
195
|
+
r("list.filters.invalid_suffix", "Showing this list without URL filters.")
|
|
196
|
+
]
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ B(f, {
|
|
199
|
+
size: "xs",
|
|
200
|
+
icon: /* @__PURE__ */ z(u.filter, { size: 12 }),
|
|
201
|
+
onClick: () => _(!0),
|
|
202
|
+
children: [r("filter.drawer.title", "Filters"), Pe > 0 ? ` (${Pe})` : ""]
|
|
203
|
+
}),
|
|
204
|
+
T.omitted && /* @__PURE__ */ z(de, {}),
|
|
205
|
+
/* @__PURE__ */ z(A, {
|
|
206
|
+
filters: U,
|
|
207
|
+
resolveValue: Ee,
|
|
208
|
+
fieldLabel: V,
|
|
209
|
+
onRemoveAtPath: (e) => W(E(U, e)),
|
|
210
|
+
onClearAll: () => W([]),
|
|
211
|
+
onChipClick: () => _(!0)
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ z("div", {
|
|
214
|
+
style: {
|
|
215
|
+
display: "flex",
|
|
216
|
+
alignItems: "center",
|
|
217
|
+
justifyContent: "space-between",
|
|
218
|
+
fontSize: 11,
|
|
219
|
+
color: "var(--text-3)"
|
|
220
|
+
},
|
|
221
|
+
children: /* @__PURE__ */ z("span", { children: Te ? r("list.records.loading", "Loading…") : J.isError ? i("list.rows_unreadable", "The records could not be loaded.") : r("list.records.count", "{count} {name}", {
|
|
222
|
+
count: Ce.length,
|
|
223
|
+
name: r(y.display.name_plural)
|
|
224
|
+
}) })
|
|
225
|
+
})
|
|
226
|
+
]
|
|
227
|
+
}), /* @__PURE__ */ z("div", {
|
|
228
|
+
style: {
|
|
229
|
+
flex: 1,
|
|
230
|
+
overflowY: "auto",
|
|
231
|
+
padding: q === "cards" ? 10 : 0,
|
|
232
|
+
display: q === "cards" ? "flex" : "block",
|
|
233
|
+
flexDirection: "column",
|
|
234
|
+
gap: q === "cards" ? 10 : void 0
|
|
235
|
+
},
|
|
236
|
+
children: Te ? /* @__PURE__ */ z("div", {
|
|
237
|
+
style: {
|
|
238
|
+
padding: 12,
|
|
239
|
+
display: "flex",
|
|
240
|
+
flexDirection: "column",
|
|
241
|
+
gap: 6
|
|
242
|
+
},
|
|
243
|
+
children: Array.from({ length: 8 }).map((e, t) => /* @__PURE__ */ z("div", { style: {
|
|
244
|
+
height: 48,
|
|
245
|
+
borderRadius: 6,
|
|
246
|
+
background: "var(--surface-3)"
|
|
247
|
+
} }, t))
|
|
248
|
+
}) : J.isError ? /* @__PURE__ */ B("div", {
|
|
249
|
+
role: "alert",
|
|
250
|
+
style: {
|
|
251
|
+
padding: 16,
|
|
252
|
+
color: "var(--text-2)"
|
|
253
|
+
},
|
|
254
|
+
children: [me(r, i, y, J.error), /* @__PURE__ */ z(f, {
|
|
255
|
+
size: "xs",
|
|
256
|
+
onClick: () => {
|
|
257
|
+
J.retry();
|
|
258
|
+
},
|
|
259
|
+
children: r("list.rows.retry", "Retry")
|
|
260
|
+
})]
|
|
261
|
+
}) : Ce.length === 0 ? /* @__PURE__ */ z("div", {
|
|
262
|
+
style: {
|
|
263
|
+
padding: 28,
|
|
264
|
+
textAlign: "center",
|
|
265
|
+
fontSize: 12.5,
|
|
266
|
+
color: "var(--text-3)"
|
|
267
|
+
},
|
|
268
|
+
children: r("list.records.none", "No records found")
|
|
269
|
+
}) : /* @__PURE__ */ B(R, { children: [Ce.map((e) => {
|
|
270
|
+
let t = o(e[Oe]);
|
|
271
|
+
return /* @__PURE__ */ z(H, {
|
|
272
|
+
record: e,
|
|
273
|
+
entity: y,
|
|
274
|
+
columns: G,
|
|
275
|
+
card: xe,
|
|
276
|
+
presentation: q,
|
|
277
|
+
refs: we,
|
|
278
|
+
isSelected: t === S,
|
|
279
|
+
onClick: () => ke(t, { replace: K === "split" })
|
|
280
|
+
}, t);
|
|
281
|
+
}), J.isCursor && J.hasMorePages && /* @__PURE__ */ z("button", {
|
|
282
|
+
type: "button",
|
|
283
|
+
"data-testid": "record-list-load-more",
|
|
284
|
+
onClick: J.fetchNextPage,
|
|
285
|
+
disabled: J.isFetchingNextPage,
|
|
286
|
+
style: {
|
|
287
|
+
width: "100%",
|
|
288
|
+
padding: "8px 12px",
|
|
289
|
+
fontSize: 12,
|
|
290
|
+
background: "transparent",
|
|
291
|
+
border: "none",
|
|
292
|
+
borderTop: "1px solid var(--divider)",
|
|
293
|
+
color: "var(--text-2)",
|
|
294
|
+
cursor: J.isFetchingNextPage ? "default" : "pointer"
|
|
295
|
+
},
|
|
296
|
+
children: J.isFetchingNextPage ? r("list.records.loading", "Loading…") : r("list.footer.load_more", "Load more")
|
|
297
|
+
})] })
|
|
298
|
+
})]
|
|
299
|
+
}),
|
|
300
|
+
Y && /* @__PURE__ */ z("div", {
|
|
301
|
+
"data-testid": "record-list-resize-handle",
|
|
302
|
+
onMouseDown: Ne,
|
|
303
|
+
style: {
|
|
304
|
+
flex: "none",
|
|
305
|
+
width: 1,
|
|
306
|
+
cursor: "col-resize",
|
|
307
|
+
background: "var(--divider)",
|
|
308
|
+
transition: "background-color .12s"
|
|
309
|
+
},
|
|
310
|
+
onMouseEnter: (e) => e.currentTarget.style.background = "var(--border-strong)",
|
|
311
|
+
onMouseLeave: (e) => e.currentTarget.style.background = "var(--divider)"
|
|
312
|
+
}),
|
|
313
|
+
Ie && /* @__PURE__ */ B("div", {
|
|
314
|
+
"data-testid": "record-detail-panel",
|
|
315
|
+
style: {
|
|
316
|
+
flex: 1,
|
|
317
|
+
display: "flex",
|
|
318
|
+
flexDirection: "column",
|
|
319
|
+
minWidth: 0,
|
|
320
|
+
overflow: "hidden",
|
|
321
|
+
height: K === "stacked" ? "50%" : "100%"
|
|
322
|
+
},
|
|
323
|
+
children: [!Fe && T.omitted && /* @__PURE__ */ z(de, { className: "p-4" }), /* @__PURE__ */ z("div", {
|
|
324
|
+
style: {
|
|
325
|
+
flex: 1,
|
|
326
|
+
minHeight: 0
|
|
327
|
+
},
|
|
328
|
+
children: S ? /* @__PURE__ */ z(ye, {
|
|
329
|
+
entityCode: b,
|
|
330
|
+
recordId: S,
|
|
331
|
+
items: v.items,
|
|
332
|
+
schema: m,
|
|
333
|
+
entity: y,
|
|
334
|
+
onBackToList: Le,
|
|
335
|
+
onOpenFilters: Fe ? void 0 : () => _(!0),
|
|
336
|
+
relatedRecordsPresentation: be
|
|
337
|
+
}, S) : /* @__PURE__ */ z("div", {
|
|
338
|
+
style: {
|
|
339
|
+
display: "flex",
|
|
340
|
+
alignItems: "center",
|
|
341
|
+
justifyContent: "center",
|
|
342
|
+
height: "100%",
|
|
343
|
+
color: "var(--text-3)"
|
|
344
|
+
},
|
|
345
|
+
children: /* @__PURE__ */ z("p", {
|
|
346
|
+
style: { fontSize: 12.5 },
|
|
347
|
+
children: r("list.detail.select_prompt", "Select a {name} to view details", { name: r(y.display.name) })
|
|
348
|
+
})
|
|
349
|
+
})
|
|
350
|
+
})]
|
|
351
|
+
}),
|
|
352
|
+
/* @__PURE__ */ z(O, {
|
|
353
|
+
open: ie,
|
|
354
|
+
onClose: () => _(!1),
|
|
355
|
+
filters: U,
|
|
356
|
+
onApply: W,
|
|
357
|
+
availableFields: le,
|
|
358
|
+
allFields: ve,
|
|
359
|
+
fieldLabel: V,
|
|
360
|
+
resolveValue: Ee,
|
|
361
|
+
defaultFilters: v.default_filters,
|
|
362
|
+
refs: De
|
|
363
|
+
})
|
|
364
|
+
]
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
function H({ record: e, entity: t, columns: n, card: r, presentation: i, refs: a, isSelected: o, onClick: c }) {
|
|
368
|
+
let l = s();
|
|
369
|
+
if (i === "cards") {
|
|
370
|
+
let n = r.badgeFields.filter((n) => x(t, e, n)), i = r.bodyFields.filter((n) => x(t, e, n)), s = r.metaFields.filter((n) => x(t, e, n));
|
|
371
|
+
return /* @__PURE__ */ B("button", {
|
|
372
|
+
type: "button",
|
|
373
|
+
"data-testid": "record-list-card",
|
|
374
|
+
"aria-current": o ? "true" : void 0,
|
|
375
|
+
onClick: c,
|
|
376
|
+
style: {
|
|
377
|
+
width: "100%",
|
|
378
|
+
textAlign: "left",
|
|
379
|
+
padding: 12,
|
|
380
|
+
border: "1px solid var(--border)",
|
|
381
|
+
borderRadius: 8,
|
|
382
|
+
background: o ? "var(--row-selected-bg)" : "var(--surface)",
|
|
383
|
+
color: "var(--text)",
|
|
384
|
+
cursor: "pointer",
|
|
385
|
+
display: "flex",
|
|
386
|
+
flexDirection: "column",
|
|
387
|
+
gap: 8,
|
|
388
|
+
boxShadow: o ? "inset 3px 0 0 var(--accent)" : "none"
|
|
389
|
+
},
|
|
390
|
+
children: [
|
|
391
|
+
/* @__PURE__ */ z(U, {
|
|
392
|
+
entity: t,
|
|
393
|
+
record: e,
|
|
394
|
+
field: r.titleField,
|
|
395
|
+
refs: a
|
|
396
|
+
}),
|
|
397
|
+
r.subtitleField && /* @__PURE__ */ z("div", {
|
|
398
|
+
style: {
|
|
399
|
+
fontSize: 12,
|
|
400
|
+
color: "var(--text-3)",
|
|
401
|
+
overflowWrap: "anywhere"
|
|
402
|
+
},
|
|
403
|
+
children: S({
|
|
404
|
+
entity: t,
|
|
405
|
+
fieldName: r.subtitleField,
|
|
406
|
+
record: e,
|
|
407
|
+
mode: "display",
|
|
408
|
+
refs: a,
|
|
409
|
+
t: l
|
|
410
|
+
})
|
|
411
|
+
}),
|
|
412
|
+
n.length > 0 && /* @__PURE__ */ z("div", {
|
|
413
|
+
style: {
|
|
414
|
+
display: "flex",
|
|
415
|
+
flexWrap: "wrap",
|
|
416
|
+
gap: 6
|
|
417
|
+
},
|
|
418
|
+
children: n.map((n) => /* @__PURE__ */ z("span", {
|
|
419
|
+
style: {
|
|
420
|
+
border: "1px solid var(--border)",
|
|
421
|
+
borderRadius: 999,
|
|
422
|
+
padding: "2px 7px",
|
|
423
|
+
fontSize: 11,
|
|
424
|
+
color: "var(--text-2)",
|
|
425
|
+
maxWidth: "100%",
|
|
426
|
+
overflowWrap: "anywhere"
|
|
427
|
+
},
|
|
428
|
+
children: S({
|
|
429
|
+
entity: t,
|
|
430
|
+
fieldName: n,
|
|
431
|
+
record: e,
|
|
432
|
+
mode: "display",
|
|
433
|
+
refs: a,
|
|
434
|
+
t: l
|
|
435
|
+
})
|
|
436
|
+
}, n))
|
|
437
|
+
}),
|
|
438
|
+
i.length > 0 && /* @__PURE__ */ z("dl", {
|
|
439
|
+
style: {
|
|
440
|
+
display: "grid",
|
|
441
|
+
gridTemplateColumns: "minmax(72px, max-content) minmax(0, 1fr)",
|
|
442
|
+
gap: "5px 10px",
|
|
443
|
+
margin: 0
|
|
444
|
+
},
|
|
445
|
+
children: i.map((n) => /* @__PURE__ */ z(W, {
|
|
446
|
+
entity: t,
|
|
447
|
+
record: e,
|
|
448
|
+
fieldName: n,
|
|
449
|
+
refs: a
|
|
450
|
+
}, n))
|
|
451
|
+
}),
|
|
452
|
+
s.length > 0 && /* @__PURE__ */ z("div", {
|
|
453
|
+
style: {
|
|
454
|
+
display: "flex",
|
|
455
|
+
flexWrap: "wrap",
|
|
456
|
+
gap: 8,
|
|
457
|
+
fontSize: 11,
|
|
458
|
+
color: "var(--text-3)"
|
|
459
|
+
},
|
|
460
|
+
children: s.map((n) => /* @__PURE__ */ z("span", {
|
|
461
|
+
style: {
|
|
462
|
+
minWidth: 0,
|
|
463
|
+
overflowWrap: "anywhere"
|
|
464
|
+
},
|
|
465
|
+
children: S({
|
|
466
|
+
entity: t,
|
|
467
|
+
fieldName: n,
|
|
468
|
+
record: e,
|
|
469
|
+
mode: "display",
|
|
470
|
+
refs: a,
|
|
471
|
+
t: l
|
|
472
|
+
})
|
|
473
|
+
}, n))
|
|
474
|
+
})
|
|
475
|
+
]
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
let u = n[0], d = n[1], f = n.slice(2, 4);
|
|
479
|
+
return /* @__PURE__ */ B("button", {
|
|
480
|
+
onClick: c,
|
|
481
|
+
style: {
|
|
482
|
+
width: "100%",
|
|
483
|
+
textAlign: "left",
|
|
484
|
+
padding: "10px 12px",
|
|
485
|
+
borderBottom: "1px solid var(--divider)",
|
|
486
|
+
background: o ? "var(--row-selected-bg)" : "transparent",
|
|
487
|
+
borderLeft: o ? "2px solid var(--accent)" : "2px solid transparent",
|
|
488
|
+
cursor: "pointer",
|
|
489
|
+
transition: "background-color .12s",
|
|
490
|
+
display: "flex",
|
|
491
|
+
flexDirection: "column",
|
|
492
|
+
gap: 2,
|
|
493
|
+
border: "1px solid transparent",
|
|
494
|
+
borderBottomColor: "var(--divider)"
|
|
495
|
+
},
|
|
496
|
+
onMouseEnter: (e) => {
|
|
497
|
+
o || (e.currentTarget.style.background = "var(--surface-3)");
|
|
498
|
+
},
|
|
499
|
+
onMouseLeave: (e) => {
|
|
500
|
+
o || (e.currentTarget.style.background = "transparent");
|
|
501
|
+
},
|
|
502
|
+
children: [u && /* @__PURE__ */ z("div", {
|
|
503
|
+
style: {
|
|
504
|
+
fontSize: 12.5,
|
|
505
|
+
fontWeight: 500,
|
|
506
|
+
overflow: "hidden",
|
|
507
|
+
textOverflow: "ellipsis",
|
|
508
|
+
whiteSpace: "nowrap",
|
|
509
|
+
color: "var(--text)"
|
|
510
|
+
},
|
|
511
|
+
children: S({
|
|
512
|
+
entity: t,
|
|
513
|
+
fieldName: u,
|
|
514
|
+
record: e,
|
|
515
|
+
mode: "display",
|
|
516
|
+
refs: a,
|
|
517
|
+
t: l
|
|
518
|
+
})
|
|
519
|
+
}), /* @__PURE__ */ B("div", {
|
|
520
|
+
style: {
|
|
521
|
+
display: "flex",
|
|
522
|
+
alignItems: "center",
|
|
523
|
+
gap: 6
|
|
524
|
+
},
|
|
525
|
+
children: [d && /* @__PURE__ */ z("div", {
|
|
526
|
+
style: {
|
|
527
|
+
fontSize: 11,
|
|
528
|
+
color: "var(--text-3)",
|
|
529
|
+
flex: 1,
|
|
530
|
+
overflow: "hidden",
|
|
531
|
+
textOverflow: "ellipsis",
|
|
532
|
+
whiteSpace: "nowrap"
|
|
533
|
+
},
|
|
534
|
+
children: S({
|
|
535
|
+
entity: t,
|
|
536
|
+
fieldName: d,
|
|
537
|
+
record: e,
|
|
538
|
+
mode: "display",
|
|
539
|
+
refs: a,
|
|
540
|
+
t: l
|
|
541
|
+
})
|
|
542
|
+
}), /* @__PURE__ */ z("div", {
|
|
543
|
+
style: {
|
|
544
|
+
display: "flex",
|
|
545
|
+
alignItems: "center",
|
|
546
|
+
gap: 4,
|
|
547
|
+
flexShrink: 0
|
|
548
|
+
},
|
|
549
|
+
children: f.map((n) => y(t, e, n) == null ? null : /* @__PURE__ */ z("div", {
|
|
550
|
+
style: { fontSize: 11 },
|
|
551
|
+
children: S({
|
|
552
|
+
entity: t,
|
|
553
|
+
fieldName: n,
|
|
554
|
+
record: e,
|
|
555
|
+
mode: "display",
|
|
556
|
+
refs: a,
|
|
557
|
+
t: l
|
|
558
|
+
})
|
|
559
|
+
}, n))
|
|
560
|
+
})]
|
|
561
|
+
})]
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function U({ entity: e, record: t, field: n, refs: r }) {
|
|
565
|
+
let i = s(), o = a(i, t, e), c = n ? S({
|
|
566
|
+
entity: e,
|
|
567
|
+
fieldName: n,
|
|
568
|
+
record: t,
|
|
569
|
+
mode: "display",
|
|
570
|
+
refs: r,
|
|
571
|
+
t: i
|
|
572
|
+
}) : o;
|
|
573
|
+
return /* @__PURE__ */ z("div", {
|
|
574
|
+
style: {
|
|
575
|
+
fontSize: 13.5,
|
|
576
|
+
fontWeight: 600,
|
|
577
|
+
color: "var(--text)",
|
|
578
|
+
overflowWrap: "anywhere"
|
|
579
|
+
},
|
|
580
|
+
children: c || i(e.display.name)
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
function W({ entity: e, record: t, fieldName: n, refs: r }) {
|
|
584
|
+
let a = s(), o = y(e, t, n);
|
|
585
|
+
if (o == null || o === "") return null;
|
|
586
|
+
let c = e.fields.get(n);
|
|
587
|
+
return c ? /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("dt", {
|
|
588
|
+
style: {
|
|
589
|
+
color: "var(--text-3)",
|
|
590
|
+
fontSize: 11.5,
|
|
591
|
+
minWidth: 0,
|
|
592
|
+
overflowWrap: "anywhere"
|
|
593
|
+
},
|
|
594
|
+
children: i(a, c, n)
|
|
595
|
+
}), /* @__PURE__ */ z("dd", {
|
|
596
|
+
style: {
|
|
597
|
+
margin: 0,
|
|
598
|
+
color: "var(--text)",
|
|
599
|
+
fontSize: 12,
|
|
600
|
+
minWidth: 0,
|
|
601
|
+
overflowWrap: "anywhere"
|
|
602
|
+
},
|
|
603
|
+
children: S({
|
|
604
|
+
entity: e,
|
|
605
|
+
fieldName: n,
|
|
606
|
+
record: t,
|
|
607
|
+
mode: "display",
|
|
608
|
+
refs: r,
|
|
609
|
+
t: a
|
|
610
|
+
})
|
|
611
|
+
})] }) : null;
|
|
612
|
+
}
|
|
613
|
+
function ye({ entityCode: e, recordId: t, items: n, schema: r, entity: i, onBackToList: a, onOpenFilters: o, relatedRecordsPresentation: s }) {
|
|
614
|
+
return /* @__PURE__ */ z(h, { children: /* @__PURE__ */ z(G, {
|
|
615
|
+
entityCode: e,
|
|
616
|
+
recordId: t,
|
|
617
|
+
items: n,
|
|
618
|
+
schema: r,
|
|
619
|
+
entity: i,
|
|
620
|
+
onBackToList: a,
|
|
621
|
+
onOpenFilters: o,
|
|
622
|
+
relatedRecordsPresentation: s
|
|
623
|
+
}) });
|
|
624
|
+
}
|
|
625
|
+
function G({ entityCode: e, recordId: n, items: i, schema: c, entity: p, onBackToList: ee, onOpenFilters: h, relatedRecordsPresentation: ne }) {
|
|
626
|
+
let g = s(), x = r(p, "update"), S = F(() => n ? l(p, n) : void 0, [n, p]), { data: se, isLoading: ce } = v(e, S), E = ie(e), D = te(), [O, k] = L(!1), [A, j] = L({}), M = se?.data, ue = M?.$statuses, de = M?.$properties, fe = T(e, n), pe = w(e, n), me = F(() => {
|
|
627
|
+
let e = /* @__PURE__ */ new Set();
|
|
628
|
+
for (let [t, n] of p.fields) !n.auto && !n.primary && e.add(t);
|
|
629
|
+
for (let [t] of p.files ?? []) e.add(t);
|
|
630
|
+
return e;
|
|
631
|
+
}, [p]), he = N(() => {
|
|
632
|
+
if (M) {
|
|
633
|
+
let e = {};
|
|
634
|
+
me.forEach((t) => {
|
|
635
|
+
let n = y(p, M, t);
|
|
636
|
+
e[t] = ae(p, t) ? n ?? null : n ?? "";
|
|
637
|
+
}), j(e);
|
|
638
|
+
}
|
|
639
|
+
k(!0);
|
|
640
|
+
}, [
|
|
641
|
+
M,
|
|
642
|
+
me,
|
|
643
|
+
p
|
|
644
|
+
]), P = N(async () => {
|
|
645
|
+
await D.flushAllDrafts(), k(!1), j({});
|
|
646
|
+
}, [D]), I = N(() => {
|
|
647
|
+
let e = {}, t = C({
|
|
648
|
+
entity: p,
|
|
649
|
+
formData: A,
|
|
650
|
+
record: M,
|
|
651
|
+
isNew: !1
|
|
652
|
+
}), r = oe(t);
|
|
653
|
+
for (let [t, n] of Object.entries(A)) p.files?.has(t) || (e[t] = b(p, t, n));
|
|
654
|
+
Object.keys(t).length > 0 && (e.$files = t), Object.keys(e).length === 0 ? (k(!1), j({})) : E.mutate({
|
|
655
|
+
pkValues: n,
|
|
656
|
+
data: e
|
|
657
|
+
}, { onSuccess: () => {
|
|
658
|
+
r.forEach((e) => D.markCommitted(e)), k(!1), j({});
|
|
659
|
+
} });
|
|
660
|
+
}, [
|
|
661
|
+
D,
|
|
662
|
+
E,
|
|
663
|
+
n,
|
|
664
|
+
p,
|
|
665
|
+
A,
|
|
666
|
+
M
|
|
667
|
+
]), ge = N((e, t) => {
|
|
668
|
+
j((n) => ({
|
|
669
|
+
...n,
|
|
670
|
+
[e]: t
|
|
671
|
+
}));
|
|
672
|
+
}, []);
|
|
673
|
+
if (ce) return /* @__PURE__ */ z(_, {});
|
|
674
|
+
if (!M) return null;
|
|
675
|
+
let _e = a(g, M, p), V = p.display?.display_field, H = _e ? void 0 : V ? M[V] : M[p.fields.names()[0]], U = _e || (H != null && typeof H != "object" ? o(H) : g(p.display.name)), W = M?.$refs, ye = {
|
|
676
|
+
schema: c,
|
|
677
|
+
entity: p,
|
|
678
|
+
entityCode: e,
|
|
679
|
+
recordId: n,
|
|
680
|
+
record: O ? {
|
|
681
|
+
...M,
|
|
682
|
+
...A
|
|
683
|
+
} : M,
|
|
684
|
+
isNew: !1,
|
|
685
|
+
mode: O ? "edit" : "display",
|
|
686
|
+
onFieldChange: O ? ge : void 0,
|
|
687
|
+
refs: W,
|
|
688
|
+
objectProperties: de ?? void 0,
|
|
689
|
+
onSetProperty: x ? (e, t) => pe.mutate({
|
|
690
|
+
propertyCode: e,
|
|
691
|
+
value: t
|
|
692
|
+
}) : void 0,
|
|
693
|
+
isPropertyPending: pe.isPending,
|
|
694
|
+
objectStatuses: ue ?? void 0,
|
|
695
|
+
onSetStatus: x ? (e, t) => fe.mutate({
|
|
696
|
+
groupCode: e,
|
|
697
|
+
statusCode: t
|
|
698
|
+
}) : void 0,
|
|
699
|
+
isStatusPending: fe.isPending,
|
|
700
|
+
relatedRecordsPresentation: ne
|
|
701
|
+
};
|
|
702
|
+
return /* @__PURE__ */ B("div", {
|
|
703
|
+
style: {
|
|
704
|
+
display: "flex",
|
|
705
|
+
flexDirection: "column",
|
|
706
|
+
height: "100%"
|
|
707
|
+
},
|
|
708
|
+
children: [/* @__PURE__ */ B("div", {
|
|
709
|
+
style: {
|
|
710
|
+
display: "flex",
|
|
711
|
+
alignItems: "center",
|
|
712
|
+
justifyContent: "space-between",
|
|
713
|
+
paddingTop: 10,
|
|
714
|
+
paddingBottom: 10,
|
|
715
|
+
...re(16),
|
|
716
|
+
borderBottom: "1px solid var(--divider)",
|
|
717
|
+
position: "sticky",
|
|
718
|
+
top: 0,
|
|
719
|
+
background: "var(--surface)",
|
|
720
|
+
zIndex: 10
|
|
721
|
+
},
|
|
722
|
+
children: [/* @__PURE__ */ z("h2", {
|
|
723
|
+
style: {
|
|
724
|
+
margin: 0,
|
|
725
|
+
fontSize: 13,
|
|
726
|
+
fontWeight: 600,
|
|
727
|
+
overflow: "hidden",
|
|
728
|
+
textOverflow: "ellipsis",
|
|
729
|
+
whiteSpace: "nowrap",
|
|
730
|
+
color: "var(--text)"
|
|
731
|
+
},
|
|
732
|
+
children: U
|
|
733
|
+
}), /* @__PURE__ */ B("div", {
|
|
734
|
+
style: {
|
|
735
|
+
display: "flex",
|
|
736
|
+
alignItems: "center",
|
|
737
|
+
gap: 6
|
|
738
|
+
},
|
|
739
|
+
children: [
|
|
740
|
+
ee && /* @__PURE__ */ z(d, {
|
|
741
|
+
icon: /* @__PURE__ */ z(u.back, { size: 14 }),
|
|
742
|
+
title: g("list.detail.back_to_list", "Back to list"),
|
|
743
|
+
onClick: ee
|
|
744
|
+
}),
|
|
745
|
+
h && /* @__PURE__ */ z(d, {
|
|
746
|
+
icon: /* @__PURE__ */ z(u.filter, { size: 14 }),
|
|
747
|
+
title: g("filter.drawer.title", "Filters"),
|
|
748
|
+
onClick: h
|
|
749
|
+
}),
|
|
750
|
+
x && (O ? /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(f, {
|
|
751
|
+
size: "xs",
|
|
752
|
+
icon: /* @__PURE__ */ z(u.x, { size: 12 }),
|
|
753
|
+
onClick: P,
|
|
754
|
+
children: g("dialog.cancel", "Cancel")
|
|
755
|
+
}), /* @__PURE__ */ z(f, {
|
|
756
|
+
kind: "primary",
|
|
757
|
+
size: "xs",
|
|
758
|
+
icon: E.isPending ? /* @__PURE__ */ z(m, { size: 12 }) : /* @__PURE__ */ z(u.save, { size: 12 }),
|
|
759
|
+
onClick: I,
|
|
760
|
+
disabled: E.isPending,
|
|
761
|
+
children: E.isPending ? g("dialog.saving", "Saving…") : g("dialog.save", "Save")
|
|
762
|
+
})] }) : /* @__PURE__ */ z(f, {
|
|
763
|
+
size: "xs",
|
|
764
|
+
icon: /* @__PURE__ */ z(u.edit, { size: 12 }),
|
|
765
|
+
onClick: he,
|
|
766
|
+
children: g("list.record.edit", "Edit")
|
|
767
|
+
}))
|
|
768
|
+
]
|
|
769
|
+
})]
|
|
770
|
+
}), /* @__PURE__ */ z("div", {
|
|
771
|
+
style: {
|
|
772
|
+
flex: 1,
|
|
773
|
+
overflowY: "auto",
|
|
774
|
+
paddingTop: 16,
|
|
775
|
+
paddingBottom: 16,
|
|
776
|
+
...re(16),
|
|
777
|
+
display: "flex",
|
|
778
|
+
flexDirection: "column",
|
|
779
|
+
gap: 12
|
|
780
|
+
},
|
|
781
|
+
children: i && i.length > 0 ? /* @__PURE__ */ z(le, {
|
|
782
|
+
nodes: i,
|
|
783
|
+
ctx: ye
|
|
784
|
+
}) : /* @__PURE__ */ z("p", {
|
|
785
|
+
style: {
|
|
786
|
+
fontSize: 12.5,
|
|
787
|
+
color: "var(--text-3)"
|
|
788
|
+
},
|
|
789
|
+
children: t(g("list.detail.no_layout", "No layout configured. Add {key} to the screen definition."), { key: /* @__PURE__ */ z("code", { children: ve }) })
|
|
790
|
+
})
|
|
791
|
+
})]
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
//#endregion
|
|
795
|
+
export { V as SmartRecordListPage };
|