@nivaro/react 0.2.53 → 0.2.55
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +99 -98
- package/dist/index.d.ts +452 -4
- package/dist/index.js +644 -618
- package/dist/layout-editor.d.ts +252 -2
- package/dist/shared/components/BackgroundRunOffer.js +117 -0
- package/dist/shared/components/BroadcastView.js +214 -213
- package/dist/shared/components/CollectionBrowserView.js +2592 -2695
- package/dist/shared/components/FormWhatsNew.js +60 -0
- package/dist/shared/components/ItemEditForm.js +3968 -3618
- package/dist/shared/components/JobsTray.js +100 -55
- package/dist/shared/components/MyWorkView.js +91 -89
- package/dist/shared/components/NotificationBell.js +80 -79
- package/dist/shared/components/ProfileView.js +568 -520
- package/dist/shared/components/RecordCompare.js +254 -0
- package/dist/shared/components/RecordReadView.js +598 -543
- package/dist/shared/components/ReportView.js +578 -543
- package/dist/shared/components/RowPresence.js +91 -0
- package/dist/shared/components/TipLayer.js +27 -27
- package/dist/shared/components/WidgetSlot.js +474 -458
- package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
- package/dist/shared/components/ai/AskPanel.js +139 -119
- package/dist/shared/components/ai/FirstWeekCard.js +126 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
- package/dist/shared/components/bulk/bulk-field-options.js +45 -0
- package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
- package/dist/shared/components/chat/ChannelArchive.js +326 -0
- package/dist/shared/components/chat/ChannelExtras.js +141 -121
- package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
- package/dist/shared/components/chat/ChatPanel.js +1695 -1733
- package/dist/shared/components/chat/Composer.js +357 -303
- package/dist/shared/components/chat/MessageActions.js +92 -0
- package/dist/shared/components/chat/MessageFormat.js +290 -264
- package/dist/shared/components/chat/OutboxBubbles.js +146 -0
- package/dist/shared/components/chat/RequestIdCard.js +135 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
- package/dist/shared/components/chat/RoomParts.js +213 -274
- package/dist/shared/components/chat/ScreenClip.js +184 -0
- package/dist/shared/components/chat/chat-core.js +402 -483
- package/dist/shared/components/chat/chat-drafts.js +59 -0
- package/dist/shared/components/chat/chat-emoji.js +348 -0
- package/dist/shared/components/chat/chat-local-time.js +41 -0
- package/dist/shared/components/chat/chat-outbox.js +303 -0
- package/dist/shared/components/chat/chat-window.js +163 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
- package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
- package/dist/shared/components/help-videos/api.js +80 -67
- package/dist/shared/components/help-videos/editor/DetailsTab.js +147 -130
- package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
- package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
- package/dist/shared/components/item-edit/FieldAffordances.js +9 -8
- package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
- package/dist/shared/components/item-edit/FieldRow.js +382 -320
- package/dist/shared/components/item-edit/FormHelpVideoButton.js +59 -0
- package/dist/shared/components/item-edit/GroupSection.js +786 -639
- package/dist/shared/components/item-edit/HeaderTools.js +59 -56
- package/dist/shared/components/item-edit/InlineTableField.js +3 -1
- package/dist/shared/components/item-edit/LayoutContentBlock.js +47 -24
- package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
- package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
- package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
- package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
- package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
- package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
- package/dist/shared/components/item-edit/lazy-sections.js +36 -0
- package/dist/shared/components/item-edit/lock-why.js +94 -0
- package/dist/shared/components/item-edit/picker-miss.js +26 -0
- package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
- package/dist/shared/components/item-edit/useFormUsageBeacon.js +65 -0
- package/dist/shared/components/layout-editor/AddPanel.js +226 -151
- package/dist/shared/components/layout-editor/ArrangeButton.js +34 -0
- package/dist/shared/components/layout-editor/AutoArrange.js +86 -0
- package/dist/shared/components/layout-editor/CanvasCompare.js +79 -0
- package/dist/shared/components/layout-editor/ChangeNote.js +147 -0
- package/dist/shared/components/layout-editor/CollabParts.js +175 -0
- package/dist/shared/components/layout-editor/DesignNode.js +311 -116
- package/dist/shared/components/layout-editor/EditorCanvas.js +30 -26
- package/dist/shared/components/layout-editor/EditorTopBar.js +463 -175
- package/dist/shared/components/layout-editor/FindReplace.js +188 -0
- package/dist/shared/components/layout-editor/FormMapButton.js +141 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +250 -109
- package/dist/shared/components/layout-editor/LayoutEditor.js +1196 -305
- package/dist/shared/components/layout-editor/LayoutsRail.js +94 -67
- package/dist/shared/components/layout-editor/NoteMarker.js +38 -0
- package/dist/shared/components/layout-editor/PlacementsTable.js +187 -0
- package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
- package/dist/shared/components/layout-editor/ScheduleChange.js +106 -0
- package/dist/shared/components/layout-editor/SessionHistory.js +84 -0
- package/dist/shared/components/layout-editor/StagedChip.js +22 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +464 -0
- package/dist/shared/components/layout-editor/UnsavedConfirm.js +103 -0
- package/dist/shared/components/layout-editor/ai/AiToolsButton.js +625 -0
- package/dist/shared/components/layout-editor/ai/ChangeCheck.js +153 -0
- package/dist/shared/components/layout-editor/ai/ai-tools-api.js +80 -0
- package/dist/shared/components/layout-editor/ai/assist-ops.js +38 -0
- package/dist/shared/components/layout-editor/ai/autofill-ops.js +73 -0
- package/dist/shared/components/layout-editor/ai/canvas-capture.js +41 -0
- package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +271 -0
- package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +182 -0
- package/dist/shared/components/layout-editor/ai-forms/MeaningSuggestions.js +109 -0
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +170 -0
- package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +40 -0
- package/dist/shared/components/layout-editor/ai-forms/pending.js +25 -0
- package/dist/shared/components/layout-editor/ai-forms/plan.js +263 -0
- package/dist/shared/components/layout-editor/ai-rules/AiAskPopover.js +160 -0
- package/dist/shared/components/layout-editor/ai-rules/CascadeWriter.js +175 -0
- package/dist/shared/components/layout-editor/ai-rules/FieldRuleWriter.js +97 -0
- package/dist/shared/components/layout-editor/ai-rules/RuleWriter.js +94 -0
- package/dist/shared/components/layout-editor/ai-rules/ValidationSuggest.js +153 -0
- package/dist/shared/components/layout-editor/ai-rules/api.js +6 -0
- package/dist/shared/components/layout-editor/ai-text/AiTextTools.js +383 -0
- package/dist/shared/components/layout-editor/ai-text/text-ops.js +125 -0
- package/dist/shared/components/layout-editor/assist/AskPanel.js +278 -0
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +93 -0
- package/dist/shared/components/layout-editor/assist/ProposalsButton.js +150 -0
- package/dist/shared/components/layout-editor/assist/assist-api.js +63 -0
- package/dist/shared/components/layout-editor/assist/jump.js +142 -0
- package/dist/shared/components/layout-editor/assist/settings-index.js +118 -0
- package/dist/shared/components/layout-editor/auto-arrange.js +101 -0
- package/dist/shared/components/layout-editor/bulk/BulkChangesButton.js +221 -0
- package/dist/shared/components/layout-editor/bulk/BulkRun.js +237 -0
- package/dist/shared/components/layout-editor/bulk/MacrosPanel.js +230 -0
- package/dist/shared/components/layout-editor/bulk/bulk-api.js +65 -0
- package/dist/shared/components/layout-editor/bulk/field-labels.js +22 -0
- package/dist/shared/components/layout-editor/bulk/macro-record.js +142 -0
- package/dist/shared/components/layout-editor/bulk/useMacroRecorder.js +65 -0
- package/dist/shared/components/layout-editor/bundle-to-active.js +1 -0
- package/dist/shared/components/layout-editor/canvas-diff.js +157 -0
- package/dist/shared/components/layout-editor/collab/FormFollowShare.js +388 -0
- package/dist/shared/components/layout-editor/collab/collab-api.js +80 -0
- package/dist/shared/components/layout-editor/commands/CommandPalette.js +221 -0
- package/dist/shared/components/layout-editor/commands/intents.js +214 -0
- package/dist/shared/components/layout-editor/commands/parse.js +242 -0
- package/dist/shared/components/layout-editor/design-context.js +26 -6
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +181 -164
- package/dist/shared/components/layout-editor/dnd/collision.js +25 -23
- package/dist/shared/components/layout-editor/dnd/node.js +69 -57
- package/dist/shared/components/layout-editor/dnd/rail-drop.js +56 -0
- package/dist/shared/components/layout-editor/draft-recovery.js +131 -0
- package/dist/shared/components/layout-editor/editor-notes.js +78 -0
- package/dist/shared/components/layout-editor/editors/swap-config.js +1 -0
- package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
- package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
- package/dist/shared/components/layout-editor/entry/presets.js +71 -0
- package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
- package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
- package/dist/shared/components/layout-editor/explain/CanvasRules.js +142 -0
- package/dist/shared/components/layout-editor/explain/default-ghosts.js +81 -0
- package/dist/shared/components/layout-editor/explain/driver-hover.js +62 -0
- package/dist/shared/components/layout-editor/explain/field-sources.js +246 -0
- package/dist/shared/components/layout-editor/explain/rule-graph.js +215 -0
- package/dist/shared/components/layout-editor/explain/use-explain.js +132 -0
- package/dist/shared/components/layout-editor/field-zones.js +116 -0
- package/dist/shared/components/layout-editor/form-map.js +138 -0
- package/dist/shared/components/layout-editor/grid-guides.js +142 -0
- package/dist/shared/components/layout-editor/history-api.js +87 -0
- package/dist/shared/components/layout-editor/inheritance.js +55 -0
- package/dist/shared/components/layout-editor/inspect/inspect-api.js +66 -0
- package/dist/shared/components/layout-editor/inspect/picker-preview.js +48 -0
- package/dist/shared/components/layout-editor/inspect/width-fit.js +87 -0
- package/dist/shared/components/layout-editor/inspector/AiFillSetting.js +85 -0
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
- package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +36 -0
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +179 -0
- package/dist/shared/components/layout-editor/inspector/ColumnFit.js +112 -0
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +291 -141
- package/dist/shared/components/layout-editor/inspector/HelpTab.js +174 -0
- package/dist/shared/components/layout-editor/inspector/Inspector.js +282 -180
- package/dist/shared/components/layout-editor/inspector/LookTab.js +166 -109
- package/dist/shared/components/layout-editor/inspector/OverrideNotice.js +61 -0
- package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
- package/dist/shared/components/layout-editor/inspector/PickerPreview.js +134 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +146 -118
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +162 -111
- package/dist/shared/components/layout-editor/inspector/Translations.js +156 -0
- package/dist/shared/components/layout-editor/inspector/kit.js +71 -70
- package/dist/shared/components/layout-editor/inspector/tab-request.js +21 -0
- package/dist/shared/components/layout-editor/is-typing.js +9 -0
- package/dist/shared/components/layout-editor/keyboard-move.js +66 -0
- package/dist/shared/components/layout-editor/lint/LintPanel.js +190 -0
- package/dist/shared/components/layout-editor/lint/lint-api.js +52 -0
- package/dist/shared/components/layout-editor/load-error.js +37 -0
- package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +305 -0
- package/dist/shared/components/layout-editor/matrix/MatrixGrid.js +181 -0
- package/dist/shared/components/layout-editor/matrix/RoleSectionMatrix.js +147 -0
- package/dist/shared/components/layout-editor/matrix/matrix-api.js +48 -0
- package/dist/shared/components/layout-editor/matrix/role-matrix.js +36 -0
- package/dist/shared/components/layout-editor/matrix/state-matrix.js +145 -0
- package/dist/shared/components/layout-editor/nav/FindPanel.js +109 -0
- package/dist/shared/components/layout-editor/nav/NavTools.js +114 -0
- package/dist/shared/components/layout-editor/nav/OutlinePanel.js +228 -0
- package/dist/shared/components/layout-editor/nav/ShortcutSheet.js +31 -0
- package/dist/shared/components/layout-editor/nav/find.js +20 -0
- package/dist/shared/components/layout-editor/nav/tree.js +142 -0
- package/dist/shared/components/layout-editor/nav/useEditorNav.js +101 -0
- package/dist/shared/components/layout-editor/nav/view-prefs.js +34 -0
- package/dist/shared/components/layout-editor/ops/ChangeRequestsPanel.js +143 -0
- package/dist/shared/components/layout-editor/ops/DependencyDiagram.js +179 -0
- package/dist/shared/components/layout-editor/ops/LayoutOpsBlocks.js +92 -0
- package/dist/shared/components/layout-editor/ops/PromotePanel.js +287 -0
- package/dist/shared/components/layout-editor/ops/ops-api.js +122 -0
- package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
- package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
- package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
- package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -3
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +24 -14
- package/dist/shared/components/layout-editor/overview/overview-api.js +105 -88
- package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
- package/dist/shared/components/layout-editor/panel-style.js +8 -7
- package/dist/shared/components/layout-editor/parity-keys.json.js +4 -0
- package/dist/shared/components/layout-editor/pin.js +25 -0
- package/dist/shared/components/layout-editor/presence.js +111 -0
- package/dist/shared/components/layout-editor/preview/PreviewModes.js +224 -0
- package/dist/shared/components/layout-editor/preview/PreviewPanes.js +262 -0
- package/dist/shared/components/layout-editor/preview/preview-api.js +57 -0
- package/dist/shared/components/layout-editor/preview/preview-model.js +157 -0
- package/dist/shared/components/layout-editor/restore-piece.js +192 -0
- package/dist/shared/components/layout-editor/reuse/FieldMapStep.js +70 -0
- package/dist/shared/components/layout-editor/reuse/FormMoreMenu.js +127 -0
- package/dist/shared/components/layout-editor/reuse/LibraryRows.js +150 -0
- package/dist/shared/components/layout-editor/reuse/NewFormStart.js +20 -0
- package/dist/shared/components/layout-editor/reuse/SectionReuseActions.js +291 -0
- package/dist/shared/components/layout-editor/reuse/field-match.js +77 -0
- package/dist/shared/components/layout-editor/reuse/reuse-api.js +73 -0
- package/dist/shared/components/layout-editor/reuse/seed.js +13 -0
- package/dist/shared/components/layout-editor/reuse/useFormFromRecord.js +43 -0
- package/dist/shared/components/layout-editor/reuse/useRailCopy.js +34 -0
- package/dist/shared/components/layout-editor/section-structure.js +241 -0
- package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
- package/dist/shared/components/layout-editor/settings/FormSettings.js +125 -103
- package/dist/shared/components/layout-editor/settings/InheritanceSection.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +215 -105
- package/dist/shared/components/layout-editor/settings/WhoSection.js +139 -100
- package/dist/shared/components/layout-editor/settings/controls.js +8 -8
- package/dist/shared/components/layout-editor/settings/settings-registry.js +142 -21
- package/dist/shared/components/layout-editor/shortcuts.js +88 -0
- package/dist/shared/components/layout-editor/show-when.js +35 -0
- package/dist/shared/components/layout-editor/slot-names.js +4 -3
- package/dist/shared/components/layout-editor/staged-api.js +64 -0
- package/dist/shared/components/layout-editor/structure-ops.js +403 -0
- package/dist/shared/components/layout-editor/testing/CostLimitSetting.js +42 -0
- package/dist/shared/components/layout-editor/testing/TestingPanels.js +556 -0
- package/dist/shared/components/layout-editor/testing/testing-api.js +67 -0
- package/dist/shared/components/layout-editor/testing/testing-model.js +406 -0
- package/dist/shared/components/layout-editor/testing/use-record-check.js +44 -0
- package/dist/shared/components/layout-editor/toolbar-kit.js +242 -0
- package/dist/shared/components/layout-editor/unsaved-marks.js +72 -0
- package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
- package/dist/shared/components/layout-editor/usage/FillChip.js +27 -0
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +232 -0
- package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
- package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
- package/dist/shared/components/layout-editor/usage/suggest-sections.js +55 -0
- package/dist/shared/components/layout-editor/usage/usage-api.js +104 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +573 -306
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
- package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
- package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
- package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
- package/dist/shared/components/profile/AgentsPanel.js +479 -0
- package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
- package/dist/shared/components/support/SuggestFormChange.js +143 -0
- package/dist/shared/components/support/SupportAnalytics.js +171 -0
- package/dist/shared/components/support/SupportView.js +75 -73
- package/dist/shared/lib/ai-fill.js +37 -0
- package/dist/shared/lib/background-runs.js +150 -0
- package/dist/shared/lib/delivery-ack.js +9 -0
- package/dist/shared/lib/entry-badge-style.js +13 -0
- package/dist/shared/lib/entry-config.js +71 -0
- package/dist/shared/lib/form-sections.js +64 -0
- package/dist/shared/lib/form-structure.js +99 -0
- package/dist/shared/lib/form-usage-beacon.js +133 -0
- package/dist/shared/lib/jobs-tray.js +25 -23
- package/dist/shared/lib/keyset-pager.js +37 -0
- package/dist/shared/lib/layout-i18n.js +66 -0
- package/dist/shared/lib/layout-lint.js +490 -0
- package/dist/shared/lib/layout-ops.js +116 -110
- package/dist/shared/lib/layout-resolve.js +113 -0
- package/dist/shared/lib/placement-behaviour.js +144 -0
- package/dist/shared/lib/prefetch.js +149 -0
- package/dist/shared/lib/presence-hooks.js +199 -0
- package/dist/shared/lib/record-outbox.js +82 -81
- package/dist/shared/lib/replay-socket.js +93 -0
- package/dist/shared/lib/request-gate.js +51 -50
- package/dist/shared/lib/room-gaps.js +96 -0
- package/dist/shared/lib/screenshot.js +54 -28
- package/dist/shared/lib/search-log.js +27 -0
- package/dist/shared/lib/socket-realtime.js +101 -80
- package/dist/shared/lib/visible-when.js +34 -0
- package/dist/shared/lib/worker-socket.js +200 -0
- package/package.json +1 -1
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { MousePointerClick as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { HEADER_GROUP_KEY as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { MousePointerClick as Q } from "lucide-react";
|
|
3
|
+
import { useMemo as Y, useState as Z, useId as ee } from "react";
|
|
4
|
+
import { HEADER_GROUP_KEY as O, CANVAS_SLOT_KEYS as te, UNGROUPED_KEY as le } from "../../../lib/layout-ops.js";
|
|
5
|
+
import { isDisplayFormulaField as ne } from "../../../lib/placement-behaviour.js";
|
|
6
|
+
import { cn as ie, titleCase as h } from "../../../lib/utils.js";
|
|
7
|
+
import { TipLayer as re } from "../../TipLayer.js";
|
|
8
|
+
import { ArrangeButton as oe } from "../ArrangeButton.js";
|
|
9
|
+
import { AutoArrangeButton as ae } from "../AutoArrange.js";
|
|
10
|
+
import { useLayoutDesign as de, targetKey as se } from "../design-context.js";
|
|
11
|
+
import { PlacementPresets as ce } from "../entry/PlacementPresets.js";
|
|
12
|
+
import { FIELD_HOLDERS as ue } from "../field-zones.js";
|
|
13
|
+
import { PanelHeader as E, PanelBody as F, PanelTabs as me, tabId as fe, tabPanelId as pe } from "../panel-frame.js";
|
|
14
|
+
import { tintCard as be } from "../panel-style.js";
|
|
15
|
+
import { slotName as z } from "../slot-names.js";
|
|
16
|
+
import { useLayoutBundle as he } from "../useLayoutDraft.js";
|
|
17
|
+
import { AdvancedTab as ye } from "./AdvancedTab.js";
|
|
18
|
+
import { DisplayFormulaSettings as ke } from "./BehaviourSettings.js";
|
|
19
|
+
import { Breadcrumb as I } from "./Breadcrumb.js";
|
|
20
|
+
import { useCollectionMeta as R, useGlobalWriter as xe, useFieldCtxValue as _e, FieldCtxContext as ve } from "./field-context.js";
|
|
21
|
+
import { GridTab as ge } from "./GridTab.js";
|
|
22
|
+
import { GroupInspector as Ne } from "./GroupInspector.js";
|
|
23
|
+
import { HeaderItemInspector as Te } from "./HeaderItemInspector.js";
|
|
24
|
+
import { HelpVideoSetting as $, NoteSetting as V } from "./HelpTab.js";
|
|
25
|
+
import { InspectorEnvContext as W, useInspectorEnv as L, ScopeLegend as H, GlobalWriterContext as Pe } from "./kit.js";
|
|
26
|
+
import { LookTab as Se } from "./LookTab.js";
|
|
27
|
+
import { isDefaultForm as Ie, layoutTypeOf as Ee, findPlacement as w, SUBTITLE_FIELD as A, overrideGroupOps as Fe, overridePlacementOps as Le, describeField as q, asObject as G, NUMERIC_TYPES as Ce } from "./model.js";
|
|
28
|
+
import { OverrideNotice as Ke } from "./OverrideNotice.js";
|
|
29
|
+
import { PickerTab as Me } from "./PickerTab.js";
|
|
30
|
+
import { RulesTab as De } from "./RulesTab.js";
|
|
31
|
+
import { SlotInspector as Ge } from "./SlotInspector.js";
|
|
32
|
+
import { SubtitleInspector as Oe } from "./SubtitleInspector.js";
|
|
33
|
+
import { useInspectorTabRequest as Re } from "./tab-request.js";
|
|
34
|
+
import { WidgetInspector as He } from "./WidgetInspector.js";
|
|
35
|
+
const Ae = /^__widget_\d+__$/, Be = /^__ext_[a-z][a-z0-9-]{1,60}__$/, J = (e) => te.includes(e) || e === "__owners__" || e === "__pdf__" || Be.test(e);
|
|
36
|
+
function X(e) {
|
|
27
37
|
switch (e.kind) {
|
|
28
38
|
case "field":
|
|
29
39
|
case "slot":
|
|
@@ -31,102 +41,120 @@ function z(e) {
|
|
|
31
41
|
case "header":
|
|
32
42
|
return {
|
|
33
43
|
field: e.field,
|
|
34
|
-
group_key: e.field ===
|
|
44
|
+
group_key: e.field === A ? null : O
|
|
35
45
|
};
|
|
36
46
|
default:
|
|
37
47
|
return null;
|
|
38
48
|
}
|
|
39
49
|
}
|
|
40
|
-
function
|
|
41
|
-
const { bundle:
|
|
50
|
+
function Ft(e) {
|
|
51
|
+
const { bundle: l, target: n, apply: i, collection: d } = e, o = de(), m = Y(
|
|
42
52
|
() => ({
|
|
43
|
-
bundle:
|
|
44
|
-
apply:
|
|
53
|
+
bundle: l,
|
|
54
|
+
apply: i,
|
|
45
55
|
flush: e.flush ?? (() => {
|
|
46
56
|
}),
|
|
47
|
-
collection:
|
|
48
|
-
layoutType:
|
|
49
|
-
defaultForm:
|
|
57
|
+
collection: d,
|
|
58
|
+
layoutType: Ee(l.layout),
|
|
59
|
+
defaultForm: Ie(l.layout),
|
|
60
|
+
select: e.onSelect
|
|
50
61
|
}),
|
|
51
|
-
[
|
|
52
|
-
),
|
|
53
|
-
if (!
|
|
54
|
-
return /* @__PURE__ */ t(
|
|
55
|
-
/* @__PURE__ */ t(
|
|
62
|
+
[l, i, e.flush, d, e.onSelect]
|
|
63
|
+
), s = n ? X(n) : null, r = s ? w(l, s.field, s.group_key) : null, x = (n == null ? void 0 : n.kind) === "group" ? l.groups.find((b) => b.key === n.key) ?? null : null, _ = !!n && (n.kind === "group" ? !x : !r && !J((s == null ? void 0 : s.field) ?? "") && (s == null ? void 0 : s.field) !== A), g = l.layout.parent_layout_id != null ? Number(l.layout.parent_layout_id) : null, C = e.inheritedFrom ?? (n ? (o == null ? void 0 : o.inheritedFrom(n)) ?? null : null), { data: c } = he(g), f = _ && c && s ? w(c, s.field, s.group_key) : null, p = _ && c && (n == null ? void 0 : n.kind) === "group" ? c.groups.find((b) => b.key === n.key) ?? null : null, N = _ && (!!f || !!p || !!C);
|
|
64
|
+
if (!n)
|
|
65
|
+
return /* @__PURE__ */ t(D, { children: /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col items-center justify-center gap-2 px-8 pb-16 text-center", children: [
|
|
66
|
+
/* @__PURE__ */ t(Q, { className: "h-5 w-5 text-slate-400" }),
|
|
56
67
|
/* @__PURE__ */ t("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: "Select a field, section or panel on the form to change it." })
|
|
57
68
|
] }) });
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
} },
|
|
61
|
-
if (!
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
/* @__PURE__ */
|
|
69
|
+
if (N) {
|
|
70
|
+
const b = c != null && c.layout.name ? String(c.layout.name) : C ?? "the parent form", K = { ...m, bundle: c ?? l, apply: () => {
|
|
71
|
+
} }, M = () => {
|
|
72
|
+
if (!c) return;
|
|
73
|
+
const y = p ? Fe(l, c, p) : f ? Le(l, c, f) : [];
|
|
74
|
+
y.length && i(y, { label: `Override ${P(n)} on this form` });
|
|
75
|
+
}, v = /* @__PURE__ */ a("div", { "data-setting": "inspector.inherited_override", className: ie(be, "space-y-2.5 p-3"), children: [
|
|
76
|
+
/* @__PURE__ */ a("p", { className: "text-[12px] leading-snug text-slate-700 dark:text-foreground", children: [
|
|
66
77
|
"This comes from ",
|
|
67
|
-
/* @__PURE__ */ t("span", { className: "font-medium", children:
|
|
78
|
+
/* @__PURE__ */ t("span", { className: "font-medium", children: b }),
|
|
68
79
|
". Change it there for every form built on it, or override it on this form only."
|
|
69
80
|
] }),
|
|
70
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-2", children: [
|
|
71
82
|
/* @__PURE__ */ t(
|
|
72
83
|
"button",
|
|
73
84
|
{
|
|
74
85
|
type: "button",
|
|
75
86
|
"data-override-here": "",
|
|
76
|
-
disabled: !
|
|
77
|
-
onClick:
|
|
87
|
+
disabled: !c || !f && !p,
|
|
88
|
+
onClick: M,
|
|
78
89
|
className: "h-7 rounded-md bg-nvr-cyan px-2.5 text-[12px] font-medium text-white transition-colors hover:bg-[#00b8e0] disabled:opacity-40",
|
|
79
90
|
children: "Override here"
|
|
80
91
|
}
|
|
81
92
|
),
|
|
82
|
-
|
|
93
|
+
g != null && e.openLayout && /* @__PURE__ */ a(
|
|
83
94
|
"button",
|
|
84
95
|
{
|
|
85
96
|
type: "button",
|
|
86
97
|
"data-edit-in-parent": "",
|
|
87
98
|
onClick: () => {
|
|
88
|
-
var
|
|
89
|
-
return (
|
|
99
|
+
var y;
|
|
100
|
+
return (y = e.openLayout) == null ? void 0 : y.call(e, g);
|
|
90
101
|
},
|
|
91
102
|
className: "h-7 rounded-md border border-slate-200 bg-white px-2.5 text-[12px] font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-border dark:bg-background dark:text-foreground dark:hover:bg-muted",
|
|
92
103
|
children: [
|
|
93
104
|
"Edit in ",
|
|
94
|
-
|
|
105
|
+
b
|
|
95
106
|
]
|
|
96
107
|
}
|
|
97
108
|
)
|
|
98
109
|
] })
|
|
99
110
|
] });
|
|
100
|
-
return /* @__PURE__ */ t(
|
|
101
|
-
/* @__PURE__ */ t(
|
|
102
|
-
/* @__PURE__ */ t(
|
|
111
|
+
return /* @__PURE__ */ t(D, { children: /* @__PURE__ */ t(W.Provider, { value: K, children: p ? /* @__PURE__ */ t(j, { group: p, notice: v, readOnly: !0 }) : f ? /* @__PURE__ */ t(U, { target: n, row: f, notice: v, readOnly: !0 }) : /* @__PURE__ */ a(k, { children: [
|
|
112
|
+
/* @__PURE__ */ t(E, { title: P(n) }),
|
|
113
|
+
/* @__PURE__ */ t(F, { children: v })
|
|
103
114
|
] }) }) });
|
|
104
115
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
const u = _ ? null : /* @__PURE__ */ t(
|
|
117
|
+
Ke,
|
|
118
|
+
{
|
|
119
|
+
bundle: l,
|
|
120
|
+
parent: c,
|
|
121
|
+
target: n,
|
|
122
|
+
title: P(n),
|
|
123
|
+
apply: i
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
return /* @__PURE__ */ t(D, { children: /* @__PURE__ */ t(W.Provider, { value: m, children: n.kind === "group" ? x && /* @__PURE__ */ t(j, { group: x, notice: u }, x.key) : _ ? /* @__PURE__ */ a(k, { children: [
|
|
127
|
+
/* @__PURE__ */ t(E, { title: P(n) }),
|
|
128
|
+
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ a("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: [
|
|
129
|
+
P(n),
|
|
109
130
|
" is not on this form any more."
|
|
110
131
|
] }) })
|
|
111
|
-
] }) : /* @__PURE__ */ t(
|
|
132
|
+
] }) : /* @__PURE__ */ t(
|
|
133
|
+
U,
|
|
134
|
+
{
|
|
135
|
+
target: n,
|
|
136
|
+
row: r,
|
|
137
|
+
notice: u
|
|
138
|
+
},
|
|
139
|
+
se(n)
|
|
140
|
+
) }) });
|
|
112
141
|
}
|
|
113
|
-
function
|
|
114
|
-
return e.kind === "group" ?
|
|
142
|
+
function P(e) {
|
|
143
|
+
return e.kind === "group" ? h(e.key) : e.field.startsWith("__") ? z(e.field) : h(e.field.split(".").pop() ?? e.field);
|
|
115
144
|
}
|
|
116
|
-
function
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */ t(
|
|
145
|
+
function D({ children: e }) {
|
|
146
|
+
return /* @__PURE__ */ a("div", { "data-inspector": "", className: "flex h-full min-h-0 min-w-0 flex-col text-[12px]", children: [
|
|
147
|
+
/* @__PURE__ */ t(re, {}),
|
|
119
148
|
e
|
|
120
149
|
] });
|
|
121
150
|
}
|
|
122
|
-
function
|
|
123
|
-
if (!
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
126
|
-
return
|
|
151
|
+
function We(e, l) {
|
|
152
|
+
if (!l || l === le) return null;
|
|
153
|
+
if (l === O) return "Header strip";
|
|
154
|
+
const n = e.groups.find((i) => i.key === l);
|
|
155
|
+
return n ? n.label || h(n.key) : h(l);
|
|
127
156
|
}
|
|
128
|
-
|
|
129
|
-
function Ke(e) {
|
|
157
|
+
function we(e) {
|
|
130
158
|
if (e.isPath) return "shows a linked value";
|
|
131
159
|
if (e.computedType) return "calculated";
|
|
132
160
|
if (e.relKind === "M2O") return "picks one record";
|
|
@@ -134,7 +162,7 @@ function Ke(e) {
|
|
|
134
162
|
if (e.relKind === "O2M")
|
|
135
163
|
return e.iface === "inline-table" ? "table of related rows" : "related rows";
|
|
136
164
|
if (e.relKind) return "related records";
|
|
137
|
-
if (
|
|
165
|
+
if (Ce.has(e.type)) return "number";
|
|
138
166
|
switch (e.type) {
|
|
139
167
|
case "boolean":
|
|
140
168
|
return "yes or no";
|
|
@@ -157,176 +185,250 @@ function Ke(e) {
|
|
|
157
185
|
return e.type;
|
|
158
186
|
}
|
|
159
187
|
}
|
|
160
|
-
function
|
|
161
|
-
return /* @__PURE__ */
|
|
162
|
-
e && /* @__PURE__ */
|
|
188
|
+
function B({ words: e, k: l, setting: n }) {
|
|
189
|
+
return /* @__PURE__ */ a("span", { "data-setting": n, children: [
|
|
190
|
+
e && /* @__PURE__ */ a(k, { children: [
|
|
163
191
|
e,
|
|
164
192
|
" · "
|
|
165
193
|
] }),
|
|
166
|
-
/* @__PURE__ */ t("span", { className: "font-mono text-[11px]", children:
|
|
194
|
+
/* @__PURE__ */ t("span", { className: "font-mono text-[11px]", children: l })
|
|
167
195
|
] });
|
|
168
196
|
}
|
|
169
|
-
function
|
|
170
|
-
const
|
|
171
|
-
return
|
|
197
|
+
function je(e, l) {
|
|
198
|
+
const n = l.parent_key ? e.groups.find((i) => i.key === l.parent_key) ?? null : null;
|
|
199
|
+
return l.type === "tab" ? (n == null ? void 0 : n.tab_mode) === "steps" ? "Step" : "Tab" : l.type === "container" ? l.tab_mode === "steps" ? "Steps holder" : "Tabs holder" : l.type === "content" ? "Text block" : l.type === "metadata" ? "Record info" : "Section";
|
|
172
200
|
}
|
|
173
|
-
function
|
|
201
|
+
function j({
|
|
174
202
|
group: e,
|
|
175
|
-
notice:
|
|
176
|
-
readOnly:
|
|
203
|
+
notice: l,
|
|
204
|
+
readOnly: n = !1
|
|
177
205
|
}) {
|
|
178
|
-
const
|
|
179
|
-
return /* @__PURE__ */
|
|
206
|
+
const i = L(), d = /* @__PURE__ */ t(Ne, { group: e, readOnly: n });
|
|
207
|
+
return /* @__PURE__ */ a(k, { children: [
|
|
180
208
|
/* @__PURE__ */ t(
|
|
181
|
-
|
|
209
|
+
E,
|
|
182
210
|
{
|
|
183
|
-
eyebrow:
|
|
184
|
-
|
|
185
|
-
|
|
211
|
+
eyebrow: /* @__PURE__ */ t(
|
|
212
|
+
I,
|
|
213
|
+
{
|
|
214
|
+
kind: je(i.bundle, e),
|
|
215
|
+
target: { kind: "group", key: e.key }
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
title: e.label || h(e.key),
|
|
219
|
+
sub: /* @__PURE__ */ t(B, { k: e.key, setting: "group.key" })
|
|
186
220
|
}
|
|
187
221
|
),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
|
|
222
|
+
/* @__PURE__ */ a(F, { children: [
|
|
223
|
+
l,
|
|
224
|
+
n ? (
|
|
191
225
|
// Inputs sit in a disabled fieldset and writes go nowhere.
|
|
192
|
-
/* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children:
|
|
193
|
-
) : /* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */ t(
|
|
195
|
-
|
|
226
|
+
/* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: d })
|
|
227
|
+
) : /* @__PURE__ */ a(k, { children: [
|
|
228
|
+
/* @__PURE__ */ t(H, {}),
|
|
229
|
+
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-2", children: [
|
|
230
|
+
/* @__PURE__ */ t(oe, { targets: [{ kind: "group", key: e.key }] }),
|
|
231
|
+
ue.has(e.type) && i.layoutType !== "table" && i.layoutType !== "file" && /* @__PURE__ */ t(
|
|
232
|
+
ae,
|
|
233
|
+
{
|
|
234
|
+
bundle: i.bundle,
|
|
235
|
+
apply: i.apply,
|
|
236
|
+
zone: e.key,
|
|
237
|
+
zoneLabel: e.label || h(e.key)
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
] }),
|
|
241
|
+
d,
|
|
242
|
+
/* @__PURE__ */ a(
|
|
243
|
+
"div",
|
|
244
|
+
{
|
|
245
|
+
"data-group-help": "",
|
|
246
|
+
className: "mt-5 space-y-5 border-t border-slate-100 pt-5 dark:border-border/60",
|
|
247
|
+
children: [
|
|
248
|
+
/* @__PURE__ */ t(
|
|
249
|
+
$,
|
|
250
|
+
{
|
|
251
|
+
kind: "section",
|
|
252
|
+
name: e.key,
|
|
253
|
+
label: e.label || h(e.key)
|
|
254
|
+
}
|
|
255
|
+
),
|
|
256
|
+
/* @__PURE__ */ t(
|
|
257
|
+
V,
|
|
258
|
+
{
|
|
259
|
+
target: { kind: "group", key: e.key },
|
|
260
|
+
name: e.label || h(e.key)
|
|
261
|
+
}
|
|
262
|
+
)
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
)
|
|
196
266
|
] })
|
|
197
267
|
] })
|
|
198
268
|
] });
|
|
199
269
|
}
|
|
200
|
-
function
|
|
270
|
+
function S({
|
|
201
271
|
eyebrow: e,
|
|
202
|
-
title:
|
|
203
|
-
sub:
|
|
204
|
-
notice:
|
|
205
|
-
readOnly:
|
|
206
|
-
children:
|
|
272
|
+
title: l,
|
|
273
|
+
sub: n,
|
|
274
|
+
notice: i,
|
|
275
|
+
readOnly: d,
|
|
276
|
+
children: o
|
|
207
277
|
}) {
|
|
208
|
-
return /* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */ t(
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/* @__PURE__ */ t(
|
|
214
|
-
|
|
278
|
+
return /* @__PURE__ */ a(k, { children: [
|
|
279
|
+
/* @__PURE__ */ t(E, { eyebrow: e, title: l, sub: n }),
|
|
280
|
+
/* @__PURE__ */ a(F, { children: [
|
|
281
|
+
i,
|
|
282
|
+
d ? /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: /* @__PURE__ */ t("fieldset", { disabled: !0, className: "min-w-0", children: o }) }) : /* @__PURE__ */ a(k, { children: [
|
|
283
|
+
/* @__PURE__ */ t(H, {}),
|
|
284
|
+
o
|
|
215
285
|
] })
|
|
216
286
|
] })
|
|
217
287
|
] });
|
|
218
288
|
}
|
|
219
|
-
function
|
|
289
|
+
function U({
|
|
220
290
|
target: e,
|
|
221
|
-
row:
|
|
222
|
-
notice:
|
|
223
|
-
readOnly:
|
|
291
|
+
row: l,
|
|
292
|
+
notice: n,
|
|
293
|
+
readOnly: i = !1
|
|
224
294
|
}) {
|
|
225
|
-
var
|
|
226
|
-
const
|
|
227
|
-
return
|
|
228
|
-
|
|
295
|
+
var r;
|
|
296
|
+
const d = L(), o = e.kind === "group" ? "" : e.field, m = (l == null ? void 0 : l.group_key) ?? (e.kind === "group" ? null : ((r = X(e)) == null ? void 0 : r.group_key) ?? null), s = We(d.bundle, m);
|
|
297
|
+
return o === A ? /* @__PURE__ */ t(S, { eyebrow: "Header", title: "Subtitle", notice: n, readOnly: i, children: /* @__PURE__ */ t(Oe, {}) }) : l && (Ae.test(o) || l.widget_id != null) ? /* @__PURE__ */ t(
|
|
298
|
+
S,
|
|
229
299
|
{
|
|
230
|
-
eyebrow:
|
|
231
|
-
title:
|
|
232
|
-
notice:
|
|
233
|
-
readOnly:
|
|
234
|
-
children: /* @__PURE__ */ t(
|
|
300
|
+
eyebrow: /* @__PURE__ */ t(I, { kind: "Widget", target: e, where: s }),
|
|
301
|
+
title: l.label_override || "Widget",
|
|
302
|
+
notice: n,
|
|
303
|
+
readOnly: i,
|
|
304
|
+
children: /* @__PURE__ */ t(He, { row: l })
|
|
235
305
|
}
|
|
236
|
-
) :
|
|
237
|
-
|
|
306
|
+
) : J(o) ? /* @__PURE__ */ t(
|
|
307
|
+
S,
|
|
238
308
|
{
|
|
239
|
-
eyebrow:
|
|
240
|
-
title:
|
|
241
|
-
notice:
|
|
242
|
-
readOnly:
|
|
243
|
-
children: /* @__PURE__ */ t(
|
|
309
|
+
eyebrow: /* @__PURE__ */ t(I, { kind: "Panel", target: e, where: s }),
|
|
310
|
+
title: z(o),
|
|
311
|
+
notice: n,
|
|
312
|
+
readOnly: i,
|
|
313
|
+
children: /* @__PURE__ */ t(Ge, { field: o, groupKey: m, row: l })
|
|
314
|
+
}
|
|
315
|
+
) : l ? e.kind === "header" || l.group_key === O ? /* @__PURE__ */ t(ze, { row: l, notice: n, readOnly: i }) : ne(o) ? /* @__PURE__ */ t(
|
|
316
|
+
S,
|
|
317
|
+
{
|
|
318
|
+
eyebrow: /* @__PURE__ */ t(I, { kind: "Formula", target: e, where: s }),
|
|
319
|
+
title: Ue(l),
|
|
320
|
+
notice: n,
|
|
321
|
+
readOnly: i,
|
|
322
|
+
children: /* @__PURE__ */ t(Ye, { row: l })
|
|
244
323
|
}
|
|
245
|
-
) :
|
|
324
|
+
) : /* @__PURE__ */ t(Ve, { target: e, row: l, where: s, notice: n, readOnly: i }) : null;
|
|
246
325
|
}
|
|
247
|
-
function
|
|
326
|
+
function Ue(e) {
|
|
327
|
+
const l = G(e.overrides);
|
|
328
|
+
return typeof l.label == "string" && l.label.trim() ? l.label : "Formula";
|
|
329
|
+
}
|
|
330
|
+
function Ye({ row: e }) {
|
|
331
|
+
const l = L(), { data: n } = R(l.collection), i = Y(() => ((n == null ? void 0 : n.fields) ?? []).map((d) => d.field), [n == null ? void 0 : n.fields]);
|
|
332
|
+
return /* @__PURE__ */ t(ke, { row: e, fields: i });
|
|
333
|
+
}
|
|
334
|
+
function ze({
|
|
248
335
|
row: e,
|
|
249
|
-
notice:
|
|
250
|
-
readOnly:
|
|
336
|
+
notice: l,
|
|
337
|
+
readOnly: n
|
|
251
338
|
}) {
|
|
252
|
-
const
|
|
339
|
+
const i = L(), { data: d } = R(i.collection), o = q(e.field, (d == null ? void 0 : d.fields) ?? [], (d == null ? void 0 : d.relations) ?? [], null).label;
|
|
253
340
|
return /* @__PURE__ */ t(
|
|
254
|
-
|
|
341
|
+
S,
|
|
255
342
|
{
|
|
256
343
|
eyebrow: "Header strip",
|
|
257
|
-
title: e.label_override ||
|
|
258
|
-
sub: /* @__PURE__ */ t(
|
|
259
|
-
notice:
|
|
260
|
-
readOnly:
|
|
261
|
-
children: /* @__PURE__ */ t(
|
|
344
|
+
title: e.label_override || o,
|
|
345
|
+
sub: /* @__PURE__ */ t(B, { k: e.field }),
|
|
346
|
+
notice: l,
|
|
347
|
+
readOnly: n,
|
|
348
|
+
children: /* @__PURE__ */ t(Te, { row: e, label: o })
|
|
262
349
|
}
|
|
263
350
|
);
|
|
264
351
|
}
|
|
265
|
-
const
|
|
266
|
-
function
|
|
267
|
-
|
|
352
|
+
const $e = { fields: [], relations: [], label: "" };
|
|
353
|
+
function Ve({
|
|
354
|
+
target: e,
|
|
355
|
+
row: l,
|
|
268
356
|
where: n,
|
|
269
|
-
notice:
|
|
270
|
-
readOnly:
|
|
357
|
+
notice: i,
|
|
358
|
+
readOnly: d
|
|
271
359
|
}) {
|
|
272
|
-
var
|
|
273
|
-
const
|
|
274
|
-
collection:
|
|
275
|
-
collectionLabel:
|
|
276
|
-
field:
|
|
360
|
+
var K, M, v, y;
|
|
361
|
+
const o = L(), { data: m } = R(o.collection), s = m ?? $e, r = q(l.field, s.fields, s.relations, l), x = xe({
|
|
362
|
+
collection: o.collection,
|
|
363
|
+
collectionLabel: s.label || h(o.collection),
|
|
364
|
+
field: l.field,
|
|
277
365
|
fieldLabel: r.label,
|
|
278
366
|
stored: {
|
|
279
|
-
options:
|
|
280
|
-
dependency_config:
|
|
367
|
+
options: G((K = r.global) == null ? void 0 : K.options),
|
|
368
|
+
dependency_config: G((M = r.global) == null ? void 0 : M.dependency_config),
|
|
281
369
|
columns: {
|
|
282
|
-
deprecated: !!((
|
|
283
|
-
deprecation_note: ((
|
|
370
|
+
deprecated: !!((v = r.global) != null && v.deprecated_at),
|
|
371
|
+
deprecation_note: ((y = r.global) == null ? void 0 : y.deprecation_note) || null
|
|
284
372
|
}
|
|
285
373
|
}
|
|
286
|
-
}),
|
|
374
|
+
}), _ = _e({ env: o, row: l, meta: s, writer: x, readOnly: d }), g = r.relKind === "M2O" || r.relKind === "M2M" || r.isPath || r.iface === "relation-path" || r.iface === "file-image" || r.iface === "files-m2m", C = r.relKind === "O2M" && (r.iface === "inline-grid" || r.iface === "inline-table"), c = [
|
|
287
375
|
{ key: "look", label: "Look" },
|
|
288
376
|
{ key: "rules", label: "Rules" },
|
|
289
|
-
...
|
|
290
|
-
...
|
|
377
|
+
...g ? [{ key: "picker", label: "Picker" }] : [],
|
|
378
|
+
...C ? [{ key: "grid", label: r.iface === "inline-table" ? "Table" : "Grid" }] : [],
|
|
379
|
+
{ key: "help", label: "Help" },
|
|
291
380
|
{ key: "advanced", label: "Advanced" }
|
|
292
|
-
], [
|
|
293
|
-
|
|
381
|
+
], [f, p] = Z("look");
|
|
382
|
+
Re(l.field, (T) => p(T));
|
|
383
|
+
const N = ee(), u = c.some((T) => T.key === f) ? f : "look", b = /* @__PURE__ */ t("fieldset", { disabled: d, className: "min-w-0", children: m ? u === "look" ? /* @__PURE__ */ t(Se, {}) : u === "rules" ? /* @__PURE__ */ t(De, {}) : u === "picker" ? /* @__PURE__ */ t(Me, {}) : u === "grid" ? /* @__PURE__ */ t(ge, {}) : u === "help" ? /* @__PURE__ */ a("div", { "data-help-tab": "", className: "space-y-5", children: [
|
|
384
|
+
/* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: "Help text and the placeholder are on the Look tab." }),
|
|
385
|
+
/* @__PURE__ */ t($, { kind: "field", name: l.field, label: r.label }),
|
|
386
|
+
/* @__PURE__ */ t(
|
|
387
|
+
V,
|
|
388
|
+
{
|
|
389
|
+
target: { kind: "field", field: l.field, group_key: l.group_key },
|
|
390
|
+
name: r.label
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
] }) : /* @__PURE__ */ t(ye, {}) : /* @__PURE__ */ t("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: "Loading the field…" }) });
|
|
394
|
+
return /* @__PURE__ */ t(ve.Provider, { value: _, children: /* @__PURE__ */ a(Pe.Provider, { value: x, children: [
|
|
294
395
|
/* @__PURE__ */ t(
|
|
295
|
-
|
|
396
|
+
E,
|
|
296
397
|
{
|
|
297
|
-
eyebrow:
|
|
398
|
+
eyebrow: /* @__PURE__ */ t(I, { kind: "Field", target: e, where: n }),
|
|
298
399
|
title: r.label,
|
|
299
|
-
sub: /* @__PURE__ */ t(
|
|
400
|
+
sub: /* @__PURE__ */ t(B, { words: m ? we(r) : void 0, k: l.field }),
|
|
300
401
|
children: /* @__PURE__ */ t(
|
|
301
|
-
|
|
402
|
+
me,
|
|
302
403
|
{
|
|
303
|
-
idBase:
|
|
404
|
+
idBase: N,
|
|
304
405
|
label: `Settings of ${r.label}`,
|
|
305
|
-
tabs:
|
|
306
|
-
active:
|
|
307
|
-
onChange: (
|
|
308
|
-
|
|
406
|
+
tabs: c,
|
|
407
|
+
active: u,
|
|
408
|
+
onChange: (T) => {
|
|
409
|
+
o.flush(), p(T);
|
|
309
410
|
}
|
|
310
411
|
}
|
|
311
412
|
)
|
|
312
413
|
}
|
|
313
414
|
),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
|
|
415
|
+
/* @__PURE__ */ a(
|
|
416
|
+
F,
|
|
316
417
|
{
|
|
317
|
-
tabpanel: { id:
|
|
418
|
+
tabpanel: { id: pe(N), labelledBy: fe(N, u) },
|
|
318
419
|
children: [
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/* @__PURE__ */ t(
|
|
322
|
-
|
|
420
|
+
i,
|
|
421
|
+
d ? /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: b }) : /* @__PURE__ */ a(k, { children: [
|
|
422
|
+
/* @__PURE__ */ t(ce, { bundle: o.bundle, rows: [l], apply: o.apply }),
|
|
423
|
+
/* @__PURE__ */ t(H, { field: !0 }),
|
|
424
|
+
b
|
|
323
425
|
] })
|
|
324
426
|
]
|
|
325
427
|
},
|
|
326
|
-
|
|
428
|
+
u
|
|
327
429
|
)
|
|
328
430
|
] }) });
|
|
329
431
|
}
|
|
330
432
|
export {
|
|
331
|
-
|
|
433
|
+
Ft as Inspector
|
|
332
434
|
};
|