@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,105 @@
|
|
|
1
|
+
import { kn as e, wt as t } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as n } from "./Icons-lt-7lhYR.js";
|
|
3
|
+
import { r } from "./CopyButton-C0iEvaT1.js";
|
|
4
|
+
import { V as i, X as a } from "./PropertyGridEditor-BTjscqfz.js";
|
|
5
|
+
import { t as o } from "./AuthShell-DdiughRT.js";
|
|
6
|
+
import { useState as s } from "react";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { Link as u } from "react-router";
|
|
9
|
+
//#region src/components/pages/auth/Forgot.impl.tsx
|
|
10
|
+
function d() {
|
|
11
|
+
let d = t(), [f, p] = s(""), [m, h] = s(!1), [g, _] = s(!1);
|
|
12
|
+
async function v(t) {
|
|
13
|
+
if (t.preventDefault(), !g) {
|
|
14
|
+
_(!0);
|
|
15
|
+
try {
|
|
16
|
+
await e("auth.request_password_reset", { email: f });
|
|
17
|
+
} catch {} finally {
|
|
18
|
+
h(!0), _(!1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ c(o, { children: /* @__PURE__ */ l("form", {
|
|
23
|
+
onSubmit: v,
|
|
24
|
+
"data-testid": "forgot-form",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ c("div", {
|
|
27
|
+
className: "text-accent uppercase",
|
|
28
|
+
style: {
|
|
29
|
+
fontSize: 10.5,
|
|
30
|
+
fontWeight: 700,
|
|
31
|
+
letterSpacing: "0.1em"
|
|
32
|
+
},
|
|
33
|
+
children: d("auth.forgot.eyebrow", "Reset password")
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ c("h2", {
|
|
36
|
+
style: {
|
|
37
|
+
margin: "6px 0 4px",
|
|
38
|
+
fontSize: 24,
|
|
39
|
+
fontWeight: 600,
|
|
40
|
+
letterSpacing: "-0.018em"
|
|
41
|
+
},
|
|
42
|
+
children: d("auth.forgot.title", "Forgot your password?")
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ c("p", {
|
|
45
|
+
className: "text-muted-foreground",
|
|
46
|
+
style: {
|
|
47
|
+
margin: "0 0 20px",
|
|
48
|
+
fontSize: 13
|
|
49
|
+
},
|
|
50
|
+
children: d("auth.forgot.subtitle", "Enter your email and we'll send a secure reset link. It expires in 30 minutes.")
|
|
51
|
+
}),
|
|
52
|
+
m ? /* @__PURE__ */ l("div", {
|
|
53
|
+
"data-testid": "forgot-sent-panel",
|
|
54
|
+
role: "status",
|
|
55
|
+
className: "bg-success-soft text-success",
|
|
56
|
+
style: {
|
|
57
|
+
padding: 14,
|
|
58
|
+
borderRadius: 8,
|
|
59
|
+
fontSize: 12.5,
|
|
60
|
+
display: "flex",
|
|
61
|
+
gap: 8,
|
|
62
|
+
alignItems: "flex-start"
|
|
63
|
+
},
|
|
64
|
+
children: [/* @__PURE__ */ c(n.check, { size: 14 }), /* @__PURE__ */ c("div", { children: d("auth.forgot.sent", "If that email is in our system, we've sent a reset link. Check your inbox — it expires in 30 minutes.") })]
|
|
65
|
+
}) : /* @__PURE__ */ l("div", {
|
|
66
|
+
style: {
|
|
67
|
+
display: "flex",
|
|
68
|
+
flexDirection: "column",
|
|
69
|
+
gap: 12
|
|
70
|
+
},
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(i, { children: d("auth.field.email", "Email") }), /* @__PURE__ */ c(a, {
|
|
73
|
+
value: f,
|
|
74
|
+
onChange: p,
|
|
75
|
+
prefix: /* @__PURE__ */ c(n.email, { size: 13 }),
|
|
76
|
+
placeholder: d("auth.field.email_placeholder", "you@company.com"),
|
|
77
|
+
autoFocus: !0,
|
|
78
|
+
required: !0,
|
|
79
|
+
type: "email",
|
|
80
|
+
"aria-label": d("auth.field.email", "Email")
|
|
81
|
+
})] }),
|
|
82
|
+
/* @__PURE__ */ c(r, {
|
|
83
|
+
type: "submit",
|
|
84
|
+
size: "md",
|
|
85
|
+
kind: "primary",
|
|
86
|
+
style: {
|
|
87
|
+
justifyContent: "center",
|
|
88
|
+
width: "100%"
|
|
89
|
+
},
|
|
90
|
+
disabled: g,
|
|
91
|
+
children: g ? d("auth.forgot.submitting", "Sending…") : d("auth.forgot.submit", "Send reset link")
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ c(u, {
|
|
94
|
+
to: "/login",
|
|
95
|
+
className: "text-accent text-center no-underline",
|
|
96
|
+
style: { fontSize: 12 },
|
|
97
|
+
children: d("auth.back_to_sign_in", "← Back to sign in")
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
}) });
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { d as Forgot };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { c as u, i as d, l as f, m as p, t as m } from "./value-
|
|
1
|
+
import { Nt as e, wt as t } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { C as n, S as r, b as i, g as a, v as o, w as s, x as c, y as l } from "./PropertyGridEditor-BTjscqfz.js";
|
|
3
|
+
import { c as u, i as d, l as f, m as p, t as m } from "./value-CDCeHgOv.js";
|
|
4
4
|
import { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
|
|
5
5
|
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
6
6
|
import { DndContext as C, PointerSensor as w, closestCenter as T, useSensor as ee, useSensors as te } from "@dnd-kit/core";
|
|
@@ -10,76 +10,75 @@ import { CSS as k } from "@dnd-kit/utilities";
|
|
|
10
10
|
function A(e, t) {
|
|
11
11
|
return u(e, t);
|
|
12
12
|
}
|
|
13
|
-
function j(
|
|
14
|
-
let { field: u, fieldName: d, value: f, onChange: p, mode: b, disabled: O } =
|
|
13
|
+
function j(i) {
|
|
14
|
+
let { field: u, fieldName: d, value: f, onChange: p, mode: b, disabled: O } = i, k = m(f), [A, j] = y([]), [M, N] = y(/* @__PURE__ */ new Set()), [P, F] = y(null), { register: I, unregister: L, isDraft: R } = a(), z = t(), B = t("errors"), V = v(/* @__PURE__ */ new Set()), H = v([]);
|
|
15
15
|
H.current = A;
|
|
16
16
|
let U = v(k);
|
|
17
17
|
U.current = k, g(() => () => {
|
|
18
18
|
H.current.forEach((e) => e.abort());
|
|
19
19
|
}, []);
|
|
20
|
-
let W = te(ee(w, { activationConstraint: { distance: 5 } })), oe = (u.accepts ?? ["image/*"]).join(","), se = u.display?.reorderable !== !1, ce = u.display?.listable_thumbnail, G = h(async (
|
|
21
|
-
let
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
abort: () => {}
|
|
29
|
-
}]);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
j((e) => [...e, {
|
|
33
|
-
localId: l,
|
|
34
|
-
filename: o.name,
|
|
35
|
-
progress: {
|
|
36
|
-
loaded: 0,
|
|
37
|
-
total: o.size,
|
|
38
|
-
pct: 0
|
|
39
|
-
},
|
|
40
|
-
error: null,
|
|
41
|
-
abort: () => f.abort()
|
|
20
|
+
let W = te(ee(w, { activationConstraint: { distance: 5 } })), oe = (u.accepts ?? ["image/*"]).join(","), se = u.display?.reorderable !== !1, ce = u.display?.listable_thumbnail, G = h(async (e) => {
|
|
21
|
+
let t = s(e, u.accepts, u.max_size_bytes), a = `tile-${Math.random().toString(36).slice(2)}-${Date.now()}`, f = new AbortController();
|
|
22
|
+
if (t) j((n) => [...n, {
|
|
23
|
+
localId: a,
|
|
24
|
+
filename: e.name,
|
|
25
|
+
progress: null,
|
|
26
|
+
error: c(z, B, t),
|
|
27
|
+
abort: () => {}
|
|
42
28
|
}]);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
29
|
+
else {
|
|
30
|
+
j((t) => [...t, {
|
|
31
|
+
localId: a,
|
|
32
|
+
filename: e.name,
|
|
33
|
+
progress: {
|
|
34
|
+
loaded: 0,
|
|
35
|
+
total: e.size,
|
|
36
|
+
pct: 0
|
|
37
|
+
},
|
|
38
|
+
error: null,
|
|
39
|
+
abort: () => f.abort()
|
|
40
|
+
}]);
|
|
41
|
+
try {
|
|
42
|
+
let t = await n({
|
|
43
|
+
file: e,
|
|
44
|
+
entityCode: i.entityCode,
|
|
45
|
+
fieldCode: d,
|
|
46
|
+
signal: f.signal,
|
|
47
|
+
onProgress: (e) => j((t) => t.map((t) => t.localId === a ? {
|
|
48
|
+
...t,
|
|
49
|
+
progress: e
|
|
50
|
+
} : t))
|
|
51
|
+
});
|
|
52
|
+
if (V.current.delete(a)) {
|
|
53
|
+
l(t.id).catch(() => {}), L(t.id);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
I(t.id, () => l(t.id));
|
|
57
|
+
let r = {
|
|
58
|
+
id: t.id,
|
|
59
|
+
filename: t.filename,
|
|
60
|
+
content_type: t.content_type,
|
|
61
|
+
size_bytes: t.size_bytes,
|
|
62
|
+
sha256: t.sha256,
|
|
63
|
+
width: t.width,
|
|
64
|
+
height: t.height,
|
|
65
|
+
url: t.url,
|
|
66
|
+
metadata: t.metadata
|
|
67
|
+
}, o = [...U.current, r];
|
|
68
|
+
U.current = o, p?.(o), j((e) => e.filter((e) => e.localId !== a));
|
|
69
|
+
} catch (e) {
|
|
70
|
+
if (e instanceof o && e.code === "ABORTED") {
|
|
71
|
+
j((e) => e.filter((e) => e.localId !== a));
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
let t = r(z, B, e);
|
|
75
|
+
j((e) => e.map((e) => e.localId === a ? {
|
|
76
|
+
...e,
|
|
77
|
+
error: t,
|
|
78
|
+
progress: null,
|
|
79
|
+
abort: () => {}
|
|
80
|
+
} : e));
|
|
75
81
|
}
|
|
76
|
-
let t = a(z, B, e);
|
|
77
|
-
j((e) => e.map((e) => e.localId === l ? {
|
|
78
|
-
...e,
|
|
79
|
-
error: t,
|
|
80
|
-
progress: null,
|
|
81
|
-
abort: () => {}
|
|
82
|
-
} : e));
|
|
83
82
|
}
|
|
84
83
|
}, [
|
|
85
84
|
B,
|
|
@@ -88,7 +87,7 @@ function j(e) {
|
|
|
88
87
|
u.max_size_bytes,
|
|
89
88
|
d,
|
|
90
89
|
p,
|
|
91
|
-
|
|
90
|
+
i.entityCode,
|
|
92
91
|
I,
|
|
93
92
|
L
|
|
94
93
|
]), K = h((e) => {
|
|
@@ -106,7 +105,7 @@ function j(e) {
|
|
|
106
105
|
let t = e.target.files;
|
|
107
106
|
e.target.value = "", t && t.length > 0 && K(t);
|
|
108
107
|
}, [K]), fe = h((e) => {
|
|
109
|
-
R(e) && (
|
|
108
|
+
R(e) && (l(e).catch(() => {}), L(e));
|
|
110
109
|
let t = k.filter((t) => t.id !== e);
|
|
111
110
|
p?.(t), N((t) => {
|
|
112
111
|
let n = new Set(t);
|
|
@@ -119,7 +118,7 @@ function j(e) {
|
|
|
119
118
|
L
|
|
120
119
|
]), pe = h(() => {
|
|
121
120
|
M.size !== 0 && (Array.from(M).forEach((e) => {
|
|
122
|
-
R(e) && (
|
|
121
|
+
R(e) && (l(e).catch(() => {}), L(e));
|
|
123
122
|
}), p?.(k.filter((e) => !M.has(e.id))), N(/* @__PURE__ */ new Set()));
|
|
124
123
|
}, [
|
|
125
124
|
R,
|
|
@@ -168,7 +167,7 @@ function j(e) {
|
|
|
168
167
|
children: [
|
|
169
168
|
/* @__PURE__ */ x("span", {
|
|
170
169
|
className: "text-foreground",
|
|
171
|
-
children:
|
|
170
|
+
children: e(z, "file.grid.selected", M.size, {
|
|
172
171
|
one: "{count} selected",
|
|
173
172
|
other: "{count} selected"
|
|
174
173
|
})
|
|
@@ -252,42 +251,42 @@ function j(e) {
|
|
|
252
251
|
]
|
|
253
252
|
});
|
|
254
253
|
}
|
|
255
|
-
function re({ file: e, selected:
|
|
254
|
+
function re({ file: e, selected: n, disabled: r, reorderable: i, preferredThumbnail: a, onSelect: o, onRemove: s, onPreview: c }) {
|
|
256
255
|
let { attributes: l, listeners: u, setNodeRef: p, transform: m, transition: h, isDragging: g } = O({
|
|
257
256
|
id: e.id,
|
|
258
|
-
disabled: !
|
|
259
|
-
}), _ =
|
|
257
|
+
disabled: !i
|
|
258
|
+
}), _ = t(), v = {
|
|
260
259
|
transform: k.Transform.toString(m),
|
|
261
260
|
transition: h,
|
|
262
261
|
opacity: g ? .5 : 1
|
|
263
|
-
}, y = d(e.id, f(e,
|
|
262
|
+
}, y = d(e.id, f(e, a), A(e, a));
|
|
264
263
|
return /* @__PURE__ */ S("div", {
|
|
265
264
|
ref: p,
|
|
266
265
|
style: v,
|
|
267
|
-
className: `group relative aspect-square overflow-hidden rounded-md border ${
|
|
266
|
+
className: `group relative aspect-square overflow-hidden rounded-md border ${n ? "border-accent" : "border-border"} bg-surface-2`,
|
|
268
267
|
"data-testid": `grid-tile-${e.id}`,
|
|
269
|
-
"data-selected":
|
|
268
|
+
"data-selected": n || void 0,
|
|
270
269
|
children: [y ? /* @__PURE__ */ x("img", {
|
|
271
270
|
src: y,
|
|
272
271
|
alt: e.filename,
|
|
273
272
|
className: "h-full w-full cursor-pointer object-cover",
|
|
274
273
|
loading: "lazy",
|
|
275
|
-
onClick:
|
|
274
|
+
onClick: c
|
|
276
275
|
}) : /* @__PURE__ */ x("div", {
|
|
277
276
|
className: "flex h-full w-full cursor-pointer items-center justify-center bg-surface-3 text-xs text-muted-foreground",
|
|
278
|
-
onClick:
|
|
277
|
+
onClick: c,
|
|
279
278
|
children: e.filename
|
|
280
|
-
}), !
|
|
279
|
+
}), !r && /* @__PURE__ */ S(b, { children: [
|
|
281
280
|
/* @__PURE__ */ x("input", {
|
|
282
281
|
type: "checkbox",
|
|
283
282
|
className: "absolute left-1 top-1 h-4 w-4 cursor-pointer",
|
|
284
|
-
checked:
|
|
285
|
-
onChange:
|
|
283
|
+
checked: n,
|
|
284
|
+
onChange: o,
|
|
286
285
|
"aria-label": _("file.grid.select", "Select {filename}", { filename: e.filename }),
|
|
287
286
|
"data-testid": `select-${e.id}`,
|
|
288
287
|
onClick: (e) => e.stopPropagation()
|
|
289
288
|
}),
|
|
290
|
-
|
|
289
|
+
i && /* @__PURE__ */ x("button", {
|
|
291
290
|
type: "button",
|
|
292
291
|
className: "absolute right-1 top-1 cursor-grab rounded-sm border border-border bg-card px-1 text-xs",
|
|
293
292
|
"aria-label": _("file.grid.reorder", "Drag to reorder {filename}", { filename: e.filename }),
|
|
@@ -301,12 +300,12 @@ function re({ file: e, selected: t, disabled: n, reorderable: r, preferredThumbn
|
|
|
301
300
|
children: [/* @__PURE__ */ x("button", {
|
|
302
301
|
type: "button",
|
|
303
302
|
className: "rounded-sm border border-border bg-card px-2 py-0.5 text-xs",
|
|
304
|
-
onClick:
|
|
303
|
+
onClick: c,
|
|
305
304
|
children: _("file.view", "View")
|
|
306
305
|
}), /* @__PURE__ */ x("button", {
|
|
307
306
|
type: "button",
|
|
308
307
|
className: "rounded-sm border border-border bg-card px-2 py-0.5 text-xs text-destructive",
|
|
309
|
-
onClick:
|
|
308
|
+
onClick: s,
|
|
310
309
|
"data-testid": `remove-${e.id}`,
|
|
311
310
|
children: _("file.delete", "Delete")
|
|
312
311
|
})]
|
|
@@ -314,8 +313,8 @@ function re({ file: e, selected: t, disabled: n, reorderable: r, preferredThumbn
|
|
|
314
313
|
] })]
|
|
315
314
|
});
|
|
316
315
|
}
|
|
317
|
-
function ie({ tile: e, onCancel:
|
|
318
|
-
let
|
|
316
|
+
function ie({ tile: e, onCancel: n, onDismiss: r }) {
|
|
317
|
+
let i = t();
|
|
319
318
|
return /* @__PURE__ */ S("div", {
|
|
320
319
|
className: `relative flex aspect-square flex-col items-center justify-center rounded-md border ${e.error ? "border-destructive" : "border-border"} bg-surface-2 p-2 text-center text-xs`,
|
|
321
320
|
"data-testid": `pending-tile-${e.localId}`,
|
|
@@ -341,36 +340,36 @@ function ie({ tile: e, onCancel: t, onDismiss: n }) {
|
|
|
341
340
|
/* @__PURE__ */ x("button", {
|
|
342
341
|
type: "button",
|
|
343
342
|
className: "mt-1 rounded-sm border border-border bg-card px-2 py-0.5",
|
|
344
|
-
onClick: e.error ?
|
|
345
|
-
children: e.error ?
|
|
343
|
+
onClick: e.error ? r : n,
|
|
344
|
+
children: e.error ? i("file.upload.dismiss", "Dismiss") : i("file.upload.cancel", "Cancel")
|
|
346
345
|
})
|
|
347
346
|
]
|
|
348
347
|
});
|
|
349
348
|
}
|
|
350
|
-
function ae({ file:
|
|
351
|
-
let
|
|
349
|
+
function ae({ file: e, hasPrev: n, hasNext: r, onPrev: a, onNext: o, onClose: s }) {
|
|
350
|
+
let c = t(), l = d(e.id, "preview", e.presigned_url ?? e.url ?? A(e));
|
|
352
351
|
return /* @__PURE__ */ S("div", {
|
|
353
352
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/80",
|
|
354
353
|
role: "dialog",
|
|
355
354
|
"aria-modal": "true",
|
|
356
|
-
"aria-label":
|
|
355
|
+
"aria-label": e.filename,
|
|
357
356
|
"data-testid": "lightbox",
|
|
358
|
-
onClick:
|
|
357
|
+
onClick: s,
|
|
359
358
|
children: [
|
|
360
359
|
/* @__PURE__ */ x("button", {
|
|
361
360
|
type: "button",
|
|
362
361
|
className: "absolute right-4 top-4 rounded-sm border border-border bg-card px-3 py-1 text-foreground",
|
|
363
362
|
onClick: (e) => {
|
|
364
|
-
e.stopPropagation(),
|
|
363
|
+
e.stopPropagation(), s();
|
|
365
364
|
},
|
|
366
365
|
"data-testid": "lightbox-close",
|
|
367
|
-
children:
|
|
366
|
+
children: c("file.lightbox.close", "Close")
|
|
368
367
|
}),
|
|
369
368
|
n && /* @__PURE__ */ x("button", {
|
|
370
369
|
type: "button",
|
|
371
370
|
className: "absolute left-4 rounded-sm border border-border bg-card px-3 py-2 text-foreground",
|
|
372
371
|
onClick: (e) => {
|
|
373
|
-
e.stopPropagation(),
|
|
372
|
+
e.stopPropagation(), a();
|
|
374
373
|
},
|
|
375
374
|
"data-testid": "lightbox-prev",
|
|
376
375
|
children: "‹"
|
|
@@ -379,22 +378,22 @@ function ae({ file: t, hasPrev: n, hasNext: r, onPrev: i, onNext: a, onClose: o
|
|
|
379
378
|
type: "button",
|
|
380
379
|
className: "absolute right-4 bottom-4 rounded-sm border border-border bg-card px-3 py-2 text-foreground",
|
|
381
380
|
onClick: (e) => {
|
|
382
|
-
e.stopPropagation(),
|
|
381
|
+
e.stopPropagation(), o();
|
|
383
382
|
},
|
|
384
383
|
"data-testid": "lightbox-next",
|
|
385
384
|
children: "›"
|
|
386
385
|
}),
|
|
387
386
|
l ? /* @__PURE__ */ x("img", {
|
|
388
387
|
src: l,
|
|
389
|
-
alt:
|
|
388
|
+
alt: e.filename,
|
|
390
389
|
className: "max-h-[90vh] max-w-[90vw] object-contain",
|
|
391
390
|
onClick: (e) => e.stopPropagation()
|
|
392
391
|
}) : /* @__PURE__ */ S("div", {
|
|
393
392
|
className: "rounded-md bg-card p-4 text-foreground",
|
|
394
393
|
children: [
|
|
395
|
-
|
|
394
|
+
e.filename,
|
|
396
395
|
" (",
|
|
397
|
-
e
|
|
396
|
+
i(e.size_bytes),
|
|
398
397
|
")"
|
|
399
398
|
]
|
|
400
399
|
})
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { CSSProperties, FC } from "react";
|
|
2
|
+
//#region src/components/shared/DynamicIcon.d.ts
|
|
3
|
+
interface DynamicIconProps {
|
|
4
|
+
name: string;
|
|
5
|
+
size?: number | string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolve and render a DSL `icon:` name. Subscribes to the icon registry via
|
|
11
|
+
* useSyncExternalStore so a late or replaced registry (identity switch
|
|
12
|
+
* re-fetch) re-renders every mounted icon.
|
|
13
|
+
*
|
|
14
|
+
* Precedence:
|
|
15
|
+
* 1. registry entry for `name` (svg | url | lucide) - consumer-declared DATA
|
|
16
|
+
* 2. built-in glyph `Icon[name]` (the bundled ~119)
|
|
17
|
+
* 3. literal `lucide:<name>` prefix - lazy Lucide
|
|
18
|
+
* 4. fallback `folder`
|
|
19
|
+
*/
|
|
20
|
+
declare function DynamicIcon({ name, size, className, style }: DynamicIconProps): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/primitives/Icons.d.ts
|
|
23
|
+
type IconProps = {
|
|
24
|
+
size?: number;
|
|
25
|
+
cls?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
};
|
|
28
|
+
declare const Icon: {
|
|
29
|
+
action: FC<IconProps>;
|
|
30
|
+
activity: FC<IconProps>;
|
|
31
|
+
ai: FC<IconProps>;
|
|
32
|
+
arrowDown: FC<IconProps>;
|
|
33
|
+
arrowUp: FC<IconProps>;
|
|
34
|
+
audit: FC<IconProps>;
|
|
35
|
+
back: FC<IconProps>;
|
|
36
|
+
"badge-dollar-sign": FC<IconProps>;
|
|
37
|
+
ban: FC<IconProps>;
|
|
38
|
+
bell: FC<IconProps>;
|
|
39
|
+
bolt: FC<IconProps>;
|
|
40
|
+
"book-open": FC<IconProps>;
|
|
41
|
+
box: FC<IconProps>;
|
|
42
|
+
boxes: FC<IconProps>;
|
|
43
|
+
branch: FC<IconProps>;
|
|
44
|
+
building: FC<IconProps>;
|
|
45
|
+
calendar: FC<IconProps>;
|
|
46
|
+
check: FC<IconProps>;
|
|
47
|
+
cheveron: FC<IconProps>;
|
|
48
|
+
"circle-dot": FC<IconProps>;
|
|
49
|
+
clock: FC<IconProps>;
|
|
50
|
+
code: FC<IconProps>;
|
|
51
|
+
columns: FC<IconProps>;
|
|
52
|
+
"columns-3": FC<IconProps>;
|
|
53
|
+
command: FC<IconProps>;
|
|
54
|
+
company: FC<IconProps>;
|
|
55
|
+
copy: FC<IconProps>;
|
|
56
|
+
cpu: FC<IconProps>;
|
|
57
|
+
"credit-card": FC<IconProps>;
|
|
58
|
+
database: FC<IconProps>;
|
|
59
|
+
dbtable: FC<IconProps>;
|
|
60
|
+
device: FC<IconProps>;
|
|
61
|
+
dot: FC<IconProps>;
|
|
62
|
+
down: FC<IconProps>;
|
|
63
|
+
download: FC<IconProps>;
|
|
64
|
+
edit: FC<IconProps>;
|
|
65
|
+
email: FC<IconProps>;
|
|
66
|
+
entity: FC<IconProps>;
|
|
67
|
+
external: FC<IconProps>;
|
|
68
|
+
eye: FC<IconProps>;
|
|
69
|
+
eyeOff: FC<IconProps>;
|
|
70
|
+
field: FC<IconProps>;
|
|
71
|
+
file: FC<IconProps>;
|
|
72
|
+
"file-diff": FC<IconProps>;
|
|
73
|
+
filePlus: FC<IconProps>;
|
|
74
|
+
filter: FC<IconProps>;
|
|
75
|
+
fingerprint: FC<IconProps>;
|
|
76
|
+
flow: FC<IconProps>;
|
|
77
|
+
folder: FC<IconProps>;
|
|
78
|
+
gavel: FC<IconProps>;
|
|
79
|
+
"git-branch": FC<IconProps>;
|
|
80
|
+
globe: FC<IconProps>;
|
|
81
|
+
grid: FC<IconProps>;
|
|
82
|
+
group: FC<IconProps>;
|
|
83
|
+
"hand-coins": FC<IconProps>;
|
|
84
|
+
handlers: FC<IconProps>;
|
|
85
|
+
hash: FC<IconProps>;
|
|
86
|
+
home: FC<IconProps>;
|
|
87
|
+
idp: FC<IconProps>;
|
|
88
|
+
inbox: FC<IconProps>;
|
|
89
|
+
info: FC<IconProps>;
|
|
90
|
+
jobs: FC<IconProps>;
|
|
91
|
+
key: FC<IconProps>;
|
|
92
|
+
"key-round": FC<IconProps>;
|
|
93
|
+
layers: FC<IconProps>;
|
|
94
|
+
layout: FC<IconProps>;
|
|
95
|
+
"layout-dashboard": FC<IconProps>;
|
|
96
|
+
leads: FC<IconProps>;
|
|
97
|
+
left: FC<IconProps>;
|
|
98
|
+
link: FC<IconProps>;
|
|
99
|
+
linkedin: FC<IconProps>;
|
|
100
|
+
list: FC<IconProps>;
|
|
101
|
+
"list-checks": FC<IconProps>;
|
|
102
|
+
loader: FC<IconProps>;
|
|
103
|
+
lock: FC<IconProps>;
|
|
104
|
+
log: FC<IconProps>;
|
|
105
|
+
"log-in": FC<IconProps>;
|
|
106
|
+
logout: FC<IconProps>;
|
|
107
|
+
menu: FC<IconProps>;
|
|
108
|
+
"messages-square": FC<IconProps>;
|
|
109
|
+
minus: FC<IconProps>;
|
|
110
|
+
moon: FC<IconProps>;
|
|
111
|
+
more: FC<IconProps>;
|
|
112
|
+
package: FC<IconProps>;
|
|
113
|
+
paperclip: FC<IconProps>;
|
|
114
|
+
pipeline: FC<IconProps>;
|
|
115
|
+
play: FC<IconProps>;
|
|
116
|
+
"play-circle": FC<IconProps>;
|
|
117
|
+
plus: FC<IconProps>;
|
|
118
|
+
"plus-circle": FC<IconProps>;
|
|
119
|
+
"receipt-text": FC<IconProps>;
|
|
120
|
+
refresh: FC<IconProps>;
|
|
121
|
+
repeat: FC<IconProps>;
|
|
122
|
+
right: FC<IconProps>;
|
|
123
|
+
save: FC<IconProps>;
|
|
124
|
+
scale: FC<IconProps>;
|
|
125
|
+
sched: FC<IconProps>;
|
|
126
|
+
search: FC<IconProps>;
|
|
127
|
+
settings: FC<IconProps>;
|
|
128
|
+
"settings-2": FC<IconProps>;
|
|
129
|
+
shield: FC<IconProps>;
|
|
130
|
+
"shield-check": FC<IconProps>;
|
|
131
|
+
"shield-plus": FC<IconProps>;
|
|
132
|
+
"shopping-cart": FC<IconProps>;
|
|
133
|
+
sliders: FC<IconProps>;
|
|
134
|
+
"sliders-horizontal": FC<IconProps>;
|
|
135
|
+
sort: FC<IconProps>;
|
|
136
|
+
sparkle: FC<IconProps>;
|
|
137
|
+
star: FC<IconProps>;
|
|
138
|
+
sun: FC<IconProps>;
|
|
139
|
+
tag: FC<IconProps>;
|
|
140
|
+
tags: FC<IconProps>;
|
|
141
|
+
tenant: FC<IconProps>;
|
|
142
|
+
"toggle-right": FC<IconProps>;
|
|
143
|
+
trash: FC<IconProps>;
|
|
144
|
+
"trash-2": FC<IconProps>;
|
|
145
|
+
"undo-2": FC<IconProps>;
|
|
146
|
+
up: FC<IconProps>;
|
|
147
|
+
upload: FC<IconProps>;
|
|
148
|
+
user: FC<IconProps>;
|
|
149
|
+
"user-plus": FC<IconProps>;
|
|
150
|
+
users: FC<IconProps>;
|
|
151
|
+
"users-round": FC<IconProps>;
|
|
152
|
+
"wallet-cards": FC<IconProps>;
|
|
153
|
+
warning: FC<IconProps>;
|
|
154
|
+
x: FC<IconProps>;
|
|
155
|
+
zap: FC<IconProps>;
|
|
156
|
+
};
|
|
157
|
+
type IconName = keyof typeof Icon;
|
|
158
|
+
//#endregion
|
|
159
|
+
export { DynamicIcon as i, IconName as n, IconProps as r, Icon as t };
|