@declarion/react 0.142.0 → 0.147.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,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Icon as e } from "./Icons.js";
|
|
2
|
+
import { Dropdown as t } from "./Dropdown.js";
|
|
3
|
+
import { MenuItem as n } from "./MenuItem.js";
|
|
4
|
+
import { Chip as r } from "./Chip.js";
|
|
3
5
|
import { Btn as i } from "./Btn.js";
|
|
4
6
|
import { IconBtn as a } from "./IconBtn.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { BoolToggle as l } from "./BoolToggle.js";
|
|
9
|
-
import { MenuItem as u } from "./MenuItem.js";
|
|
7
|
+
import { BoolToggle as o } from "./BoolToggle.js";
|
|
8
|
+
import { useText as s } from "../../hooks/useText.js";
|
|
9
|
+
import { formatDateText as c, isDateDraft as l, parseDateText as u } from "../../lib/date-text.js";
|
|
10
10
|
import { useId as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
11
11
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
var v = ({ children:
|
|
12
|
+
// src/components/primitives/Fields.tsx
|
|
13
|
+
var v = ({ children: t, required: n, hint: r, htmlFor: i, id: a }) => /* @__PURE__ */ _("div", {
|
|
14
14
|
style: {
|
|
15
15
|
display: "flex",
|
|
16
16
|
alignItems: "center",
|
|
@@ -25,24 +25,24 @@ var v = ({ children: e, required: t, hint: n, htmlFor: i, id: a }) => /* @__PURE
|
|
|
25
25
|
i ? /* @__PURE__ */ g("label", {
|
|
26
26
|
id: a,
|
|
27
27
|
htmlFor: i,
|
|
28
|
-
children:
|
|
28
|
+
children: t
|
|
29
29
|
}) : /* @__PURE__ */ g("span", {
|
|
30
30
|
id: a,
|
|
31
|
-
children:
|
|
31
|
+
children: t
|
|
32
32
|
}),
|
|
33
|
-
|
|
33
|
+
n && /* @__PURE__ */ g("span", {
|
|
34
34
|
"aria-hidden": "true",
|
|
35
35
|
style: { color: "var(--danger)" },
|
|
36
36
|
children: "*"
|
|
37
37
|
}),
|
|
38
|
-
|
|
39
|
-
title:
|
|
38
|
+
r && /* @__PURE__ */ g("span", {
|
|
39
|
+
title: r,
|
|
40
40
|
style: {
|
|
41
41
|
cursor: "help",
|
|
42
42
|
color: "var(--text-4)",
|
|
43
43
|
display: "flex"
|
|
44
44
|
},
|
|
45
|
-
children: /* @__PURE__ */ g(
|
|
45
|
+
children: /* @__PURE__ */ g(e.info, { size: 11 })
|
|
46
46
|
})
|
|
47
47
|
]
|
|
48
48
|
}), y = {
|
|
@@ -146,20 +146,20 @@ var S = 20, C = 100;
|
|
|
146
146
|
function w(e) {
|
|
147
147
|
return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.value;
|
|
148
148
|
}
|
|
149
|
-
function T({ value:
|
|
150
|
-
let
|
|
151
|
-
T(e),
|
|
149
|
+
function T({ value: r, options: i, onChange: a, placeholder: o, onSearchChange: c, ...l }) {
|
|
150
|
+
let u = s(), [d, v] = m(!1), [x, T] = m(""), E = p(null), D = i.find((e) => !e.heading && !e.divider && e.value === r), O = i.filter((e) => !e.heading && !e.divider).length, k = !!c, A = k || O > S, j = (e) => {
|
|
151
|
+
T(e), c?.(e);
|
|
152
152
|
}, M = f(() => {
|
|
153
|
-
if (k) return
|
|
153
|
+
if (k) return i.slice(0, C);
|
|
154
154
|
let e = x.trim().toLowerCase();
|
|
155
|
-
return e ?
|
|
155
|
+
return e ? i.filter((t) => !t.heading && !t.divider && w(t).toLowerCase().includes(e)).slice(0, C) : i.slice(0, C);
|
|
156
156
|
}, [
|
|
157
|
-
|
|
157
|
+
i,
|
|
158
158
|
x,
|
|
159
159
|
k
|
|
160
160
|
]);
|
|
161
161
|
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("button", {
|
|
162
|
-
...
|
|
162
|
+
...l,
|
|
163
163
|
type: "button",
|
|
164
164
|
ref: E,
|
|
165
165
|
"aria-haspopup": "listbox",
|
|
@@ -177,7 +177,7 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
|
|
|
177
177
|
justifyContent: "space-between",
|
|
178
178
|
textAlign: "left",
|
|
179
179
|
cursor: "pointer",
|
|
180
|
-
...
|
|
180
|
+
...l.style,
|
|
181
181
|
color: D ? "var(--text)" : "var(--text-placeholder)"
|
|
182
182
|
},
|
|
183
183
|
children: [/* @__PURE__ */ g("span", {
|
|
@@ -189,8 +189,8 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
|
|
|
189
189
|
textOverflow: "ellipsis",
|
|
190
190
|
whiteSpace: "nowrap"
|
|
191
191
|
},
|
|
192
|
-
children: D ? D.label :
|
|
193
|
-
}), /* @__PURE__ */ g(
|
|
192
|
+
children: D ? D.label : o ?? u("control.select.placeholder", "Select…")
|
|
193
|
+
}), /* @__PURE__ */ g(e.down, {
|
|
194
194
|
size: 12,
|
|
195
195
|
cls: "",
|
|
196
196
|
style: {
|
|
@@ -198,7 +198,7 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
|
|
|
198
198
|
flexShrink: 0
|
|
199
199
|
}
|
|
200
200
|
})]
|
|
201
|
-
}), /* @__PURE__ */ _(
|
|
201
|
+
}), /* @__PURE__ */ _(t, {
|
|
202
202
|
open: d,
|
|
203
203
|
anchor: E.current,
|
|
204
204
|
onClose: () => v(!1),
|
|
@@ -219,15 +219,15 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
|
|
|
219
219
|
children: /* @__PURE__ */ g(b, {
|
|
220
220
|
value: x,
|
|
221
221
|
onChange: j,
|
|
222
|
-
placeholder:
|
|
223
|
-
prefix: /* @__PURE__ */ g(
|
|
222
|
+
placeholder: u("control.search", "Search…"),
|
|
223
|
+
prefix: /* @__PURE__ */ g(e.search, { size: 12 }),
|
|
224
224
|
autoFocus: !0
|
|
225
225
|
})
|
|
226
226
|
}),
|
|
227
|
-
M.map((
|
|
227
|
+
M.map((e, t) => e.divider ? /* @__PURE__ */ g("div", { style: {
|
|
228
228
|
borderTop: "1px solid var(--divider)",
|
|
229
229
|
margin: "4px 0"
|
|
230
|
-
} }, `divider-${
|
|
230
|
+
} }, `divider-${t}`) : e.heading ? /* @__PURE__ */ g("div", {
|
|
231
231
|
style: {
|
|
232
232
|
padding: "6px 10px 2px",
|
|
233
233
|
fontSize: 10.5,
|
|
@@ -236,39 +236,39 @@ function T({ value: e, options: t, onChange: n, placeholder: i, onSearchChange:
|
|
|
236
236
|
textTransform: "uppercase",
|
|
237
237
|
letterSpacing: "0.06em"
|
|
238
238
|
},
|
|
239
|
-
children:
|
|
240
|
-
}, `heading-${
|
|
239
|
+
children: e.label
|
|
240
|
+
}, `heading-${t}`) : /* @__PURE__ */ g(n, {
|
|
241
241
|
onClick: () => {
|
|
242
|
-
|
|
242
|
+
a(e.value), v(!1);
|
|
243
243
|
},
|
|
244
|
-
active:
|
|
245
|
-
children:
|
|
246
|
-
},
|
|
244
|
+
active: e.value === r,
|
|
245
|
+
children: e.label
|
|
246
|
+
}, e.value)),
|
|
247
247
|
M.length === 0 && /* @__PURE__ */ g("div", {
|
|
248
248
|
style: {
|
|
249
249
|
padding: "8px 10px",
|
|
250
250
|
fontSize: 12.5,
|
|
251
251
|
color: "var(--text-3)"
|
|
252
252
|
},
|
|
253
|
-
children:
|
|
253
|
+
children: u("control.no_matches", "No matches")
|
|
254
254
|
})
|
|
255
255
|
]
|
|
256
256
|
})] });
|
|
257
257
|
}
|
|
258
|
-
function E({ value:
|
|
259
|
-
let
|
|
258
|
+
function E({ value: r = [], options: i, onChange: a, placeholder: o, ...c }) {
|
|
259
|
+
let l = s(), [u, d] = m(!1), [v, x] = m(""), T = p(null), E = i.filter((e) => !e.heading && !e.divider), D = E.length > S, O = r.map((e) => E.find((t) => t.value === e) ?? {
|
|
260
260
|
value: e,
|
|
261
261
|
label: e
|
|
262
262
|
}), k = f(() => {
|
|
263
263
|
let e = v.trim().toLowerCase();
|
|
264
|
-
return e ?
|
|
265
|
-
}, [
|
|
264
|
+
return e ? i.filter((t) => !t.heading && !t.divider && w(t).toLowerCase().includes(e)).slice(0, C) : i.slice(0, C);
|
|
265
|
+
}, [i, v]), A = (e) => a(r.includes(e) ? r.filter((t) => t !== e) : [...r, e]);
|
|
266
266
|
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("button", {
|
|
267
|
-
...
|
|
267
|
+
...c,
|
|
268
268
|
type: "button",
|
|
269
269
|
ref: T,
|
|
270
270
|
"aria-haspopup": "listbox",
|
|
271
|
-
"aria-expanded":
|
|
271
|
+
"aria-expanded": u,
|
|
272
272
|
onClick: () => {
|
|
273
273
|
d((e) => {
|
|
274
274
|
let t = !e;
|
|
@@ -286,15 +286,15 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
286
286
|
padding: O.length ? "3px 8px" : "0 10px",
|
|
287
287
|
textAlign: "left",
|
|
288
288
|
cursor: "pointer",
|
|
289
|
-
...
|
|
289
|
+
...c.style
|
|
290
290
|
},
|
|
291
291
|
children: [O.length === 0 ? /* @__PURE__ */ g("span", {
|
|
292
292
|
style: {
|
|
293
293
|
flex: 1,
|
|
294
294
|
color: "var(--text-placeholder)"
|
|
295
295
|
},
|
|
296
|
-
children:
|
|
297
|
-
}) : O.map((
|
|
296
|
+
children: o ?? l("control.select.placeholder", "Select…")
|
|
297
|
+
}) : O.map((t) => /* @__PURE__ */ _("span", {
|
|
298
298
|
style: {
|
|
299
299
|
display: "inline-flex",
|
|
300
300
|
alignItems: "center",
|
|
@@ -314,12 +314,12 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
314
314
|
textOverflow: "ellipsis",
|
|
315
315
|
whiteSpace: "nowrap"
|
|
316
316
|
},
|
|
317
|
-
children:
|
|
317
|
+
children: t.label
|
|
318
318
|
}), /* @__PURE__ */ g("span", {
|
|
319
319
|
role: "button",
|
|
320
|
-
"aria-label":
|
|
321
|
-
onClick: (
|
|
322
|
-
|
|
320
|
+
"aria-label": l("control.remove_value", "Remove {value}", { value: w(t) }),
|
|
321
|
+
onClick: (e) => {
|
|
322
|
+
e.stopPropagation(), A(t.value);
|
|
323
323
|
},
|
|
324
324
|
style: {
|
|
325
325
|
display: "flex",
|
|
@@ -327,9 +327,9 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
327
327
|
cursor: "pointer",
|
|
328
328
|
flexShrink: 0
|
|
329
329
|
},
|
|
330
|
-
children: /* @__PURE__ */ g(
|
|
330
|
+
children: /* @__PURE__ */ g(e.x, { size: 12 })
|
|
331
331
|
})]
|
|
332
|
-
},
|
|
332
|
+
}, t.value)), /* @__PURE__ */ g(e.down, {
|
|
333
333
|
size: 12,
|
|
334
334
|
cls: "",
|
|
335
335
|
style: {
|
|
@@ -338,8 +338,8 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
338
338
|
flexShrink: 0
|
|
339
339
|
}
|
|
340
340
|
})]
|
|
341
|
-
}), /* @__PURE__ */ _(
|
|
342
|
-
open:
|
|
341
|
+
}), /* @__PURE__ */ _(t, {
|
|
342
|
+
open: u,
|
|
343
343
|
anchor: T.current,
|
|
344
344
|
onClose: () => d(!1),
|
|
345
345
|
width: T.current?.offsetWidth,
|
|
@@ -359,16 +359,16 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
359
359
|
children: /* @__PURE__ */ g(b, {
|
|
360
360
|
value: v,
|
|
361
361
|
onChange: x,
|
|
362
|
-
placeholder:
|
|
363
|
-
prefix: /* @__PURE__ */ g(
|
|
362
|
+
placeholder: l("control.search", "Search…"),
|
|
363
|
+
prefix: /* @__PURE__ */ g(e.search, { size: 12 }),
|
|
364
364
|
autoFocus: !0
|
|
365
365
|
})
|
|
366
366
|
}),
|
|
367
|
-
k.map((t,
|
|
367
|
+
k.map((t, i) => {
|
|
368
368
|
if (t.divider) return /* @__PURE__ */ g("div", { style: {
|
|
369
369
|
borderTop: "1px solid var(--divider)",
|
|
370
370
|
margin: "4px 0"
|
|
371
|
-
} }, `divider-${
|
|
371
|
+
} }, `divider-${i}`);
|
|
372
372
|
if (t.heading) return /* @__PURE__ */ g("div", {
|
|
373
373
|
style: {
|
|
374
374
|
padding: "6px 10px 2px",
|
|
@@ -379,11 +379,11 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
379
379
|
letterSpacing: "0.06em"
|
|
380
380
|
},
|
|
381
381
|
children: t.label
|
|
382
|
-
}, `heading-${
|
|
383
|
-
let
|
|
384
|
-
return /* @__PURE__ */ g(
|
|
385
|
-
active:
|
|
386
|
-
icon:
|
|
382
|
+
}, `heading-${i}`);
|
|
383
|
+
let a = r.includes(t.value);
|
|
384
|
+
return /* @__PURE__ */ g(n, {
|
|
385
|
+
active: a,
|
|
386
|
+
icon: a ? /* @__PURE__ */ g(e.check, { size: 13 }) : /* @__PURE__ */ g("span", { style: {
|
|
387
387
|
display: "inline-block",
|
|
388
388
|
width: 13
|
|
389
389
|
} }),
|
|
@@ -397,15 +397,15 @@ function E({ value: e = [], options: t, onChange: n, placeholder: i, ...a }) {
|
|
|
397
397
|
fontSize: 12.5,
|
|
398
398
|
color: "var(--text-3)"
|
|
399
399
|
},
|
|
400
|
-
children:
|
|
400
|
+
children: l("control.no_matches", "No matches")
|
|
401
401
|
})
|
|
402
402
|
]
|
|
403
403
|
})] });
|
|
404
404
|
}
|
|
405
|
-
function D({ kind:
|
|
406
|
-
let h =
|
|
407
|
-
|
|
408
|
-
let O =
|
|
405
|
+
function D({ kind: t, value: n, onChange: r, id: i, name: o, ariaRequired: f }) {
|
|
406
|
+
let h = s(), v = `${d()}-error`, y = p(null), x = n ? c(t, n) : "", [S, C] = m(x), [w, T] = m(n), [E, D] = m(!1);
|
|
407
|
+
n !== w && (T(n), (n === null ? S !== "" : u(t, S) !== (n || null)) && (C(x), D(!1)));
|
|
408
|
+
let O = t === "date" ? {
|
|
409
409
|
placeholder: h("control.date.placeholder", "DD-MM-YYYY"),
|
|
410
410
|
invalid: h("control.date.invalid", "Enter the date as DD-MM-YYYY.")
|
|
411
411
|
} : {
|
|
@@ -419,23 +419,23 @@ function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f })
|
|
|
419
419
|
gap: 4
|
|
420
420
|
},
|
|
421
421
|
children: [/* @__PURE__ */ g(b, {
|
|
422
|
-
id:
|
|
423
|
-
name:
|
|
422
|
+
id: i,
|
|
423
|
+
name: o,
|
|
424
424
|
"aria-required": f || void 0,
|
|
425
425
|
"aria-invalid": E || void 0,
|
|
426
426
|
"aria-describedby": E ? v : void 0,
|
|
427
427
|
type: "text",
|
|
428
|
-
inputMode:
|
|
428
|
+
inputMode: t === "date" ? "numeric" : void 0,
|
|
429
429
|
autoComplete: "off",
|
|
430
430
|
placeholder: O.placeholder,
|
|
431
431
|
value: S,
|
|
432
432
|
onChange: (e) => {
|
|
433
|
-
|
|
433
|
+
l(e) && (C(e), D(!1), r(e.trim() === "" ? null : u(t, e), e));
|
|
434
434
|
},
|
|
435
435
|
onBlur: () => {
|
|
436
436
|
if (S.trim() === "") return;
|
|
437
|
-
let
|
|
438
|
-
|
|
437
|
+
let e = u(t, S);
|
|
438
|
+
e ? C(c(t, e)) : D(!0);
|
|
439
439
|
},
|
|
440
440
|
suffix: /* @__PURE__ */ _("span", {
|
|
441
441
|
style: {
|
|
@@ -443,7 +443,7 @@ function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f })
|
|
|
443
443
|
display: "flex"
|
|
444
444
|
},
|
|
445
445
|
children: [/* @__PURE__ */ g(a, {
|
|
446
|
-
icon: /* @__PURE__ */ g(
|
|
446
|
+
icon: /* @__PURE__ */ g(e.calendar, { size: 13 }),
|
|
447
447
|
title: k,
|
|
448
448
|
size: 22,
|
|
449
449
|
onClick: () => {
|
|
@@ -456,13 +456,13 @@ function D({ kind: i, value: o, onChange: s, id: l, name: u, ariaRequired: f })
|
|
|
456
456
|
}
|
|
457
457
|
}), /* @__PURE__ */ g("input", {
|
|
458
458
|
ref: y,
|
|
459
|
-
type:
|
|
459
|
+
type: t === "date" ? "date" : "datetime-local",
|
|
460
460
|
tabIndex: -1,
|
|
461
461
|
"aria-hidden": "true",
|
|
462
|
-
value:
|
|
463
|
-
onChange: (
|
|
464
|
-
let n =
|
|
465
|
-
C(
|
|
462
|
+
value: n ?? "",
|
|
463
|
+
onChange: (e) => {
|
|
464
|
+
let n = e.target.value, i = n ? c(t, n) : "";
|
|
465
|
+
C(i), D(!1), r(n || null, i);
|
|
466
466
|
},
|
|
467
467
|
style: {
|
|
468
468
|
position: "absolute",
|
|
@@ -502,16 +502,16 @@ var k = [
|
|
|
502
502
|
"var(--accent)",
|
|
503
503
|
"var(--success, #3FBF8F)"
|
|
504
504
|
];
|
|
505
|
-
function j({ value:
|
|
506
|
-
let l =
|
|
505
|
+
function j({ value: t, onChange: n, placeholder: r, showStrength: i, id: a, name: o, ariaRequired: c }) {
|
|
506
|
+
let l = s(), [u, d] = m(!1), f = t || "", p = O(f);
|
|
507
507
|
return /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(b, {
|
|
508
508
|
id: a,
|
|
509
509
|
name: o,
|
|
510
|
-
"aria-required":
|
|
510
|
+
"aria-required": c || void 0,
|
|
511
511
|
type: u ? "text" : "password",
|
|
512
512
|
value: f,
|
|
513
|
-
onChange:
|
|
514
|
-
placeholder:
|
|
513
|
+
onChange: n,
|
|
514
|
+
placeholder: r ?? l("control.password.placeholder", "Enter password"),
|
|
515
515
|
suffix: /* @__PURE__ */ g("button", {
|
|
516
516
|
type: "button",
|
|
517
517
|
"aria-label": u ? l("control.password.hide", "Hide password") : l("control.password.show", "Show password"),
|
|
@@ -524,7 +524,7 @@ function j({ value: e, onChange: t, placeholder: n, showStrength: i, id: a, name
|
|
|
524
524
|
display: "flex"
|
|
525
525
|
},
|
|
526
526
|
onClick: () => d((e) => !e),
|
|
527
|
-
children: g(u ?
|
|
527
|
+
children: g(u ? e.eyeOff : e.eye, { size: 14 })
|
|
528
528
|
})
|
|
529
529
|
}), i && /* @__PURE__ */ _("div", {
|
|
530
530
|
style: {
|
|
@@ -563,7 +563,7 @@ function j({ value: e, onChange: t, placeholder: n, showStrength: i, id: a, name
|
|
|
563
563
|
})] });
|
|
564
564
|
}
|
|
565
565
|
function M({ value: e = [], onChange: t }) {
|
|
566
|
-
let n =
|
|
566
|
+
let n = s(), [i, a] = m("");
|
|
567
567
|
return /* @__PURE__ */ _("div", {
|
|
568
568
|
style: {
|
|
569
569
|
...y,
|
|
@@ -575,15 +575,15 @@ function M({ value: e = [], onChange: t }) {
|
|
|
575
575
|
padding: "4px 6px",
|
|
576
576
|
alignItems: "center"
|
|
577
577
|
},
|
|
578
|
-
children: [e.map((n,
|
|
578
|
+
children: [e.map((n, i) => /* @__PURE__ */ g(r, {
|
|
579
579
|
tone: "slate",
|
|
580
|
-
onRemove: () => t(e.filter((e, t) => t !==
|
|
580
|
+
onRemove: () => t(e.filter((e, t) => t !== i)),
|
|
581
581
|
children: n
|
|
582
|
-
},
|
|
583
|
-
value:
|
|
584
|
-
onChange: (e) =>
|
|
582
|
+
}, i)), /* @__PURE__ */ g("input", {
|
|
583
|
+
value: i,
|
|
584
|
+
onChange: (e) => a(e.target.value),
|
|
585
585
|
onKeyDown: (n) => {
|
|
586
|
-
n.key === "Enter" &&
|
|
586
|
+
n.key === "Enter" && i.trim() && (t([...e, i.trim()]), a(""), n.preventDefault()), n.key === "Backspace" && !i && e.length && t(e.slice(0, -1));
|
|
587
587
|
},
|
|
588
588
|
placeholder: e.length ? "" : n("control.tags.placeholder", "Add tag… (Enter)"),
|
|
589
589
|
style: {
|
|
@@ -600,7 +600,7 @@ function M({ value: e = [], onChange: t }) {
|
|
|
600
600
|
}
|
|
601
601
|
var N = "JSON";
|
|
602
602
|
function P({ value: e, onChange: t }) {
|
|
603
|
-
let n =
|
|
603
|
+
let n = s();
|
|
604
604
|
return /* @__PURE__ */ _("div", {
|
|
605
605
|
style: {
|
|
606
606
|
border: "1px solid var(--border)",
|
|
@@ -659,13 +659,13 @@ function P({ value: e, onChange: t }) {
|
|
|
659
659
|
})]
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
function F({ value:
|
|
663
|
-
let d =
|
|
662
|
+
function F({ value: r, entity: i = "company", onChange: a, items: o = [], id: c, ariaLabelledby: l, ariaRequired: u }) {
|
|
663
|
+
let d = s(), [f, v] = m(!1), x = p(null);
|
|
664
664
|
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("button", {
|
|
665
665
|
type: "button",
|
|
666
|
-
id:
|
|
667
|
-
"aria-labelledby":
|
|
668
|
-
"aria-required":
|
|
666
|
+
id: c,
|
|
667
|
+
"aria-labelledby": l,
|
|
668
|
+
"aria-required": u || void 0,
|
|
669
669
|
ref: x,
|
|
670
670
|
onClick: () => v(!0),
|
|
671
671
|
style: {
|
|
@@ -694,17 +694,17 @@ function F({ value: e, entity: t = "company", onChange: n, items: i = [], id: a,
|
|
|
694
694
|
alignItems: "center",
|
|
695
695
|
justifyContent: "center"
|
|
696
696
|
},
|
|
697
|
-
children: /* @__PURE__ */ g(
|
|
697
|
+
children: /* @__PURE__ */ g(e.link, { size: 11 })
|
|
698
698
|
}), /* @__PURE__ */ g("span", {
|
|
699
|
-
style: { color:
|
|
700
|
-
children:
|
|
699
|
+
style: { color: r ? "var(--accent)" : "var(--text-placeholder)" },
|
|
700
|
+
children: r || d("control.ref.link_to", "Link to {entity}…", { entity: i })
|
|
701
701
|
})]
|
|
702
|
-
}), /* @__PURE__ */ g(
|
|
702
|
+
}), /* @__PURE__ */ g(e.search, {
|
|
703
703
|
size: 12,
|
|
704
704
|
cls: "",
|
|
705
705
|
style: { color: "var(--text-3)" }
|
|
706
706
|
})]
|
|
707
|
-
}), /* @__PURE__ */ _(
|
|
707
|
+
}), /* @__PURE__ */ _(t, {
|
|
708
708
|
open: f,
|
|
709
709
|
anchor: x.current,
|
|
710
710
|
onClose: () => v(!1),
|
|
@@ -712,17 +712,17 @@ function F({ value: e, entity: t = "company", onChange: n, items: i = [], id: a,
|
|
|
712
712
|
children: [/* @__PURE__ */ g("div", {
|
|
713
713
|
style: { padding: 4 },
|
|
714
714
|
children: /* @__PURE__ */ g(b, {
|
|
715
|
-
placeholder: d("control.ref.search", "Search {entity}…", { entity:
|
|
716
|
-
prefix: /* @__PURE__ */ g(
|
|
715
|
+
placeholder: d("control.ref.search", "Search {entity}…", { entity: i }),
|
|
716
|
+
prefix: /* @__PURE__ */ g(e.search, { size: 12 }),
|
|
717
717
|
style: { marginBottom: 4 }
|
|
718
718
|
})
|
|
719
|
-
}),
|
|
720
|
-
icon: /* @__PURE__ */ g(
|
|
719
|
+
}), o.slice(0, 6).map((t) => /* @__PURE__ */ g(n, {
|
|
720
|
+
icon: /* @__PURE__ */ g(e.building, { size: 13 }),
|
|
721
721
|
onClick: () => {
|
|
722
|
-
|
|
722
|
+
a?.(t.name), v(!1);
|
|
723
723
|
},
|
|
724
|
-
children:
|
|
725
|
-
},
|
|
724
|
+
children: t.name
|
|
725
|
+
}, t.id))]
|
|
726
726
|
})] });
|
|
727
727
|
}
|
|
728
728
|
function I({ label: e, children: t, mono: n, wide: r, empty: i }) {
|
|
@@ -758,13 +758,13 @@ function I({ label: e, children: t, mono: n, wide: r, empty: i }) {
|
|
|
758
758
|
})]
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
|
-
function L({ value:
|
|
762
|
-
let
|
|
763
|
-
d !== void 0 &&
|
|
761
|
+
function L({ value: t, onChange: n, type: r = "text", options: i }) {
|
|
762
|
+
let c = s(), [l, u] = m(!1), [d, f] = m(t), p = () => {
|
|
763
|
+
d !== void 0 && n?.(d), u(!1);
|
|
764
764
|
}, v = () => {
|
|
765
|
-
f(
|
|
765
|
+
f(t), u(!1);
|
|
766
766
|
};
|
|
767
|
-
return
|
|
767
|
+
return l ? /* @__PURE__ */ _("div", {
|
|
768
768
|
style: {
|
|
769
769
|
display: "flex",
|
|
770
770
|
alignItems: "center",
|
|
@@ -773,32 +773,32 @@ function L({ value: e, onChange: t, type: n = "text", options: i }) {
|
|
|
773
773
|
onKeyDown: (e) => {
|
|
774
774
|
e.key === "Enter" && p(), e.key === "Escape" && v();
|
|
775
775
|
},
|
|
776
|
-
children: [
|
|
776
|
+
children: [r === "select" ? /* @__PURE__ */ g(T, {
|
|
777
777
|
value: d,
|
|
778
778
|
options: i || [],
|
|
779
779
|
onChange: (e) => {
|
|
780
|
-
f(e),
|
|
780
|
+
f(e), n?.(e), u(!1);
|
|
781
781
|
}
|
|
782
|
-
}) :
|
|
782
|
+
}) : r === "bool" ? /* @__PURE__ */ g(o, {
|
|
783
783
|
value: d === "true",
|
|
784
784
|
onChange: (e) => {
|
|
785
|
-
let
|
|
786
|
-
f(
|
|
785
|
+
let t = String(e);
|
|
786
|
+
f(t), n?.(t), u(!1);
|
|
787
787
|
}
|
|
788
788
|
}) : /* @__PURE__ */ g(b, {
|
|
789
789
|
value: d ?? "",
|
|
790
790
|
onChange: f,
|
|
791
791
|
autoFocus: !0
|
|
792
|
-
}),
|
|
792
|
+
}), r !== "select" && r !== "bool" && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(a, {
|
|
793
793
|
size: 24,
|
|
794
|
-
icon: /* @__PURE__ */ g(
|
|
794
|
+
icon: /* @__PURE__ */ g(e.check, { size: 13 }),
|
|
795
795
|
onClick: p,
|
|
796
|
-
title:
|
|
796
|
+
title: c("dialog.save", "Save")
|
|
797
797
|
}), /* @__PURE__ */ g(a, {
|
|
798
798
|
size: 24,
|
|
799
|
-
icon: /* @__PURE__ */ g(
|
|
799
|
+
icon: /* @__PURE__ */ g(e.x, { size: 13 }),
|
|
800
800
|
onClick: v,
|
|
801
|
-
title:
|
|
801
|
+
title: c("dialog.cancel", "Cancel")
|
|
802
802
|
})] })]
|
|
803
803
|
}) : /* @__PURE__ */ g("div", {
|
|
804
804
|
onClick: () => u(!0),
|
|
@@ -819,11 +819,10 @@ function L({ value: e, onChange: t, type: n = "text", options: i }) {
|
|
|
819
819
|
onMouseLeave: (e) => {
|
|
820
820
|
e.currentTarget.style.borderColor = "transparent";
|
|
821
821
|
},
|
|
822
|
-
children:
|
|
822
|
+
children: t || /* @__PURE__ */ g("span", {
|
|
823
823
|
style: { color: "var(--text-4)" },
|
|
824
|
-
children:
|
|
824
|
+
children: c("control.click_to_edit", "Click to edit")
|
|
825
825
|
})
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
|
-
//#endregion
|
|
829
828
|
export { D as DateInput, v as FieldLabel, P as JsonField, E as MultiSelect, j as PasswordInput, L as QuickEditCell, F as RefField, T as Select, M as TagsInput, x as TextArea, b as TextInput, I as ViewField };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
2
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as s } from "react-dom";
|
|
4
|
-
|
|
4
|
+
// src/components/primitives/HoverCard.tsx
|
|
5
5
|
var c = 400, l = 150, u = 320, d = 240, f = 4, p = 4;
|
|
6
6
|
function m({ content: m, children: h, width: g = u, align: _ = "center", style: v }) {
|
|
7
7
|
let y = n(null), b = n(null), x = n(null), S = n(null), [C, w] = r(!1), [T, E] = r(null), [D, O] = r(!1), k = e(() => {
|
|
@@ -28,7 +28,7 @@ function m({ content: m, children: h, width: g = u, align: _ = "center", style:
|
|
|
28
28
|
}, [k]), M = e(() => {
|
|
29
29
|
x.current !== null && (window.clearTimeout(x.current), x.current = null), S.current !== null && (window.clearTimeout(S.current), S.current = null);
|
|
30
30
|
}, []), N = () => {
|
|
31
|
-
S.current !== null && (window.clearTimeout(S.current), S.current = null),
|
|
31
|
+
S.current !== null && (window.clearTimeout(S.current), S.current = null), C || x.current !== null || (x.current = window.setTimeout(() => {
|
|
32
32
|
x.current = null, w(!0);
|
|
33
33
|
}, c));
|
|
34
34
|
}, P = e(() => {
|
|
@@ -111,5 +111,4 @@ function m({ content: m, children: h, width: g = u, align: _ = "center", style:
|
|
|
111
111
|
children: h
|
|
112
112
|
}), L] });
|
|
113
113
|
}
|
|
114
|
-
//#endregion
|
|
115
114
|
export { m as HoverCard };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef as e } from "react";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/primitives/IconBtn.tsx
|
|
4
4
|
var n = e(function({ icon: e, onClick: n, title: r, size: i = 28, active: a, disabled: o, style: s }, c) {
|
|
5
5
|
return /* @__PURE__ */ t("button", {
|
|
6
6
|
type: "button",
|
|
@@ -33,5 +33,4 @@ var n = e(function({ icon: e, onClick: n, title: r, size: i = 28, active: a, dis
|
|
|
33
33
|
children: e
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
-
//#endregion
|
|
37
36
|
export { n as IconBtn };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Activity as t, ArrowDown as n, ArrowLeft as r, ArrowUp as i, ArrowUpDown as ee, BadgeDollarSign as te, Ban as a, Bell as o, Bolt as ne, BookOpen as re, Box as s, Boxes as ie, Briefcase as ae, Building as c, Building2 as oe, Calendar as l, CalendarClock as u, Check as d, ChevronDown as f, ChevronLeft as p, ChevronRight as m, ChevronUp as h, CircleDot as g, ClipboardCheck as _, Clock as v, Code as y, Columns as b, Columns3 as x, Command as S, Copy as C, Cpu as w, CreditCard as T, Database as E, Dot as D, Download as O, Edit as k, ExternalLink as A, Eye as j, EyeOff as M, File as N, FileDiff as P, FilePlus as F, Filter as I, Fingerprint as L, Folder as R, FormInput as z, Gavel as B, GitBranch as V, Globe as H, Grid as U, Group as W, HandCoins as G, Hash as K, Home as q, Inbox as se, Info as ce, Key as le, KeyRound as J, Layers as ue, Layout as de, LayoutDashboard as fe, Link as pe, List as me, ListChecks as he, Loader as ge, Lock as _e, LogIn as ve, LogOut as ye, Mail as be, Menu as xe, MessagesSquare as Se, Minus as Ce, Moon as we, MoreHorizontal as Te, Package as Ee, Paperclip as De, Play as Oe, PlayCircle as ke, Plus as Ae, PlusCircle as je, ReceiptText as Me, RefreshCw as Ne, Repeat as Pe, Save as Fe, Scale as Ie, ScrollText as Le, Search as Re, Settings as ze, Settings2 as Be, Shield as Ve, ShieldCheck as He, ShieldPlus as Ue, ShoppingCart as We, Sliders as Ge, SlidersHorizontal as Ke, Smartphone as qe, Sparkle as Je, Sparkles as Ye, Star as Xe, Sun as Ze, Table2 as Qe, Tag as $e, Tags as et, ToggleRight as tt, Trash as nt, Trash2 as rt, TriangleAlert as it, Undo2 as at, Upload as Y, User as ot, UserPlus as st, Users as X, UsersRound as ct, WalletCards as lt, Webhook as ut, Workflow as dt, X as ft, Zap as Z } from "lucide-react";
|
|
3
|
-
|
|
3
|
+
// src/components/primitives/Icons.tsx
|
|
4
4
|
var Q = (t) => function({ size: n = 14, cls: r = "", style: i = {} }) {
|
|
5
5
|
return /* @__PURE__ */ e(t, {
|
|
6
6
|
size: n,
|
|
@@ -147,5 +147,4 @@ var Q = (t) => function({ size: n = 14, cls: r = "", style: i = {} }) {
|
|
|
147
147
|
x: Q(ft),
|
|
148
148
|
zap: Q(Z)
|
|
149
149
|
};
|
|
150
|
-
//#endregion
|
|
151
150
|
export { pt as Icon, $ as LinkedInBrandIcon };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
// src/components/primitives/Kbd.tsx
|
|
3
3
|
function t({ children: t }) {
|
|
4
4
|
return /* @__PURE__ */ e("span", {
|
|
5
5
|
className: "mono",
|
|
@@ -19,5 +19,4 @@ function t({ children: t }) {
|
|
|
19
19
|
children: t
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { t as Kbd };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Kbd as e } from "./Kbd.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/primitives/MenuItem.tsx
|
|
4
4
|
function r({ icon: r, children: i, onClick: a, danger: o, kbd: s, active: c, divider: l, disabled: u, title: d, "data-testid": f }) {
|
|
5
5
|
return l ? /* @__PURE__ */ t("div", {
|
|
6
6
|
role: "separator",
|
|
@@ -53,5 +53,4 @@ function r({ icon: r, children: i, onClick: a, danger: o, kbd: s, active: c, div
|
|
|
53
53
|
]
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { r as MenuItem };
|