@declarion/react 0.60.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/ActionDialog-uiuse5W8.js +374 -0
- package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
- package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
- package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
- package/dist-lib/{AgentChatPanel.impl-BY-Ir7Sh.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
- package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
- package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
- package/dist-lib/AuthShell-DdiughRT.js +361 -0
- package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
- package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
- package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
- package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
- package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
- package/dist-lib/{DraggableChildrenTable-CtL7rdT6.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
- package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
- package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
- package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
- package/dist-lib/{Grid-CYERLdXO.js → Grid-Cg29k0jv.js} +98 -99
- package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
- package/dist-lib/Icons-lt-7lhYR.js +151 -0
- package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
- package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
- package/dist-lib/Kbd-CNttVu0z.js +23 -0
- package/dist-lib/{LayoutRenderer-B08IJKsZ.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-Dje_rays.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-N0IWjTH5.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
- package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
- package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
- package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
- package/dist-lib/PageShell-tI-mm0C5.js +47 -0
- package/dist-lib/Pill-D-wsfRhx.js +42 -0
- package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
- package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
- package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
- package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
- package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
- package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
- package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
- package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
- package/dist-lib/SectionCard-VonaiLrx.js +150 -0
- package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
- package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
- package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
- package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
- package/dist-lib/{SortHeaderMenu-DKKeCGTH.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
- package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
- package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
- package/dist-lib/{cardProjection-nveYLvHR.js → cardProjection-Cr7fG6wJ.js} +134 -133
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/format-count-CSEFw2ht.js +943 -0
- package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
- package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
- package/dist-lib/icons.d.ts +20 -4
- package/dist-lib/icons.js +3 -2
- package/dist-lib/index.d.ts +2516 -150
- package/dist-lib/index.js +1532 -5053
- package/dist-lib/page-inset-D_kkVwwN.js +9 -0
- package/dist-lib/page-state-eA6J_KIR.js +124 -0
- package/dist-lib/param-editors-9yJr7xmN.js +201 -0
- package/dist-lib/payload-B2wODLAX.js +86 -0
- package/dist-lib/{peekDraftStore-DSExeoAh.js → peekDraftStore-D4GRsRKW.js} +44 -43
- package/dist-lib/registry-BpzE8-h8.js +119 -0
- package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
- package/dist-lib/testing.d.ts +53 -56
- package/dist-lib/testing.js +54 -55
- package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
- package/dist-lib/{useAgentConversation-BavrHfrU.js → useAgentConversation-D210VDCQ.js} +158 -169
- package/dist-lib/useAuth-CR2YKKXb.js +49 -0
- package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
- package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
- package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
- package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
- package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
- package/dist-lib/useObject-1OCeV34A.js +26 -0
- package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
- package/dist-lib/useParams-ei6w4I7w.js +133 -0
- package/dist-lib/useProperties-CbdhlhZd.js +81 -0
- package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
- package/dist-lib/useScreenBack-J861tbwn.js +71 -0
- package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
- package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
- package/dist-lib/utils-D_QDpB8_.js +11 -0
- package/dist-lib/{value-By1-WJ8J.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-DbiOpvd6.js → variants-CbAwl3Mn.js} +734 -740
- package/dist-lib/vite/index.d.ts +42 -16
- package/dist-lib/window-election-CHIvIZwx.js +45 -0
- package/package.json +17 -24
- package/dist-lib/DetailAuditStrip-B9p1XhjC.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-BEWSHtAC.js +0 -399
- package/dist-lib/SmartDetailPage.impl-CYiM-ITJ.js +0 -1565
- package/dist-lib/SmartListPage.impl-Db_Pv9Xc.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-hbbLglC1.js +0 -780
- package/dist-lib/api/agents.d.ts +0 -140
- package/dist-lib/api/auth-redirect.d.ts +0 -3
- package/dist-lib/api/auth.d.ts +0 -26
- package/dist-lib/api/batch.d.ts +0 -25
- package/dist-lib/api/client.d.ts +0 -51
- package/dist-lib/api/data.d.ts +0 -153
- package/dist-lib/api/entities.d.ts +0 -149
- package/dist-lib/api/events.d.ts +0 -91
- package/dist-lib/api/params.d.ts +0 -28
- package/dist-lib/api/properties.d.ts +0 -3
- package/dist-lib/api/schema.d.ts +0 -2
- package/dist-lib/api/status.d.ts +0 -2
- package/dist-lib/app.d.ts +0 -1
- package/dist-lib/components/actions/ActionButton.d.ts +0 -18
- package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
- package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
- package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
- package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
- package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
- package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
- package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
- package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
- package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
- package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
- package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
- package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
- package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
- package/dist-lib/components/chrome/PageShell.d.ts +0 -7
- package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
- package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
- package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
- package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
- package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
- package/dist-lib/components/detail-layout/index.d.ts +0 -21
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
- package/dist-lib/components/fields/BoolField.d.ts +0 -2
- package/dist-lib/components/fields/EmailField.d.ts +0 -2
- package/dist-lib/components/fields/EnumField.d.ts +0 -2
- package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
- package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
- package/dist-lib/components/fields/JsonField.d.ts +0 -3
- package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
- package/dist-lib/components/fields/NumberField.d.ts +0 -2
- package/dist-lib/components/fields/PasswordField.d.ts +0 -2
- package/dist-lib/components/fields/PhoneField.d.ts +0 -2
- package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
- package/dist-lib/components/fields/RefField.d.ts +0 -2
- package/dist-lib/components/fields/RichTextField.d.ts +0 -2
- package/dist-lib/components/fields/SecretField.d.ts +0 -2
- package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
- package/dist-lib/components/fields/StringField.d.ts +0 -2
- package/dist-lib/components/fields/StructureField.d.ts +0 -2
- package/dist-lib/components/fields/TextField.d.ts +0 -2
- package/dist-lib/components/fields/TimestampField.d.ts +0 -2
- package/dist-lib/components/fields/UrlField.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
- package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
- package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
- package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
- package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
- package/dist-lib/components/fields/cells/registry.d.ts +0 -21
- package/dist-lib/components/fields/index.d.ts +0 -28
- package/dist-lib/components/fields/langMap.d.ts +0 -2
- package/dist-lib/components/fields/secretValue.d.ts +0 -2
- package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
- package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
- package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
- package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
- package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
- package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
- package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
- package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
- package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
- package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
- package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
- package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
- package/dist-lib/components/file-widgets/host.d.ts +0 -28
- package/dist-lib/components/file-widgets/index.d.ts +0 -16
- package/dist-lib/components/file-widgets/payload.d.ts +0 -21
- package/dist-lib/components/file-widgets/registry.d.ts +0 -5
- package/dist-lib/components/file-widgets/types.d.ts +0 -17
- package/dist-lib/components/file-widgets/upload.d.ts +0 -45
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
- package/dist-lib/components/file-widgets/value.d.ts +0 -4
- package/dist-lib/components/filters/FilterChips.d.ts +0 -14
- package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
- package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
- package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
- package/dist-lib/components/layout/Layout.d.ts +0 -6
- package/dist-lib/components/layout/Rail.d.ts +0 -22
- package/dist-lib/components/layout/Sidebar.d.ts +0 -12
- package/dist-lib/components/layout/TabStrip.d.ts +0 -6
- package/dist-lib/components/layout/TenantChip.d.ts +0 -26
- package/dist-lib/components/layout/TopBar.d.ts +0 -22
- package/dist-lib/components/layout/tab-close.d.ts +0 -13
- package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
- package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
- package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
- package/dist-lib/components/list/QuickPeek.d.ts +0 -59
- package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
- package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
- package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
- package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
- package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
- package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
- package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
- package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
- package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
- package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
- package/dist-lib/components/pages/auth/icons.d.ts +0 -6
- package/dist-lib/components/pages/exportRequest.d.ts +0 -69
- package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
- package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
- package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
- package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
- package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
- package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
- package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
- package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
- package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
- package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
- package/dist-lib/components/pages/list/columns.d.ts +0 -46
- package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
- package/dist-lib/components/pages/list/page-size.d.ts +0 -3
- package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
- package/dist-lib/components/pages/list/table-features.d.ts +0 -14
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
- package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
- package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
- package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
- package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
- package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
- package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
- package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
- package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
- package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
- package/dist-lib/components/params/param-editors.d.ts +0 -20
- package/dist-lib/components/primitives/Avatar.d.ts +0 -6
- package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
- package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
- package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
- package/dist-lib/components/primitives/Btn.d.ts +0 -19
- package/dist-lib/components/primitives/Check.d.ts +0 -7
- package/dist-lib/components/primitives/Chip.d.ts +0 -9
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
- package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
- package/dist-lib/components/primitives/Fields.d.ts +0 -109
- package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
- package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
- package/dist-lib/components/primitives/Icons.d.ts +0 -136
- package/dist-lib/components/primitives/Kbd.d.ts +0 -4
- package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
- package/dist-lib/components/primitives/Pill.d.ts +0 -11
- package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
- package/dist-lib/components/primitives/RowField.d.ts +0 -10
- package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
- package/dist-lib/components/primitives/Spinner.d.ts +0 -3
- package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
- package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
- package/dist-lib/components/primitives/index.d.ts +0 -37
- package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
- package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
- package/dist-lib/components/shared/CopyButton.d.ts +0 -8
- package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
- package/dist-lib/components/shared/EmptyState.d.ts +0 -9
- package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
- package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
- package/dist-lib/components/shared/Markdown.d.ts +0 -3
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
- package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
- package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
- package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
- package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
- package/dist-lib/embed/EmbedContext.d.ts +0 -50
- package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
- package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
- package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
- package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
- package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
- package/dist-lib/embed/embed-dirty.d.ts +0 -24
- package/dist-lib/embed/embed-history.d.ts +0 -19
- package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
- package/dist-lib/embed/file-src.d.ts +0 -63
- package/dist-lib/embed/handshake.d.ts +0 -57
- package/dist-lib/embed/index.d.ts +0 -19
- package/dist-lib/embed/params.d.ts +0 -75
- package/dist-lib/embed/protocol.d.ts +0 -165
- package/dist-lib/embed/screen-location.d.ts +0 -50
- package/dist-lib/embed/theme.d.ts +0 -34
- package/dist-lib/embed/token.d.ts +0 -57
- package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
- package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
- package/dist-lib/failure-BT54OLHy.js +0 -158
- package/dist-lib/format-count-DLFCdtME.js +0 -1771
- package/dist-lib/hooks/useActionData.d.ts +0 -61
- package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
- package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
- package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
- package/dist-lib/hooks/useAuth.d.ts +0 -22
- package/dist-lib/hooks/useBranding.d.ts +0 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
- package/dist-lib/hooks/useChildrenData.d.ts +0 -3
- package/dist-lib/hooks/useColumns.d.ts +0 -13
- package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
- package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
- package/dist-lib/hooks/useDebounce.d.ts +0 -1
- package/dist-lib/hooks/useEntity.d.ts +0 -2
- package/dist-lib/hooks/useEntityData.d.ts +0 -41
- package/dist-lib/hooks/useFilters.d.ts +0 -14
- package/dist-lib/hooks/useImpersonation.d.ts +0 -23
- package/dist-lib/hooks/useLanguage.d.ts +0 -4
- package/dist-lib/hooks/useLiveObject.d.ts +0 -9
- package/dist-lib/hooks/useLongPress.d.ts +0 -29
- package/dist-lib/hooks/useMutations.d.ts +0 -13
- package/dist-lib/hooks/useObject.d.ts +0 -11
- package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
- package/dist-lib/hooks/usePageState.d.ts +0 -32
- package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
- package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
- package/dist-lib/hooks/useParams.d.ts +0 -49
- package/dist-lib/hooks/useProperties.d.ts +0 -5
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
- package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
- package/dist-lib/hooks/useSSE.d.ts +0 -31
- package/dist-lib/hooks/useSchema.d.ts +0 -1
- package/dist-lib/hooks/useScreen.d.ts +0 -2
- package/dist-lib/hooks/useScreenBack.d.ts +0 -21
- package/dist-lib/hooks/useScreenTab.d.ts +0 -10
- package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
- package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
- package/dist-lib/hooks/useTabTitle.d.ts +0 -2
- package/dist-lib/hooks/useText.d.ts +0 -3
- package/dist-lib/hooks/useTimelineData.d.ts +0 -10
- package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
- package/dist-lib/hooks/useViews.d.ts +0 -26
- package/dist-lib/lib/action-dispatch.d.ts +0 -8
- package/dist-lib/lib/actions.d.ts +0 -254
- package/dist-lib/lib/anchor.d.ts +0 -36
- package/dist-lib/lib/brand-tokens.d.ts +0 -43
- package/dist-lib/lib/branding.d.ts +0 -20
- package/dist-lib/lib/canonical-url.d.ts +0 -27
- package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
- package/dist-lib/lib/child-config.d.ts +0 -24
- package/dist-lib/lib/children-validation.d.ts +0 -5
- package/dist-lib/lib/decimal-text.d.ts +0 -1
- package/dist-lib/lib/display-value.d.ts +0 -1
- package/dist-lib/lib/document-templates.d.ts +0 -11
- package/dist-lib/lib/download.d.ts +0 -21
- package/dist-lib/lib/evidence-verdict.d.ts +0 -11
- package/dist-lib/lib/failure.d.ts +0 -2
- package/dist-lib/lib/field-classification.d.ts +0 -61
- package/dist-lib/lib/field-regions.d.ts +0 -8
- package/dist-lib/lib/filter-evaluator.d.ts +0 -16
- package/dist-lib/lib/filters.d.ts +0 -93
- package/dist-lib/lib/format-count.d.ts +0 -41
- package/dist-lib/lib/html-state.d.ts +0 -11
- package/dist-lib/lib/language.d.ts +0 -19
- package/dist-lib/lib/longPressGesture.d.ts +0 -55
- package/dist-lib/lib/mass-edit.d.ts +0 -32
- package/dist-lib/lib/page-inset.d.ts +0 -3
- package/dist-lib/lib/quick-add.d.ts +0 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
- package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
- package/dist-lib/lib/realtime-resync.d.ts +0 -23
- package/dist-lib/lib/record-documents-key.d.ts +0 -1
- package/dist-lib/lib/rich-text.d.ts +0 -14
- package/dist-lib/lib/rowClickGesture.d.ts +0 -26
- package/dist-lib/lib/safe-url.d.ts +0 -15
- package/dist-lib/lib/schema-routing.d.ts +0 -3
- package/dist-lib/lib/screen-back.d.ts +0 -70
- package/dist-lib/lib/scroll-restoration.d.ts +0 -90
- package/dist-lib/lib/size-value.d.ts +0 -16
- package/dist-lib/lib/sort.d.ts +0 -72
- package/dist-lib/lib/timestamp.d.ts +0 -53
- package/dist-lib/lib/toast.d.ts +0 -49
- package/dist-lib/lib/ui-actions.d.ts +0 -12
- package/dist-lib/lib/utils.d.ts +0 -9
- package/dist-lib/lib/variants.d.ts +0 -7
- package/dist-lib/lib/versionTracker.d.ts +0 -72
- package/dist-lib/lib/viewport-category.d.ts +0 -44
- package/dist-lib/main.d.ts +0 -1
- package/dist-lib/registry-CRPxNbkk.js +0 -1956
- package/dist-lib/safe-url-oSJw5pzO.js +0 -34
- package/dist-lib/stores/auth.d.ts +0 -16
- package/dist-lib/stores/list-layout.d.ts +0 -85
- package/dist-lib/stores/page-state.d.ts +0 -61
- package/dist-lib/stores/preferences.d.ts +0 -37
- package/dist-lib/stores/realtime.d.ts +0 -96
- package/dist-lib/stores/screen-registry.d.ts +0 -17
- package/dist-lib/stores/tabs.d.ts +0 -73
- package/dist-lib/types/api.d.ts +0 -580
- package/dist-lib/types/fieldType.d.ts +0 -2
- package/dist-lib/types/files.d.ts +0 -79
- package/dist-lib/types/ordmap.d.ts +0 -39
- package/dist-lib/types/schema.d.ts +0 -1089
- package/dist-lib/useCurrentScreen-BPq7HMF1.js +0 -7840
- package/dist-lib/useListQuery-CG1WM4cv.js +0 -103
- package/dist-lib/useOwnRefresh-C18iWRgr.js +0 -1167
- package/dist-lib/useProperties-C35JrjwQ.js +0 -83
- package/dist-lib/useTabSearchMirror-DKktWWLB.js +0 -175
- package/dist-lib/useText-BFDCTUSo.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
|
@@ -0,0 +1,943 @@
|
|
|
1
|
+
import { A as e, Ft as t, P as n, Pt as r, j as i, o as a, s as o, wn as s, wt as c } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as l } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { n as u, r as d } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { t as f } from "./Kbd-CNttVu0z.js";
|
|
5
|
+
import { n as p, t as m } from "./MenuItem-CfkVXPvC.js";
|
|
6
|
+
import { f as h, o as g } from "./PropertyGridEditor-BTjscqfz.js";
|
|
7
|
+
import { r as _ } from "./page-state-eA6J_KIR.js";
|
|
8
|
+
import { n as v } from "./ActionRunner-DAxgnKB3.js";
|
|
9
|
+
import { h as y, m as b } from "./useOwnRefresh-DkOuM4yo.js";
|
|
10
|
+
import { a as x, n as S, p as C, s as w } from "./variants-CbAwl3Mn.js";
|
|
11
|
+
import { _ as T, m as E, u as D } from "./FilterChips-8fMDBXHp.js";
|
|
12
|
+
import { useCallback as O, useEffect as k, useMemo as A, useRef as j, useState as M } from "react";
|
|
13
|
+
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
14
|
+
import { useLocation as I, useSearchParams as L } from "react-router";
|
|
15
|
+
//#region src/components/primitives/Avatar.tsx
|
|
16
|
+
function R({ name: e, size: t = 22, color: n }) {
|
|
17
|
+
let r = e.split(/\s+/).map((e) => e[0]).slice(0, 2).join("").toUpperCase(), i = e.split("").reduce((e, t) => e + t.charCodeAt(0), 0), a = [
|
|
18
|
+
"#DCE4F6",
|
|
19
|
+
"#E4DCF6",
|
|
20
|
+
"#F6DCE4",
|
|
21
|
+
"#F6E4DC",
|
|
22
|
+
"#DCF6E4",
|
|
23
|
+
"#DCF6F1",
|
|
24
|
+
"#F1F6DC",
|
|
25
|
+
"#F6DCF1"
|
|
26
|
+
], o = n || a[i % a.length];
|
|
27
|
+
return /* @__PURE__ */ P("span", {
|
|
28
|
+
style: {
|
|
29
|
+
display: "inline-flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
justifyContent: "center",
|
|
32
|
+
width: t,
|
|
33
|
+
height: t,
|
|
34
|
+
borderRadius: 999,
|
|
35
|
+
background: o,
|
|
36
|
+
color: "#1E2A4A",
|
|
37
|
+
fontSize: t < 20 ? 9.5 : 10.5,
|
|
38
|
+
fontWeight: 600,
|
|
39
|
+
flexShrink: 0
|
|
40
|
+
},
|
|
41
|
+
children: r
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/shared/ConfirmDialog.tsx
|
|
46
|
+
function z({ open: e, onOpenChange: t, title: n, description: r, confirmLabel: i, onConfirm: a, destructive: o = !1 }) {
|
|
47
|
+
let s = c(), f = j(null);
|
|
48
|
+
return k(() => {
|
|
49
|
+
e && f.current?.focus();
|
|
50
|
+
}, [e]), e ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P("div", {
|
|
51
|
+
onClick: () => t(!1),
|
|
52
|
+
style: {
|
|
53
|
+
position: "fixed",
|
|
54
|
+
inset: 0,
|
|
55
|
+
background: "var(--scrim)",
|
|
56
|
+
zIndex: 60,
|
|
57
|
+
backdropFilter: "blur(2px)"
|
|
58
|
+
}
|
|
59
|
+
}), /* @__PURE__ */ F("div", {
|
|
60
|
+
ref: f,
|
|
61
|
+
role: "dialog",
|
|
62
|
+
"aria-modal": "true",
|
|
63
|
+
"aria-label": n,
|
|
64
|
+
tabIndex: -1,
|
|
65
|
+
onKeyDown: (e) => {
|
|
66
|
+
e.key === "Escape" && t(!1);
|
|
67
|
+
},
|
|
68
|
+
style: {
|
|
69
|
+
position: "fixed",
|
|
70
|
+
top: "50%",
|
|
71
|
+
left: "50%",
|
|
72
|
+
transform: "translate(-50%, -50%)",
|
|
73
|
+
zIndex: 61,
|
|
74
|
+
width: "calc(100vw - 24px)",
|
|
75
|
+
maxWidth: 460,
|
|
76
|
+
maxHeight: "calc(var(--app-height) - var(--safe-area-top) - var(--safe-area-bottom) - 16px)",
|
|
77
|
+
background: "var(--surface)",
|
|
78
|
+
borderRadius: 12,
|
|
79
|
+
boxShadow: "var(--shadow-lg)",
|
|
80
|
+
border: "1px solid var(--border)",
|
|
81
|
+
overflow: "hidden",
|
|
82
|
+
display: "flex",
|
|
83
|
+
flexDirection: "column",
|
|
84
|
+
outline: "none"
|
|
85
|
+
},
|
|
86
|
+
children: [/* @__PURE__ */ F("div", {
|
|
87
|
+
style: {
|
|
88
|
+
padding: "14px 18px",
|
|
89
|
+
display: "flex",
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
gap: 10,
|
|
92
|
+
minWidth: 0,
|
|
93
|
+
overflowY: "auto"
|
|
94
|
+
},
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ P("span", {
|
|
97
|
+
style: {
|
|
98
|
+
width: 28,
|
|
99
|
+
height: 28,
|
|
100
|
+
borderRadius: 7,
|
|
101
|
+
background: o ? "var(--danger-soft)" : "var(--accent-soft)",
|
|
102
|
+
color: o ? "var(--danger)" : "var(--accent)",
|
|
103
|
+
display: "inline-flex",
|
|
104
|
+
alignItems: "center",
|
|
105
|
+
justifyContent: "center",
|
|
106
|
+
flexShrink: 0
|
|
107
|
+
},
|
|
108
|
+
children: P(o ? l.trash : l.info, { size: 15 })
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ F("div", {
|
|
111
|
+
style: {
|
|
112
|
+
flex: 1,
|
|
113
|
+
minWidth: 0
|
|
114
|
+
},
|
|
115
|
+
children: [/* @__PURE__ */ P("div", {
|
|
116
|
+
style: {
|
|
117
|
+
fontSize: 14,
|
|
118
|
+
fontWeight: 600,
|
|
119
|
+
color: "var(--text)"
|
|
120
|
+
},
|
|
121
|
+
children: n
|
|
122
|
+
}), /* @__PURE__ */ P("div", {
|
|
123
|
+
style: {
|
|
124
|
+
fontSize: 11.5,
|
|
125
|
+
color: "var(--text-3)",
|
|
126
|
+
marginTop: 2
|
|
127
|
+
},
|
|
128
|
+
children: r
|
|
129
|
+
})]
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ P(u, {
|
|
132
|
+
icon: /* @__PURE__ */ P(l.x, { size: 14 }),
|
|
133
|
+
onClick: () => t(!1)
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
}), /* @__PURE__ */ F("div", {
|
|
137
|
+
style: {
|
|
138
|
+
padding: "10px 16px",
|
|
139
|
+
borderTop: "1px solid var(--divider)",
|
|
140
|
+
display: "flex",
|
|
141
|
+
alignItems: "center",
|
|
142
|
+
justifyContent: "flex-end",
|
|
143
|
+
flexWrap: "wrap",
|
|
144
|
+
gap: 8,
|
|
145
|
+
background: "var(--surface-2)",
|
|
146
|
+
flexShrink: 0
|
|
147
|
+
},
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ P("div", { style: { flex: 1 } }),
|
|
150
|
+
/* @__PURE__ */ P(d, {
|
|
151
|
+
onClick: () => t(!1),
|
|
152
|
+
children: s("dialog.cancel", "Cancel")
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ P(d, {
|
|
155
|
+
kind: "primary",
|
|
156
|
+
danger: o,
|
|
157
|
+
onClick: () => {
|
|
158
|
+
a(), t(!1);
|
|
159
|
+
},
|
|
160
|
+
children: i ?? s("dialog.confirm", "Confirm")
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
})]
|
|
164
|
+
})] }) : null;
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/hooks/useScreen.ts
|
|
168
|
+
function B(e) {
|
|
169
|
+
let { data: n } = t();
|
|
170
|
+
if (n && e) return n.screens[e];
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/hooks/useFilters.ts
|
|
174
|
+
var V = [];
|
|
175
|
+
function H({ defaults: e = V } = {}) {
|
|
176
|
+
let [t, n] = L(), r = c("errors"), i = A(() => E(t), [t]), a = i.error === null && t.get("filters") !== null ? i.filters : e, o = A(() => D(a), [a]), s = O((r) => {
|
|
177
|
+
let i = new URLSearchParams(t);
|
|
178
|
+
T(r, i, e), i.set("page", "1"), n(i);
|
|
179
|
+
}, [
|
|
180
|
+
t,
|
|
181
|
+
n,
|
|
182
|
+
e
|
|
183
|
+
]), l = O(() => {
|
|
184
|
+
let e = new URLSearchParams(t);
|
|
185
|
+
e.delete("filters"), e.set("page", "1"), n(e);
|
|
186
|
+
}, [t, n]);
|
|
187
|
+
return {
|
|
188
|
+
filters: a,
|
|
189
|
+
filterError: i.error === null ? null : r(i.errorCode ?? "", i.error),
|
|
190
|
+
activeCount: o,
|
|
191
|
+
setFilters: s,
|
|
192
|
+
clearFilters: l
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/hooks/useViews.ts
|
|
197
|
+
function U(e, t) {
|
|
198
|
+
let n = t && String(e.user_id) === t;
|
|
199
|
+
return {
|
|
200
|
+
id: String(e.id),
|
|
201
|
+
name: typeof e.name == "object" && e.name !== null ? e.name : { en: s(e.name) },
|
|
202
|
+
icon: e.icon,
|
|
203
|
+
source: n ? "personal" : "shared",
|
|
204
|
+
is_default: e.is_default === !0,
|
|
205
|
+
filters: e.filters,
|
|
206
|
+
columns: e.columns,
|
|
207
|
+
sort: e.sort
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function W(e, t) {
|
|
211
|
+
let n = a("view", {
|
|
212
|
+
filters: [{
|
|
213
|
+
field: "id",
|
|
214
|
+
op: "eq",
|
|
215
|
+
value: e ?? ""
|
|
216
|
+
}],
|
|
217
|
+
per_page: 1
|
|
218
|
+
}, !!e), r = n.data?.data?.[0], i = A(() => r ? U(r, t) : void 0, [r, t]);
|
|
219
|
+
return e ? {
|
|
220
|
+
view: i,
|
|
221
|
+
isSettled: !n.isPending || n.fetchStatus === "paused"
|
|
222
|
+
} : {
|
|
223
|
+
view: void 0,
|
|
224
|
+
isSettled: !0
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function G(e, t) {
|
|
228
|
+
return K(e, t).views;
|
|
229
|
+
}
|
|
230
|
+
function K(e, t) {
|
|
231
|
+
let n = B(e), r = o("view") !== void 0, i = a("view", {
|
|
232
|
+
filters: [{
|
|
233
|
+
field: "screen_code",
|
|
234
|
+
op: "eq",
|
|
235
|
+
value: e
|
|
236
|
+
}, ...t ? [{ or: [{
|
|
237
|
+
field: "user_id",
|
|
238
|
+
op: "eq",
|
|
239
|
+
value: t
|
|
240
|
+
}, {
|
|
241
|
+
field: "is_shared",
|
|
242
|
+
op: "eq",
|
|
243
|
+
value: "true"
|
|
244
|
+
}] }] : []],
|
|
245
|
+
sort: "created_at:desc",
|
|
246
|
+
per_page: 100
|
|
247
|
+
}, r), s = i.data, c = A(() => {
|
|
248
|
+
let e = [];
|
|
249
|
+
if (n?.views) for (let t of n.views) e.push({
|
|
250
|
+
id: t.code,
|
|
251
|
+
name: t.name,
|
|
252
|
+
icon: t.icon,
|
|
253
|
+
source: "system",
|
|
254
|
+
filters: t.filters,
|
|
255
|
+
columns: t.columns,
|
|
256
|
+
sort: t.sort
|
|
257
|
+
});
|
|
258
|
+
if (s?.data) for (let n of s.data) e.push(U(n, t));
|
|
259
|
+
return e;
|
|
260
|
+
}, [
|
|
261
|
+
n?.views,
|
|
262
|
+
s?.data,
|
|
263
|
+
t
|
|
264
|
+
]), { refetch: l } = i;
|
|
265
|
+
return {
|
|
266
|
+
views: c,
|
|
267
|
+
isSettled: !r || !i.isPending || i.fetchStatus === "paused",
|
|
268
|
+
isFetching: i.isFetching,
|
|
269
|
+
refetch: O(() => {
|
|
270
|
+
l();
|
|
271
|
+
}, [l])
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/hooks/usePageState.ts
|
|
276
|
+
function q(e, t, n) {
|
|
277
|
+
let r = I(), i = n?.scope === "path" ? b(r) : y(r), a = j(i);
|
|
278
|
+
a.current = i;
|
|
279
|
+
let o = j(t), s = _((t) => t.ttlMs <= 0 ? void 0 : t.entries[i]?.bag[e]), c = s === void 0 ? o.current : s;
|
|
280
|
+
return k(() => {
|
|
281
|
+
_.getState().touch(i);
|
|
282
|
+
}, [i]), [c, O((t) => {
|
|
283
|
+
let n = a.current, r = _.getState(), i = r.read(n, e), s = i === void 0 ? o.current : i, c = typeof t == "function" ? t(s) : t;
|
|
284
|
+
r.set(n, e, c);
|
|
285
|
+
}, [e])];
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region src/components/list/ColumnPicker.tsx
|
|
289
|
+
function J({ availableColumns: e, visibleColumns: t, onToggle: n, onMove: r, onReset: i, onShowAll: a, onResetWidths: o, columnLabel: s = (e) => e }) {
|
|
290
|
+
let f = c(), h = j(null), [g, _] = M(!1), v = e.filter((e) => !t.includes(e)), y = (e) => /* @__PURE__ */ P("div", {
|
|
291
|
+
style: {
|
|
292
|
+
padding: "6px 8px 4px",
|
|
293
|
+
fontSize: 10.5,
|
|
294
|
+
color: "var(--text-3)",
|
|
295
|
+
fontWeight: 600,
|
|
296
|
+
letterSpacing: "0.06em",
|
|
297
|
+
textTransform: "uppercase"
|
|
298
|
+
},
|
|
299
|
+
children: e
|
|
300
|
+
});
|
|
301
|
+
return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(d, {
|
|
302
|
+
ref: h,
|
|
303
|
+
icon: /* @__PURE__ */ P(l.columns, { size: 13 }),
|
|
304
|
+
onClick: () => _((e) => !e),
|
|
305
|
+
active: g,
|
|
306
|
+
children: f("list.columns.button", "Columns")
|
|
307
|
+
}), /* @__PURE__ */ F(p, {
|
|
308
|
+
open: g,
|
|
309
|
+
anchor: h.current,
|
|
310
|
+
onClose: () => _(!1),
|
|
311
|
+
align: "end",
|
|
312
|
+
width: 240,
|
|
313
|
+
children: [
|
|
314
|
+
y(f("list.columns.visible", "Visible columns")),
|
|
315
|
+
t.map((e, i) => /* @__PURE__ */ F("div", {
|
|
316
|
+
style: {
|
|
317
|
+
display: "flex",
|
|
318
|
+
alignItems: "center",
|
|
319
|
+
gap: 2,
|
|
320
|
+
padding: "0 6px 0 8px"
|
|
321
|
+
},
|
|
322
|
+
children: [/* @__PURE__ */ F("button", {
|
|
323
|
+
type: "button",
|
|
324
|
+
onClick: () => n(e),
|
|
325
|
+
"aria-label": f("list.columns.hide", "Hide {column}", { column: s(e) }),
|
|
326
|
+
style: {
|
|
327
|
+
flex: 1,
|
|
328
|
+
display: "flex",
|
|
329
|
+
alignItems: "center",
|
|
330
|
+
gap: 6,
|
|
331
|
+
minWidth: 0,
|
|
332
|
+
background: "none",
|
|
333
|
+
border: 0,
|
|
334
|
+
cursor: "pointer",
|
|
335
|
+
textAlign: "left",
|
|
336
|
+
color: "var(--text)",
|
|
337
|
+
font: "inherit",
|
|
338
|
+
fontSize: 12.5,
|
|
339
|
+
padding: "4px 0"
|
|
340
|
+
},
|
|
341
|
+
children: [/* @__PURE__ */ P(l.check, { size: 12 }), /* @__PURE__ */ P("span", {
|
|
342
|
+
style: {
|
|
343
|
+
overflow: "hidden",
|
|
344
|
+
textOverflow: "ellipsis",
|
|
345
|
+
whiteSpace: "nowrap"
|
|
346
|
+
},
|
|
347
|
+
children: s(e)
|
|
348
|
+
})]
|
|
349
|
+
}), r && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(u, {
|
|
350
|
+
icon: /* @__PURE__ */ P(l.arrowUp, { size: 12 }),
|
|
351
|
+
title: f("list.columns.move_up", "Move {column} up", { column: s(e) }),
|
|
352
|
+
size: 22,
|
|
353
|
+
disabled: i === 0,
|
|
354
|
+
onClick: () => r(e, "up")
|
|
355
|
+
}), /* @__PURE__ */ P(u, {
|
|
356
|
+
icon: /* @__PURE__ */ P(l.arrowDown, { size: 12 }),
|
|
357
|
+
title: f("list.columns.move_down", "Move {column} down", { column: s(e) }),
|
|
358
|
+
size: 22,
|
|
359
|
+
disabled: i === t.length - 1,
|
|
360
|
+
onClick: () => r(e, "down")
|
|
361
|
+
})] })]
|
|
362
|
+
}, e)),
|
|
363
|
+
v.length > 0 && /* @__PURE__ */ F(N, { children: [y(f("list.columns.hidden", "Hidden columns")), v.map((e) => /* @__PURE__ */ P(m, {
|
|
364
|
+
icon: /* @__PURE__ */ P("span", { style: {
|
|
365
|
+
width: 12,
|
|
366
|
+
display: "inline-block"
|
|
367
|
+
} }),
|
|
368
|
+
onClick: () => n(e),
|
|
369
|
+
children: s(e)
|
|
370
|
+
}, e))] }),
|
|
371
|
+
/* @__PURE__ */ P(m, { divider: !0 }),
|
|
372
|
+
/* @__PURE__ */ P(m, {
|
|
373
|
+
icon: /* @__PURE__ */ P(l.refresh, { size: 12 }),
|
|
374
|
+
onClick: i,
|
|
375
|
+
children: f("list.columns.reset", "Reset columns")
|
|
376
|
+
}),
|
|
377
|
+
/* @__PURE__ */ P(m, {
|
|
378
|
+
icon: /* @__PURE__ */ P(l.eye, { size: 12 }),
|
|
379
|
+
onClick: a,
|
|
380
|
+
children: f("list.columns.show_all", "Show all")
|
|
381
|
+
}),
|
|
382
|
+
o && /* @__PURE__ */ P(m, {
|
|
383
|
+
icon: /* @__PURE__ */ P(l.columns, { size: 12 }),
|
|
384
|
+
onClick: o,
|
|
385
|
+
children: f("list.columns.reset_widths", "Reset column widths (this device)")
|
|
386
|
+
})
|
|
387
|
+
]
|
|
388
|
+
})] });
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/components/list/ViewSwitcher.tsx
|
|
392
|
+
var Y = l["undo-2"], X = {
|
|
393
|
+
display: "flex",
|
|
394
|
+
alignItems: "center",
|
|
395
|
+
gap: 6,
|
|
396
|
+
height: 28,
|
|
397
|
+
padding: "0 10px",
|
|
398
|
+
background: "var(--surface)",
|
|
399
|
+
border: "1px solid var(--border)",
|
|
400
|
+
borderRadius: 6,
|
|
401
|
+
cursor: "pointer",
|
|
402
|
+
fontSize: 12,
|
|
403
|
+
color: "var(--text-2)",
|
|
404
|
+
fontFamily: "inherit"
|
|
405
|
+
};
|
|
406
|
+
function ee({ views: e, activeViewId: t, isDirty: n, onSelect: r, onSave: i, onSaveAs: a, onDiscard: o, onDelete: s, deletePending: f = !1 }) {
|
|
407
|
+
let h = c(), g = j(null), [_, v] = M(!1), y = e.find((e) => e.id === t), b = e.filter((e) => e.source === "system"), x = e.filter((e) => e.source === "personal"), S = e.filter((e) => e.source === "shared"), C = y ? h(y.name) : h("list.view.all_records", "All records"), w = (e) => /* @__PURE__ */ P("div", {
|
|
408
|
+
style: {
|
|
409
|
+
padding: "6px 8px 4px",
|
|
410
|
+
fontSize: 10,
|
|
411
|
+
color: "var(--text-3)",
|
|
412
|
+
fontWeight: 700,
|
|
413
|
+
letterSpacing: "0.08em",
|
|
414
|
+
textTransform: "uppercase"
|
|
415
|
+
},
|
|
416
|
+
children: e
|
|
417
|
+
});
|
|
418
|
+
return /* @__PURE__ */ F("div", {
|
|
419
|
+
style: {
|
|
420
|
+
display: "flex",
|
|
421
|
+
alignItems: "center",
|
|
422
|
+
gap: 6
|
|
423
|
+
},
|
|
424
|
+
children: [
|
|
425
|
+
/* @__PURE__ */ F("button", {
|
|
426
|
+
ref: g,
|
|
427
|
+
type: "button",
|
|
428
|
+
onClick: () => v((e) => !e),
|
|
429
|
+
style: X,
|
|
430
|
+
children: [
|
|
431
|
+
/* @__PURE__ */ P(l.star, { size: 12 }),
|
|
432
|
+
/* @__PURE__ */ P("span", { children: C }),
|
|
433
|
+
n && /* @__PURE__ */ P("span", { style: {
|
|
434
|
+
display: "inline-block",
|
|
435
|
+
width: 6,
|
|
436
|
+
height: 6,
|
|
437
|
+
borderRadius: 999,
|
|
438
|
+
background: "var(--warn)",
|
|
439
|
+
marginLeft: 2
|
|
440
|
+
} }),
|
|
441
|
+
/* @__PURE__ */ P(l.down, { size: 11 })
|
|
442
|
+
]
|
|
443
|
+
}),
|
|
444
|
+
/* @__PURE__ */ F(p, {
|
|
445
|
+
open: _,
|
|
446
|
+
anchor: g.current,
|
|
447
|
+
onClose: () => v(!1),
|
|
448
|
+
width: 280,
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ P(m, {
|
|
451
|
+
icon: t ? void 0 : /* @__PURE__ */ P(l.check, { size: 12 }),
|
|
452
|
+
active: !t,
|
|
453
|
+
onClick: () => {
|
|
454
|
+
r({
|
|
455
|
+
id: "",
|
|
456
|
+
name: { [h.language]: h("list.view.all_records", "All records") },
|
|
457
|
+
source: "system"
|
|
458
|
+
}), v(!1);
|
|
459
|
+
},
|
|
460
|
+
children: h("list.view.all_records", "All records")
|
|
461
|
+
}),
|
|
462
|
+
b.length > 0 && w(h("list.view.presets", "Presets")),
|
|
463
|
+
b.map((e) => /* @__PURE__ */ P(m, {
|
|
464
|
+
icon: t === e.id ? /* @__PURE__ */ P(l.check, { size: 12 }) : void 0,
|
|
465
|
+
active: t === e.id,
|
|
466
|
+
onClick: () => {
|
|
467
|
+
r(e), v(!1);
|
|
468
|
+
},
|
|
469
|
+
children: h(e.name)
|
|
470
|
+
}, e.id)),
|
|
471
|
+
x.length > 0 && w(h("list.view.mine", "My Views")),
|
|
472
|
+
x.map((e) => /* @__PURE__ */ F("div", {
|
|
473
|
+
style: {
|
|
474
|
+
display: "flex",
|
|
475
|
+
alignItems: "center",
|
|
476
|
+
gap: 2,
|
|
477
|
+
paddingRight: 6
|
|
478
|
+
},
|
|
479
|
+
children: [/* @__PURE__ */ P("div", {
|
|
480
|
+
style: {
|
|
481
|
+
flex: 1,
|
|
482
|
+
minWidth: 0
|
|
483
|
+
},
|
|
484
|
+
children: /* @__PURE__ */ P(m, {
|
|
485
|
+
icon: t === e.id ? /* @__PURE__ */ P(l.check, { size: 12 }) : e.is_default ? /* @__PURE__ */ P(l.star, { size: 12 }) : void 0,
|
|
486
|
+
active: t === e.id,
|
|
487
|
+
onClick: () => {
|
|
488
|
+
r(e), v(!1);
|
|
489
|
+
},
|
|
490
|
+
children: h(e.name)
|
|
491
|
+
})
|
|
492
|
+
}), s && /* @__PURE__ */ P(u, {
|
|
493
|
+
icon: /* @__PURE__ */ P(l.trash, { size: 12 }),
|
|
494
|
+
title: h("list.view.delete_action", "Delete view {name}", { name: h(e.name) }),
|
|
495
|
+
size: 22,
|
|
496
|
+
disabled: f,
|
|
497
|
+
onClick: () => {
|
|
498
|
+
s(e), v(!1);
|
|
499
|
+
}
|
|
500
|
+
})]
|
|
501
|
+
}, e.id)),
|
|
502
|
+
S.length > 0 && w(h("list.view.shared", "Shared")),
|
|
503
|
+
S.map((e) => /* @__PURE__ */ P(m, {
|
|
504
|
+
icon: t === e.id ? /* @__PURE__ */ P(l.check, { size: 12 }) : /* @__PURE__ */ P(l.globe, { size: 12 }),
|
|
505
|
+
active: t === e.id,
|
|
506
|
+
onClick: () => {
|
|
507
|
+
r(e), v(!1);
|
|
508
|
+
},
|
|
509
|
+
children: h(e.name)
|
|
510
|
+
}, e.id)),
|
|
511
|
+
a && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(m, { divider: !0 }), /* @__PURE__ */ P(m, {
|
|
512
|
+
icon: /* @__PURE__ */ P(l.plus, { size: 12 }),
|
|
513
|
+
onClick: () => {
|
|
514
|
+
a(), v(!1);
|
|
515
|
+
},
|
|
516
|
+
children: h("list.view.save_as_menu", "Save as new view…")
|
|
517
|
+
})] })
|
|
518
|
+
]
|
|
519
|
+
}),
|
|
520
|
+
n && t && /* @__PURE__ */ F(N, { children: [i && y?.source === "personal" ? /* @__PURE__ */ P(d, {
|
|
521
|
+
icon: /* @__PURE__ */ P(l.save, { size: 12 }),
|
|
522
|
+
onClick: i,
|
|
523
|
+
children: h("list.view.save", "Save")
|
|
524
|
+
}) : a ? /* @__PURE__ */ P(d, {
|
|
525
|
+
icon: /* @__PURE__ */ P(l.plus, { size: 12 }),
|
|
526
|
+
onClick: a,
|
|
527
|
+
children: h("list.view.save_as", "Save as new")
|
|
528
|
+
}) : null, o && /* @__PURE__ */ P(d, {
|
|
529
|
+
kind: "ghost",
|
|
530
|
+
icon: /* @__PURE__ */ P(Y, { size: 12 }),
|
|
531
|
+
onClick: o,
|
|
532
|
+
children: h("list.view.discard", "Discard")
|
|
533
|
+
})] })
|
|
534
|
+
]
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region src/components/list/PeekFieldCell.tsx
|
|
539
|
+
var Z = /* @__PURE__ */ new Set([
|
|
540
|
+
"enum",
|
|
541
|
+
"bool",
|
|
542
|
+
"ref"
|
|
543
|
+
]);
|
|
544
|
+
function te(e) {
|
|
545
|
+
let t = e.display?.widget;
|
|
546
|
+
return t && Z.has(t) ? !0 : Z.has(e.type);
|
|
547
|
+
}
|
|
548
|
+
function ne({ field: e, fieldName: t, label: n, value: r, record: i, refs: a, readOnly: o, onCommit: s }) {
|
|
549
|
+
let d = c(), [f, p] = M(!1), [m, g] = M(r), _ = te(e);
|
|
550
|
+
k(() => {
|
|
551
|
+
f || g(r);
|
|
552
|
+
}, [r, f]);
|
|
553
|
+
let v = O(() => {
|
|
554
|
+
o || (g(r), p(!0));
|
|
555
|
+
}, [o, r]), y = O((e) => {
|
|
556
|
+
s(e === void 0 ? m : e), p(!1);
|
|
557
|
+
}, [s, m]), b = O(() => {
|
|
558
|
+
g(r), p(!1);
|
|
559
|
+
}, [r]), x = O((e) => {
|
|
560
|
+
if (o || f) return;
|
|
561
|
+
let t = e.target;
|
|
562
|
+
t.closest("a") || t.closest("[data-peek-pencil=\"true\"]") || v();
|
|
563
|
+
}, [
|
|
564
|
+
o,
|
|
565
|
+
f,
|
|
566
|
+
v
|
|
567
|
+
]), S = O((e) => {
|
|
568
|
+
f ? _ || (e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), y()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), b())) : !o && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), v());
|
|
569
|
+
}, [
|
|
570
|
+
f,
|
|
571
|
+
_,
|
|
572
|
+
o,
|
|
573
|
+
v,
|
|
574
|
+
y,
|
|
575
|
+
b
|
|
576
|
+
]), C = O((e) => {
|
|
577
|
+
_ ? (g(e), y(e)) : g(e);
|
|
578
|
+
}, [_, y]), w = h({
|
|
579
|
+
field: e,
|
|
580
|
+
fieldName: t,
|
|
581
|
+
value: r,
|
|
582
|
+
mode: "display",
|
|
583
|
+
record: i,
|
|
584
|
+
refs: a,
|
|
585
|
+
t: d
|
|
586
|
+
}), T = f ? h({
|
|
587
|
+
field: e,
|
|
588
|
+
fieldName: t,
|
|
589
|
+
value: m,
|
|
590
|
+
mode: "edit",
|
|
591
|
+
onChange: C,
|
|
592
|
+
record: i,
|
|
593
|
+
refs: a,
|
|
594
|
+
t: d
|
|
595
|
+
}) : null;
|
|
596
|
+
return /* @__PURE__ */ P("div", {
|
|
597
|
+
className: "peek-field-cell",
|
|
598
|
+
"data-editing": f ? "true" : "false",
|
|
599
|
+
onClick: x,
|
|
600
|
+
onKeyDown: S,
|
|
601
|
+
onMouseEnter: (e) => {
|
|
602
|
+
o || f || (e.currentTarget.style.borderColor = "var(--border)");
|
|
603
|
+
},
|
|
604
|
+
onMouseLeave: (e) => {
|
|
605
|
+
e.currentTarget.style.borderColor = "transparent";
|
|
606
|
+
},
|
|
607
|
+
style: {
|
|
608
|
+
position: "relative",
|
|
609
|
+
display: "flex",
|
|
610
|
+
alignItems: "center",
|
|
611
|
+
gap: 6,
|
|
612
|
+
padding: "4px 6px",
|
|
613
|
+
margin: "-4px -6px",
|
|
614
|
+
borderRadius: 4,
|
|
615
|
+
minHeight: 28,
|
|
616
|
+
cursor: o || f ? "default" : "text",
|
|
617
|
+
border: "1px dashed transparent"
|
|
618
|
+
},
|
|
619
|
+
tabIndex: o || f ? -1 : 0,
|
|
620
|
+
role: o || f ? void 0 : "button",
|
|
621
|
+
"aria-label": o || f ? void 0 : d("list.peek.edit_field", "Edit {field}", { field: n }),
|
|
622
|
+
children: f ? /* @__PURE__ */ F("div", {
|
|
623
|
+
style: {
|
|
624
|
+
display: "flex",
|
|
625
|
+
alignItems: "center",
|
|
626
|
+
gap: 4,
|
|
627
|
+
flex: 1,
|
|
628
|
+
minWidth: 0
|
|
629
|
+
},
|
|
630
|
+
children: [/* @__PURE__ */ P("div", {
|
|
631
|
+
style: {
|
|
632
|
+
flex: 1,
|
|
633
|
+
minWidth: 0
|
|
634
|
+
},
|
|
635
|
+
children: T
|
|
636
|
+
}), !_ && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(u, {
|
|
637
|
+
size: 24,
|
|
638
|
+
icon: /* @__PURE__ */ P(l.check, { size: 13 }),
|
|
639
|
+
onClick: () => y(),
|
|
640
|
+
title: d("dialog.save", "Save")
|
|
641
|
+
}), /* @__PURE__ */ P(u, {
|
|
642
|
+
size: 24,
|
|
643
|
+
icon: /* @__PURE__ */ P(l.x, { size: 13 }),
|
|
644
|
+
onClick: b,
|
|
645
|
+
title: d("dialog.cancel", "Cancel")
|
|
646
|
+
})] })]
|
|
647
|
+
}) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P("div", {
|
|
648
|
+
style: {
|
|
649
|
+
flex: 1,
|
|
650
|
+
minWidth: 0
|
|
651
|
+
},
|
|
652
|
+
children: w
|
|
653
|
+
}), !o && /* @__PURE__ */ P("span", {
|
|
654
|
+
"data-peek-pencil": "true",
|
|
655
|
+
style: {
|
|
656
|
+
position: "absolute",
|
|
657
|
+
right: 4,
|
|
658
|
+
top: "50%",
|
|
659
|
+
transform: "translateY(-50%)"
|
|
660
|
+
},
|
|
661
|
+
className: "peek-pencil",
|
|
662
|
+
children: /* @__PURE__ */ P(u, {
|
|
663
|
+
size: 20,
|
|
664
|
+
icon: /* @__PURE__ */ P(l.edit, { size: 12 }),
|
|
665
|
+
onClick: (e) => {
|
|
666
|
+
e.stopPropagation(), v();
|
|
667
|
+
},
|
|
668
|
+
title: d("list.record.edit", "Edit")
|
|
669
|
+
})
|
|
670
|
+
})] })
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
//#endregion
|
|
674
|
+
//#region src/components/list/QuickPeek.tsx
|
|
675
|
+
var Q = {
|
|
676
|
+
tab: "Tab",
|
|
677
|
+
esc: "Esc"
|
|
678
|
+
};
|
|
679
|
+
function re({ entity: t, entityCode: a, record: o, title: s, recordId: p, avatarName: m, fields: h, refs: _, screen: y, actions: b, screenActionLayout: T, entityActionLayout: E, executeAction: D, onClose: O, onOpen: I, onSave: L }) {
|
|
680
|
+
let z = c(), [B, V] = M({ ...o }), [H, U] = M(!1);
|
|
681
|
+
g(H);
|
|
682
|
+
let W = j(null), { run: G } = v(), K = S(t, y, B);
|
|
683
|
+
k(() => {
|
|
684
|
+
V({ ...o }), U(!1);
|
|
685
|
+
}, [o]), k(() => {
|
|
686
|
+
W.current?.focus();
|
|
687
|
+
}, []);
|
|
688
|
+
let q = A(() => {
|
|
689
|
+
let r = K?.action_layout ?? T ?? E ?? i(b, "quick_peek"), a = n(r, b, void 0, "quick_peek");
|
|
690
|
+
return e(z, a, b, void 0, B, [], x(t, B));
|
|
691
|
+
}, [
|
|
692
|
+
z,
|
|
693
|
+
K?.action_layout,
|
|
694
|
+
T,
|
|
695
|
+
E,
|
|
696
|
+
b,
|
|
697
|
+
B,
|
|
698
|
+
t
|
|
699
|
+
]), J = ({ code: e, action: t }) => {
|
|
700
|
+
G({
|
|
701
|
+
action: t,
|
|
702
|
+
title: z(t.display?.name) || e,
|
|
703
|
+
row: B,
|
|
704
|
+
execute: (n) => D(e, t, n)
|
|
705
|
+
});
|
|
706
|
+
}, Y = (e, t) => {
|
|
707
|
+
let n = {
|
|
708
|
+
...B,
|
|
709
|
+
[e]: t
|
|
710
|
+
};
|
|
711
|
+
V(n), U(!0), L?.(n);
|
|
712
|
+
}, X = K?.quick_peek?.width ?? 480;
|
|
713
|
+
return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P("div", {
|
|
714
|
+
onClick: O,
|
|
715
|
+
style: {
|
|
716
|
+
position: "fixed",
|
|
717
|
+
inset: 0,
|
|
718
|
+
background: "var(--scrim-lite)",
|
|
719
|
+
zIndex: 40
|
|
720
|
+
}
|
|
721
|
+
}), /* @__PURE__ */ F("aside", {
|
|
722
|
+
ref: W,
|
|
723
|
+
role: "dialog",
|
|
724
|
+
"aria-label": z("list.peek.dialog", "Quick peek"),
|
|
725
|
+
tabIndex: -1,
|
|
726
|
+
onKeyDown: (e) => {
|
|
727
|
+
e.key === "Escape" && O();
|
|
728
|
+
},
|
|
729
|
+
style: {
|
|
730
|
+
position: "fixed",
|
|
731
|
+
top: "var(--topbar-h)",
|
|
732
|
+
right: 0,
|
|
733
|
+
bottom: "var(--tabbar-h)",
|
|
734
|
+
width: X,
|
|
735
|
+
background: "var(--surface)",
|
|
736
|
+
borderLeft: "1px solid var(--border)",
|
|
737
|
+
zIndex: 41,
|
|
738
|
+
display: "flex",
|
|
739
|
+
flexDirection: "column",
|
|
740
|
+
boxShadow: "var(--shadow-lg)"
|
|
741
|
+
},
|
|
742
|
+
children: [
|
|
743
|
+
/* @__PURE__ */ F("div", {
|
|
744
|
+
style: {
|
|
745
|
+
display: "flex",
|
|
746
|
+
alignItems: "center",
|
|
747
|
+
padding: "12px 16px",
|
|
748
|
+
borderBottom: "1px solid var(--divider)",
|
|
749
|
+
gap: 10
|
|
750
|
+
},
|
|
751
|
+
children: [
|
|
752
|
+
/* @__PURE__ */ P(R, {
|
|
753
|
+
name: m || s,
|
|
754
|
+
size: 28
|
|
755
|
+
}),
|
|
756
|
+
/* @__PURE__ */ F("div", {
|
|
757
|
+
style: {
|
|
758
|
+
flex: 1,
|
|
759
|
+
minWidth: 0
|
|
760
|
+
},
|
|
761
|
+
children: [/* @__PURE__ */ P("div", {
|
|
762
|
+
style: {
|
|
763
|
+
fontSize: 14,
|
|
764
|
+
fontWeight: 600,
|
|
765
|
+
color: "var(--text)",
|
|
766
|
+
overflow: "hidden",
|
|
767
|
+
textOverflow: "ellipsis",
|
|
768
|
+
whiteSpace: "nowrap"
|
|
769
|
+
},
|
|
770
|
+
children: s
|
|
771
|
+
}), p && /* @__PURE__ */ P("div", {
|
|
772
|
+
className: "mono",
|
|
773
|
+
style: {
|
|
774
|
+
fontSize: 11,
|
|
775
|
+
color: "var(--text-4)"
|
|
776
|
+
},
|
|
777
|
+
children: p
|
|
778
|
+
})]
|
|
779
|
+
}),
|
|
780
|
+
/* @__PURE__ */ P(u, {
|
|
781
|
+
icon: /* @__PURE__ */ P(l.external, { size: 13 }),
|
|
782
|
+
title: H ? z("list.peek.open_in_tab_dirty", "Open in tab (keeps unsaved changes)") : z("list.peek.open_in_tab", "Open in tab"),
|
|
783
|
+
onClick: () => I(H ? B : null)
|
|
784
|
+
}),
|
|
785
|
+
/* @__PURE__ */ P(u, {
|
|
786
|
+
icon: /* @__PURE__ */ P(l.x, { size: 14 }),
|
|
787
|
+
title: z("list.peek.close", "Close"),
|
|
788
|
+
onClick: O
|
|
789
|
+
})
|
|
790
|
+
]
|
|
791
|
+
}),
|
|
792
|
+
/* @__PURE__ */ F("div", {
|
|
793
|
+
style: {
|
|
794
|
+
flex: 1,
|
|
795
|
+
overflowY: "auto",
|
|
796
|
+
padding: 14,
|
|
797
|
+
display: "flex",
|
|
798
|
+
flexDirection: "column",
|
|
799
|
+
gap: 10
|
|
800
|
+
},
|
|
801
|
+
children: [/* @__PURE__ */ F("div", {
|
|
802
|
+
style: {
|
|
803
|
+
padding: "8px 10px",
|
|
804
|
+
background: "var(--accent-soft)",
|
|
805
|
+
borderRadius: 6,
|
|
806
|
+
fontSize: 11.5,
|
|
807
|
+
color: "var(--accent)",
|
|
808
|
+
display: "flex",
|
|
809
|
+
alignItems: "center",
|
|
810
|
+
gap: 6
|
|
811
|
+
},
|
|
812
|
+
children: [
|
|
813
|
+
/* @__PURE__ */ P(l.sparkle, { size: 12 }),
|
|
814
|
+
" ",
|
|
815
|
+
z("list.peek.hint", "Inline quick-edit — click any field to change."),
|
|
816
|
+
r(z("list.peek.keys_hint", "{tab} to move, {esc} to close."), {
|
|
817
|
+
tab: /* @__PURE__ */ P(f, { children: Q.tab }),
|
|
818
|
+
esc: /* @__PURE__ */ P(f, { children: Q.esc })
|
|
819
|
+
})
|
|
820
|
+
]
|
|
821
|
+
}), h.map((e) => /* @__PURE__ */ P($, {
|
|
822
|
+
label: e.label,
|
|
823
|
+
children: e.kind === "file" ? C({
|
|
824
|
+
entity: t,
|
|
825
|
+
entityCode: a,
|
|
826
|
+
fieldName: e.key,
|
|
827
|
+
record: B,
|
|
828
|
+
mode: e.readOnly ? "display" : "edit",
|
|
829
|
+
onChange: (t) => Y(e.key, t),
|
|
830
|
+
refs: _,
|
|
831
|
+
disabled: e.readOnly,
|
|
832
|
+
t: z
|
|
833
|
+
}) : /* @__PURE__ */ P(ne, {
|
|
834
|
+
field: e.field,
|
|
835
|
+
fieldName: e.key,
|
|
836
|
+
label: e.label,
|
|
837
|
+
value: B[e.key],
|
|
838
|
+
record: B,
|
|
839
|
+
refs: _,
|
|
840
|
+
readOnly: e.readOnly,
|
|
841
|
+
onCommit: (t) => Y(e.key, t)
|
|
842
|
+
})
|
|
843
|
+
}, e.key))]
|
|
844
|
+
}),
|
|
845
|
+
/* @__PURE__ */ F("div", {
|
|
846
|
+
style: {
|
|
847
|
+
display: "flex",
|
|
848
|
+
padding: "10px 14px",
|
|
849
|
+
borderTop: "1px solid var(--divider)",
|
|
850
|
+
gap: 6,
|
|
851
|
+
alignItems: "center"
|
|
852
|
+
},
|
|
853
|
+
children: [
|
|
854
|
+
H && /* @__PURE__ */ F("span", {
|
|
855
|
+
style: {
|
|
856
|
+
fontSize: 11,
|
|
857
|
+
color: "var(--warn)",
|
|
858
|
+
display: "flex",
|
|
859
|
+
alignItems: "center",
|
|
860
|
+
gap: 4
|
|
861
|
+
},
|
|
862
|
+
children: [/* @__PURE__ */ P("span", { style: {
|
|
863
|
+
width: 6,
|
|
864
|
+
height: 6,
|
|
865
|
+
borderRadius: 999,
|
|
866
|
+
background: "var(--warn)"
|
|
867
|
+
} }), z("list.peek.unsaved", "Unsaved")]
|
|
868
|
+
}),
|
|
869
|
+
/* @__PURE__ */ P("div", {
|
|
870
|
+
style: {
|
|
871
|
+
flex: 1,
|
|
872
|
+
minWidth: 0,
|
|
873
|
+
display: "flex",
|
|
874
|
+
justifyContent: "flex-end"
|
|
875
|
+
},
|
|
876
|
+
children: q.length > 0 && /* @__PURE__ */ P(w, {
|
|
877
|
+
layout: q,
|
|
878
|
+
row: B,
|
|
879
|
+
onRun: (e, t) => J({
|
|
880
|
+
code: e,
|
|
881
|
+
action: t
|
|
882
|
+
}),
|
|
883
|
+
kind: "toolbar",
|
|
884
|
+
entityActions: b,
|
|
885
|
+
align: "trailing",
|
|
886
|
+
ariaLabel: z("list.peek.actions", "Quick peek actions")
|
|
887
|
+
})
|
|
888
|
+
}),
|
|
889
|
+
/* @__PURE__ */ P(d, {
|
|
890
|
+
kind: "primary",
|
|
891
|
+
icon: /* @__PURE__ */ P(l.edit, { size: 13 }),
|
|
892
|
+
onClick: () => I(H ? B : null),
|
|
893
|
+
children: z("list.peek.open_full", "Open full")
|
|
894
|
+
})
|
|
895
|
+
]
|
|
896
|
+
})
|
|
897
|
+
]
|
|
898
|
+
})] });
|
|
899
|
+
}
|
|
900
|
+
function $({ label: e, children: t }) {
|
|
901
|
+
return /* @__PURE__ */ F("div", {
|
|
902
|
+
style: {
|
|
903
|
+
display: "grid",
|
|
904
|
+
gridTemplateColumns: "120px 1fr",
|
|
905
|
+
alignItems: "center",
|
|
906
|
+
padding: "4px 0",
|
|
907
|
+
borderBottom: "1px solid var(--divider)"
|
|
908
|
+
},
|
|
909
|
+
children: [/* @__PURE__ */ P("div", {
|
|
910
|
+
style: {
|
|
911
|
+
fontSize: 11.5,
|
|
912
|
+
color: "var(--text-3)",
|
|
913
|
+
fontWeight: 500
|
|
914
|
+
},
|
|
915
|
+
children: e
|
|
916
|
+
}), /* @__PURE__ */ P("div", { children: t })]
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
//#endregion
|
|
920
|
+
//#region src/lib/format-count.ts
|
|
921
|
+
var ie = [
|
|
922
|
+
1e9,
|
|
923
|
+
1e6,
|
|
924
|
+
1e3
|
|
925
|
+
];
|
|
926
|
+
function ae(e, t) {
|
|
927
|
+
if (!Number.isFinite(e) || e < 0) return "~0";
|
|
928
|
+
let n = Math.round(e);
|
|
929
|
+
if (n < 1e3) return `~${n}`;
|
|
930
|
+
let r = +(n / (ie.find((e) => n >= e) ?? 1e3) < 10);
|
|
931
|
+
return `~${new Intl.NumberFormat(t, {
|
|
932
|
+
notation: "compact",
|
|
933
|
+
maximumFractionDigits: r
|
|
934
|
+
}).format(n)}`;
|
|
935
|
+
}
|
|
936
|
+
function oe(e, t) {
|
|
937
|
+
return !Number.isFinite(e) || e < 0 ? "0" : Math.round(e).toLocaleString(t);
|
|
938
|
+
}
|
|
939
|
+
function se(e, t, n) {
|
|
940
|
+
return t === "estimated" ? ae(e, n) : oe(e, n);
|
|
941
|
+
}
|
|
942
|
+
//#endregion
|
|
943
|
+
export { re as a, q as c, K as d, H as f, R as h, $ as i, W as l, z as m, ae as n, ee as o, B as p, oe as r, J as s, se as t, G as u };
|