@declarion/react 0.141.0 → 0.146.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/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
- package/dist-lib/api/access-expiry.js +1 -2
- package/dist-lib/api/agents.js +1 -2
- package/dist-lib/api/audience.js +1 -2
- package/dist-lib/api/auth-redirect.js +1 -2
- package/dist-lib/api/auth.js +1 -2
- package/dist-lib/api/batch.js +1 -2
- package/dist-lib/api/client.js +27 -28
- package/dist-lib/api/data.js +23 -24
- package/dist-lib/api/entities.js +36 -37
- package/dist-lib/api/events.js +6 -7
- package/dist-lib/api/fileReferences.js +1 -2
- package/dist-lib/api/params.js +1 -2
- package/dist-lib/api/properties.js +1 -2
- package/dist-lib/api/request-bounds.js +1 -2
- package/dist-lib/api/schema.js +5 -6
- package/dist-lib/api/session-renewal.js +6 -7
- package/dist-lib/api/status.js +1 -2
- package/dist-lib/app.js +154 -155
- package/dist-lib/components/actions/ActionButton.js +32 -33
- package/dist-lib/components/actions/ActionDialog.js +85 -86
- package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
- package/dist-lib/components/actions/ActionResultDialog.js +1 -2
- package/dist-lib/components/actions/ActionRunner.js +96 -97
- package/dist-lib/components/actions/ObjectActionBar.js +49 -50
- package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
- package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
- package/dist-lib/components/actions/RowActionsKebab.js +27 -28
- package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
- package/dist-lib/components/agents/AgentChatPanel.js +1 -2
- package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
- package/dist-lib/components/agents/AgentElicitForm.js +13 -14
- package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
- package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
- package/dist-lib/components/agents/AgentPicker.js +1 -2
- package/dist-lib/components/agents/ChatAttachments.js +22 -23
- package/dist-lib/components/agents/transcript-runs.js +1 -2
- package/dist-lib/components/chrome/AssociationTabs.js +44 -45
- package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
- package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
- package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
- package/dist-lib/components/chrome/PageHeader.js +12 -13
- package/dist-lib/components/chrome/PageShell.js +1 -2
- package/dist-lib/components/chrome/RecordHeader.js +1 -2
- package/dist-lib/components/chrome/headerActionZone.js +0 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
- package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
- package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
- package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
- package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
- package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
- package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
- package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
- package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
- package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
- package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
- package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
- package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
- package/dist-lib/components/detail-layout/FieldRow.js +11 -12
- package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
- package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
- package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
- package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
- package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
- package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
- package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
- package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
- package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
- package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
- package/dist-lib/components/detail-layout/blockMeta.js +1 -2
- package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
- package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
- package/dist-lib/components/detail-layout/visibility.js +1 -2
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
- package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
- package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
- package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
- package/dist-lib/components/fields/BoolField.js +1 -2
- package/dist-lib/components/fields/EmailField.js +5 -6
- package/dist-lib/components/fields/EnumField.js +7 -8
- package/dist-lib/components/fields/FileReferenceField.js +18 -19
- package/dist-lib/components/fields/IntArrayField.js +11 -12
- package/dist-lib/components/fields/JsonEditor.js +1 -2
- package/dist-lib/components/fields/JsonField.js +1 -2
- package/dist-lib/components/fields/MultilangArrayField.js +22 -23
- package/dist-lib/components/fields/MultilangField.js +13 -14
- package/dist-lib/components/fields/MultilangTextField.js +13 -14
- package/dist-lib/components/fields/NumberField.js +5 -6
- package/dist-lib/components/fields/PasswordField.js +1 -2
- package/dist-lib/components/fields/PhoneField.js +24 -25
- package/dist-lib/components/fields/RefCombobox.js +42 -43
- package/dist-lib/components/fields/RefField.js +14 -15
- package/dist-lib/components/fields/RichTextField.js +29 -30
- package/dist-lib/components/fields/SecretField.js +1 -2
- package/dist-lib/components/fields/StringArrayField.js +29 -30
- package/dist-lib/components/fields/StringField.js +12 -13
- package/dist-lib/components/fields/StructureField.js +60 -61
- package/dist-lib/components/fields/TextField.js +18 -19
- package/dist-lib/components/fields/TimestampField.js +17 -18
- package/dist-lib/components/fields/UrlField.js +5 -6
- package/dist-lib/components/fields/cells/factories/badge.js +5 -6
- package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
- package/dist-lib/components/fields/cells/factories/code.js +1 -2
- package/dist-lib/components/fields/cells/factories/date.js +1 -2
- package/dist-lib/components/fields/cells/factories/email.js +1 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
- package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
- package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
- package/dist-lib/components/fields/cells/factories/json.js +1 -2
- package/dist-lib/components/fields/cells/factories/link.js +10 -11
- package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
- package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
- package/dist-lib/components/fields/cells/factories/money.js +1 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
- package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
- package/dist-lib/components/fields/cells/factories/number.js +1 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
- package/dist-lib/components/fields/cells/factories/phone.js +1 -2
- package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
- package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
- package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
- package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
- package/dist-lib/components/fields/cells/factories/text.js +1 -2
- package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
- package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
- package/dist-lib/components/fields/cells/factories/url.js +13 -14
- package/dist-lib/components/fields/cells/registry.js +1 -2
- package/dist-lib/components/fields/index.js +19 -20
- package/dist-lib/components/fields/langMap.js +1 -2
- package/dist-lib/components/fields/secretValue.js +1 -2
- package/dist-lib/components/file-widgets/CircleImage.js +1 -2
- package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
- package/dist-lib/components/file-widgets/FileList.js +35 -36
- package/dist-lib/components/file-widgets/Grid.js +119 -120
- package/dist-lib/components/file-widgets/GridLazy.js +1 -2
- package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
- package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
- package/dist-lib/components/file-widgets/SquareImage.js +1 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
- package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
- package/dist-lib/components/file-widgets/WideBanner.js +1 -2
- package/dist-lib/components/file-widgets/builtins.js +1 -2
- package/dist-lib/components/file-widgets/cropper.js +1 -2
- package/dist-lib/components/file-widgets/draft-scope.js +1 -2
- package/dist-lib/components/file-widgets/helpers.js +1 -2
- package/dist-lib/components/file-widgets/host.js +33 -34
- package/dist-lib/components/file-widgets/payload.js +1 -2
- package/dist-lib/components/file-widgets/registry.js +1 -2
- package/dist-lib/components/file-widgets/upload.js +41 -42
- package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
- package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
- package/dist-lib/components/file-widgets/value.js +1 -2
- package/dist-lib/components/filters/FilterChips.js +15 -16
- package/dist-lib/components/filters/FilterConditionValue.js +15 -16
- package/dist-lib/components/filters/FilterDrawer.js +141 -142
- package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
- package/dist-lib/components/filters/filter-op-label.js +1 -2
- package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
- package/dist-lib/components/layout/CommandPalette.js +1 -2
- package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
- package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
- package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
- package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
- package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
- package/dist-lib/components/layout/Layout.js +132 -140
- package/dist-lib/components/layout/Rail.js +11 -12
- package/dist-lib/components/layout/Sidebar.js +60 -61
- package/dist-lib/components/layout/TabStrip.js +66 -67
- package/dist-lib/components/layout/TenantChip.js +21 -22
- package/dist-lib/components/layout/TopBar.js +89 -90
- package/dist-lib/components/layout/tab-close.js +1 -2
- package/dist-lib/components/list/ColumnPicker.js +35 -36
- package/dist-lib/components/list/InlineEditCell.js +22 -23
- package/dist-lib/components/list/PeekFieldCell.js +7 -8
- package/dist-lib/components/list/QuickPeek.js +29 -30
- package/dist-lib/components/list/ViewSwitcher.js +44 -45
- package/dist-lib/components/list/peekDraftStore.js +1 -2
- package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
- package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
- package/dist-lib/components/pages/DocumentsMenu.js +53 -54
- package/dist-lib/components/pages/ExportMenu.js +37 -38
- package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
- package/dist-lib/components/pages/NoScreensPage.js +1 -2
- package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
- package/dist-lib/components/pages/NotFoundPage.js +1 -2
- package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
- package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
- package/dist-lib/components/pages/RecordPanels.js +1 -2
- package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
- package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
- package/dist-lib/components/pages/SmartDetailPage.js +1 -2
- package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartListPage.js +1 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
- package/dist-lib/components/pages/auth/AuthShell.js +14 -15
- package/dist-lib/components/pages/auth/CodeInput.js +0 -1
- package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
- package/dist-lib/components/pages/auth/Forgot.js +1 -2
- package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
- package/dist-lib/components/pages/auth/Reset.js +1 -2
- package/dist-lib/components/pages/auth/SignIn.js +44 -45
- package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
- package/dist-lib/components/pages/auth/SignUp.js +1 -2
- package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
- package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
- package/dist-lib/components/pages/auth/TwoFA.js +1 -2
- package/dist-lib/components/pages/auth/icons.js +1 -2
- package/dist-lib/components/pages/exportRequest.js +1 -2
- package/dist-lib/components/pages/list/DataCell.js +1 -2
- package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
- package/dist-lib/components/pages/list/ListCardRow.js +53 -54
- package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
- package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
- package/dist-lib/components/pages/list/ListFooter.js +17 -18
- package/dist-lib/components/pages/list/ListHeader.js +31 -32
- package/dist-lib/components/pages/list/ListNoRows.js +32 -33
- package/dist-lib/components/pages/list/ListTable.js +29 -30
- package/dist-lib/components/pages/list/ListTableRow.js +1 -2
- package/dist-lib/components/pages/list/ListToolbar.js +58 -59
- package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
- package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
- package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
- package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
- package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
- package/dist-lib/components/pages/list/cardProjection.js +16 -17
- package/dist-lib/components/pages/list/column-sizing.js +1 -2
- package/dist-lib/components/pages/list/columns.js +74 -75
- package/dist-lib/components/pages/list/filter-meta.js +1 -2
- package/dist-lib/components/pages/list/page-size.js +1 -2
- package/dist-lib/components/pages/list/sortable-header.js +1 -2
- package/dist-lib/components/pages/list/table-features.js +1 -2
- package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
- package/dist-lib/components/pages/list/useActiveView.js +1 -2
- package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
- package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
- package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
- package/dist-lib/components/pages/list/useListQuery.js +1 -2
- package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
- package/dist-lib/components/pages/list/useListSelection.js +16 -17
- package/dist-lib/components/pages/list/useListSort.js +1 -2
- package/dist-lib/components/pages/list/useListViews.js +31 -32
- package/dist-lib/components/pages/list/useRowMenu.js +20 -21
- package/dist-lib/components/pages/list/visible-filters.js +1 -2
- package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
- package/dist-lib/components/pages/profile/Preferences.js +1 -2
- package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
- package/dist-lib/components/pages/profile/Profile.js +1 -2
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
- package/dist-lib/components/params/ParamsBlock.js +30 -31
- package/dist-lib/components/params/param-editors.js +58 -59
- package/dist-lib/components/primitives/Avatar.js +1 -2
- package/dist-lib/components/primitives/BoolToggle.js +1 -2
- package/dist-lib/components/primitives/BrandGlyph.js +1 -2
- package/dist-lib/components/primitives/BrandLogo.js +1 -2
- package/dist-lib/components/primitives/Btn.js +1 -2
- package/dist-lib/components/primitives/Check.js +1 -2
- package/dist-lib/components/primitives/Chip.js +1 -2
- package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
- package/dist-lib/components/primitives/Dropdown.js +2 -3
- package/dist-lib/components/primitives/Fields.js +128 -129
- package/dist-lib/components/primitives/HoverCard.js +2 -3
- package/dist-lib/components/primitives/IconBtn.js +1 -2
- package/dist-lib/components/primitives/Icons.js +1 -2
- package/dist-lib/components/primitives/Kbd.js +1 -2
- package/dist-lib/components/primitives/MenuItem.js +1 -2
- package/dist-lib/components/primitives/Pill.js +1 -2
- package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
- package/dist-lib/components/primitives/RetryButton.js +5 -6
- package/dist-lib/components/primitives/RowField.js +1 -2
- package/dist-lib/components/primitives/SectionCard.js +1 -2
- package/dist-lib/components/primitives/Spinner.js +1 -2
- package/dist-lib/components/primitives/StatTile.js +1 -2
- package/dist-lib/components/primitives/Tooltip.js +1 -2
- package/dist-lib/components/primitives/dataTableStyles.js +1 -2
- package/dist-lib/components/shared/BlankScreen.js +1 -2
- package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
- package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
- package/dist-lib/components/shared/ConfirmDialog.js +7 -8
- package/dist-lib/components/shared/ConnectionNotice.js +1 -2
- package/dist-lib/components/shared/CopyButton.js +1 -2
- package/dist-lib/components/shared/DynamicIcon.js +1 -2
- package/dist-lib/components/shared/EmptyState.js +1 -2
- package/dist-lib/components/shared/ErrorBoundary.js +10 -11
- package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
- package/dist-lib/components/shared/LucideIcon.js +1 -2
- package/dist-lib/components/shared/Markdown.js +1 -2
- package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
- package/dist-lib/components/shared/ModalFrame.js +1 -2
- package/dist-lib/components/shared/RefreshControl.js +6 -7
- package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
- package/dist-lib/components/shared/StatusStepper.js +1 -2
- package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
- package/dist-lib/components/shared/useOwnRefresh.js +1 -2
- package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
- package/dist-lib/embed/EmbedContext.js +1 -2
- package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
- package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
- package/dist-lib/embed/EmbedLocationReporter.js +11 -12
- package/dist-lib/embed/EmbedResizeReporter.js +9 -10
- package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
- package/dist-lib/embed/embed-dirty.js +1 -2
- package/dist-lib/embed/embed-history.js +1 -2
- package/dist-lib/embed/embed-nav-guard.js +1 -2
- package/dist-lib/embed/file-src.js +12 -13
- package/dist-lib/embed/handshake.js +1 -2
- package/dist-lib/embed/params.js +1 -2
- package/dist-lib/embed/protocol.js +1 -2
- package/dist-lib/embed/screen-location.js +1 -2
- package/dist-lib/embed/theme.js +1 -2
- package/dist-lib/embed/token.js +1 -2
- package/dist-lib/embed/useEmbedNavigate.js +25 -26
- package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
- package/dist-lib/hooks/useActionData.js +1 -2
- package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
- package/dist-lib/hooks/useAgentConversation.js +122 -123
- package/dist-lib/hooks/useAggregate.js +1 -2
- package/dist-lib/hooks/useAllEntityData.js +9 -10
- package/dist-lib/hooks/useAssociatedData.js +1 -2
- package/dist-lib/hooks/useAuth.js +26 -27
- package/dist-lib/hooks/useBranding.js +1 -2
- package/dist-lib/hooks/useBrandingChrome.js +16 -17
- package/dist-lib/hooks/useChildrenData.js +4 -5
- package/dist-lib/hooks/useColumns.js +1 -2
- package/dist-lib/hooks/useConnectionNotice.js +16 -17
- package/dist-lib/hooks/useCurrentLocation.js +1 -2
- package/dist-lib/hooks/useCurrentScreen.js +1 -2
- package/dist-lib/hooks/useCursorEntityData.js +1 -2
- package/dist-lib/hooks/useDebounce.js +1 -2
- package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
- package/dist-lib/hooks/useDocumentTitle.js +5 -6
- package/dist-lib/hooks/useEntity.js +1 -2
- package/dist-lib/hooks/useEntityData.js +1 -2
- package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
- package/dist-lib/hooks/useFilters.js +5 -6
- package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
- package/dist-lib/hooks/useImpersonation.js +15 -16
- package/dist-lib/hooks/useIntentPrefetch.js +6 -7
- package/dist-lib/hooks/useJsonSnapshot.js +1 -2
- package/dist-lib/hooks/useLanguage.js +11 -12
- package/dist-lib/hooks/useLiveObject.js +6 -7
- package/dist-lib/hooks/useLongPress.js +1 -2
- package/dist-lib/hooks/useMutations.js +31 -32
- package/dist-lib/hooks/useObject.js +1 -2
- package/dist-lib/hooks/useObjectStatus.js +4 -5
- package/dist-lib/hooks/usePageState.js +9 -10
- package/dist-lib/hooks/usePageStateRuntime.js +16 -17
- package/dist-lib/hooks/usePageStateTtl.js +1 -2
- package/dist-lib/hooks/useParams.js +58 -59
- package/dist-lib/hooks/useProperties.js +5 -6
- package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
- package/dist-lib/hooks/useRefRecords.js +31 -32
- package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
- package/dist-lib/hooks/useResponsiveMode.js +1 -2
- package/dist-lib/hooks/useRowTenant.js +1 -2
- package/dist-lib/hooks/useSSE.js +100 -101
- package/dist-lib/hooks/useSchema.js +16 -17
- package/dist-lib/hooks/useScreen.js +1 -2
- package/dist-lib/hooks/useScreenBack.js +17 -18
- package/dist-lib/hooks/useScreenTab.js +1 -2
- package/dist-lib/hooks/useTabNavigate.js +25 -26
- package/dist-lib/hooks/useTabSearchMirror.js +6 -7
- package/dist-lib/hooks/useTabTitle.js +10 -11
- package/dist-lib/hooks/useText.js +6 -7
- package/dist-lib/hooks/useTimelineData.js +5 -6
- package/dist-lib/hooks/useUiPreferences.js +31 -32
- package/dist-lib/hooks/useUnsavedInput.js +1 -2
- package/dist-lib/hooks/useVersionWatcher.js +16 -17
- package/dist-lib/hooks/useViews.js +16 -17
- package/dist-lib/hooks/useWindowConversation.js +1 -2
- package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
- package/dist-lib/icons.d.ts +2 -4
- package/dist-lib/icons.js +5 -5
- package/dist-lib/index.d.ts +4 -272
- package/dist-lib/index.js +129 -129
- package/dist-lib/lib/action-dispatch.js +1 -2
- package/dist-lib/lib/actions.js +26 -27
- package/dist-lib/lib/anchor.js +1 -2
- package/dist-lib/lib/brand-tokens.js +1 -2
- package/dist-lib/lib/branding.js +1 -2
- package/dist-lib/lib/canonical-url.js +1 -2
- package/dist-lib/lib/capabilityPrefetch.js +1 -2
- package/dist-lib/lib/child-config.js +1 -2
- package/dist-lib/lib/children-validation.js +2 -3
- package/dist-lib/lib/date-text.js +1 -2
- package/dist-lib/lib/decimal-text.js +1 -2
- package/dist-lib/lib/display-value.js +1 -2
- package/dist-lib/lib/document-templates.js +1 -2
- package/dist-lib/lib/download.js +13 -14
- package/dist-lib/lib/evidence-verdict.js +1 -2
- package/dist-lib/lib/failure.js +4 -5
- package/dist-lib/lib/field-classification.js +1 -2
- package/dist-lib/lib/field-regions.js +1 -2
- package/dist-lib/lib/filter-evaluator.js +1 -2
- package/dist-lib/lib/filters.js +1 -2
- package/dist-lib/lib/format-count.js +1 -2
- package/dist-lib/lib/html-state.js +1 -2
- package/dist-lib/lib/language.js +1 -2
- package/dist-lib/lib/longPressGesture.js +0 -1
- package/dist-lib/lib/mass-edit.js +1 -2
- package/dist-lib/lib/money-text.js +1 -2
- package/dist-lib/lib/number-text.js +1 -2
- package/dist-lib/lib/page-inset.js +1 -2
- package/dist-lib/lib/phone.js +1 -2
- package/dist-lib/lib/profile.js +1 -2
- package/dist-lib/lib/query-retry.js +1 -2
- package/dist-lib/lib/quick-add.js +1 -2
- package/dist-lib/lib/read-display-state.js +1 -2
- package/dist-lib/lib/realtime-query-keys.js +2 -3
- package/dist-lib/lib/realtime-reconcile.js +32 -33
- package/dist-lib/lib/realtime-resync.js +40 -41
- package/dist-lib/lib/record-documents-key.js +1 -2
- package/dist-lib/lib/ref-choices.js +1 -2
- package/dist-lib/lib/refetch-when-idle.js +1 -2
- package/dist-lib/lib/rich-text.js +1 -2
- package/dist-lib/lib/role-label.js +1 -2
- package/dist-lib/lib/rowClickGesture.js +1 -2
- package/dist-lib/lib/safe-url.js +1 -2
- package/dist-lib/lib/schema-routing.js +1 -2
- package/dist-lib/lib/screen-back.js +1 -2
- package/dist-lib/lib/scroll-restoration.js +21 -22
- package/dist-lib/lib/shortcut.js +1 -2
- package/dist-lib/lib/size-value.js +1 -2
- package/dist-lib/lib/sort.js +1 -2
- package/dist-lib/lib/timestamp.js +1 -2
- package/dist-lib/lib/toast.js +1 -2
- package/dist-lib/lib/ui-actions.js +43 -44
- package/dist-lib/lib/utils.js +1 -2
- package/dist-lib/lib/variants.js +1 -2
- package/dist-lib/lib/versionTracker.js +26 -27
- package/dist-lib/lib/viewport-category.js +1 -2
- package/dist-lib/lib/window-election.js +1 -2
- package/dist-lib/stores/auth.js +32 -33
- package/dist-lib/stores/icon-registry.js +1 -2
- package/dist-lib/stores/list-layout.js +0 -1
- package/dist-lib/stores/page-state.js +1 -2
- package/dist-lib/stores/preferences.js +1 -2
- package/dist-lib/stores/realtime.js +1 -2
- package/dist-lib/stores/screen-registry.js +1 -2
- package/dist-lib/stores/tabs.js +1 -2
- package/dist-lib/test/seed-schema.js +4 -5
- package/dist-lib/testing.d.ts +2 -4
- package/dist-lib/testing.js +49 -50
- package/dist-lib/types/api.js +1 -2
- package/dist-lib/types/fieldType.js +1 -2
- package/dist-lib/types/ordmap.js +1 -2
- package/dist-lib/types/schema.js +1 -2
- package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
- package/dist-lib/vite/index.d.ts +0 -2
- package/dist-lib/vite/index.js +1 -2
- package/package.json +11 -11
|
@@ -1,219 +1,219 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { useScreenIsLive as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
1
|
+
import { useFirstScreenSettled as e } from "../../lib/capabilityPrefetch.js";
|
|
2
|
+
import { useSchema as t } from "../../hooks/useSchema.js";
|
|
3
|
+
import { useAuthStore as n } from "../../stores/auth.js";
|
|
4
|
+
import { useSavedScrollOffset as r, useVirtualScrollRestoration as i } from "../../lib/scroll-restoration.js";
|
|
5
|
+
import { useUpdateObject as a } from "../../hooks/useMutations.js";
|
|
6
|
+
import { useDebounce as o } from "../../hooks/useDebounce.js";
|
|
7
|
+
import { useResponsiveMode as ee } from "../../hooks/useResponsiveMode.js";
|
|
8
|
+
import { useTabNavigate as te } from "../../hooks/useTabNavigate.js";
|
|
9
|
+
import { useTabSearchMirror as ne } from "../../hooks/useTabSearchMirror.js";
|
|
10
|
+
import { useRegisterScreenTab as re } from "../../hooks/useRegisterScreenTab.js";
|
|
11
|
+
import { useEmbed as ie } from "../../embed/EmbedContext.js";
|
|
12
|
+
import { useTabStore as ae } from "../../stores/tabs.js";
|
|
13
|
+
import { usePreferencesStore as oe } from "../../stores/preferences.js";
|
|
14
|
+
import { useScreenIsLive as se } from "../../stores/realtime.js";
|
|
15
|
+
import { filterUnavailableMutationActions as ce, getScreenActions as le } from "../../lib/actions.js";
|
|
16
|
+
import { buildDetailHrefFromId as ue, entityAllowsMutation as de, getDisplayValue as fe, pkValuesToDetailId as pe } from "../../types/schema.js";
|
|
17
|
+
import { useFilters as me } from "../../hooks/useFilters.js";
|
|
18
|
+
import { useActiveView as he } from "./list/useActiveView.js";
|
|
19
|
+
import { QuickPeek as ge } from "../list/QuickPeek.js";
|
|
20
|
+
import { clearPeekDraft as _e } from "../list/peekDraftStore.js";
|
|
21
|
+
import { executeAction as ve } from "../../api/data.js";
|
|
21
22
|
import { countActiveFilters as ye, parseFilterURLState as be, removeFilterAtPath as xe } from "../../lib/filters.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { FilterChips as Oe } from "../filters/FilterChips.js";
|
|
28
|
-
import { effectiveScreenForRecord as ke } from "../../lib/variants.js";
|
|
29
|
-
import { QuickPeek as Ae } from "../list/QuickPeek.js";
|
|
30
|
-
import { clearPeekDraft as je } from "../list/peekDraftStore.js";
|
|
31
|
-
import { resolveCard as Me, resolveListProjection as Ne, resolveVariantRenderFields as Pe } from "./list/cardProjection.js";
|
|
32
|
-
import { useActiveView as Fe } from "./list/useActiveView.js";
|
|
33
|
-
import { listTableFeatures as Ie } from "./list/table-features.js";
|
|
23
|
+
import { effectiveScreenForRecord as Se } from "../../lib/variants.js";
|
|
24
|
+
import { coerceDisplayString as Ce } from "../../lib/display-value.js";
|
|
25
|
+
import { FilterChips as we } from "../filters/FilterChips.js";
|
|
26
|
+
import { FilterDrawer as Te } from "../filters/FilterDrawer.js";
|
|
27
|
+
import { listTableFeatures as Ee } from "./list/table-features.js";
|
|
34
28
|
import "./list/page-size.js";
|
|
35
|
-
import { useListFilterPresentation as
|
|
36
|
-
import { FilterOmittedNotice as
|
|
37
|
-
import { useListQuery as
|
|
38
|
-
import { useListSort as
|
|
39
|
-
import { rowSelectionKey as
|
|
40
|
-
import { useListColumnLayout as
|
|
41
|
-
import { useListRowInteraction as
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import { useHeaderReorder as
|
|
29
|
+
import { useListFilterPresentation as De } from "./list/useListFilterPresentation.js";
|
|
30
|
+
import { FilterOmittedNotice as Oe } from "../filters/FilterOmittedNotice.js";
|
|
31
|
+
import { useListQuery as ke } from "./list/useListQuery.js";
|
|
32
|
+
import { useListSort as Ae } from "./list/useListSort.js";
|
|
33
|
+
import { rowSelectionKey as je, useListSelection as Me } from "./list/useListSelection.js";
|
|
34
|
+
import { useListColumnLayout as Ne } from "./list/useListColumnLayout.js";
|
|
35
|
+
import { useListRowInteraction as Pe } from "./list/useListRowInteraction.js";
|
|
36
|
+
import { ListTable as Fe } from "./list/ListTable.js";
|
|
37
|
+
import { ListTableRow as Ie } from "./list/ListTableRow.js";
|
|
38
|
+
import { ListNoRows as Le } from "./list/ListNoRows.js";
|
|
39
|
+
import { ListFooter as Re } from "./list/ListFooter.js";
|
|
40
|
+
import { ListToolbar as ze } from "./list/ListToolbar.js";
|
|
41
|
+
import { overwritableViewName as Be, useListViews as Ve } from "./list/useListViews.js";
|
|
42
|
+
import { DeleteViewDialog as He } from "./list/DeleteViewDialog.js";
|
|
43
|
+
import { ListUrlBanner as Ue } from "./list/ListUrlBanner.js";
|
|
44
|
+
import { useFilterValueLabels as We } from "./list/use-filter-value-labels.js";
|
|
45
|
+
import { SaveViewDialog as Ge } from "./list/SaveViewDialog.js";
|
|
46
|
+
import { ListHeader as Ke } from "./list/ListHeader.js";
|
|
47
|
+
import { ListFloatbar as qe } from "./list/ListFloatbar.js";
|
|
48
|
+
import { buildListColumns as Je } from "./list/columns.js";
|
|
49
|
+
import { RowContextMenu as Ye } from "./list/RowContextMenu.js";
|
|
50
|
+
import { buildColumnSizeVars as Xe } from "./list/column-sizing.js";
|
|
51
|
+
import { useHeaderReorder as Ze } from "./list/useHeaderReorder.js";
|
|
52
|
+
import { resolveCard as Qe, resolveListProjection as $e, resolveVariantRenderFields as et } from "./list/cardProjection.js";
|
|
53
|
+
import { resolveCellRenderer as tt } from "../fields/cells/registry.js";
|
|
54
|
+
import { FileDraftScope as s, useFileDraftScope as nt } from "../file-widgets/draft-scope.js";
|
|
55
|
+
import { buildFilesPayload as rt, collectCommittedFileIds as it } from "../file-widgets/payload.js";
|
|
56
|
+
import { getSchemaFieldValue as at, serializeSchemaFieldValue as ot } from "../file-widgets/host.js";
|
|
57
|
+
import { useText as st } from "../../hooks/useText.js";
|
|
58
58
|
import { Suspense as ct, lazy as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as lt } from "react";
|
|
59
59
|
import { Fragment as ut, jsx as p, jsxs as dt } from "react/jsx-runtime";
|
|
60
60
|
import { useSearchParams as ft } from "react-router";
|
|
61
61
|
import { useTable as pt } from "@tanstack/react-table";
|
|
62
62
|
import { useVirtualizer as mt } from "@tanstack/react-virtual";
|
|
63
|
-
|
|
63
|
+
// src/components/pages/SmartListPage.impl.tsx
|
|
64
64
|
var ht = c(() => import("./list/ListCardsBody.js").then((e) => ({ default: e.ListCardsBody })));
|
|
65
65
|
function gt({ screenCode: e }) {
|
|
66
66
|
return /* @__PURE__ */ p(s, { children: /* @__PURE__ */ p(m, { screenCode: e }) });
|
|
67
67
|
}
|
|
68
68
|
var _t = [];
|
|
69
69
|
function m({ screenCode: s }) {
|
|
70
|
-
let c =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
]),
|
|
70
|
+
let c = st(), gt = st("errors"), m = te(), [h, g] = ft(), { data: _ } = t(), [vt, v] = lt(!1), [yt, y] = lt(!1), [bt, b] = lt(null), xt = n((e) => e.user), St = n((e) => e.activeTenant), Ct = nt(), x = _?.screens[s], S = x?.entity ? _?.entities[x.entity] : void 0, C = x?.entity, wt = de(S, "create"), Tt = de(S, "update"), Et = de(S, "delete"), w = _?.actions, T = d(() => ce(le(S?.actions, x?.actions, "list_toolbar", w), S), [
|
|
71
|
+
S,
|
|
72
|
+
x?.actions,
|
|
73
|
+
w
|
|
74
|
+
]), E = d(() => ce(le(S?.actions, void 0, "list_floatbar", w), S), [S, w]), D = d(() => {
|
|
75
75
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
76
|
-
for (let n of le(
|
|
76
|
+
for (let n of le(S?.actions, t, "list_row", w)) e.set(n.code, n);
|
|
77
77
|
};
|
|
78
|
-
t(
|
|
79
|
-
for (let e of
|
|
80
|
-
return
|
|
78
|
+
t(x?.row_actions);
|
|
79
|
+
for (let e of x?.variants?.items() ?? []) e.row_actions !== void 0 && t(e.row_actions);
|
|
80
|
+
return ce([...e.values()], S);
|
|
81
81
|
}, [
|
|
82
|
+
S,
|
|
82
83
|
x,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
x?.export?.enabled
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
pathname: b.route,
|
|
84
|
+
w
|
|
85
|
+
]), Dt = x?.row_actions !== void 0, Ot = d(() => E.length > 0 || S?.export?.enabled !== !1 && x?.export?.enabled !== !1, [
|
|
86
|
+
E,
|
|
87
|
+
S?.export?.enabled,
|
|
88
|
+
x?.export?.enabled
|
|
89
|
+
]), kt = !!S?.soft_delete, At = kt && (xt?.permissions ?? []).some((e) => e === "feature:view_deleted" || e === "feature:*" || e === "*"), jt = At && h.get("include_deleted") === "true", Mt = ie(), { openTab: Nt, updateTabSearch: Pt, findTabByPathname: Ft } = ae();
|
|
90
|
+
re(x, S, h.toString()), ne(x?.route);
|
|
91
|
+
let It = l((e) => {
|
|
92
|
+
if (!x?.route || !S || Mt.enabled) return;
|
|
93
|
+
let t = Ft(x.route);
|
|
94
|
+
t ? Pt(t.id, e) : Nt({
|
|
95
|
+
pathname: x.route,
|
|
96
96
|
search: e,
|
|
97
|
-
title: c(
|
|
98
|
-
icon:
|
|
97
|
+
title: c(x.display?.name) || c(S.display.name_plural),
|
|
98
|
+
icon: x.display?.icon || S.display.icon,
|
|
99
99
|
closable: !0
|
|
100
100
|
});
|
|
101
101
|
}, [
|
|
102
102
|
c,
|
|
103
|
-
b,
|
|
104
103
|
x,
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
S,
|
|
105
|
+
Mt.enabled,
|
|
107
106
|
Ft,
|
|
108
|
-
Pt
|
|
109
|
-
|
|
107
|
+
Pt,
|
|
108
|
+
Nt
|
|
109
|
+
]), O = parseInt(h.get("page") ?? "1", 10), Lt = (() => {
|
|
110
110
|
let e = parseInt(h.get("per_page") ?? "", 10);
|
|
111
111
|
return !Number.isFinite(e) || e <= 0 || e > 1e3 ? 200 : e;
|
|
112
112
|
})(), Rt = h.get("search") ?? "", zt = d(() => {
|
|
113
113
|
let e = be(h);
|
|
114
114
|
return e.error === null ? null : gt(e.errorCode ?? "", e.error);
|
|
115
|
-
}, [gt, h]), k =
|
|
115
|
+
}, [gt, h]), k = he({
|
|
116
116
|
screenCode: s,
|
|
117
|
-
screen:
|
|
118
|
-
entity:
|
|
117
|
+
screen: x,
|
|
118
|
+
entity: S,
|
|
119
119
|
searchParams: h,
|
|
120
120
|
setSearchParams: g,
|
|
121
|
-
userId:
|
|
122
|
-
tenantId:
|
|
121
|
+
userId: xt?.id,
|
|
122
|
+
tenantId: St?.id,
|
|
123
123
|
filterError: !!zt
|
|
124
|
-
}), { filters: Bt, columns: Vt, sort: Ht } = k.defaults, { filters: Ut, setFilters: A, clearFilters: Wt } =
|
|
124
|
+
}), { filters: Bt, columns: Vt, sort: Ht } = k.defaults, { filters: Ut, setFilters: A, clearFilters: Wt } = me({ defaults: Bt }), { visibleFilterState: Gt, filterFieldMeta: Kt, allFilterFieldMeta: qt, filterFieldName: Jt } = De(x, S, _?.entities, Ut), j = Gt.filters, Yt = ye(j), Xt = l(() => A(_t), [A]), Zt = Ae({
|
|
125
125
|
searchParams: h,
|
|
126
126
|
setSearchParams: g,
|
|
127
127
|
defaultSort: Ht,
|
|
128
|
-
commitScreenTabSearch:
|
|
129
|
-
}), { cols:
|
|
128
|
+
commitScreenTabSearch: It
|
|
129
|
+
}), { cols: M, nullsByField: Qt, value: $t, forRequest: en, tableSorting: tn, write: nn, applyColumn: rn, shiftClickColumn: an, appendColumn: on, clearColumn: sn, clearAll: cn } = Zt, ln = Ne({
|
|
130
130
|
screenCode: s,
|
|
131
|
-
screen:
|
|
131
|
+
screen: x,
|
|
132
132
|
searchParams: h,
|
|
133
133
|
setSearchParams: g,
|
|
134
134
|
defaultColumns: Vt
|
|
135
|
-
}), { visible:
|
|
135
|
+
}), { visible: N, sizing: un, setSizing: dn, apply: fn, commitResize: pn } = ln, mn = Ve({
|
|
136
136
|
screenCode: s,
|
|
137
|
-
screen:
|
|
138
|
-
entity:
|
|
137
|
+
screen: x,
|
|
138
|
+
entity: S,
|
|
139
139
|
searchParams: h,
|
|
140
140
|
setSearchParams: g,
|
|
141
|
-
userId:
|
|
142
|
-
tenantId:
|
|
141
|
+
userId: xt?.id,
|
|
142
|
+
tenantId: St?.id,
|
|
143
143
|
all: k.all,
|
|
144
144
|
activeId: k.activeId,
|
|
145
145
|
active: k.active,
|
|
146
146
|
clearedKey: k.clearedKey,
|
|
147
147
|
filters: Ut,
|
|
148
|
-
visibleColumns:
|
|
149
|
-
sort:
|
|
150
|
-
}), { active:
|
|
151
|
-
let e =
|
|
152
|
-
return e === "table" || e === "cards" ? e :
|
|
153
|
-
}, [
|
|
154
|
-
entity:
|
|
155
|
-
screen:
|
|
156
|
-
savedViewColumns:
|
|
148
|
+
visibleColumns: N,
|
|
149
|
+
sort: $t
|
|
150
|
+
}), { active: P, saveAsNew: hn, overwriteActive: gn, isSaving: _n } = mn, vn = o(Rt, 300), F = ee(), I = d(() => {
|
|
151
|
+
let e = x?.responsive?.[F.category]?.presentation;
|
|
152
|
+
return e === "table" || e === "cards" ? e : F.category === "phone" ? "cards" : "table";
|
|
153
|
+
}, [x?.responsive, F.category]), yn = d(() => Qe({
|
|
154
|
+
entity: S,
|
|
155
|
+
screen: x,
|
|
156
|
+
savedViewColumns: P?.columns
|
|
157
157
|
}), [
|
|
158
|
+
S,
|
|
158
159
|
x,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
sort: Qt,
|
|
160
|
+
P?.columns
|
|
161
|
+
]), bn = d(() => $e({
|
|
162
|
+
entity: S,
|
|
163
|
+
screen: x,
|
|
164
|
+
presentation: I,
|
|
165
|
+
visibleColumns: N,
|
|
166
|
+
card: yn,
|
|
167
|
+
rowActions: D,
|
|
168
|
+
toolbarActions: T,
|
|
169
|
+
bulkActions: E,
|
|
170
|
+
sort: M,
|
|
171
171
|
screens: _?.screens
|
|
172
172
|
}), [
|
|
173
|
+
S,
|
|
173
174
|
x,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
E,
|
|
179
|
-
w,
|
|
175
|
+
I,
|
|
176
|
+
N,
|
|
177
|
+
yn,
|
|
178
|
+
D,
|
|
180
179
|
T,
|
|
181
|
-
|
|
180
|
+
E,
|
|
181
|
+
M,
|
|
182
182
|
_?.screens
|
|
183
|
-
]),
|
|
184
|
-
entity:
|
|
185
|
-
entityCode:
|
|
186
|
-
screen:
|
|
183
|
+
]), xn = ke({
|
|
184
|
+
entity: S,
|
|
185
|
+
entityCode: C,
|
|
186
|
+
screen: x,
|
|
187
187
|
screenCode: s,
|
|
188
|
-
page:
|
|
189
|
-
perPage:
|
|
190
|
-
sortForRequest:
|
|
191
|
-
debouncedSearch:
|
|
188
|
+
page: O,
|
|
189
|
+
perPage: Lt,
|
|
190
|
+
sortForRequest: en,
|
|
191
|
+
debouncedSearch: vn,
|
|
192
192
|
filters: j,
|
|
193
193
|
isHeld: k.isHeld,
|
|
194
194
|
prefetchWhileHeld: k.prefetchWhileHeld,
|
|
195
195
|
retryHeld: k.retryViews,
|
|
196
|
-
includeDeleted:
|
|
197
|
-
expand:
|
|
198
|
-
select:
|
|
196
|
+
includeDeleted: jt,
|
|
197
|
+
expand: bn.expandFields,
|
|
198
|
+
select: bn.selectFields,
|
|
199
199
|
runCountQuery: !0,
|
|
200
|
-
urlKey: `${
|
|
201
|
-
}), { rows:
|
|
202
|
-
|
|
203
|
-
let zn =
|
|
204
|
-
H.current =
|
|
200
|
+
urlKey: `${C ?? ""}|${h.toString()}`
|
|
201
|
+
}), { rows: L, meta: Sn, refs: Cn, isLoading: wn, isFetching: Tn, isShowingPreviousRows: En, isError: Dn, error: On, isLoadingStale: kn, retry: An, countTotal: jn, countStrategy: Mn, countLoading: Nn, countError: Pn, totalPages: R, hasMorePages: Fn, isCursor: In, fetchNextPage: Ln, isFetchingNextPage: Rn } = xn;
|
|
202
|
+
e(!wn);
|
|
203
|
+
let zn = Me(S, L, Tn), { state: Bn, setState: z, ids: B, pkValues: Vn, rows: Hn, keyOf: V } = zn, Un = se(S?.realtime, C ?? ""), Wn = a(C ?? ""), H = f(Cn);
|
|
204
|
+
H.current = Cn;
|
|
205
205
|
let Gn = d(() => {
|
|
206
206
|
let e = /* @__PURE__ */ new Map();
|
|
207
|
-
if (!
|
|
208
|
-
for (let t of
|
|
209
|
-
if (t.startsWith("$") ||
|
|
210
|
-
let n =
|
|
211
|
-
n && e.set(t,
|
|
207
|
+
if (!S) return e;
|
|
208
|
+
for (let t of et(S, x, P?.columns)) {
|
|
209
|
+
if (t.startsWith("$") || S.files?.get(t)) continue;
|
|
210
|
+
let n = S.fields.get(t);
|
|
211
|
+
n && e.set(t, tt({
|
|
212
212
|
field: n,
|
|
213
213
|
fieldName: t,
|
|
214
214
|
surface: "list",
|
|
215
|
-
entity:
|
|
216
|
-
entityCode:
|
|
215
|
+
entity: S,
|
|
216
|
+
entityCode: C,
|
|
217
217
|
entities: _?.entities,
|
|
218
218
|
screens: _?.screens,
|
|
219
219
|
refs: () => H.current,
|
|
@@ -222,104 +222,104 @@ function m({ screenCode: s }) {
|
|
|
222
222
|
}
|
|
223
223
|
return e;
|
|
224
224
|
}, [
|
|
225
|
-
x,
|
|
226
225
|
S,
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
C,
|
|
227
|
+
x,
|
|
228
|
+
P?.columns,
|
|
229
229
|
_?.entities,
|
|
230
230
|
_?.screens,
|
|
231
231
|
H,
|
|
232
232
|
c
|
|
233
|
-
]), { labelFor: Kn, refs: qn } =
|
|
234
|
-
entity:
|
|
235
|
-
screen:
|
|
233
|
+
]), { labelFor: Kn, refs: qn } = We(qt, j, Cn, _?.entities), U = Pe({
|
|
234
|
+
entity: S,
|
|
235
|
+
screen: x,
|
|
236
236
|
screens: _?.screens,
|
|
237
237
|
entities: _?.entities,
|
|
238
238
|
searchParams: h,
|
|
239
239
|
tabNavigate: m,
|
|
240
|
-
commitScreenTabSearch:
|
|
241
|
-
isPhone:
|
|
242
|
-
canUpdate:
|
|
243
|
-
}), { peekAllowed: W, peekRow: G, setPeekRow: K, peekFields: Jn, peekActions: Yn, peekExecute: Xn, contextMenu: q, setContextMenu: Zn } = U, J = d(() => !
|
|
244
|
-
b,
|
|
240
|
+
commitScreenTabSearch: It,
|
|
241
|
+
isPhone: F.category === "phone",
|
|
242
|
+
canUpdate: Tt
|
|
243
|
+
}), { peekAllowed: W, peekRow: G, setPeekRow: K, peekFields: Jn, peekActions: Yn, peekExecute: Xn, contextMenu: q, setContextMenu: Zn } = U, J = d(() => !x || !S ? !1 : ue(x, "_", S, _?.screens) !== null, [
|
|
245
244
|
x,
|
|
245
|
+
S,
|
|
246
246
|
_?.screens
|
|
247
|
-
]), Qn = d(() =>
|
|
248
|
-
visibleCols:
|
|
249
|
-
entity:
|
|
250
|
-
screen:
|
|
247
|
+
]), Qn = d(() => Je({
|
|
248
|
+
visibleCols: N,
|
|
249
|
+
entity: S,
|
|
250
|
+
screen: x,
|
|
251
251
|
schema: _,
|
|
252
|
-
entityCode:
|
|
253
|
-
rowActions:
|
|
254
|
-
hasBatchActions:
|
|
255
|
-
hasExplicitRowActions:
|
|
256
|
-
canUpdate:
|
|
257
|
-
canDelete:
|
|
252
|
+
entityCode: C,
|
|
253
|
+
rowActions: D,
|
|
254
|
+
hasBatchActions: Ot,
|
|
255
|
+
hasExplicitRowActions: Dt,
|
|
256
|
+
canUpdate: Tt,
|
|
257
|
+
canDelete: Et,
|
|
258
258
|
peekEnabled: W,
|
|
259
259
|
hasDetailTarget: J,
|
|
260
260
|
t: c,
|
|
261
261
|
tabNavigate: m,
|
|
262
262
|
refsRef: H,
|
|
263
|
-
rowSelectionKey:
|
|
263
|
+
rowSelectionKey: je,
|
|
264
264
|
setPeekRow: K
|
|
265
265
|
}), [
|
|
266
|
-
b,
|
|
267
266
|
x,
|
|
268
|
-
|
|
267
|
+
S,
|
|
268
|
+
N,
|
|
269
269
|
m,
|
|
270
|
-
kt,
|
|
271
|
-
E,
|
|
272
270
|
Ot,
|
|
273
|
-
|
|
271
|
+
D,
|
|
272
|
+
Dt,
|
|
273
|
+
C,
|
|
274
274
|
W,
|
|
275
275
|
J,
|
|
276
276
|
_,
|
|
277
277
|
c,
|
|
278
|
+
Tt,
|
|
278
279
|
Et,
|
|
279
|
-
Dt,
|
|
280
280
|
H,
|
|
281
281
|
K
|
|
282
282
|
]), Y = pt({
|
|
283
|
-
features:
|
|
284
|
-
data:
|
|
283
|
+
features: Ee,
|
|
284
|
+
data: L,
|
|
285
285
|
columns: Qn,
|
|
286
286
|
manualSorting: !0,
|
|
287
287
|
enableColumnResizing: !0,
|
|
288
288
|
columnResizeMode: "onChange",
|
|
289
|
-
onColumnSizingChange:
|
|
289
|
+
onColumnSizingChange: dn,
|
|
290
290
|
state: {
|
|
291
|
-
sorting:
|
|
291
|
+
sorting: tn,
|
|
292
292
|
rowSelection: Bn,
|
|
293
|
-
columnSizing:
|
|
293
|
+
columnSizing: un
|
|
294
294
|
},
|
|
295
295
|
onSortingChange: (e) => {
|
|
296
|
-
let t = (typeof e == "function" ? e(
|
|
296
|
+
let t = (typeof e == "function" ? e(tn) : e).slice(0, 5);
|
|
297
297
|
if (t.length === 0) {
|
|
298
|
-
|
|
298
|
+
nn([]);
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
let n = t.map((e) => {
|
|
302
|
-
let t =
|
|
302
|
+
let t = Qt.get(e.id);
|
|
303
303
|
return {
|
|
304
304
|
field: e.id,
|
|
305
305
|
dir: e.desc ? "desc" : "asc",
|
|
306
306
|
...t ? { nulls: t } : {}
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
|
-
|
|
309
|
+
nn(n);
|
|
310
310
|
},
|
|
311
311
|
onRowSelectionChange: z,
|
|
312
312
|
getRowId: V
|
|
313
313
|
}), X = Y.state.columnResizing.isResizingColumn, $n = f(!1);
|
|
314
314
|
u(() => {
|
|
315
315
|
let e = !!$n.current && !X;
|
|
316
|
-
$n.current = X, e &&
|
|
316
|
+
$n.current = X, e && pn(Y.state.columnSizing);
|
|
317
317
|
}, [
|
|
318
318
|
X,
|
|
319
|
-
|
|
319
|
+
pn,
|
|
320
320
|
Y
|
|
321
321
|
]);
|
|
322
|
-
let er =
|
|
322
|
+
let er = Xe(Y), tr = Y.getTotalSize();
|
|
323
323
|
u(() => {
|
|
324
324
|
let e = (e) => {
|
|
325
325
|
let t = e.target?.tagName;
|
|
@@ -327,19 +327,19 @@ function m({ screenCode: s }) {
|
|
|
327
327
|
};
|
|
328
328
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
329
329
|
}, []);
|
|
330
|
-
let Z = f(null), { rows: Q } = Y.getRowModel(), nr = f(null), rr =
|
|
331
|
-
visibleCols:
|
|
332
|
-
onReorder:
|
|
330
|
+
let Z = f(null), { rows: Q } = Y.getRowModel(), nr = f(null), rr = Ze({
|
|
331
|
+
visibleCols: N,
|
|
332
|
+
onReorder: fn,
|
|
333
333
|
scrollElRef: Z,
|
|
334
334
|
theadRef: nr
|
|
335
|
-
}), ir =
|
|
335
|
+
}), ir = oe((e) => e.density), ar = oe((e) => e.zebra), or = r(), $ = mt({
|
|
336
336
|
count: Q.length,
|
|
337
337
|
getScrollElement: () => Z.current,
|
|
338
|
-
estimateSize: () =>
|
|
338
|
+
estimateSize: () => I === "cards" ? 142 : 48,
|
|
339
339
|
overscan: 10,
|
|
340
340
|
initialOffset: or
|
|
341
341
|
}), sr = d(() => Q.map((e) => e.id), [Q]);
|
|
342
|
-
|
|
342
|
+
i({
|
|
343
343
|
virtualizer: $,
|
|
344
344
|
scrollElementRef: Z,
|
|
345
345
|
rowKeys: sr
|
|
@@ -348,9 +348,9 @@ function m({ screenCode: s }) {
|
|
|
348
348
|
}, [ir, $]), u(() => {
|
|
349
349
|
$.measure();
|
|
350
350
|
}, [
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
351
|
+
F.width,
|
|
352
|
+
F.height,
|
|
353
|
+
I,
|
|
354
354
|
$
|
|
355
355
|
]);
|
|
356
356
|
let cr = l((e) => {
|
|
@@ -370,10 +370,10 @@ function m({ screenCode: s }) {
|
|
|
370
370
|
});
|
|
371
371
|
}, [g]);
|
|
372
372
|
u(() => {
|
|
373
|
-
R !== void 0 &&
|
|
373
|
+
R !== void 0 && O > R && ur(R);
|
|
374
374
|
}, [
|
|
375
375
|
R,
|
|
376
|
-
|
|
376
|
+
O,
|
|
377
377
|
ur
|
|
378
378
|
]);
|
|
379
379
|
let dr = l((e) => {
|
|
@@ -382,12 +382,12 @@ function m({ screenCode: s }) {
|
|
|
382
382
|
return n.set("per_page", String(e)), n.set("page", "1"), n;
|
|
383
383
|
});
|
|
384
384
|
}, [g]);
|
|
385
|
-
if (!
|
|
386
|
-
let fr =
|
|
387
|
-
entity:
|
|
388
|
-
entityCode:
|
|
389
|
-
screen:
|
|
390
|
-
screenRoute:
|
|
385
|
+
if (!x || !S) return null;
|
|
386
|
+
let fr = S.display, pr = c(x.display?.name) || c(fr.name), mr = x.display?.icon || fr.icon, hr = c(x.display?.description) || c(fr.description), gr = F.category === "phone", _r = I === "cards", vr = Vn.map((e) => pe(S, e)), yr = {
|
|
387
|
+
entity: S,
|
|
388
|
+
entityCode: C ?? "",
|
|
389
|
+
screen: x,
|
|
390
|
+
screenRoute: x.route,
|
|
391
391
|
selectedRows: Hn,
|
|
392
392
|
selectedIds: vr,
|
|
393
393
|
t: c,
|
|
@@ -396,7 +396,7 @@ function m({ screenCode: s }) {
|
|
|
396
396
|
icon: t?.icon,
|
|
397
397
|
search: t?.search
|
|
398
398
|
}),
|
|
399
|
-
runActionApi: (e, t) =>
|
|
399
|
+
runActionApi: (e, t) => ve(e, t)
|
|
400
400
|
};
|
|
401
401
|
return /* @__PURE__ */ dt("div", {
|
|
402
402
|
style: {
|
|
@@ -407,60 +407,60 @@ function m({ screenCode: s }) {
|
|
|
407
407
|
},
|
|
408
408
|
children: [
|
|
409
409
|
/* @__PURE__ */ dt(ut, { children: [
|
|
410
|
-
/* @__PURE__ */ p(
|
|
410
|
+
/* @__PURE__ */ p(Ke, {
|
|
411
411
|
title: pr,
|
|
412
412
|
description: hr,
|
|
413
|
-
toolbarActions:
|
|
414
|
-
screenActionLayout:
|
|
415
|
-
entityActionLayout:
|
|
413
|
+
toolbarActions: T,
|
|
414
|
+
screenActionLayout: x.action_layout,
|
|
415
|
+
entityActionLayout: S.action_layout,
|
|
416
416
|
selectedIds: B,
|
|
417
|
-
data:
|
|
417
|
+
data: L,
|
|
418
418
|
rowKey: V,
|
|
419
419
|
onActionSuccess: () => z({}),
|
|
420
420
|
widgetContext: yr
|
|
421
421
|
}),
|
|
422
|
-
/* @__PURE__ */ p(
|
|
423
|
-
screen:
|
|
424
|
-
entity:
|
|
425
|
-
entityCode:
|
|
422
|
+
/* @__PURE__ */ p(ze, {
|
|
423
|
+
screen: x,
|
|
424
|
+
entity: S,
|
|
425
|
+
entityCode: C,
|
|
426
426
|
schema: _,
|
|
427
427
|
screenCode: s,
|
|
428
428
|
screenName: pr,
|
|
429
429
|
isPhone: gr,
|
|
430
430
|
isCardsPresentation: _r,
|
|
431
431
|
sort: Zt,
|
|
432
|
-
columns:
|
|
433
|
-
views:
|
|
434
|
-
query:
|
|
432
|
+
columns: ln,
|
|
433
|
+
views: mn,
|
|
434
|
+
query: xn,
|
|
435
435
|
selection: zn,
|
|
436
436
|
filters: {
|
|
437
437
|
json: j,
|
|
438
|
-
debouncedSearch:
|
|
438
|
+
debouncedSearch: vn,
|
|
439
439
|
count: Yt,
|
|
440
440
|
onOpen: () => v(!0)
|
|
441
441
|
},
|
|
442
442
|
searchValue: Rt,
|
|
443
443
|
onSearchChange: cr,
|
|
444
444
|
onSaveView: () => y(!0),
|
|
445
|
-
onDeleteView:
|
|
446
|
-
page:
|
|
447
|
-
perPage:
|
|
448
|
-
includeDeleted:
|
|
449
|
-
canViewDeleted:
|
|
445
|
+
onDeleteView: b,
|
|
446
|
+
page: O,
|
|
447
|
+
perPage: Lt,
|
|
448
|
+
includeDeleted: jt,
|
|
449
|
+
canViewDeleted: At,
|
|
450
450
|
onToggleDeleted: lr,
|
|
451
|
-
realtime:
|
|
451
|
+
realtime: S?.realtime === !0,
|
|
452
452
|
isLive: Un
|
|
453
453
|
}),
|
|
454
|
-
/* @__PURE__ */ p(
|
|
454
|
+
/* @__PURE__ */ p(Ue, {
|
|
455
455
|
filterError: zt,
|
|
456
456
|
unresolvedViewId: k.isUnresolved ? k.activeId : null,
|
|
457
457
|
onClearFilters: Wt,
|
|
458
458
|
onClearView: k.clearActiveView
|
|
459
459
|
}),
|
|
460
|
-
Gt.omitted && /* @__PURE__ */ p(
|
|
460
|
+
Gt.omitted && /* @__PURE__ */ p(Oe, { className: "px-5 pb-2.5" }),
|
|
461
461
|
j.length > 0 && /* @__PURE__ */ p("div", {
|
|
462
462
|
style: { padding: "0 20px 10px" },
|
|
463
|
-
children: /* @__PURE__ */ p(
|
|
463
|
+
children: /* @__PURE__ */ p(we, {
|
|
464
464
|
filters: j,
|
|
465
465
|
resolveValue: Kn,
|
|
466
466
|
onRemoveAtPath: (e) => A(xe(j, e)),
|
|
@@ -470,22 +470,22 @@ function m({ screenCode: s }) {
|
|
|
470
470
|
})
|
|
471
471
|
})
|
|
472
472
|
] }),
|
|
473
|
-
/* @__PURE__ */ p(
|
|
474
|
-
isLoading:
|
|
473
|
+
/* @__PURE__ */ p(Le, {
|
|
474
|
+
isLoading: wn,
|
|
475
475
|
tableLoadingStale: kn,
|
|
476
476
|
isError: Dn,
|
|
477
477
|
error: On,
|
|
478
|
-
rowCount:
|
|
479
|
-
entity:
|
|
480
|
-
screen:
|
|
478
|
+
rowCount: L.length,
|
|
479
|
+
entity: S,
|
|
480
|
+
screen: x,
|
|
481
481
|
screenName: pr,
|
|
482
482
|
screenIcon: mr,
|
|
483
|
-
isFiltered: !!
|
|
484
|
-
canCreate:
|
|
485
|
-
toolbarActions:
|
|
483
|
+
isFiltered: !!vn || Yt > 0,
|
|
484
|
+
canCreate: wt,
|
|
485
|
+
toolbarActions: T,
|
|
486
486
|
onRetry: An
|
|
487
487
|
}),
|
|
488
|
-
|
|
488
|
+
wn || Dn || L.length === 0 ? null : /* @__PURE__ */ p("div", {
|
|
489
489
|
style: {
|
|
490
490
|
flex: 1,
|
|
491
491
|
minHeight: 0,
|
|
@@ -508,57 +508,57 @@ function m({ screenCode: s }) {
|
|
|
508
508
|
children: [/* @__PURE__ */ p("div", {
|
|
509
509
|
ref: Z,
|
|
510
510
|
"data-testid": "list-scroll",
|
|
511
|
-
"data-presentation":
|
|
511
|
+
"data-presentation": I,
|
|
512
512
|
style: {
|
|
513
513
|
overflow: "auto",
|
|
514
514
|
flex: 1,
|
|
515
515
|
minHeight: 0
|
|
516
516
|
},
|
|
517
|
-
children:
|
|
517
|
+
children: I === "cards" ? /* @__PURE__ */ p(ct, {
|
|
518
518
|
fallback: null,
|
|
519
519
|
children: /* @__PURE__ */ p(ht, {
|
|
520
520
|
rows: Q,
|
|
521
521
|
virtualizer: $,
|
|
522
|
-
entity:
|
|
523
|
-
screen:
|
|
524
|
-
entityCode:
|
|
522
|
+
entity: S,
|
|
523
|
+
screen: x,
|
|
524
|
+
entityCode: C,
|
|
525
525
|
entities: _?.entities,
|
|
526
|
-
savedViewColumns:
|
|
526
|
+
savedViewColumns: P?.columns,
|
|
527
527
|
refs: H.current,
|
|
528
528
|
renderers: Gn,
|
|
529
|
-
rowActions:
|
|
529
|
+
rowActions: D,
|
|
530
530
|
tabNavigate: m,
|
|
531
531
|
interaction: U,
|
|
532
|
-
hasSoftDelete:
|
|
532
|
+
hasSoftDelete: kt,
|
|
533
533
|
zebra: ar,
|
|
534
|
-
hasBatchActions:
|
|
534
|
+
hasBatchActions: Ot,
|
|
535
535
|
hasDetailTarget: J,
|
|
536
536
|
rowKey: V
|
|
537
537
|
})
|
|
538
|
-
}) : /* @__PURE__ */ p(
|
|
538
|
+
}) : /* @__PURE__ */ p(Fe, {
|
|
539
539
|
showsPreviousRows: En,
|
|
540
540
|
table: Y,
|
|
541
541
|
columns: Qn,
|
|
542
542
|
rows: Q,
|
|
543
|
-
entity:
|
|
543
|
+
entity: S,
|
|
544
544
|
columnSizeVars: er,
|
|
545
545
|
totalColumnsWidth: tr,
|
|
546
546
|
theadRef: nr,
|
|
547
547
|
virtualizer: $,
|
|
548
|
-
visibleCols:
|
|
548
|
+
visibleCols: N,
|
|
549
549
|
headerReorder: rr,
|
|
550
|
-
sortCols:
|
|
551
|
-
sortNullsMap:
|
|
552
|
-
shiftClickColumn:
|
|
553
|
-
applyColumnSort:
|
|
554
|
-
appendColumnSort:
|
|
555
|
-
clearColumnSort:
|
|
556
|
-
clearAllSorts:
|
|
557
|
-
renderRow: (e, t) => /* @__PURE__ */ p(
|
|
550
|
+
sortCols: M,
|
|
551
|
+
sortNullsMap: Qt,
|
|
552
|
+
shiftClickColumn: an,
|
|
553
|
+
applyColumnSort: rn,
|
|
554
|
+
appendColumnSort: on,
|
|
555
|
+
clearColumnSort: sn,
|
|
556
|
+
clearAllSorts: cn,
|
|
557
|
+
renderRow: (e, t) => /* @__PURE__ */ p(Ie, {
|
|
558
558
|
row: e,
|
|
559
559
|
rowIndex: t,
|
|
560
|
-
entity:
|
|
561
|
-
hasSoftDelete:
|
|
560
|
+
entity: S,
|
|
561
|
+
hasSoftDelete: kt,
|
|
562
562
|
zebra: ar,
|
|
563
563
|
hasDetailTarget: J,
|
|
564
564
|
interaction: U,
|
|
@@ -566,20 +566,20 @@ function m({ screenCode: s }) {
|
|
|
566
566
|
}, e.id),
|
|
567
567
|
isResizingColumn: X
|
|
568
568
|
})
|
|
569
|
-
}), /* @__PURE__ */ p(
|
|
570
|
-
meta:
|
|
569
|
+
}), /* @__PURE__ */ p(Re, {
|
|
570
|
+
meta: Sn,
|
|
571
571
|
isCursor: In,
|
|
572
572
|
isPhone: gr,
|
|
573
|
-
rowsLoaded:
|
|
573
|
+
rowsLoaded: L.length,
|
|
574
574
|
selectedCount: B.length,
|
|
575
575
|
countTotal: jn,
|
|
576
576
|
countStrategy: Mn,
|
|
577
577
|
countLoading: Nn,
|
|
578
578
|
countError: Pn,
|
|
579
|
-
page:
|
|
579
|
+
page: O,
|
|
580
580
|
totalPages: R,
|
|
581
581
|
goToPage: ur,
|
|
582
|
-
perPage:
|
|
582
|
+
perPage: Lt,
|
|
583
583
|
setPerPage: dr,
|
|
584
584
|
hasMorePages: Fn,
|
|
585
585
|
fetchNextPage: Ln,
|
|
@@ -587,7 +587,7 @@ function m({ screenCode: s }) {
|
|
|
587
587
|
})]
|
|
588
588
|
})
|
|
589
589
|
}),
|
|
590
|
-
/* @__PURE__ */ p(
|
|
590
|
+
/* @__PURE__ */ p(Te, {
|
|
591
591
|
open: vt,
|
|
592
592
|
onClose: () => v(!1),
|
|
593
593
|
filters: j,
|
|
@@ -596,77 +596,77 @@ function m({ screenCode: s }) {
|
|
|
596
596
|
allFields: qt,
|
|
597
597
|
fieldLabel: Jt,
|
|
598
598
|
resolveValue: Kn,
|
|
599
|
-
defaultFilters:
|
|
599
|
+
defaultFilters: x?.default_filters,
|
|
600
600
|
refs: qn
|
|
601
601
|
}),
|
|
602
|
-
/* @__PURE__ */ p(
|
|
602
|
+
/* @__PURE__ */ p(He, {
|
|
603
603
|
view: bt,
|
|
604
|
-
onCancel: () =>
|
|
604
|
+
onCancel: () => b(null),
|
|
605
605
|
onConfirm: (e) => {
|
|
606
|
-
|
|
606
|
+
mn.deleteView(e).catch(() => void 0).finally(() => b(null));
|
|
607
607
|
}
|
|
608
608
|
}),
|
|
609
|
-
/* @__PURE__ */ p(
|
|
609
|
+
/* @__PURE__ */ p(Ge, {
|
|
610
610
|
open: yt,
|
|
611
|
-
pending:
|
|
611
|
+
pending: _n,
|
|
612
612
|
onClose: () => y(!1),
|
|
613
|
-
overwriteViewName:
|
|
613
|
+
overwriteViewName: Be(c, P),
|
|
614
614
|
onOverwrite: async () => {
|
|
615
|
-
await
|
|
615
|
+
await gn(), y(!1);
|
|
616
616
|
},
|
|
617
617
|
onSave: async (e) => {
|
|
618
|
-
await
|
|
618
|
+
await hn(e), y(!1);
|
|
619
619
|
}
|
|
620
620
|
}),
|
|
621
|
-
B.length > 0 && /* @__PURE__ */ p(
|
|
621
|
+
B.length > 0 && /* @__PURE__ */ p(qe, {
|
|
622
622
|
selectedIds: B,
|
|
623
|
-
floatbarActions:
|
|
624
|
-
screenActionLayout:
|
|
625
|
-
entityActionLayout:
|
|
626
|
-
data:
|
|
623
|
+
floatbarActions: E,
|
|
624
|
+
screenActionLayout: x.action_layout,
|
|
625
|
+
entityActionLayout: S.action_layout,
|
|
626
|
+
data: L,
|
|
627
627
|
rowKey: V,
|
|
628
|
-
entityCode:
|
|
629
|
-
entity:
|
|
630
|
-
screen:
|
|
628
|
+
entityCode: C,
|
|
629
|
+
entity: S,
|
|
630
|
+
screen: x,
|
|
631
631
|
onClear: () => z({}),
|
|
632
632
|
onActionSuccess: () => z({}),
|
|
633
633
|
widgetContext: yr
|
|
634
634
|
}),
|
|
635
|
-
q &&
|
|
635
|
+
q && S && x && /* @__PURE__ */ p(Ye, {
|
|
636
636
|
x: q.x,
|
|
637
637
|
y: q.y,
|
|
638
638
|
row: q.row,
|
|
639
639
|
rowId: V(q.row),
|
|
640
|
-
screen:
|
|
641
|
-
fullScreen:
|
|
642
|
-
entity:
|
|
643
|
-
entityCode:
|
|
644
|
-
rowActions:
|
|
640
|
+
screen: x,
|
|
641
|
+
fullScreen: x,
|
|
642
|
+
entity: S,
|
|
643
|
+
entityCode: C,
|
|
644
|
+
rowActions: D,
|
|
645
645
|
tabNavigate: m,
|
|
646
646
|
peekAllowed: W,
|
|
647
647
|
hasDetailTarget: J,
|
|
648
648
|
onPeek: K,
|
|
649
649
|
onClose: () => Zn(null)
|
|
650
650
|
}),
|
|
651
|
-
W && G &&
|
|
652
|
-
entity:
|
|
653
|
-
entityCode:
|
|
651
|
+
W && G && S && /* @__PURE__ */ p(ge, {
|
|
652
|
+
entity: S,
|
|
653
|
+
entityCode: C,
|
|
654
654
|
record: G,
|
|
655
|
-
title:
|
|
655
|
+
title: fe(c, G, S) || c(S.display.name),
|
|
656
656
|
recordId: (() => {
|
|
657
|
-
let
|
|
658
|
-
return
|
|
657
|
+
let e = S.fields.names()?.find((e) => S.fields.get(e)?.primary);
|
|
658
|
+
return e && S.fields.get(e)?.type !== "uuid" ? Ce(G[e]) : void 0;
|
|
659
659
|
})(),
|
|
660
660
|
fields: Jn,
|
|
661
|
-
screen:
|
|
661
|
+
screen: Se(S, x, G),
|
|
662
662
|
actions: Yn,
|
|
663
|
-
screenActionLayout:
|
|
664
|
-
entityActionLayout:
|
|
663
|
+
screenActionLayout: Se(S, x, G)?.action_layout,
|
|
664
|
+
entityActionLayout: S.action_layout,
|
|
665
665
|
executeAction: Xn,
|
|
666
666
|
onClose: () => {
|
|
667
|
-
if (
|
|
668
|
-
let
|
|
669
|
-
|
|
667
|
+
if (S && G) {
|
|
668
|
+
let e = S.fields.names()?.find((e) => S.fields.get(e)?.primary);
|
|
669
|
+
e && _e(Ce(G[e]));
|
|
670
670
|
}
|
|
671
671
|
K(null);
|
|
672
672
|
},
|
|
@@ -674,33 +674,32 @@ function m({ screenCode: s }) {
|
|
|
674
674
|
let t = G;
|
|
675
675
|
K(null), U.navigateToDetail(t, { draft: e });
|
|
676
676
|
},
|
|
677
|
-
onSave: (
|
|
678
|
-
K(
|
|
679
|
-
let
|
|
680
|
-
if (!
|
|
681
|
-
let
|
|
682
|
-
for (let
|
|
683
|
-
let n =
|
|
684
|
-
(
|
|
677
|
+
onSave: (e) => {
|
|
678
|
+
K(e);
|
|
679
|
+
let t = S.fields.names()?.find((e) => S.fields.get(e)?.primary);
|
|
680
|
+
if (!t) return;
|
|
681
|
+
let n = Ce(e[t]), r = {};
|
|
682
|
+
for (let t of S.fields.names()) {
|
|
683
|
+
let n = at(S, e, t), i = at(S, G, t), a = ot(S, t, n), o = ot(S, t, i);
|
|
684
|
+
(a === "" ? null : a) !== (o === "" || o === void 0 ? null : o) && (r[t] = a);
|
|
685
685
|
}
|
|
686
|
-
let i =
|
|
687
|
-
entity:
|
|
688
|
-
formData:
|
|
686
|
+
let i = rt({
|
|
687
|
+
entity: S,
|
|
688
|
+
formData: e,
|
|
689
689
|
record: G,
|
|
690
690
|
isNew: !1
|
|
691
691
|
});
|
|
692
692
|
if (Object.keys(i).length > 0 && (r.$files = i), Object.keys(r).length === 0) return;
|
|
693
|
-
let a =
|
|
693
|
+
let a = it(i);
|
|
694
694
|
Wn.mutate({
|
|
695
|
-
pkValues:
|
|
695
|
+
pkValues: n,
|
|
696
696
|
data: r
|
|
697
697
|
}, { onSuccess: () => {
|
|
698
|
-
a.forEach((e) =>
|
|
698
|
+
a.forEach((e) => Ct.markCommitted(e));
|
|
699
699
|
} });
|
|
700
700
|
}
|
|
701
701
|
})
|
|
702
702
|
]
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
|
-
//#endregion
|
|
706
705
|
export { gt as SmartListPage };
|