@declarion/react 0.61.1 → 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-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
- package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
- package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
- package/dist-lib/AuthShell-DdiughRT.js +361 -0
- package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
- package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
- package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
- package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
- package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
- package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
- package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
- package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
- package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
- package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
- package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
- package/dist-lib/Icons-lt-7lhYR.js +151 -0
- package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
- package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
- package/dist-lib/Kbd-CNttVu0z.js +23 -0
- package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
- package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
- package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
- package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
- package/dist-lib/PageShell-tI-mm0C5.js +47 -0
- package/dist-lib/Pill-D-wsfRhx.js +42 -0
- package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
- package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
- package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
- package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
- package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
- package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
- package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
- package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
- package/dist-lib/SectionCard-VonaiLrx.js +150 -0
- package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
- package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
- package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
- package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
- package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
- package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
- package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
- package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/format-count-CSEFw2ht.js +943 -0
- package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
- package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
- package/dist-lib/icons.d.ts +20 -4
- package/dist-lib/icons.js +3 -2
- package/dist-lib/index.d.ts +2516 -150
- package/dist-lib/index.js +1588 -5117
- package/dist-lib/page-inset-D_kkVwwN.js +9 -0
- package/dist-lib/page-state-eA6J_KIR.js +124 -0
- package/dist-lib/param-editors-9yJr7xmN.js +201 -0
- package/dist-lib/payload-B2wODLAX.js +86 -0
- package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
- package/dist-lib/registry-BpzE8-h8.js +119 -0
- package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
- package/dist-lib/testing.d.ts +53 -56
- package/dist-lib/testing.js +54 -55
- package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
- package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
- package/dist-lib/useAuth-CR2YKKXb.js +49 -0
- package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
- package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
- package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
- package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
- package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
- package/dist-lib/useObject-1OCeV34A.js +26 -0
- package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
- package/dist-lib/useParams-ei6w4I7w.js +133 -0
- package/dist-lib/useProperties-CbdhlhZd.js +81 -0
- package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
- package/dist-lib/useScreenBack-J861tbwn.js +71 -0
- package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
- package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
- package/dist-lib/utils-D_QDpB8_.js +11 -0
- package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
- package/dist-lib/vite/index.d.ts +42 -16
- package/dist-lib/window-election-CHIvIZwx.js +45 -0
- package/package.json +16 -23
- package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
- package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
- package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
- package/dist-lib/api/agents.d.ts +0 -140
- package/dist-lib/api/auth-redirect.d.ts +0 -3
- package/dist-lib/api/auth.d.ts +0 -26
- package/dist-lib/api/batch.d.ts +0 -25
- package/dist-lib/api/client.d.ts +0 -51
- package/dist-lib/api/data.d.ts +0 -153
- package/dist-lib/api/entities.d.ts +0 -149
- package/dist-lib/api/events.d.ts +0 -91
- package/dist-lib/api/params.d.ts +0 -28
- package/dist-lib/api/properties.d.ts +0 -3
- package/dist-lib/api/schema.d.ts +0 -2
- package/dist-lib/api/status.d.ts +0 -2
- package/dist-lib/app.d.ts +0 -1
- package/dist-lib/components/actions/ActionButton.d.ts +0 -18
- package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
- package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
- package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
- package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
- package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
- package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
- package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
- package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
- package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
- package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
- package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
- package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
- package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
- package/dist-lib/components/chrome/PageShell.d.ts +0 -7
- package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
- package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
- package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
- package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
- package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
- package/dist-lib/components/detail-layout/index.d.ts +0 -21
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
- package/dist-lib/components/fields/BoolField.d.ts +0 -2
- package/dist-lib/components/fields/EmailField.d.ts +0 -2
- package/dist-lib/components/fields/EnumField.d.ts +0 -2
- package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
- package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
- package/dist-lib/components/fields/JsonField.d.ts +0 -3
- package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
- package/dist-lib/components/fields/NumberField.d.ts +0 -2
- package/dist-lib/components/fields/PasswordField.d.ts +0 -2
- package/dist-lib/components/fields/PhoneField.d.ts +0 -2
- package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
- package/dist-lib/components/fields/RefField.d.ts +0 -2
- package/dist-lib/components/fields/RichTextField.d.ts +0 -2
- package/dist-lib/components/fields/SecretField.d.ts +0 -2
- package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
- package/dist-lib/components/fields/StringField.d.ts +0 -2
- package/dist-lib/components/fields/StructureField.d.ts +0 -2
- package/dist-lib/components/fields/TextField.d.ts +0 -2
- package/dist-lib/components/fields/TimestampField.d.ts +0 -2
- package/dist-lib/components/fields/UrlField.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
- package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
- package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
- package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
- package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
- package/dist-lib/components/fields/cells/registry.d.ts +0 -21
- package/dist-lib/components/fields/index.d.ts +0 -28
- package/dist-lib/components/fields/langMap.d.ts +0 -2
- package/dist-lib/components/fields/secretValue.d.ts +0 -2
- package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
- package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
- package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
- package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
- package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
- package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
- package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
- package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
- package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
- package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
- package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
- package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
- package/dist-lib/components/file-widgets/host.d.ts +0 -28
- package/dist-lib/components/file-widgets/index.d.ts +0 -16
- package/dist-lib/components/file-widgets/payload.d.ts +0 -21
- package/dist-lib/components/file-widgets/registry.d.ts +0 -5
- package/dist-lib/components/file-widgets/types.d.ts +0 -17
- package/dist-lib/components/file-widgets/upload.d.ts +0 -45
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
- package/dist-lib/components/file-widgets/value.d.ts +0 -4
- package/dist-lib/components/filters/FilterChips.d.ts +0 -14
- package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
- package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
- package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
- package/dist-lib/components/layout/Layout.d.ts +0 -6
- package/dist-lib/components/layout/Rail.d.ts +0 -22
- package/dist-lib/components/layout/Sidebar.d.ts +0 -12
- package/dist-lib/components/layout/TabStrip.d.ts +0 -6
- package/dist-lib/components/layout/TenantChip.d.ts +0 -26
- package/dist-lib/components/layout/TopBar.d.ts +0 -22
- package/dist-lib/components/layout/tab-close.d.ts +0 -13
- package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
- package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
- package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
- package/dist-lib/components/list/QuickPeek.d.ts +0 -59
- package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
- package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
- package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
- package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
- package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
- package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
- package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
- package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
- package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
- package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
- package/dist-lib/components/pages/auth/icons.d.ts +0 -6
- package/dist-lib/components/pages/exportRequest.d.ts +0 -69
- package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
- package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
- package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
- package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
- package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
- package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
- package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
- package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
- package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
- package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
- package/dist-lib/components/pages/list/columns.d.ts +0 -46
- package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
- package/dist-lib/components/pages/list/page-size.d.ts +0 -3
- package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
- package/dist-lib/components/pages/list/table-features.d.ts +0 -14
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
- package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
- package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
- package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
- package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
- package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
- package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
- package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
- package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
- package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
- package/dist-lib/components/params/param-editors.d.ts +0 -20
- package/dist-lib/components/primitives/Avatar.d.ts +0 -6
- package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
- package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
- package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
- package/dist-lib/components/primitives/Btn.d.ts +0 -19
- package/dist-lib/components/primitives/Check.d.ts +0 -7
- package/dist-lib/components/primitives/Chip.d.ts +0 -9
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
- package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
- package/dist-lib/components/primitives/Fields.d.ts +0 -111
- package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
- package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
- package/dist-lib/components/primitives/Icons.d.ts +0 -136
- package/dist-lib/components/primitives/Kbd.d.ts +0 -4
- package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
- package/dist-lib/components/primitives/Pill.d.ts +0 -11
- package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
- package/dist-lib/components/primitives/RowField.d.ts +0 -10
- package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
- package/dist-lib/components/primitives/Spinner.d.ts +0 -3
- package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
- package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
- package/dist-lib/components/primitives/index.d.ts +0 -37
- package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
- package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
- package/dist-lib/components/shared/CopyButton.d.ts +0 -8
- package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
- package/dist-lib/components/shared/EmptyState.d.ts +0 -9
- package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
- package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
- package/dist-lib/components/shared/Markdown.d.ts +0 -3
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
- package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
- package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
- package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
- package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
- package/dist-lib/embed/EmbedContext.d.ts +0 -50
- package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
- package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
- package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
- package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
- package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
- package/dist-lib/embed/embed-dirty.d.ts +0 -24
- package/dist-lib/embed/embed-history.d.ts +0 -19
- package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
- package/dist-lib/embed/file-src.d.ts +0 -63
- package/dist-lib/embed/handshake.d.ts +0 -57
- package/dist-lib/embed/index.d.ts +0 -19
- package/dist-lib/embed/params.d.ts +0 -75
- package/dist-lib/embed/protocol.d.ts +0 -165
- package/dist-lib/embed/screen-location.d.ts +0 -50
- package/dist-lib/embed/theme.d.ts +0 -34
- package/dist-lib/embed/token.d.ts +0 -57
- package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
- package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
- package/dist-lib/failure-BUxXuP4c.js +0 -158
- package/dist-lib/format-count-bXVfHzbI.js +0 -1771
- package/dist-lib/hooks/useActionData.d.ts +0 -61
- package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
- package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
- package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
- package/dist-lib/hooks/useAuth.d.ts +0 -22
- package/dist-lib/hooks/useBranding.d.ts +0 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
- package/dist-lib/hooks/useChildrenData.d.ts +0 -3
- package/dist-lib/hooks/useColumns.d.ts +0 -13
- package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
- package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
- package/dist-lib/hooks/useDebounce.d.ts +0 -1
- package/dist-lib/hooks/useEntity.d.ts +0 -2
- package/dist-lib/hooks/useEntityData.d.ts +0 -41
- package/dist-lib/hooks/useFilters.d.ts +0 -14
- package/dist-lib/hooks/useImpersonation.d.ts +0 -23
- package/dist-lib/hooks/useLanguage.d.ts +0 -4
- package/dist-lib/hooks/useLiveObject.d.ts +0 -9
- package/dist-lib/hooks/useLongPress.d.ts +0 -29
- package/dist-lib/hooks/useMutations.d.ts +0 -13
- package/dist-lib/hooks/useObject.d.ts +0 -11
- package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
- package/dist-lib/hooks/usePageState.d.ts +0 -32
- package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
- package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
- package/dist-lib/hooks/useParams.d.ts +0 -49
- package/dist-lib/hooks/useProperties.d.ts +0 -5
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
- package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
- package/dist-lib/hooks/useSSE.d.ts +0 -31
- package/dist-lib/hooks/useSchema.d.ts +0 -1
- package/dist-lib/hooks/useScreen.d.ts +0 -2
- package/dist-lib/hooks/useScreenBack.d.ts +0 -21
- package/dist-lib/hooks/useScreenTab.d.ts +0 -10
- package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
- package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
- package/dist-lib/hooks/useTabTitle.d.ts +0 -2
- package/dist-lib/hooks/useText.d.ts +0 -3
- package/dist-lib/hooks/useTimelineData.d.ts +0 -10
- package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
- package/dist-lib/hooks/useViews.d.ts +0 -26
- package/dist-lib/lib/action-dispatch.d.ts +0 -8
- package/dist-lib/lib/actions.d.ts +0 -254
- package/dist-lib/lib/anchor.d.ts +0 -36
- package/dist-lib/lib/brand-tokens.d.ts +0 -43
- package/dist-lib/lib/branding.d.ts +0 -20
- package/dist-lib/lib/canonical-url.d.ts +0 -27
- package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
- package/dist-lib/lib/child-config.d.ts +0 -24
- package/dist-lib/lib/children-validation.d.ts +0 -5
- package/dist-lib/lib/decimal-text.d.ts +0 -1
- package/dist-lib/lib/display-value.d.ts +0 -1
- package/dist-lib/lib/document-templates.d.ts +0 -11
- package/dist-lib/lib/download.d.ts +0 -21
- package/dist-lib/lib/evidence-verdict.d.ts +0 -11
- package/dist-lib/lib/failure.d.ts +0 -2
- package/dist-lib/lib/field-classification.d.ts +0 -61
- package/dist-lib/lib/field-regions.d.ts +0 -8
- package/dist-lib/lib/filter-evaluator.d.ts +0 -16
- package/dist-lib/lib/filters.d.ts +0 -93
- package/dist-lib/lib/format-count.d.ts +0 -41
- package/dist-lib/lib/html-state.d.ts +0 -11
- package/dist-lib/lib/language.d.ts +0 -19
- package/dist-lib/lib/longPressGesture.d.ts +0 -55
- package/dist-lib/lib/mass-edit.d.ts +0 -32
- package/dist-lib/lib/page-inset.d.ts +0 -3
- package/dist-lib/lib/quick-add.d.ts +0 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
- package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
- package/dist-lib/lib/realtime-resync.d.ts +0 -23
- package/dist-lib/lib/record-documents-key.d.ts +0 -1
- package/dist-lib/lib/rich-text.d.ts +0 -14
- package/dist-lib/lib/rowClickGesture.d.ts +0 -26
- package/dist-lib/lib/safe-url.d.ts +0 -15
- package/dist-lib/lib/schema-routing.d.ts +0 -3
- package/dist-lib/lib/screen-back.d.ts +0 -70
- package/dist-lib/lib/scroll-restoration.d.ts +0 -90
- package/dist-lib/lib/size-value.d.ts +0 -16
- package/dist-lib/lib/sort.d.ts +0 -72
- package/dist-lib/lib/timestamp.d.ts +0 -53
- package/dist-lib/lib/toast.d.ts +0 -49
- package/dist-lib/lib/ui-actions.d.ts +0 -12
- package/dist-lib/lib/utils.d.ts +0 -9
- package/dist-lib/lib/variants.d.ts +0 -7
- package/dist-lib/lib/versionTracker.d.ts +0 -72
- package/dist-lib/lib/viewport-category.d.ts +0 -44
- package/dist-lib/main.d.ts +0 -1
- package/dist-lib/registry-nSeHd5si.js +0 -1956
- package/dist-lib/safe-url-oSJw5pzO.js +0 -34
- package/dist-lib/stores/auth.d.ts +0 -16
- package/dist-lib/stores/list-layout.d.ts +0 -85
- package/dist-lib/stores/page-state.d.ts +0 -61
- package/dist-lib/stores/preferences.d.ts +0 -37
- package/dist-lib/stores/realtime.d.ts +0 -96
- package/dist-lib/stores/screen-registry.d.ts +0 -17
- package/dist-lib/stores/tabs.d.ts +0 -73
- package/dist-lib/types/api.d.ts +0 -579
- package/dist-lib/types/fieldType.d.ts +0 -2
- package/dist-lib/types/files.d.ts +0 -79
- package/dist-lib/types/ordmap.d.ts +0 -39
- package/dist-lib/types/schema.d.ts +0 -1089
- package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
- package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
- package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
- package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
- package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
- package/dist-lib/useText-BsedsJ-J.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { on as e, wn as t, wt as n } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as r } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { n as i, r as a } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { f as o } from "./PropertyGridEditor-BTjscqfz.js";
|
|
4
5
|
import { n as s, r as c, t as l } from "./dataTableStyles-vwD1mVOP.js";
|
|
5
6
|
import { useCallback as u, useMemo as d, useRef as f } from "react";
|
|
6
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -8,8 +9,8 @@ import { DndContext as h, PointerSensor as g, closestCenter as _, useSensor as v
|
|
|
8
9
|
import { SortableContext as b, useSortable as x, verticalListSortingStrategy as S } from "@dnd-kit/sortable";
|
|
9
10
|
import { CSS as C } from "@dnd-kit/utilities";
|
|
10
11
|
//#region src/components/detail-layout/DraggableChildrenTable.tsx
|
|
11
|
-
function w({ config:
|
|
12
|
-
let E =
|
|
12
|
+
function w({ config: t, childEntity: i, schema: o, rows: l, onChange: x, validationErrors: C, refs: w }) {
|
|
13
|
+
let E = n(), D = f(null), O = t.position_field, k = t.columns, A = y(v(g, { activationConstraint: { distance: 5 } })), j = new Set(Array.isArray(t.foreign_key) ? t.foreign_key : [t.foreign_key]), M = k.filter((e) => {
|
|
13
14
|
if (j.has(e) || e === O) return !1;
|
|
14
15
|
let t = i.fields.get(e);
|
|
15
16
|
return !(!t || t.auto || t.primary || t.source);
|
|
@@ -27,22 +28,22 @@ function w({ config: r, childEntity: i, schema: a, rows: l, onChange: x, validat
|
|
|
27
28
|
let e = l.filter((e) => !e._deleted).reduce((e, t) => {
|
|
28
29
|
let n = typeof t[O] == "number" ? t[O] : -1;
|
|
29
30
|
return Math.max(e, n);
|
|
30
|
-
}, -1),
|
|
31
|
+
}, -1), n = {
|
|
31
32
|
_key: crypto.randomUUID(),
|
|
32
33
|
_dirty: !0,
|
|
33
34
|
[O]: e + 1
|
|
34
|
-
},
|
|
35
|
+
}, r = t.quick_add?.defaults ?? {};
|
|
35
36
|
for (let e of M) {
|
|
36
|
-
let
|
|
37
|
-
|
|
37
|
+
let t = i.fields.get(e);
|
|
38
|
+
t && (r[e] === void 0 ? t.default === void 0 ? t.type === "bool" && (n[e] = !1) : n[e] = t.default : n[e] = r[e]);
|
|
38
39
|
}
|
|
39
|
-
x([...l,
|
|
40
|
+
x([...l, n]);
|
|
40
41
|
}, [
|
|
41
42
|
l,
|
|
42
43
|
x,
|
|
43
44
|
M,
|
|
44
45
|
i,
|
|
45
|
-
|
|
46
|
+
t.quick_add?.defaults,
|
|
46
47
|
O
|
|
47
48
|
]), R = u((e) => {
|
|
48
49
|
x(l.map((t) => t._key === e ? {
|
|
@@ -118,12 +119,12 @@ function w({ config: r, childEntity: i, schema: a, rows: l, onChange: x, validat
|
|
|
118
119
|
width: 32,
|
|
119
120
|
padding: "0 4px"
|
|
120
121
|
} }),
|
|
121
|
-
P.map((
|
|
122
|
-
let n = i.fields.get(
|
|
122
|
+
P.map((t) => {
|
|
123
|
+
let n = i.fields.get(t);
|
|
123
124
|
return /* @__PURE__ */ p("th", {
|
|
124
125
|
style: H,
|
|
125
|
-
children: n ?
|
|
126
|
-
},
|
|
126
|
+
children: n ? e(E, n, t, o.entities) : t
|
|
127
|
+
}, t);
|
|
127
128
|
}),
|
|
128
129
|
/* @__PURE__ */ p("th", { style: {
|
|
129
130
|
...H,
|
|
@@ -149,18 +150,18 @@ function w({ config: r, childEntity: i, schema: a, rows: l, onChange: x, validat
|
|
|
149
150
|
})
|
|
150
151
|
}), /* @__PURE__ */ p("div", {
|
|
151
152
|
style: { marginTop: 8 },
|
|
152
|
-
children: /* @__PURE__ */ p(
|
|
153
|
+
children: /* @__PURE__ */ p(a, {
|
|
153
154
|
kind: "ghost",
|
|
154
155
|
size: "xs",
|
|
155
|
-
icon: /* @__PURE__ */ p(
|
|
156
|
+
icon: /* @__PURE__ */ p(r.plus, { size: 12 }),
|
|
156
157
|
onClick: L,
|
|
157
158
|
children: E("record.row.add", "Add row")
|
|
158
159
|
})
|
|
159
160
|
})] });
|
|
160
161
|
}
|
|
161
|
-
function T({ row:
|
|
162
|
-
let v =
|
|
163
|
-
id:
|
|
162
|
+
function T({ row: e, columns: a, editableColumns: s, displayOnlyColumns: c, childEntity: u, validationErrors: d, refs: f, onCellChange: h, onDelete: g, onUndoDelete: _ }) {
|
|
163
|
+
let v = n(), y = !!e._deleted, b = d?.[e._key], { attributes: S, listeners: w, setNodeRef: T, transform: E, transition: D, isDragging: O } = x({
|
|
164
|
+
id: e._key,
|
|
164
165
|
disabled: y
|
|
165
166
|
}), k = {
|
|
166
167
|
transform: C.Translate.toString(E),
|
|
@@ -198,44 +199,44 @@ function T({ row: t, columns: n, editableColumns: s, displayOnlyColumns: c, chil
|
|
|
198
199
|
},
|
|
199
200
|
...S,
|
|
200
201
|
...w,
|
|
201
|
-
children: /* @__PURE__ */ p(
|
|
202
|
+
children: /* @__PURE__ */ p(r.grid, { size: 14 })
|
|
202
203
|
})
|
|
203
204
|
}),
|
|
204
|
-
|
|
205
|
-
let
|
|
206
|
-
return y ||
|
|
205
|
+
a.map((n) => {
|
|
206
|
+
let r = u.fields.get(n), i = b?.includes(n), a = c.has(n), l = s.includes(n);
|
|
207
|
+
return y || a || !l ? /* @__PURE__ */ p("td", {
|
|
207
208
|
style: {
|
|
208
209
|
...A,
|
|
209
210
|
textDecoration: y ? "line-through" : "none"
|
|
210
211
|
},
|
|
211
|
-
children:
|
|
212
|
-
field:
|
|
213
|
-
fieldName:
|
|
214
|
-
value:
|
|
212
|
+
children: r ? o({
|
|
213
|
+
field: r,
|
|
214
|
+
fieldName: n,
|
|
215
|
+
value: e[n],
|
|
215
216
|
mode: "display",
|
|
216
|
-
record:
|
|
217
|
+
record: e,
|
|
217
218
|
refs: f,
|
|
218
219
|
t: v
|
|
219
|
-
}) :
|
|
220
|
-
},
|
|
220
|
+
}) : t(e[n])
|
|
221
|
+
}, n) : /* @__PURE__ */ p("td", {
|
|
221
222
|
style: {
|
|
222
223
|
...j,
|
|
223
224
|
outline: i ? "1px solid var(--danger)" : "none",
|
|
224
225
|
outlineOffset: -1,
|
|
225
226
|
borderRadius: i ? 4 : 0
|
|
226
227
|
},
|
|
227
|
-
title: i ? v("record.row.field_required", "{field} is required", { field:
|
|
228
|
-
children:
|
|
229
|
-
field:
|
|
230
|
-
fieldName:
|
|
231
|
-
value:
|
|
228
|
+
title: i ? v("record.row.field_required", "{field} is required", { field: n }) : void 0,
|
|
229
|
+
children: r ? o({
|
|
230
|
+
field: r,
|
|
231
|
+
fieldName: n,
|
|
232
|
+
value: e[n],
|
|
232
233
|
mode: "edit",
|
|
233
|
-
onChange: (
|
|
234
|
-
record:
|
|
234
|
+
onChange: (t) => h(e._key, n, t),
|
|
235
|
+
record: e,
|
|
235
236
|
refs: f,
|
|
236
237
|
t: v
|
|
237
|
-
}) :
|
|
238
|
-
},
|
|
238
|
+
}) : t(e[n])
|
|
239
|
+
}, n);
|
|
239
240
|
}),
|
|
240
241
|
/* @__PURE__ */ p("td", {
|
|
241
242
|
style: {
|
|
@@ -245,13 +246,13 @@ function T({ row: t, columns: n, editableColumns: s, displayOnlyColumns: c, chil
|
|
|
245
246
|
},
|
|
246
247
|
children: y ? /* @__PURE__ */ p(i, {
|
|
247
248
|
size: 24,
|
|
248
|
-
icon: /* @__PURE__ */ p(
|
|
249
|
-
onClick: () => _(
|
|
249
|
+
icon: /* @__PURE__ */ p(r.refresh, { size: 12 }),
|
|
250
|
+
onClick: () => _(e._key),
|
|
250
251
|
title: v("record.row.undo_delete", "Undo delete")
|
|
251
252
|
}) : /* @__PURE__ */ p(i, {
|
|
252
253
|
size: 24,
|
|
253
|
-
icon: /* @__PURE__ */ p(
|
|
254
|
-
onClick: () => g(
|
|
254
|
+
icon: /* @__PURE__ */ p(r.trash, { size: 12 }),
|
|
255
|
+
onClick: () => g(e._key),
|
|
255
256
|
title: v("record.row.delete", "Delete row")
|
|
256
257
|
})
|
|
257
258
|
})
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { t as e } from "./Icons-lt-7lhYR.js";
|
|
2
|
+
import { useEffect as t, useState as n, useSyncExternalStore as r } from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/stores/icon-registry.ts
|
|
5
|
+
var a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), s = 0;
|
|
6
|
+
function c() {
|
|
7
|
+
s += 1;
|
|
8
|
+
for (let e of o) e();
|
|
9
|
+
}
|
|
10
|
+
function l(e) {
|
|
11
|
+
a.clear();
|
|
12
|
+
for (let [t, n] of Object.entries(e)) a.set(t, n);
|
|
13
|
+
c();
|
|
14
|
+
}
|
|
15
|
+
function u(e) {
|
|
16
|
+
return a.get(e);
|
|
17
|
+
}
|
|
18
|
+
function d(e) {
|
|
19
|
+
return o.add(e), () => {
|
|
20
|
+
o.delete(e);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function f() {
|
|
24
|
+
return s;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/shared/LucideIcon.tsx
|
|
28
|
+
var p = /* @__PURE__ */ new Map(), m = null;
|
|
29
|
+
function h() {
|
|
30
|
+
return m ||= import("lucide-react/dynamic.js").then((e) => e.dynamicIconImports), m;
|
|
31
|
+
}
|
|
32
|
+
function g({ name: r, size: a = 14, className: o, style: s }) {
|
|
33
|
+
let [c, l] = n(() => p.get(r)), [u, d] = n(!1);
|
|
34
|
+
if (t(() => {
|
|
35
|
+
let e = p.get(r);
|
|
36
|
+
if (e) {
|
|
37
|
+
l(() => e), d(!1);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
l(void 0), d(!1);
|
|
41
|
+
let t = !0;
|
|
42
|
+
return h().then((e) => {
|
|
43
|
+
let n = e[r];
|
|
44
|
+
if (!n) t && d(!0);
|
|
45
|
+
else return n().then((e) => {
|
|
46
|
+
p.set(r, e.default), t && (l(() => e.default), d(!1));
|
|
47
|
+
});
|
|
48
|
+
}), () => {
|
|
49
|
+
t = !1;
|
|
50
|
+
};
|
|
51
|
+
}, [r]), u) {
|
|
52
|
+
let t = e.folder;
|
|
53
|
+
return /* @__PURE__ */ i(t, {
|
|
54
|
+
size: a,
|
|
55
|
+
cls: o,
|
|
56
|
+
style: s
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return c ? /* @__PURE__ */ i(c, {
|
|
60
|
+
size: a,
|
|
61
|
+
className: o,
|
|
62
|
+
style: s
|
|
63
|
+
}) : null;
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/shared/DynamicIcon.tsx
|
|
67
|
+
var _ = "lucide:";
|
|
68
|
+
function v({ name: t, size: n, className: a, style: o }) {
|
|
69
|
+
r(d, f, f);
|
|
70
|
+
let s = typeof n == "number" ? n : typeof n == "string" ? parseFloat(n) : 14, c = u(t);
|
|
71
|
+
if (c) return /* @__PURE__ */ i(y, {
|
|
72
|
+
def: c,
|
|
73
|
+
size: s,
|
|
74
|
+
className: a,
|
|
75
|
+
style: o
|
|
76
|
+
});
|
|
77
|
+
let l = e[t];
|
|
78
|
+
if (l) return /* @__PURE__ */ i(l, {
|
|
79
|
+
size: s,
|
|
80
|
+
cls: a,
|
|
81
|
+
style: o
|
|
82
|
+
});
|
|
83
|
+
let p = t.startsWith(_) ? t.slice(7) : t;
|
|
84
|
+
return /* @__PURE__ */ i(g, {
|
|
85
|
+
name: p,
|
|
86
|
+
size: s,
|
|
87
|
+
className: a,
|
|
88
|
+
style: o
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function y({ def: e, size: t, className: n, style: r }) {
|
|
92
|
+
switch (e.kind) {
|
|
93
|
+
case "svg": return /* @__PURE__ */ i(b, {
|
|
94
|
+
paths: e.paths,
|
|
95
|
+
size: t,
|
|
96
|
+
className: n,
|
|
97
|
+
style: r
|
|
98
|
+
});
|
|
99
|
+
case "url": return /* @__PURE__ */ i("img", {
|
|
100
|
+
src: e.src,
|
|
101
|
+
alt: "",
|
|
102
|
+
"aria-hidden": "true",
|
|
103
|
+
width: t,
|
|
104
|
+
height: t,
|
|
105
|
+
className: n,
|
|
106
|
+
style: r
|
|
107
|
+
});
|
|
108
|
+
case "lucide": return /* @__PURE__ */ i(g, {
|
|
109
|
+
name: e.name,
|
|
110
|
+
size: t,
|
|
111
|
+
className: n,
|
|
112
|
+
style: r
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function b({ paths: e, size: t, className: n, style: r }) {
|
|
117
|
+
return /* @__PURE__ */ i("svg", {
|
|
118
|
+
width: t,
|
|
119
|
+
height: t,
|
|
120
|
+
viewBox: "0 0 24 24",
|
|
121
|
+
fill: "none",
|
|
122
|
+
stroke: "currentColor",
|
|
123
|
+
strokeWidth: 1.5,
|
|
124
|
+
strokeLinecap: "round",
|
|
125
|
+
strokeLinejoin: "round",
|
|
126
|
+
className: n,
|
|
127
|
+
style: r,
|
|
128
|
+
"aria-hidden": "true",
|
|
129
|
+
children: e.map((e, t) => /* @__PURE__ */ i("path", { d: e }, t))
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
export { l as a, f as i, g as n, d as o, u as r, v as t };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { wn as e, wt as t } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as n } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { t as r } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { createContext as i, useContext as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/detail-layout/FieldRow.tsx
|
|
7
|
+
var d = 150, f = 560, p = 374, m = "20px", h = 4;
|
|
8
|
+
function g(t, n) {
|
|
9
|
+
if ((t?.copyable || t?.type === "uuid") && n != null && n !== "") return e(n);
|
|
10
|
+
}
|
|
11
|
+
var _ = /* @__PURE__ */ new Set([
|
|
12
|
+
"text",
|
|
13
|
+
"rich_text",
|
|
14
|
+
"json",
|
|
15
|
+
"structure",
|
|
16
|
+
"multilang_text",
|
|
17
|
+
"multilang_array"
|
|
18
|
+
]), v = i({
|
|
19
|
+
columns: 2,
|
|
20
|
+
stackPairs: !1
|
|
21
|
+
});
|
|
22
|
+
function y({ columns: e = 2, children: t }) {
|
|
23
|
+
let n = s(null), [r, i] = c(null);
|
|
24
|
+
o(() => {
|
|
25
|
+
let e = n.current;
|
|
26
|
+
if (!e) return;
|
|
27
|
+
let t = (e) => i(e > 0 ? e : null);
|
|
28
|
+
if (t(e.getBoundingClientRect().width), typeof ResizeObserver > "u") return;
|
|
29
|
+
let r = new ResizeObserver(([e]) => {
|
|
30
|
+
t(e.contentRect.width);
|
|
31
|
+
});
|
|
32
|
+
return r.observe(e), () => r.disconnect();
|
|
33
|
+
}, []);
|
|
34
|
+
let a = e === 1 || r !== null && r < f ? 1 : e, u = r === null ? null : (r - (a - 1) * 24) / a, d = u !== null && u < p;
|
|
35
|
+
return /* @__PURE__ */ l(v.Provider, {
|
|
36
|
+
value: {
|
|
37
|
+
columns: a,
|
|
38
|
+
stackPairs: d
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ l("div", {
|
|
41
|
+
ref: n,
|
|
42
|
+
style: {
|
|
43
|
+
display: "grid",
|
|
44
|
+
gridTemplateColumns: `repeat(${a}, minmax(0, 1fr))`,
|
|
45
|
+
columnGap: 24,
|
|
46
|
+
rowGap: 2
|
|
47
|
+
},
|
|
48
|
+
children: t
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function b({ label: e, children: i, span: o = !1, required: s, error: c, hint: f, actions: p, copyValue: g, mode: _ = "display", htmlFor: y, labelId: b, labelTitle: x, "data-testid": S }) {
|
|
53
|
+
let C = t(), w = a(v), T = o || w.stackPairs, E = !!c;
|
|
54
|
+
return /* @__PURE__ */ u("div", {
|
|
55
|
+
className: "detail-row",
|
|
56
|
+
"data-error": E || void 0,
|
|
57
|
+
"data-testid": S,
|
|
58
|
+
style: {
|
|
59
|
+
display: "flex",
|
|
60
|
+
flexDirection: T ? "column" : "row",
|
|
61
|
+
gap: T ? 4 : 16,
|
|
62
|
+
alignItems: T ? "stretch" : "flex-start",
|
|
63
|
+
padding: "6px 0",
|
|
64
|
+
...o ? { gridColumn: "1 / -1" } : null
|
|
65
|
+
},
|
|
66
|
+
children: [/* @__PURE__ */ u("div", {
|
|
67
|
+
style: {
|
|
68
|
+
width: T ? "auto" : d,
|
|
69
|
+
flexShrink: 0,
|
|
70
|
+
paddingTop: T ? 0 : h,
|
|
71
|
+
fontSize: 12,
|
|
72
|
+
lineHeight: m,
|
|
73
|
+
fontWeight: 500,
|
|
74
|
+
color: "var(--text-3)",
|
|
75
|
+
display: "flex",
|
|
76
|
+
alignItems: "flex-start",
|
|
77
|
+
gap: 2
|
|
78
|
+
},
|
|
79
|
+
children: [y ? /* @__PURE__ */ l("label", {
|
|
80
|
+
id: b,
|
|
81
|
+
htmlFor: y,
|
|
82
|
+
title: x || void 0,
|
|
83
|
+
children: e
|
|
84
|
+
}) : /* @__PURE__ */ l("span", {
|
|
85
|
+
id: b,
|
|
86
|
+
title: x || void 0,
|
|
87
|
+
children: e
|
|
88
|
+
}), s && _ === "edit" && /* @__PURE__ */ l("span", {
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
style: {
|
|
91
|
+
color: "var(--danger)",
|
|
92
|
+
marginLeft: 2
|
|
93
|
+
},
|
|
94
|
+
children: "*"
|
|
95
|
+
})]
|
|
96
|
+
}), /* @__PURE__ */ u("div", {
|
|
97
|
+
style: {
|
|
98
|
+
flex: 1,
|
|
99
|
+
minWidth: 0,
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexDirection: "column",
|
|
102
|
+
gap: 3
|
|
103
|
+
},
|
|
104
|
+
children: [/* @__PURE__ */ u("div", {
|
|
105
|
+
style: {
|
|
106
|
+
display: "flex",
|
|
107
|
+
alignItems: "flex-start",
|
|
108
|
+
gap: 6,
|
|
109
|
+
minHeight: 24
|
|
110
|
+
},
|
|
111
|
+
children: [/* @__PURE__ */ l("div", {
|
|
112
|
+
style: {
|
|
113
|
+
flex: 1,
|
|
114
|
+
minWidth: 0,
|
|
115
|
+
fontSize: 13,
|
|
116
|
+
lineHeight: m,
|
|
117
|
+
color: "var(--text)",
|
|
118
|
+
overflowWrap: "anywhere",
|
|
119
|
+
paddingTop: _ === "display" && !T ? h : 0
|
|
120
|
+
},
|
|
121
|
+
children: E && _ === "edit" ? /* @__PURE__ */ l("div", {
|
|
122
|
+
style: {
|
|
123
|
+
borderRadius: 6,
|
|
124
|
+
boxShadow: "0 0 0 1.5px var(--danger)"
|
|
125
|
+
},
|
|
126
|
+
children: i
|
|
127
|
+
}) : i
|
|
128
|
+
}), (g || p) && /* @__PURE__ */ u("div", {
|
|
129
|
+
className: "detail-row-action",
|
|
130
|
+
style: {
|
|
131
|
+
display: "flex",
|
|
132
|
+
gap: 2,
|
|
133
|
+
flexShrink: 0,
|
|
134
|
+
marginTop: -2
|
|
135
|
+
},
|
|
136
|
+
children: [g && /* @__PURE__ */ l(r, {
|
|
137
|
+
value: g,
|
|
138
|
+
size: "sm",
|
|
139
|
+
title: C("record.field.copy_value", "Copy value")
|
|
140
|
+
}), p]
|
|
141
|
+
})]
|
|
142
|
+
}), (E || f != null) && /* @__PURE__ */ u("div", {
|
|
143
|
+
style: {
|
|
144
|
+
fontSize: 11.5,
|
|
145
|
+
lineHeight: 1.4,
|
|
146
|
+
color: E ? "var(--danger)" : "var(--text-3)",
|
|
147
|
+
display: "flex",
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
gap: 4
|
|
150
|
+
},
|
|
151
|
+
children: [E && /* @__PURE__ */ l(n.warning, { size: 11 }), /* @__PURE__ */ l("span", { children: E ? c : f })]
|
|
152
|
+
})]
|
|
153
|
+
})]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { g as i, y as n, _ as r, b as t };
|