@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,6 +1,6 @@
|
|
|
1
1
|
import { applyAppendSort as e, applyShiftClickSort as t, parseSort as n, removeSortField as r, serializeSort as i, stripUnsupportedSortSegments as a } from "../../../lib/sort.js";
|
|
2
2
|
import { useCallback as o, useMemo as s } from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/pages/list/useListSort.ts
|
|
4
4
|
function c({ searchParams: c, setSearchParams: l, defaultSort: u, commitScreenTabSearch: d }) {
|
|
5
5
|
let f = c.get("sort") ?? u ?? "", p = s(() => n(f), [f]), m = s(() => {
|
|
6
6
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -40,5 +40,4 @@ function c({ searchParams: c, setSearchParams: l, defaultSort: u, commitScreenTa
|
|
|
40
40
|
clearAll: o(() => _([]), [_])
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { c as useListSort };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useCreateObject as e, useDeleteObject as t, useUpdateObject as n } from "../../../hooks/useMutations.js";
|
|
2
|
+
import { coerceDisplayString as r } from "../../../lib/display-value.js";
|
|
3
|
+
import { filtersEqual as i } from "../../../lib/filters.js";
|
|
4
|
+
import { baseViewSearchParams as a, viewQuery as o } from "./useActiveView.js";
|
|
5
|
+
import { toast as s } from "../../../lib/toast.js";
|
|
6
|
+
import { useText as c } from "../../../hooks/useText.js";
|
|
7
7
|
import { useCallback as l, useMemo as u } from "react";
|
|
8
8
|
import { useQueryClient as d } from "@tanstack/react-query";
|
|
9
|
-
|
|
10
|
-
function f(
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
if (!
|
|
14
|
-
let i =
|
|
9
|
+
// src/components/pages/list/useListViews.ts
|
|
10
|
+
function f(e, t) {
|
|
11
|
+
let n = r(t.id);
|
|
12
|
+
n && e.setQueriesData({ queryKey: ["entity-data", "view"] }, (e) => {
|
|
13
|
+
if (!e) return e;
|
|
14
|
+
let i = e.data.findIndex((e) => r(e.id) === n);
|
|
15
15
|
if (i === -1) return {
|
|
16
|
-
...
|
|
17
|
-
data: [
|
|
16
|
+
...e,
|
|
17
|
+
data: [t, ...e.data]
|
|
18
18
|
};
|
|
19
|
-
let a = [...
|
|
19
|
+
let a = [...e.data];
|
|
20
20
|
return a[i] = {
|
|
21
21
|
...a[i],
|
|
22
|
-
...
|
|
22
|
+
...t
|
|
23
23
|
}, {
|
|
24
|
-
...
|
|
24
|
+
...e,
|
|
25
25
|
data: a
|
|
26
26
|
};
|
|
27
27
|
});
|
|
@@ -31,10 +31,10 @@ function p(e) {
|
|
|
31
31
|
return t.delete("filters"), t.delete("columns"), t.delete("sort"), t;
|
|
32
32
|
}
|
|
33
33
|
function m({ screenCode: m, screen: h, entity: g, searchParams: _, setSearchParams: v, userId: y, tenantId: b, all: x, activeId: S, active: C, clearedKey: w, filters: T, visibleColumns: E, sort: D }) {
|
|
34
|
-
let O =
|
|
34
|
+
let O = c(), k = d(), A = e("view"), j = n("view"), M = t("view"), N = u(() => {
|
|
35
35
|
if (!S || !C) return !1;
|
|
36
|
-
let e =
|
|
37
|
-
return !
|
|
36
|
+
let e = o(g, C, h), t = e.filters, n = C.columns?.length ? C.columns : h?.default_columns ?? h?.columns ?? [], r = e.sort ?? "";
|
|
37
|
+
return !i(T, t) || E.join(",") !== n.join(",") || D !== r;
|
|
38
38
|
}, [
|
|
39
39
|
S,
|
|
40
40
|
C,
|
|
@@ -44,10 +44,10 @@ function m({ screenCode: m, screen: h, entity: g, searchParams: _, setSearchPara
|
|
|
44
44
|
g,
|
|
45
45
|
h
|
|
46
46
|
]), P = l((e) => {
|
|
47
|
-
let t = new URLSearchParams(_),
|
|
48
|
-
e.id ?
|
|
49
|
-
let
|
|
50
|
-
(t.get("columns") ?? o) !== o &&
|
|
47
|
+
let t = new URLSearchParams(_), n = a(_);
|
|
48
|
+
e.id ? n.set("view", e.id) : typeof window < "u" && window.sessionStorage?.setItem(w, "1"), v(n);
|
|
49
|
+
let r = t.get("view"), i = r ? x.find((e) => e.id === r) : void 0, o = (i?.columns?.length ? i.columns : h?.default_columns ?? h?.columns ?? []).join(",");
|
|
50
|
+
(t.get("columns") ?? o) !== o && s.info(O("list.view.applied_title", "View applied"), O("list.view.applied_body", "Your unsaved column changes were replaced."), { action: {
|
|
51
51
|
label: O("list.view.undo", "Undo"),
|
|
52
52
|
onClick: () => v(t)
|
|
53
53
|
} });
|
|
@@ -91,22 +91,22 @@ function m({ screenCode: m, screen: h, entity: g, searchParams: _, setSearchPara
|
|
|
91
91
|
isDirty: N,
|
|
92
92
|
apply: P,
|
|
93
93
|
discard: F,
|
|
94
|
-
saveAsNew: l(async (
|
|
94
|
+
saveAsNew: l(async (e) => {
|
|
95
95
|
if (!y || !b) return;
|
|
96
|
-
let
|
|
96
|
+
let t = await A.mutateAsync({
|
|
97
97
|
tenant_id: b,
|
|
98
98
|
screen_code: m,
|
|
99
|
-
name: { en:
|
|
99
|
+
name: { en: e },
|
|
100
100
|
filters: T,
|
|
101
101
|
columns: E,
|
|
102
102
|
sort: D,
|
|
103
103
|
is_shared: !1,
|
|
104
104
|
is_default: !1
|
|
105
|
-
}),
|
|
106
|
-
if (!
|
|
107
|
-
f(k,
|
|
105
|
+
}), n = r(t.data.id);
|
|
106
|
+
if (!n) return;
|
|
107
|
+
f(k, t.data);
|
|
108
108
|
let i = p(_);
|
|
109
|
-
i.set("view",
|
|
109
|
+
i.set("view", n), v(i), await k.invalidateQueries({ queryKey: ["entity-data", "view"] });
|
|
110
110
|
}, [
|
|
111
111
|
y,
|
|
112
112
|
b,
|
|
@@ -144,5 +144,4 @@ function m({ screenCode: m, screen: h, entity: g, searchParams: _, setSearchPara
|
|
|
144
144
|
function h(e, t) {
|
|
145
145
|
return t && t.source === "personal" ? e(t.name) : null;
|
|
146
146
|
}
|
|
147
|
-
//#endregion
|
|
148
147
|
export { h as overwritableViewName, m as useListViews };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { dispatchAction as u } from "../../../lib/action-dispatch.js";
|
|
1
|
+
import { PEEK_ACTION_CODE as e, applyRowState as t, defaultFlatForSlot as n, filterLayoutForSlot as r } from "../../../lib/actions.js";
|
|
2
|
+
import { dispatchAction as i } from "../../../lib/action-dispatch.js";
|
|
3
|
+
import { buildDetailHrefFromId as a } from "../../../types/schema.js";
|
|
4
|
+
import { buildActionBody as o, executeAction as s } from "../../../api/data.js";
|
|
5
|
+
import { useActionRunner as c } from "../../actions/ActionRunner.js";
|
|
6
|
+
import { effectiveScreenForRecord as l, variantActionCodesForRecord as u } from "../../../lib/variants.js";
|
|
8
7
|
import { useRowTenant as d } from "../../../hooks/useRowTenant.js";
|
|
9
|
-
import {
|
|
8
|
+
import { useText as f } from "../../../hooks/useText.js";
|
|
9
|
+
import { useSchema as p } from "../../../hooks/useSchema.js";
|
|
10
10
|
import { useCallback as m, useMemo as h } from "react";
|
|
11
|
-
|
|
11
|
+
// src/components/pages/list/useRowMenu.ts
|
|
12
12
|
function g(e, t) {
|
|
13
13
|
let n = (e) => e === "__peek" && !t.peek || e === "__open" && !t.open, r = [];
|
|
14
14
|
for (let i of e) if (i.kind === "action") {
|
|
@@ -30,10 +30,10 @@ function _(e, t) {
|
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
32
|
function v({ row: v, rowId: y, screen: b, fullScreen: x, entity: S, entityCode: C, rowActions: w, tabNavigate: T, peekAllowed: E, hasDetailTarget: D, onPeek: O }) {
|
|
33
|
-
let k =
|
|
33
|
+
let k = f(), A = d(S), j = f("errors"), { run: M } = c(), { data: N } = p(), P = x.detail_screen === void 0 && b.detail_screen !== void 0 ? {
|
|
34
34
|
...x,
|
|
35
35
|
detail_screen: b.detail_screen
|
|
36
|
-
} : x, F =
|
|
36
|
+
} : x, F = l(S, P, v) ?? P, I = h(() => {
|
|
37
37
|
let e = {}, t = F.row_actions === void 0 ? void 0 : new Set(F.row_actions);
|
|
38
38
|
for (let { code: n, action: r } of w) (!t || t.has(n)) && (e[n] = r);
|
|
39
39
|
return e;
|
|
@@ -50,9 +50,9 @@ function v({ row: v, rowId: y, screen: b, fullScreen: x, entity: S, entityCode:
|
|
|
50
50
|
icon: t?.icon,
|
|
51
51
|
search: t?.search
|
|
52
52
|
}),
|
|
53
|
-
runActionApi: (e, t) =>
|
|
53
|
+
runActionApi: (e, t) => s(e, t),
|
|
54
54
|
openPeek: (e) => O(e ?? v),
|
|
55
|
-
recordHref: (
|
|
55
|
+
recordHref: (e) => a(F, e, S, N?.screens)
|
|
56
56
|
}), [
|
|
57
57
|
S,
|
|
58
58
|
C,
|
|
@@ -63,13 +63,13 @@ function v({ row: v, rowId: y, screen: b, fullScreen: x, entity: S, entityCode:
|
|
|
63
63
|
v,
|
|
64
64
|
N?.screens
|
|
65
65
|
]), R = h(() => {
|
|
66
|
-
let e = F.action_layout ?? null, t = S.action_layout ?? null,
|
|
67
|
-
return
|
|
66
|
+
let e = F.action_layout ?? null, t = S.action_layout ?? null, i = e ?? t ?? n(I, "list_row");
|
|
67
|
+
return r(i, I, void 0, "list_row");
|
|
68
68
|
}, [
|
|
69
69
|
F,
|
|
70
70
|
S,
|
|
71
71
|
I
|
|
72
|
-
]), z = h(() => g(
|
|
72
|
+
]), z = h(() => g(t(k, R, I, void 0, v, [], A, u(S, v)), {
|
|
73
73
|
peek: E,
|
|
74
74
|
open: D
|
|
75
75
|
}), [
|
|
@@ -86,12 +86,12 @@ function v({ row: v, rowId: y, screen: b, fullScreen: x, entity: S, entityCode:
|
|
|
86
86
|
layout: z,
|
|
87
87
|
entityActions: I,
|
|
88
88
|
runRowAction: m((e, t) => {
|
|
89
|
-
let
|
|
90
|
-
if (
|
|
89
|
+
let n = i(j, e, t, { row: v });
|
|
90
|
+
if (n !== null) return M({
|
|
91
91
|
action: t,
|
|
92
92
|
title: k(t.display?.name) || e,
|
|
93
93
|
row: v,
|
|
94
|
-
execute: (e) =>
|
|
94
|
+
execute: (e) => s(n, o(e, [y]))
|
|
95
95
|
});
|
|
96
96
|
}, [
|
|
97
97
|
k,
|
|
@@ -101,8 +101,7 @@ function v({ row: v, rowId: y, screen: b, fullScreen: x, entity: S, entityCode:
|
|
|
101
101
|
v
|
|
102
102
|
]),
|
|
103
103
|
widgetContext: L,
|
|
104
|
-
hasPeek: h(() => _(z,
|
|
104
|
+
hasPeek: h(() => _(z, e), [z])
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
//#endregion
|
|
108
107
|
export { v as useRowMenu };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/pages/list/visible-filters.ts
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
let n = !1, r = (e) => e.flatMap((e) => {
|
|
4
4
|
if (e.or || e.and) {
|
|
@@ -15,5 +15,4 @@ function e(e, t) {
|
|
|
15
15
|
omitted: n
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { e as visibleFilters };
|
|
@@ -1,18 +1,18 @@
|
|
|
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 {
|
|
1
|
+
import { Icon as e } from "../../primitives/Icons.js";
|
|
2
|
+
import { Kbd as t } from "../../primitives/Kbd.js";
|
|
3
|
+
import { SectionCard as n } from "../../primitives/SectionCard.js";
|
|
4
|
+
import { BoolToggle as r } from "../../primitives/BoolToggle.js";
|
|
5
|
+
import { Btn as i } from "../../primitives/Btn.js";
|
|
6
|
+
import { PageHeader as a } from "../../chrome/PageHeader.js";
|
|
7
|
+
import { PageShell as o } from "../../chrome/PageShell.js";
|
|
8
|
+
import { FieldRow as s, FieldsGrid as c } from "../../detail-layout/FieldRow.js";
|
|
9
|
+
import { usePreferencesStore as l } from "../../../stores/preferences.js";
|
|
10
|
+
import { useUiPreferences as u } from "../../../hooks/useUiPreferences.js";
|
|
11
|
+
import { useText as d } from "../../../hooks/useText.js";
|
|
12
|
+
import { cn as f } from "../../../lib/utils.js";
|
|
13
|
+
import { shortcutLabel as p } from "../../../lib/shortcut.js";
|
|
14
14
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
15
|
-
|
|
15
|
+
// src/components/pages/profile/Preferences.impl.tsx
|
|
16
16
|
var g = [
|
|
17
17
|
"violet",
|
|
18
18
|
"blue",
|
|
@@ -39,22 +39,22 @@ var g = [
|
|
|
39
39
|
[
|
|
40
40
|
"profile.preferences.shortcut.command_palette",
|
|
41
41
|
"Command palette",
|
|
42
|
-
|
|
42
|
+
p("K")
|
|
43
43
|
],
|
|
44
44
|
[
|
|
45
45
|
"profile.preferences.shortcut.assistant",
|
|
46
46
|
"Toggle AI assistant",
|
|
47
|
-
|
|
47
|
+
p("/")
|
|
48
48
|
],
|
|
49
49
|
[
|
|
50
50
|
"profile.preferences.shortcut.sidebar",
|
|
51
51
|
"Collapse sidebar",
|
|
52
|
-
|
|
52
|
+
p("B")
|
|
53
53
|
],
|
|
54
54
|
[
|
|
55
55
|
"profile.preferences.shortcut.close_tab",
|
|
56
56
|
"Close current tab",
|
|
57
|
-
|
|
57
|
+
p("W")
|
|
58
58
|
],
|
|
59
59
|
[
|
|
60
60
|
"profile.preferences.shortcut.search",
|
|
@@ -68,60 +68,60 @@ var g = [
|
|
|
68
68
|
]
|
|
69
69
|
];
|
|
70
70
|
function b() {
|
|
71
|
-
let
|
|
71
|
+
let p = l((e) => e.colorScheme), b = l((e) => e.accent), S = l((e) => e.density), C = l((e) => e.radius), w = l((e) => e.zebra), T = l((e) => e.set), E = u(), D = d(), O = () => {
|
|
72
72
|
E.saveCurrent();
|
|
73
73
|
}, k = (e, t) => {
|
|
74
74
|
E.set(e, t);
|
|
75
75
|
};
|
|
76
|
-
return /* @__PURE__ */ h(
|
|
77
|
-
header: /* @__PURE__ */ m(
|
|
76
|
+
return /* @__PURE__ */ h(o, {
|
|
77
|
+
header: /* @__PURE__ */ m(a, {
|
|
78
78
|
title: D("profile.preferences", "Preferences"),
|
|
79
|
-
actions: /* @__PURE__ */ m(
|
|
80
|
-
icon: /* @__PURE__ */ m(
|
|
79
|
+
actions: /* @__PURE__ */ m(i, {
|
|
80
|
+
icon: /* @__PURE__ */ m(e.refresh, { size: 13 }),
|
|
81
81
|
onClick: () => {
|
|
82
82
|
E.reset();
|
|
83
83
|
},
|
|
84
84
|
children: D("profile.preferences.reset", "Reset to defaults")
|
|
85
85
|
})
|
|
86
86
|
}),
|
|
87
|
-
children: [/* @__PURE__ */ m(
|
|
87
|
+
children: [/* @__PURE__ */ m(n, {
|
|
88
88
|
title: D("profile.preferences.appearance", "Appearance"),
|
|
89
|
-
icon: /* @__PURE__ */ m(
|
|
90
|
-
children: /* @__PURE__ */ h(
|
|
91
|
-
/* @__PURE__ */ m(
|
|
89
|
+
icon: /* @__PURE__ */ m(e.moon, { size: 14 }),
|
|
90
|
+
children: /* @__PURE__ */ h(c, { children: [
|
|
91
|
+
/* @__PURE__ */ m(s, {
|
|
92
92
|
label: D("profile.preferences.theme", "Theme"),
|
|
93
|
-
children: /* @__PURE__ */ m(x, { children: [["light", D("profile.preferences.theme.light", "Light")], ["dark", D("profile.preferences.theme.dark", "Dark")]].map(([e, t]) => /* @__PURE__ */ m(
|
|
94
|
-
kind:
|
|
95
|
-
"aria-pressed":
|
|
93
|
+
children: /* @__PURE__ */ m(x, { children: [["light", D("profile.preferences.theme.light", "Light")], ["dark", D("profile.preferences.theme.dark", "Dark")]].map(([e, t]) => /* @__PURE__ */ m(i, {
|
|
94
|
+
kind: p === e ? "primary" : "default",
|
|
95
|
+
"aria-pressed": p === e,
|
|
96
96
|
onClick: () => k("colorScheme", e),
|
|
97
97
|
children: t
|
|
98
98
|
}, e)) })
|
|
99
99
|
}),
|
|
100
|
-
/* @__PURE__ */ m(
|
|
100
|
+
/* @__PURE__ */ m(s, {
|
|
101
101
|
label: D("profile.preferences.accent", "Accent color"),
|
|
102
102
|
hint: D("profile.preferences.accent_hint", "Your personal accent across the app"),
|
|
103
103
|
children: /* @__PURE__ */ m(x, { children: g.map((e) => /* @__PURE__ */ m("button", {
|
|
104
104
|
type: "button",
|
|
105
105
|
"data-accent": e,
|
|
106
|
-
"data-color-scheme":
|
|
106
|
+
"data-color-scheme": p,
|
|
107
107
|
onClick: () => k("accent", e),
|
|
108
108
|
"aria-label": D(`profile.preferences.accent.${e}`, `Accent ${e}`),
|
|
109
109
|
"aria-pressed": b === e,
|
|
110
110
|
style: { background: "var(--accent)" },
|
|
111
|
-
className:
|
|
111
|
+
className: f("size-6 cursor-pointer rounded-md border-2", b === e ? "border-foreground" : "border-transparent")
|
|
112
112
|
}, e)) })
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */ m(
|
|
114
|
+
/* @__PURE__ */ m(s, {
|
|
115
115
|
label: D("profile.preferences.density", "Density"),
|
|
116
116
|
hint: D("profile.preferences.density_hint", "Compact saves space; cozy is easier on the eyes"),
|
|
117
|
-
children: /* @__PURE__ */ m(x, { children: _.map(([e, t,
|
|
117
|
+
children: /* @__PURE__ */ m(x, { children: _.map(([e, t, n]) => /* @__PURE__ */ m(i, {
|
|
118
118
|
kind: S === e ? "primary" : "default",
|
|
119
119
|
"aria-pressed": S === e,
|
|
120
120
|
onClick: () => k("density", e),
|
|
121
|
-
children: D(t,
|
|
121
|
+
children: D(t, n)
|
|
122
122
|
}, e)) })
|
|
123
123
|
}),
|
|
124
|
-
/* @__PURE__ */ m(
|
|
124
|
+
/* @__PURE__ */ m(s, {
|
|
125
125
|
label: D("profile.preferences.radius", "Border radius"),
|
|
126
126
|
children: /* @__PURE__ */ h(x, { children: [/* @__PURE__ */ m("input", {
|
|
127
127
|
type: "range",
|
|
@@ -137,23 +137,23 @@ function b() {
|
|
|
137
137
|
children: [C, v]
|
|
138
138
|
})] })
|
|
139
139
|
}),
|
|
140
|
-
/* @__PURE__ */ m(
|
|
140
|
+
/* @__PURE__ */ m(s, {
|
|
141
141
|
label: D("profile.preferences.zebra", "Zebra rows"),
|
|
142
142
|
labelId: "preferences-zebra",
|
|
143
143
|
hint: D("profile.preferences.zebra_hint", "Alternating row backgrounds on tables"),
|
|
144
|
-
children: /* @__PURE__ */ m(
|
|
144
|
+
children: /* @__PURE__ */ m(r, {
|
|
145
145
|
value: w,
|
|
146
146
|
ariaLabelledby: "preferences-zebra",
|
|
147
147
|
onChange: (e) => k("zebra", e)
|
|
148
148
|
})
|
|
149
149
|
})
|
|
150
150
|
] })
|
|
151
|
-
}), /* @__PURE__ */ m(
|
|
151
|
+
}), /* @__PURE__ */ m(n, {
|
|
152
152
|
title: D("profile.preferences.keyboard", "Keyboard"),
|
|
153
|
-
icon: /* @__PURE__ */ m(
|
|
154
|
-
children: /* @__PURE__ */ m(
|
|
155
|
-
label: D(e,
|
|
156
|
-
children: /* @__PURE__ */ m(
|
|
153
|
+
icon: /* @__PURE__ */ m(e.command, { size: 14 }),
|
|
154
|
+
children: /* @__PURE__ */ m(c, { children: y.map(([e, n, r]) => /* @__PURE__ */ m(s, {
|
|
155
|
+
label: D(e, n),
|
|
156
|
+
children: /* @__PURE__ */ m(t, { children: r })
|
|
157
157
|
}, e)) })
|
|
158
158
|
})]
|
|
159
159
|
});
|
|
@@ -164,5 +164,4 @@ function x({ children: e }) {
|
|
|
164
164
|
children: e
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
//#endregion
|
|
168
167
|
export { b as Preferences };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/pages/profile/Preferences.tsx
|
|
4
4
|
var r = t(() => import("./Preferences.impl.js").then((e) => ({ default: e.Preferences })));
|
|
5
5
|
function i() {
|
|
6
6
|
return /* @__PURE__ */ n(e, {
|
|
@@ -8,5 +8,4 @@ function i() {
|
|
|
8
8
|
children: /* @__PURE__ */ n(r, {})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as Preferences };
|