@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,374 @@
|
|
|
1
|
+
import { E as e, Ft as t, un as n, wn as r, wt as i } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as a } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { n as o, r as s } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { Q as c, V as l, c as u, f as d, n as f, o as p, q as m } from "./PropertyGridEditor-BTjscqfz.js";
|
|
5
|
+
import { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
|
|
6
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/actions/ActionDialog.tsx
|
|
8
|
+
var C = /^\$row\.([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)$/;
|
|
9
|
+
function w(e, t) {
|
|
10
|
+
if (typeof e != "string") return e ?? "";
|
|
11
|
+
let n = e.match(C);
|
|
12
|
+
if (n) {
|
|
13
|
+
let r = n[1].split("."), i = t;
|
|
14
|
+
for (let e of r) {
|
|
15
|
+
if (typeof i != "object" || !i || !(e in i)) {
|
|
16
|
+
i = void 0;
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
i = i[e];
|
|
20
|
+
}
|
|
21
|
+
return i === void 0 ? ((t == null || !(r[0] in t)) && typeof console < "u" && console.warn && console.warn(`ActionDialog: prefill template ${e} could not be resolved; row is missing field '${r[0]}'`), "") : i ?? "";
|
|
22
|
+
}
|
|
23
|
+
return u(e, { row: t });
|
|
24
|
+
}
|
|
25
|
+
function T(e) {
|
|
26
|
+
return {
|
|
27
|
+
type: e.type ?? "string",
|
|
28
|
+
required: e.required,
|
|
29
|
+
display: e.display ? {
|
|
30
|
+
name: e.display.name ?? {},
|
|
31
|
+
widget: e.display.widget
|
|
32
|
+
} : void 0,
|
|
33
|
+
enum: e.enum,
|
|
34
|
+
values: e.values,
|
|
35
|
+
structure: e.structure,
|
|
36
|
+
ref: n(e.ref)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function E(e, t) {
|
|
40
|
+
if (!e.includes("${")) return e;
|
|
41
|
+
let n = u(e, { params: t });
|
|
42
|
+
return n == null ? "" : r(n);
|
|
43
|
+
}
|
|
44
|
+
var D = /\$\{\s*([^}]+?)\s*\}/g;
|
|
45
|
+
function O(e, t) {
|
|
46
|
+
let n = `params.${t}`;
|
|
47
|
+
for (let t of e.matchAll(D)) if (t[1] === n) return !0;
|
|
48
|
+
return !1;
|
|
49
|
+
}
|
|
50
|
+
function k({ param: e, value: t, onChange: n, statusGroups: r }) {
|
|
51
|
+
let a = i(), o = _(() => {
|
|
52
|
+
let t = r ? Object.entries(r) : [];
|
|
53
|
+
return [{
|
|
54
|
+
value: "",
|
|
55
|
+
label: e.required ? a("action.dialog.select_status_group", "Select status group…") : "—"
|
|
56
|
+
}, ...t.map(([e, t]) => ({
|
|
57
|
+
value: e,
|
|
58
|
+
label: a(t.name) || e
|
|
59
|
+
}))];
|
|
60
|
+
}, [
|
|
61
|
+
a,
|
|
62
|
+
r,
|
|
63
|
+
e.required
|
|
64
|
+
]);
|
|
65
|
+
return /* @__PURE__ */ x(m, {
|
|
66
|
+
value: typeof t == "string" ? t : "",
|
|
67
|
+
options: o,
|
|
68
|
+
onChange: (e) => n(e),
|
|
69
|
+
placeholder: a("action.dialog.select_status_group", "Select status group…")
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function A({ param: e, value: t, onChange: n, statusGroups: r, formData: a }) {
|
|
73
|
+
let o = i(), s = _(() => {
|
|
74
|
+
if (!r) return [];
|
|
75
|
+
let t = e.filter?.status_group;
|
|
76
|
+
if (t) {
|
|
77
|
+
let e = E(t, a);
|
|
78
|
+
return e && r[e] ? r[e].statuses : [];
|
|
79
|
+
}
|
|
80
|
+
return Object.values(r).flatMap((e) => e.statuses);
|
|
81
|
+
}, [
|
|
82
|
+
r,
|
|
83
|
+
e.filter,
|
|
84
|
+
a
|
|
85
|
+
]), c = _(() => [{
|
|
86
|
+
value: "",
|
|
87
|
+
label: s.length === 0 ? o("action.dialog.select_status_group_first", "Select status group first") : o("action.dialog.select_status", "Select status…")
|
|
88
|
+
}, ...s.map((e) => ({
|
|
89
|
+
value: e.code,
|
|
90
|
+
label: o(e.name) || e.code
|
|
91
|
+
}))], [o, s]);
|
|
92
|
+
return /* @__PURE__ */ x(m, {
|
|
93
|
+
value: typeof t == "string" ? t : "",
|
|
94
|
+
options: c,
|
|
95
|
+
onChange: (e) => n(e),
|
|
96
|
+
placeholder: o("action.dialog.select_status", "Select status…")
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function j({ open: n, onOpenChange: r, action: u, actionName: m, onSubmit: C, isPending: E, row: D, bulkSelection: j }) {
|
|
100
|
+
let M = i(), { data: N } = t(), P = u.resolved_params, F = u.resolved_hidden_defaults ?? {}, I = !!u.destructive, L = e(M, u), R = h(() => {
|
|
101
|
+
E || r(!1);
|
|
102
|
+
}, [E, r]), z = v(null);
|
|
103
|
+
g(() => {
|
|
104
|
+
n && z.current?.focus();
|
|
105
|
+
}, [n]);
|
|
106
|
+
let B = _(() => P ? Array.from(P) : [], [P]), V = _(() => {
|
|
107
|
+
if (u.entity && N) return N.entities[u.entity]?.status_groups;
|
|
108
|
+
}, [u.entity, N]), H = _(() => {
|
|
109
|
+
if (u.entity && N) return N.entities[u.entity];
|
|
110
|
+
}, [u.entity, N]), U = _(() => {
|
|
111
|
+
if (H) {
|
|
112
|
+
for (let [e, t] of H.fields) if (t.primary) return e;
|
|
113
|
+
return H.primary_key?.[0];
|
|
114
|
+
}
|
|
115
|
+
}, [H]), W = h(() => {
|
|
116
|
+
let e = { ...F };
|
|
117
|
+
for (let [t, n] of B) if (n.type === "id_array") e[t] = j && U ? j.map((e) => e[U]).filter((e) => e != null) : [];
|
|
118
|
+
else if (n.type === "entity_patch") e[t] = {};
|
|
119
|
+
else if (n.type === "bool") {
|
|
120
|
+
let r = w(n.default, D);
|
|
121
|
+
e[t] = r === !0 || r === "true";
|
|
122
|
+
} else e[t] = w(n.default, D);
|
|
123
|
+
return e;
|
|
124
|
+
}, [
|
|
125
|
+
B,
|
|
126
|
+
D,
|
|
127
|
+
j,
|
|
128
|
+
U
|
|
129
|
+
]), [G] = y(W), [K, q] = y(G);
|
|
130
|
+
p(n && JSON.stringify(K) !== JSON.stringify(G));
|
|
131
|
+
let J = h((e, t) => {
|
|
132
|
+
q((n) => {
|
|
133
|
+
let r = {
|
|
134
|
+
...n,
|
|
135
|
+
[e]: t
|
|
136
|
+
};
|
|
137
|
+
if (!P) return r;
|
|
138
|
+
for (let [t, n] of P) {
|
|
139
|
+
if (n.type !== "status") continue;
|
|
140
|
+
let i = n.filter?.status_group;
|
|
141
|
+
i && O(i, e) && (r[t] = "");
|
|
142
|
+
}
|
|
143
|
+
return r;
|
|
144
|
+
});
|
|
145
|
+
}, [P]), Y = h(() => {
|
|
146
|
+
let e = { ...K };
|
|
147
|
+
for (let [t, n] of B) {
|
|
148
|
+
let r = K[t], i = r == null || r === "";
|
|
149
|
+
if (n.required && i) return;
|
|
150
|
+
i && delete e[t];
|
|
151
|
+
}
|
|
152
|
+
C(e);
|
|
153
|
+
}, [
|
|
154
|
+
K,
|
|
155
|
+
B,
|
|
156
|
+
C
|
|
157
|
+
]);
|
|
158
|
+
return n ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
159
|
+
onClick: R,
|
|
160
|
+
style: {
|
|
161
|
+
position: "fixed",
|
|
162
|
+
inset: 0,
|
|
163
|
+
background: "var(--scrim)",
|
|
164
|
+
zIndex: 60,
|
|
165
|
+
backdropFilter: "blur(2px)"
|
|
166
|
+
}
|
|
167
|
+
}), /* @__PURE__ */ S("div", {
|
|
168
|
+
"data-testid": "action-dialog",
|
|
169
|
+
ref: z,
|
|
170
|
+
role: "dialog",
|
|
171
|
+
"aria-modal": "true",
|
|
172
|
+
"aria-busy": E,
|
|
173
|
+
"aria-label": m,
|
|
174
|
+
tabIndex: -1,
|
|
175
|
+
onKeyDown: (e) => {
|
|
176
|
+
e.key === "Escape" && R();
|
|
177
|
+
},
|
|
178
|
+
style: {
|
|
179
|
+
position: "fixed",
|
|
180
|
+
top: "50%",
|
|
181
|
+
left: "50%",
|
|
182
|
+
transform: "translate(-50%, -50%)",
|
|
183
|
+
zIndex: 61,
|
|
184
|
+
width: "min(480px, calc(100vw - var(--safe-area-left) - var(--safe-area-right) - 16px))",
|
|
185
|
+
maxHeight: "calc(var(--app-height) - var(--safe-area-top) - var(--safe-area-bottom) - 16px)",
|
|
186
|
+
background: "var(--surface)",
|
|
187
|
+
borderRadius: 12,
|
|
188
|
+
boxShadow: "var(--shadow-lg)",
|
|
189
|
+
border: "1px solid var(--border)",
|
|
190
|
+
overflow: "hidden",
|
|
191
|
+
display: "flex",
|
|
192
|
+
flexDirection: "column",
|
|
193
|
+
boxSizing: "border-box",
|
|
194
|
+
minWidth: 0,
|
|
195
|
+
outline: "none"
|
|
196
|
+
},
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ S("div", {
|
|
199
|
+
style: {
|
|
200
|
+
padding: "14px 18px",
|
|
201
|
+
display: "flex",
|
|
202
|
+
alignItems: "center",
|
|
203
|
+
gap: 10
|
|
204
|
+
},
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ x("span", {
|
|
207
|
+
style: {
|
|
208
|
+
width: 28,
|
|
209
|
+
height: 28,
|
|
210
|
+
borderRadius: 7,
|
|
211
|
+
background: I ? "var(--danger-soft)" : "var(--accent-soft)",
|
|
212
|
+
color: I ? "var(--danger)" : "var(--accent)",
|
|
213
|
+
display: "inline-flex",
|
|
214
|
+
alignItems: "center",
|
|
215
|
+
justifyContent: "center",
|
|
216
|
+
flexShrink: 0
|
|
217
|
+
},
|
|
218
|
+
children: x(I ? a.trash : a.bolt, { size: 15 })
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ S("div", {
|
|
221
|
+
style: {
|
|
222
|
+
flex: 1,
|
|
223
|
+
minWidth: 0
|
|
224
|
+
},
|
|
225
|
+
children: [/* @__PURE__ */ x("div", {
|
|
226
|
+
style: {
|
|
227
|
+
fontSize: 14,
|
|
228
|
+
fontWeight: 600,
|
|
229
|
+
color: "var(--text)"
|
|
230
|
+
},
|
|
231
|
+
children: m
|
|
232
|
+
}), /* @__PURE__ */ x("div", {
|
|
233
|
+
style: {
|
|
234
|
+
fontSize: 11.5,
|
|
235
|
+
color: "var(--text-3)",
|
|
236
|
+
marginTop: 2
|
|
237
|
+
},
|
|
238
|
+
children: M(u.display?.description) || (B.length > 0 ? M("action.dialog.params_hint", "Fill in the parameters below to execute this action.") : "")
|
|
239
|
+
})]
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ x(o, {
|
|
242
|
+
icon: /* @__PURE__ */ x(a.x, { size: 14 }),
|
|
243
|
+
onClick: R
|
|
244
|
+
})
|
|
245
|
+
]
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ S("div", {
|
|
248
|
+
style: {
|
|
249
|
+
padding: "12px 18px 16px",
|
|
250
|
+
display: "flex",
|
|
251
|
+
flexDirection: "column",
|
|
252
|
+
gap: 12,
|
|
253
|
+
overflowY: "auto",
|
|
254
|
+
minWidth: 0,
|
|
255
|
+
minHeight: 0
|
|
256
|
+
},
|
|
257
|
+
children: [L && /* @__PURE__ */ x("div", {
|
|
258
|
+
style: {
|
|
259
|
+
fontSize: 12.5,
|
|
260
|
+
lineHeight: 1.5,
|
|
261
|
+
color: "var(--text-2)",
|
|
262
|
+
background: I ? "var(--danger-soft)" : "var(--surface-2)",
|
|
263
|
+
border: "1px solid var(--divider)",
|
|
264
|
+
borderRadius: 8,
|
|
265
|
+
padding: "10px 12px"
|
|
266
|
+
},
|
|
267
|
+
children: L
|
|
268
|
+
}), /* @__PURE__ */ x("fieldset", {
|
|
269
|
+
disabled: E,
|
|
270
|
+
style: {
|
|
271
|
+
border: 0,
|
|
272
|
+
margin: 0,
|
|
273
|
+
padding: 0,
|
|
274
|
+
minInlineSize: 0,
|
|
275
|
+
display: "flex",
|
|
276
|
+
flexDirection: "column",
|
|
277
|
+
gap: 12,
|
|
278
|
+
pointerEvents: E ? "none" : void 0,
|
|
279
|
+
opacity: E ? .6 : 1
|
|
280
|
+
},
|
|
281
|
+
children: B.map(([e, t]) => {
|
|
282
|
+
let n = M(t.display?.name) || e;
|
|
283
|
+
if (t.type === "id_array") return null;
|
|
284
|
+
let r;
|
|
285
|
+
if (t.type === "entity_patch") {
|
|
286
|
+
let n = typeof t.filter?.targets == "string" ? t.filter.targets : void 0;
|
|
287
|
+
r = /* @__PURE__ */ x(f, {
|
|
288
|
+
entity: H,
|
|
289
|
+
filterTargets: n,
|
|
290
|
+
selectedRows: j,
|
|
291
|
+
value: K[e] ?? {},
|
|
292
|
+
onChange: (t) => J(e, t)
|
|
293
|
+
});
|
|
294
|
+
} else if (t.type === "status_group") r = /* @__PURE__ */ x(k, {
|
|
295
|
+
param: t,
|
|
296
|
+
value: K[e],
|
|
297
|
+
onChange: (t) => J(e, t),
|
|
298
|
+
statusGroups: V,
|
|
299
|
+
formData: K
|
|
300
|
+
});
|
|
301
|
+
else if (t.type === "status") r = /* @__PURE__ */ x(A, {
|
|
302
|
+
param: t,
|
|
303
|
+
value: K[e],
|
|
304
|
+
onChange: (t) => J(e, t),
|
|
305
|
+
statusGroups: V,
|
|
306
|
+
formData: K
|
|
307
|
+
});
|
|
308
|
+
else {
|
|
309
|
+
let n = T(t);
|
|
310
|
+
r = d({
|
|
311
|
+
field: n,
|
|
312
|
+
fieldName: e,
|
|
313
|
+
value: K[e],
|
|
314
|
+
mode: "edit",
|
|
315
|
+
onChange: (t) => J(e, t),
|
|
316
|
+
t: M
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
return /* @__PURE__ */ S("div", {
|
|
320
|
+
style: { minWidth: 0 },
|
|
321
|
+
children: [
|
|
322
|
+
/* @__PURE__ */ x(l, {
|
|
323
|
+
required: t.required,
|
|
324
|
+
children: n
|
|
325
|
+
}),
|
|
326
|
+
r,
|
|
327
|
+
t.display?.description && /* @__PURE__ */ x("p", {
|
|
328
|
+
style: {
|
|
329
|
+
fontSize: 11,
|
|
330
|
+
color: "var(--text-3)",
|
|
331
|
+
marginTop: 4,
|
|
332
|
+
marginBottom: 0
|
|
333
|
+
},
|
|
334
|
+
children: M(t.display.description)
|
|
335
|
+
})
|
|
336
|
+
]
|
|
337
|
+
}, e);
|
|
338
|
+
})
|
|
339
|
+
})]
|
|
340
|
+
}),
|
|
341
|
+
/* @__PURE__ */ S("div", {
|
|
342
|
+
style: {
|
|
343
|
+
padding: "10px 16px",
|
|
344
|
+
borderTop: "1px solid var(--divider)",
|
|
345
|
+
display: "flex",
|
|
346
|
+
alignItems: "center",
|
|
347
|
+
justifyContent: "flex-end",
|
|
348
|
+
gap: 8,
|
|
349
|
+
background: "var(--surface-2)",
|
|
350
|
+
flexWrap: "wrap",
|
|
351
|
+
minWidth: 0
|
|
352
|
+
},
|
|
353
|
+
children: [
|
|
354
|
+
/* @__PURE__ */ x("div", { style: { flex: 1 } }),
|
|
355
|
+
/* @__PURE__ */ x(s, {
|
|
356
|
+
onClick: R,
|
|
357
|
+
disabled: E,
|
|
358
|
+
children: M("dialog.cancel", "Cancel")
|
|
359
|
+
}),
|
|
360
|
+
/* @__PURE__ */ x(s, {
|
|
361
|
+
kind: "primary",
|
|
362
|
+
danger: I,
|
|
363
|
+
icon: x(E ? c : I ? a.trash : a.bolt, { size: 13 }),
|
|
364
|
+
onClick: Y,
|
|
365
|
+
disabled: E,
|
|
366
|
+
children: E ? M("action.dialog.working", "Working…") : m || M("dialog.confirm", "Confirm")
|
|
367
|
+
})
|
|
368
|
+
]
|
|
369
|
+
})
|
|
370
|
+
]
|
|
371
|
+
})] }) : null;
|
|
372
|
+
}
|
|
373
|
+
//#endregion
|
|
374
|
+
export { j as ActionDialog };
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { $ as e, Q as t, nt as n, rt as r, wt as i } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as a } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { n as o, r as s, t as c } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { useEffect as l, useRef as u, useState as d } from "react";
|
|
5
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/actions/ActionResultDialog.impl.tsx
|
|
7
|
+
function h({ open: e, onClose: t, display: n }) {
|
|
8
|
+
let r = i(), c = u(null);
|
|
9
|
+
return l(() => {
|
|
10
|
+
e && c.current?.focus();
|
|
11
|
+
}, [e]), e ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", { style: {
|
|
12
|
+
position: "fixed",
|
|
13
|
+
inset: 0,
|
|
14
|
+
background: "var(--scrim)",
|
|
15
|
+
zIndex: 60,
|
|
16
|
+
backdropFilter: "blur(2px)"
|
|
17
|
+
} }), /* @__PURE__ */ m("div", {
|
|
18
|
+
ref: c,
|
|
19
|
+
role: "dialog",
|
|
20
|
+
"aria-modal": "true",
|
|
21
|
+
"aria-label": n.title ?? r("action.result.title", "Action Result"),
|
|
22
|
+
tabIndex: -1,
|
|
23
|
+
onKeyDown: (e) => {
|
|
24
|
+
e.key === "Escape" && t();
|
|
25
|
+
},
|
|
26
|
+
style: {
|
|
27
|
+
position: "fixed",
|
|
28
|
+
top: "50%",
|
|
29
|
+
left: "50%",
|
|
30
|
+
transform: "translate(-50%, -50%)",
|
|
31
|
+
zIndex: 61,
|
|
32
|
+
width: "calc(100vw - 24px)",
|
|
33
|
+
maxWidth: 480,
|
|
34
|
+
maxHeight: "calc(var(--app-height) - var(--safe-area-top) - var(--safe-area-bottom) - 16px)",
|
|
35
|
+
background: "var(--surface)",
|
|
36
|
+
borderRadius: 12,
|
|
37
|
+
boxShadow: "var(--shadow-lg)",
|
|
38
|
+
border: "1px solid var(--border)",
|
|
39
|
+
overflow: "hidden",
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
outline: "none"
|
|
43
|
+
},
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ m("div", {
|
|
46
|
+
style: {
|
|
47
|
+
padding: "14px 18px",
|
|
48
|
+
display: "flex",
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
gap: 10
|
|
51
|
+
},
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ p("span", {
|
|
54
|
+
style: {
|
|
55
|
+
width: 28,
|
|
56
|
+
height: 28,
|
|
57
|
+
borderRadius: 7,
|
|
58
|
+
background: "var(--success-soft)",
|
|
59
|
+
color: "var(--success)",
|
|
60
|
+
display: "inline-flex",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
justifyContent: "center",
|
|
63
|
+
flexShrink: 0
|
|
64
|
+
},
|
|
65
|
+
children: /* @__PURE__ */ p(a.check, { size: 15 })
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ m("div", {
|
|
68
|
+
style: {
|
|
69
|
+
flex: 1,
|
|
70
|
+
minWidth: 0
|
|
71
|
+
},
|
|
72
|
+
children: [/* @__PURE__ */ p("div", {
|
|
73
|
+
style: {
|
|
74
|
+
fontSize: 14,
|
|
75
|
+
fontWeight: 600,
|
|
76
|
+
color: "var(--text)"
|
|
77
|
+
},
|
|
78
|
+
children: n.title ?? r("action.result.title", "Action Result")
|
|
79
|
+
}), n.message && /* @__PURE__ */ p("div", {
|
|
80
|
+
style: {
|
|
81
|
+
fontSize: 11.5,
|
|
82
|
+
color: "var(--text-3)",
|
|
83
|
+
marginTop: 2
|
|
84
|
+
},
|
|
85
|
+
children: n.message
|
|
86
|
+
})]
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ p(o, {
|
|
89
|
+
icon: /* @__PURE__ */ p(a.x, { size: 14 }),
|
|
90
|
+
onClick: t
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
}),
|
|
94
|
+
n.fields && n.fields.length > 0 && /* @__PURE__ */ p("div", {
|
|
95
|
+
style: {
|
|
96
|
+
padding: "12px 18px 16px",
|
|
97
|
+
display: "flex",
|
|
98
|
+
flexDirection: "column",
|
|
99
|
+
gap: 12,
|
|
100
|
+
overflowY: "auto"
|
|
101
|
+
},
|
|
102
|
+
children: n.fields.map((e, n) => /* @__PURE__ */ p(g, {
|
|
103
|
+
field: e,
|
|
104
|
+
onNavigate: t
|
|
105
|
+
}, n))
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ m("div", {
|
|
108
|
+
style: {
|
|
109
|
+
padding: "10px 16px",
|
|
110
|
+
borderTop: "1px solid var(--divider)",
|
|
111
|
+
display: "flex",
|
|
112
|
+
alignItems: "center",
|
|
113
|
+
justifyContent: "flex-end",
|
|
114
|
+
flexWrap: "wrap",
|
|
115
|
+
gap: 8,
|
|
116
|
+
background: "var(--surface-2)",
|
|
117
|
+
flexShrink: 0
|
|
118
|
+
},
|
|
119
|
+
children: [/* @__PURE__ */ p("div", { style: { flex: 1 } }), /* @__PURE__ */ p(s, {
|
|
120
|
+
kind: "primary",
|
|
121
|
+
onClick: t,
|
|
122
|
+
children: r("dialog.close", "Close")
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
})] }) : null;
|
|
127
|
+
}
|
|
128
|
+
function g({ field: o, onNavigate: s }) {
|
|
129
|
+
let l = i(), u = i("errors"), f = o.href ?? o.download_url ?? o.value, h = o.type === "download", g = h || o.type === "link", _ = f ? r(f) : void 0, [v, y] = d(!1), [b, x] = d(null);
|
|
130
|
+
async function S() {
|
|
131
|
+
if (_) {
|
|
132
|
+
y(!0), x(null);
|
|
133
|
+
try {
|
|
134
|
+
await e(u, _, o.filename);
|
|
135
|
+
} catch (e) {
|
|
136
|
+
x(t(u, e));
|
|
137
|
+
} finally {
|
|
138
|
+
y(!1);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
let C = {
|
|
143
|
+
display: "inline-flex",
|
|
144
|
+
alignItems: "center",
|
|
145
|
+
justifyContent: "center",
|
|
146
|
+
gap: 6,
|
|
147
|
+
height: 32,
|
|
148
|
+
width: "fit-content",
|
|
149
|
+
maxWidth: "100%",
|
|
150
|
+
padding: "0 12px",
|
|
151
|
+
borderRadius: 6,
|
|
152
|
+
border: "1px solid var(--border)",
|
|
153
|
+
background: h ? "var(--accent)" : "var(--surface)",
|
|
154
|
+
color: h ? "var(--accent-foreground)" : "var(--text)",
|
|
155
|
+
fontSize: 12.5,
|
|
156
|
+
fontWeight: 500,
|
|
157
|
+
textDecoration: "none",
|
|
158
|
+
whiteSpace: "nowrap"
|
|
159
|
+
}, w = g && !h, T = n(_), E = {
|
|
160
|
+
flex: 1,
|
|
161
|
+
minWidth: 0,
|
|
162
|
+
display: "inline-flex",
|
|
163
|
+
alignItems: "center",
|
|
164
|
+
gap: 6,
|
|
165
|
+
color: "var(--accent)",
|
|
166
|
+
textDecoration: "underline",
|
|
167
|
+
fontSize: 12.5,
|
|
168
|
+
lineHeight: 1.4
|
|
169
|
+
};
|
|
170
|
+
return /* @__PURE__ */ m("div", {
|
|
171
|
+
style: {
|
|
172
|
+
display: "flex",
|
|
173
|
+
flexDirection: "column",
|
|
174
|
+
gap: 4
|
|
175
|
+
},
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ p("div", {
|
|
178
|
+
style: {
|
|
179
|
+
fontSize: 11.5,
|
|
180
|
+
fontWeight: 500,
|
|
181
|
+
color: "var(--text-3)"
|
|
182
|
+
},
|
|
183
|
+
children: o.label
|
|
184
|
+
}),
|
|
185
|
+
h && _ && /* @__PURE__ */ m("button", {
|
|
186
|
+
type: "button",
|
|
187
|
+
onClick: S,
|
|
188
|
+
disabled: v,
|
|
189
|
+
style: {
|
|
190
|
+
...C,
|
|
191
|
+
cursor: v ? "default" : "pointer"
|
|
192
|
+
},
|
|
193
|
+
children: [p(v ? a.loader : a.download, { size: 14 }), /* @__PURE__ */ p("span", { children: v ? l("action.result.downloading", "Downloading…") : l("action.result.download", "Download") })]
|
|
194
|
+
}),
|
|
195
|
+
b && /* @__PURE__ */ p("div", {
|
|
196
|
+
style: {
|
|
197
|
+
fontSize: 11.5,
|
|
198
|
+
color: "var(--danger)"
|
|
199
|
+
},
|
|
200
|
+
children: b
|
|
201
|
+
}),
|
|
202
|
+
w && _ ? /* @__PURE__ */ m("div", {
|
|
203
|
+
style: {
|
|
204
|
+
display: "flex",
|
|
205
|
+
alignItems: "center",
|
|
206
|
+
gap: 8,
|
|
207
|
+
minWidth: 0
|
|
208
|
+
},
|
|
209
|
+
children: [T ? /* @__PURE__ */ m("a", {
|
|
210
|
+
href: _,
|
|
211
|
+
target: "_blank",
|
|
212
|
+
rel: "noopener noreferrer",
|
|
213
|
+
style: E,
|
|
214
|
+
title: o.value,
|
|
215
|
+
children: [/* @__PURE__ */ p(a.link, {
|
|
216
|
+
size: 14,
|
|
217
|
+
style: { flexShrink: 0 }
|
|
218
|
+
}), /* @__PURE__ */ p("span", {
|
|
219
|
+
style: {
|
|
220
|
+
overflow: "hidden",
|
|
221
|
+
textOverflow: "ellipsis",
|
|
222
|
+
whiteSpace: "nowrap"
|
|
223
|
+
},
|
|
224
|
+
children: o.value
|
|
225
|
+
})]
|
|
226
|
+
}) : /* @__PURE__ */ m("a", {
|
|
227
|
+
href: _,
|
|
228
|
+
onClick: s,
|
|
229
|
+
style: E,
|
|
230
|
+
title: o.value,
|
|
231
|
+
children: [/* @__PURE__ */ p(a.link, {
|
|
232
|
+
size: 14,
|
|
233
|
+
style: { flexShrink: 0 }
|
|
234
|
+
}), /* @__PURE__ */ p("span", {
|
|
235
|
+
style: {
|
|
236
|
+
overflow: "hidden",
|
|
237
|
+
textOverflow: "ellipsis",
|
|
238
|
+
whiteSpace: "nowrap"
|
|
239
|
+
},
|
|
240
|
+
children: o.value
|
|
241
|
+
})]
|
|
242
|
+
}), o.copyable && /* @__PURE__ */ p(c, { value: o.value })]
|
|
243
|
+
}) : /* @__PURE__ */ m("div", {
|
|
244
|
+
style: {
|
|
245
|
+
position: "relative",
|
|
246
|
+
width: "100%"
|
|
247
|
+
},
|
|
248
|
+
children: [/* @__PURE__ */ p("div", {
|
|
249
|
+
className: o.monospace ? "mono" : void 0,
|
|
250
|
+
style: {
|
|
251
|
+
borderRadius: 6,
|
|
252
|
+
border: "1px solid var(--border)",
|
|
253
|
+
background: "var(--surface-2)",
|
|
254
|
+
padding: o.copyable ? "8px 40px 8px 10px" : "8px 10px",
|
|
255
|
+
fontSize: 12.5,
|
|
256
|
+
wordBreak: "break-all",
|
|
257
|
+
color: "var(--text)"
|
|
258
|
+
},
|
|
259
|
+
children: o.value
|
|
260
|
+
}), o.copyable && /* @__PURE__ */ p("div", {
|
|
261
|
+
style: {
|
|
262
|
+
position: "absolute",
|
|
263
|
+
top: 4,
|
|
264
|
+
right: 4
|
|
265
|
+
},
|
|
266
|
+
children: /* @__PURE__ */ p(c, { value: o.value })
|
|
267
|
+
})]
|
|
268
|
+
})
|
|
269
|
+
]
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
//#endregion
|
|
273
|
+
export { h as ActionResultDialog };
|