@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
package/dist-lib/vite/index.d.ts
CHANGED
|
@@ -1,21 +1,47 @@
|
|
|
1
|
+
import { Plugin } from "vite";
|
|
2
|
+
//#region src/vite/fingerprint-plugin.d.ts
|
|
3
|
+
interface DeclarionFingerprintPluginOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Subdirectory of `outDir` to walk. Defaults to "assets" — Vite's
|
|
6
|
+
* standard hashed-output location. Override only if a consumer has
|
|
7
|
+
* customized `build.assetsDir`.
|
|
8
|
+
*/
|
|
9
|
+
assetsDir?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Filename of the emitted fingerprint, written next to `index.html`.
|
|
12
|
+
* Defaults to "bundle-fingerprint.txt". The server reads the same name,
|
|
13
|
+
* so a custom name must match on the server side too.
|
|
14
|
+
*/
|
|
15
|
+
filename?: string;
|
|
16
|
+
}
|
|
1
17
|
/**
|
|
2
|
-
*
|
|
18
|
+
* Vite plugin that emits a single-line `bundle-fingerprint.txt` next
|
|
19
|
+
* to `index.html` after every production build. The fingerprint is a
|
|
20
|
+
* SHA-256 over every file in `assetsDir/` — sorted by name, length-
|
|
21
|
+
* prefixed (`name\x00sha256\x00`) so concatenation is collision-safe.
|
|
3
22
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
23
|
+
* The Declarion server reads this file at boot and folds it into the
|
|
24
|
+
* combined build identity exposed via `X-Declarion-Version` and
|
|
25
|
+
* `/api/version`. When a consumer redeploys the UI bundle (changed
|
|
26
|
+
* JS/CSS/assets) the file changes → server fingerprint changes → SDK
|
|
27
|
+
* detects asset drift → user is prompted to reload to pick up the
|
|
28
|
+
* new code.
|
|
6
29
|
*
|
|
7
|
-
*
|
|
30
|
+
* Why a separate file rather than walking `assetsDir/` from Go at
|
|
31
|
+
* boot:
|
|
32
|
+
* - Eliminates a per-process I/O dependency on bundle layout
|
|
33
|
+
* conventions (Vite could change `assetsDir` defaults; the
|
|
34
|
+
* plugin is the canonical contract).
|
|
35
|
+
* - Computed once at build time, read once at boot — never on the
|
|
36
|
+
* hot path.
|
|
37
|
+
* - Lets the consumer image ship the fingerprint as an immutable
|
|
38
|
+
* artifact rather than re-deriving it at every server start.
|
|
8
39
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* });
|
|
14
|
-
*
|
|
15
|
-
* One line, one plugin — works in every Declarion deployment mode
|
|
16
|
-
* (local-up, prebuilt-declarion, fully-prebuilt prod) because the
|
|
17
|
-
* plugin runs at consumer-build time regardless of where the SDK
|
|
18
|
-
* itself comes from (npm pin / vite alias / link).
|
|
40
|
+
* Backward compatible: if a consumer hasn't adopted the plugin yet,
|
|
41
|
+
* `bundle-fingerprint.txt` is absent at boot, the server logs once
|
|
42
|
+
* and degrades to binary-only drift detection (still correct — the
|
|
43
|
+
* binary fingerprint differs across builds anyway). No errors.
|
|
19
44
|
*/
|
|
20
|
-
export
|
|
21
|
-
|
|
45
|
+
export declare function declarionFingerprintPlugin(options?: DeclarionFingerprintPluginOptions): Plugin;
|
|
46
|
+
//#endregion
|
|
47
|
+
export type { DeclarionFingerprintPluginOptions };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/lib/window-election.ts
|
|
2
|
+
function e(e, t = window) {
|
|
3
|
+
let n = crypto.randomUUID(), r = {
|
|
4
|
+
focusedAt: document.hasFocus() ? Date.now() : 0,
|
|
5
|
+
conversationId: null
|
|
6
|
+
}, i = /* @__PURE__ */ new Map([[n, r]]), a = typeof BroadcastChannel == "function" ? new BroadcastChannel(e) : null, o = () => a?.postMessage({
|
|
7
|
+
type: "state",
|
|
8
|
+
windowId: n,
|
|
9
|
+
state: r
|
|
10
|
+
}), s = (e) => {
|
|
11
|
+
let t = e.data;
|
|
12
|
+
t.type === "state" ? i.set(t.windowId, t.state) : t.type === "ask" ? o() : i.delete(t.windowId);
|
|
13
|
+
}, c = () => {
|
|
14
|
+
r.focusedAt = Date.now(), o();
|
|
15
|
+
}, l = () => a?.postMessage({
|
|
16
|
+
type: "goodbye",
|
|
17
|
+
windowId: n
|
|
18
|
+
});
|
|
19
|
+
a?.addEventListener("message", s), t.addEventListener("focus", c), t.addEventListener("pagehide", l), o(), a?.postMessage({ type: "ask" });
|
|
20
|
+
function u(e) {
|
|
21
|
+
let t = [...i.entries()], n = e === null ? [] : t.filter(([, t]) => t.conversationId === e), r = n.length > 0 ? n : t, a = r[0];
|
|
22
|
+
for (let e of r) (e[1].focusedAt > a[1].focusedAt || e[1].focusedAt === a[1].focusedAt && e[0] > a[0]) && (a = e);
|
|
23
|
+
return a[0];
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
isElected(e) {
|
|
27
|
+
return u(e) === n;
|
|
28
|
+
},
|
|
29
|
+
mayBeElected() {
|
|
30
|
+
return r.conversationId !== null || u(null) === n;
|
|
31
|
+
},
|
|
32
|
+
setConversation(e) {
|
|
33
|
+
r.conversationId = e, o();
|
|
34
|
+
},
|
|
35
|
+
dispose() {
|
|
36
|
+
l(), a?.removeEventListener("message", s), t.removeEventListener("focus", c), t.removeEventListener("pagehide", l), a?.close();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
var t = null;
|
|
41
|
+
function n() {
|
|
42
|
+
return t ??= e("declarion-admin-windows"), t;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { n as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -58,20 +58,13 @@
|
|
|
58
58
|
"@dnd-kit/sortable": "^10.0.0",
|
|
59
59
|
"@dnd-kit/utilities": "^3.2.2",
|
|
60
60
|
"@monaco-editor/react": "^4.7.0",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@radix-ui/react-dropdown-menu": "^2.1.24",
|
|
64
|
-
"@radix-ui/react-label": "^2.1.15",
|
|
65
|
-
"@radix-ui/react-select": "^2.3.7",
|
|
66
|
-
"@radix-ui/react-separator": "^1.1.15",
|
|
67
|
-
"@radix-ui/react-slot": "^1.3.3",
|
|
68
|
-
"@tanstack/react-query": "^5.103.2",
|
|
69
|
-
"@tanstack/react-table": "^9.2.4",
|
|
61
|
+
"@tanstack/react-query": "^5.104.1",
|
|
62
|
+
"@tanstack/react-table": "^9.2.6",
|
|
70
63
|
"@tanstack/react-virtual": "^3.14.13",
|
|
71
64
|
"class-variance-authority": "^0.7.1",
|
|
72
65
|
"clsx": "^2.1.1",
|
|
73
66
|
"date-fns": "^4.4.0",
|
|
74
|
-
"lucide-react": "^1.
|
|
67
|
+
"lucide-react": "^1.52.0",
|
|
75
68
|
"mdast-util-to-string": "^4.0.0",
|
|
76
69
|
"monaco-editor": "^0.57.0",
|
|
77
70
|
"react-markdown": "^10.1.0",
|
|
@@ -98,27 +91,27 @@
|
|
|
98
91
|
"@types/react": "^19.3.0",
|
|
99
92
|
"@types/react-dom": "^19.3.0",
|
|
100
93
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
101
|
-
"@vitejs/plugin-react": "^6.1.
|
|
102
|
-
"@vitest/coverage-v8": "^5.0.
|
|
103
|
-
"axe-core": "^4.
|
|
104
|
-
"eslint": "^10.
|
|
94
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
95
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
96
|
+
"axe-core": "^4.14.0",
|
|
97
|
+
"eslint": "^10.12.0",
|
|
105
98
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
106
|
-
"jsdom": "^30.1.
|
|
107
|
-
"
|
|
108
|
-
"publint": "^0.3.24",
|
|
99
|
+
"jsdom": "^30.1.2",
|
|
100
|
+
"publint": "^0.3.25",
|
|
109
101
|
"react": "^19.3.0",
|
|
110
102
|
"react-dom": "^19.3.0",
|
|
103
|
+
"rolldown": "^1.2.12",
|
|
104
|
+
"rolldown-plugin-dts": "^0.28.6",
|
|
111
105
|
"tailwindcss": "^4.3.3",
|
|
112
|
-
"tsc-alias": "^1.9.5",
|
|
113
106
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
114
|
-
"typescript-eslint": "^8.
|
|
115
|
-
"vite": "^8.3.
|
|
116
|
-
"vitest": "^5.0.
|
|
107
|
+
"typescript-eslint": "^8.71.1",
|
|
108
|
+
"vite": "^8.3.2",
|
|
109
|
+
"vitest": "^5.0.3"
|
|
117
110
|
},
|
|
118
111
|
"scripts": {
|
|
119
112
|
"dev": "vite",
|
|
120
113
|
"build": "tsc -p tsconfig.app.json --noEmit && vite build",
|
|
121
|
-
"build:lib": "vite build --config vite.lib.config.ts && vite build --config vite.plugin.config.ts &&
|
|
114
|
+
"build:lib": "vite build --config vite.lib.config.ts && vite build --config vite.plugin.config.ts && rolldown --config rolldown.types.config.mjs && pnpm run check:bundle && pnpm run check:fonts && pnpm run check:pkg",
|
|
122
115
|
"check:bundle": "node scripts/check-eager-bundle.mjs",
|
|
123
116
|
"check:fonts": "node scripts/check-fonts.mjs",
|
|
124
117
|
"check:pkg": "publint run",
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { s as e } from "./DynamicIcon-DW5krHuX.js";
|
|
2
|
-
import { Kn as t, gn as n, qn as r } from "./useCurrentScreen-0WBj7wT6.js";
|
|
3
|
-
import { h as i } from "./RefreshControl-DO9rYcdq.js";
|
|
4
|
-
import { t as a } from "./useText-BsedsJ-J.js";
|
|
5
|
-
import { C as o } from "./useOwnRefresh-q80kCMMh.js";
|
|
6
|
-
import { p as s } from "./action-dispatch-gWmOYjOP.js";
|
|
7
|
-
import { useCallback as c, useState as l } from "react";
|
|
8
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
-
//#region src/components/primitives/RecordIdBadge.tsx
|
|
10
|
-
var p = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, m = 1200;
|
|
11
|
-
function h({ value: t }) {
|
|
12
|
-
let n = a(), [r, i] = l(!1), o = p.test(t) ? `${t.slice(0, 8)}…` : t, s = c(async () => {
|
|
13
|
-
try {
|
|
14
|
-
await navigator.clipboard.writeText(t), i(!0), window.setTimeout(() => i(!1), m);
|
|
15
|
-
} catch {}
|
|
16
|
-
}, [t]);
|
|
17
|
-
return /* @__PURE__ */ f("button", {
|
|
18
|
-
type: "button",
|
|
19
|
-
onClick: s,
|
|
20
|
-
title: r ? n("control.copied", "Copied") : n("control.copy_value", "Copy {value}", { value: t }),
|
|
21
|
-
className: "mono inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[11px] text-text-4 hover:bg-surface-2 hover:text-text-3 transition-colors shrink-0 border border-transparent hover:border-border",
|
|
22
|
-
children: [/* @__PURE__ */ d("span", { children: o }), r ? /* @__PURE__ */ d(e.check, { size: 10 }) : /* @__PURE__ */ d(e.copy, {
|
|
23
|
-
size: 10,
|
|
24
|
-
style: { opacity: .6 }
|
|
25
|
-
})]
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/components/chrome/PageShell.tsx
|
|
30
|
-
function g({ header: e, children: t, scrollRef: r }) {
|
|
31
|
-
let i = n(), a = i.isPhone ? o(12) : {
|
|
32
|
-
paddingLeft: "24px",
|
|
33
|
-
paddingRight: "24px"
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ f("div", {
|
|
36
|
-
style: {
|
|
37
|
-
height: "100%",
|
|
38
|
-
display: "flex",
|
|
39
|
-
flexDirection: "column",
|
|
40
|
-
overflow: "hidden",
|
|
41
|
-
background: "var(--background)"
|
|
42
|
-
},
|
|
43
|
-
children: [/* @__PURE__ */ d("div", {
|
|
44
|
-
"data-testid": "page-shell-header",
|
|
45
|
-
style: {
|
|
46
|
-
flexShrink: 0,
|
|
47
|
-
paddingTop: i.isPhone ? 14 : 24,
|
|
48
|
-
paddingBottom: 8,
|
|
49
|
-
...a
|
|
50
|
-
},
|
|
51
|
-
children: e
|
|
52
|
-
}), /* @__PURE__ */ d("div", {
|
|
53
|
-
ref: r,
|
|
54
|
-
style: {
|
|
55
|
-
flex: 1,
|
|
56
|
-
minHeight: 0,
|
|
57
|
-
overflowY: "auto",
|
|
58
|
-
paddingTop: 4,
|
|
59
|
-
paddingBottom: "calc(24px + var(--safe-area-bottom))",
|
|
60
|
-
...a,
|
|
61
|
-
display: "flex",
|
|
62
|
-
flexDirection: "column",
|
|
63
|
-
gap: 16,
|
|
64
|
-
minWidth: 0,
|
|
65
|
-
WebkitOverflowScrolling: "touch"
|
|
66
|
-
},
|
|
67
|
-
children: t
|
|
68
|
-
})]
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
var _ = {
|
|
72
|
-
display: "flex",
|
|
73
|
-
alignItems: "center",
|
|
74
|
-
gap: 6,
|
|
75
|
-
flexGrow: 1,
|
|
76
|
-
flexShrink: 1,
|
|
77
|
-
flexBasis: "auto",
|
|
78
|
-
marginLeft: "auto",
|
|
79
|
-
minWidth: 180,
|
|
80
|
-
flexWrap: "wrap",
|
|
81
|
-
justifyContent: "flex-end"
|
|
82
|
-
}, v = 160;
|
|
83
|
-
function y({ icon: n, title: o, recordId: s, description: c, highlights: l, mode: p, dirty: m = !1, showBack: g = !1, onBack: y, right: b, identityControls: x, showTitle: S = !0 }) {
|
|
84
|
-
let C = a();
|
|
85
|
-
return /* @__PURE__ */ f("div", {
|
|
86
|
-
style: {
|
|
87
|
-
display: "flex",
|
|
88
|
-
alignItems: "flex-start",
|
|
89
|
-
gap: 10,
|
|
90
|
-
flexWrap: "wrap",
|
|
91
|
-
minWidth: 0
|
|
92
|
-
},
|
|
93
|
-
children: [
|
|
94
|
-
S && g && /* @__PURE__ */ d("div", {
|
|
95
|
-
style: {
|
|
96
|
-
paddingTop: 4,
|
|
97
|
-
flexShrink: 0
|
|
98
|
-
},
|
|
99
|
-
children: /* @__PURE__ */ d(r, {
|
|
100
|
-
size: 26,
|
|
101
|
-
icon: /* @__PURE__ */ d(e.back, { size: 14 }),
|
|
102
|
-
title: C("shell.back", "Back"),
|
|
103
|
-
onClick: y
|
|
104
|
-
})
|
|
105
|
-
}),
|
|
106
|
-
S && n && /* @__PURE__ */ d("div", {
|
|
107
|
-
style: {
|
|
108
|
-
flexShrink: 0,
|
|
109
|
-
paddingTop: 2
|
|
110
|
-
},
|
|
111
|
-
children: /* @__PURE__ */ d("span", {
|
|
112
|
-
style: {
|
|
113
|
-
width: 32,
|
|
114
|
-
height: 32,
|
|
115
|
-
borderRadius: 8,
|
|
116
|
-
background: "var(--accent-soft)",
|
|
117
|
-
color: "var(--accent)",
|
|
118
|
-
display: "flex",
|
|
119
|
-
alignItems: "center",
|
|
120
|
-
justifyContent: "center"
|
|
121
|
-
},
|
|
122
|
-
children: n
|
|
123
|
-
})
|
|
124
|
-
}),
|
|
125
|
-
S && /* @__PURE__ */ f(u, { children: [
|
|
126
|
-
/* @__PURE__ */ d("h1", {
|
|
127
|
-
style: {
|
|
128
|
-
margin: 0,
|
|
129
|
-
fontSize: "var(--page-title-size, var(--page-title-size-detail))",
|
|
130
|
-
fontWeight: 600,
|
|
131
|
-
letterSpacing: 0,
|
|
132
|
-
lineHeight: "var(--page-title-line-height, var(--page-title-line-height-detail))",
|
|
133
|
-
color: "var(--text)",
|
|
134
|
-
minWidth: v,
|
|
135
|
-
overflow: "hidden",
|
|
136
|
-
textOverflow: "ellipsis",
|
|
137
|
-
whiteSpace: "nowrap",
|
|
138
|
-
overflowWrap: "anywhere",
|
|
139
|
-
maxWidth: "100%",
|
|
140
|
-
flexGrow: 0,
|
|
141
|
-
flexShrink: 1,
|
|
142
|
-
flexBasis: "auto"
|
|
143
|
-
},
|
|
144
|
-
children: o
|
|
145
|
-
}),
|
|
146
|
-
s && /* @__PURE__ */ d(h, { value: s }),
|
|
147
|
-
c && /* @__PURE__ */ d(i, {
|
|
148
|
-
label: c,
|
|
149
|
-
"data-testid": "detail-description-info"
|
|
150
|
-
}),
|
|
151
|
-
x,
|
|
152
|
-
p === "edit" && m && /* @__PURE__ */ f("span", {
|
|
153
|
-
style: {
|
|
154
|
-
display: "inline-flex",
|
|
155
|
-
alignItems: "center",
|
|
156
|
-
gap: 5,
|
|
157
|
-
fontSize: 11,
|
|
158
|
-
color: "var(--warn)"
|
|
159
|
-
},
|
|
160
|
-
children: [/* @__PURE__ */ d("span", { style: {
|
|
161
|
-
width: 6,
|
|
162
|
-
height: 6,
|
|
163
|
-
borderRadius: 999,
|
|
164
|
-
background: "var(--warn)"
|
|
165
|
-
} }), C("shell.record.unsaved", "Unsaved")]
|
|
166
|
-
}),
|
|
167
|
-
p === "create" && /* @__PURE__ */ d(t, {
|
|
168
|
-
tone: "violet",
|
|
169
|
-
size: "xs",
|
|
170
|
-
dot: !0,
|
|
171
|
-
children: C("shell.record.new", "New record")
|
|
172
|
-
})
|
|
173
|
-
] }),
|
|
174
|
-
b && /* @__PURE__ */ d("div", {
|
|
175
|
-
role: "toolbar",
|
|
176
|
-
"aria-label": C("shell.record.page_actions", "Page actions"),
|
|
177
|
-
style: _,
|
|
178
|
-
children: b
|
|
179
|
-
}),
|
|
180
|
-
l && p === "display" && /* @__PURE__ */ d("div", {
|
|
181
|
-
style: {
|
|
182
|
-
flexBasis: "100%",
|
|
183
|
-
minWidth: 0
|
|
184
|
-
},
|
|
185
|
-
children: l
|
|
186
|
-
})
|
|
187
|
-
]
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/components/chrome/AuditMetaStrip.tsx
|
|
192
|
-
function b(e) {
|
|
193
|
-
return e.by != null || e.at != null;
|
|
194
|
-
}
|
|
195
|
-
function x({ lines: e }) {
|
|
196
|
-
let t = e.filter(b);
|
|
197
|
-
return t.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
198
|
-
style: {
|
|
199
|
-
display: "flex",
|
|
200
|
-
flexWrap: "wrap",
|
|
201
|
-
gap: "8px 24px",
|
|
202
|
-
padding: "10px 14px",
|
|
203
|
-
background: "var(--surface-2)",
|
|
204
|
-
border: "1px solid var(--border)",
|
|
205
|
-
borderRadius: 8,
|
|
206
|
-
fontSize: 11.5,
|
|
207
|
-
color: "var(--text-3)"
|
|
208
|
-
},
|
|
209
|
-
children: t.map((e, t) => /* @__PURE__ */ d(S, { line: e }, t))
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
function S({ line: e }) {
|
|
213
|
-
return /* @__PURE__ */ f("div", {
|
|
214
|
-
style: {
|
|
215
|
-
display: "flex",
|
|
216
|
-
alignItems: "center",
|
|
217
|
-
gap: 8,
|
|
218
|
-
minWidth: 0
|
|
219
|
-
},
|
|
220
|
-
children: [/* @__PURE__ */ d("span", {
|
|
221
|
-
style: {
|
|
222
|
-
fontSize: 11,
|
|
223
|
-
fontWeight: 600,
|
|
224
|
-
color: "var(--text-4)",
|
|
225
|
-
flexShrink: 0
|
|
226
|
-
},
|
|
227
|
-
children: e.label
|
|
228
|
-
}), /* @__PURE__ */ f("span", {
|
|
229
|
-
style: {
|
|
230
|
-
display: "inline-flex",
|
|
231
|
-
alignItems: "center",
|
|
232
|
-
gap: 6,
|
|
233
|
-
minWidth: 0
|
|
234
|
-
},
|
|
235
|
-
children: [
|
|
236
|
-
e.by != null && /* @__PURE__ */ d("span", {
|
|
237
|
-
style: { color: "var(--text-2)" },
|
|
238
|
-
children: e.by
|
|
239
|
-
}),
|
|
240
|
-
e.by != null && e.at != null && /* @__PURE__ */ d("span", {
|
|
241
|
-
style: { color: "var(--text-4)" },
|
|
242
|
-
children: "·"
|
|
243
|
-
}),
|
|
244
|
-
e.at != null && /* @__PURE__ */ d("span", {
|
|
245
|
-
className: "num",
|
|
246
|
-
children: e.at
|
|
247
|
-
})
|
|
248
|
-
]
|
|
249
|
-
})]
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region src/components/detail-layout/DetailAuditStrip.tsx
|
|
254
|
-
function C({ screen: e, entity: t, entityCode: n, record: r, refs: i, schema: o }) {
|
|
255
|
-
let c = a(), l = e.audit;
|
|
256
|
-
if (l?.enabled === !1) return null;
|
|
257
|
-
let u = (e) => {
|
|
258
|
-
if (!e || !t.fields.get(e)) return;
|
|
259
|
-
let a = r[e];
|
|
260
|
-
if (a != null && a !== "") return s({
|
|
261
|
-
entity: t,
|
|
262
|
-
entityCode: n,
|
|
263
|
-
fieldName: e,
|
|
264
|
-
record: r,
|
|
265
|
-
mode: "display",
|
|
266
|
-
refs: i,
|
|
267
|
-
entities: o.entities,
|
|
268
|
-
screens: o.screens,
|
|
269
|
-
surface: "list",
|
|
270
|
-
t: c
|
|
271
|
-
});
|
|
272
|
-
}, f = l?.lines && l.lines.length > 0 ? l.lines.map((e) => ({
|
|
273
|
-
label: c(e.label),
|
|
274
|
-
at: u(e.at),
|
|
275
|
-
by: u(e.by)
|
|
276
|
-
})) : [{
|
|
277
|
-
label: c("record.audit.created", "Created"),
|
|
278
|
-
at: u("created_at"),
|
|
279
|
-
by: u("created_by")
|
|
280
|
-
}, {
|
|
281
|
-
label: c("record.audit.updated", "Updated"),
|
|
282
|
-
at: u("updated_at"),
|
|
283
|
-
by: u("updated_by")
|
|
284
|
-
}];
|
|
285
|
-
return /* @__PURE__ */ d(x, { lines: f });
|
|
286
|
-
}
|
|
287
|
-
//#endregion
|
|
288
|
-
export { h as a, g as i, y as n, _ as r, C as t };
|