@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,50 +1,52 @@
|
|
|
1
1
|
import { jsx as i, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import { ExternalLink as
|
|
3
|
-
import { useContext as Be, useRef as
|
|
4
|
-
import { useDrilldown as
|
|
5
|
-
import { getFieldInterface as
|
|
6
|
-
import { precisionOf as
|
|
7
|
-
import { resolveOptionFilterTokens as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { ExternalLink as Me } from "lucide-react";
|
|
3
|
+
import { useContext as Be, useRef as E, useEffect as te, useState as Le } from "react";
|
|
4
|
+
import { useDrilldown as qe, useParentDraft as Te, RelationPathDataContext as Ee, useApiFetchConfig as Je, fieldDrilldownConfig as H } from "../../context.js";
|
|
5
|
+
import { getFieldInterface as He } from "../../lib/field-interfaces.js";
|
|
6
|
+
import { precisionOf as $e } from "../../lib/format-value.js";
|
|
7
|
+
import { resolveOptionFilterTokens as re } from "../../lib/option-filter-tokens.js";
|
|
8
|
+
import { counterOf as Ge } from "../../lib/placement-behaviour.js";
|
|
9
|
+
import { choiceLabel as Ke } from "../../lib/utils.js";
|
|
10
|
+
import { Badge as Ve } from "../ui/badge.js";
|
|
10
11
|
import { Input as B } from "../ui/input.js";
|
|
11
|
-
import { Label as
|
|
12
|
-
import { SimpleSelect as
|
|
13
|
-
import { Switch as
|
|
14
|
-
import { Textarea as
|
|
15
|
-
import { CatalogPickerField as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
import { Label as We } from "../ui/label.js";
|
|
13
|
+
import { SimpleSelect as Ye } from "../ui/SimpleSelect.js";
|
|
14
|
+
import { Switch as ze } from "../ui/switch.js";
|
|
15
|
+
import { Textarea as $ } from "../ui/textarea.js";
|
|
16
|
+
import { CatalogPickerField as Ue } from "./CatalogPickerField.js";
|
|
17
|
+
import { useFieldAffordances as Ce } from "./FieldAffordances.js";
|
|
18
|
+
import { ProgressField as oe, RatingScaleField as ne, DurationReadOnly as Qe, ChecklistReadOnly as Xe, ColorPackField as ie, PhoneField as ae, EmailField as Ze, AddressAutocompleteField as Oe } from "./FieldPack.js";
|
|
19
|
+
import { FilePickerField as et, FileM2MField as tt } from "./FilePickerField.js";
|
|
20
|
+
import { formatDisplayValue as L } from "./GroupSection.js";
|
|
21
|
+
import { parseJson as _, toLocalDatetime as rt } from "./helpers.js";
|
|
22
|
+
import { InlineGridField as ot } from "./InlineGridField.js";
|
|
23
|
+
import { InlineTableField as nt } from "./InlineTableField.js";
|
|
24
|
+
import { M2MSingleSelectCombobox as it, M2MCombobox as at } from "./M2MCombobox.js";
|
|
25
|
+
import { MembershipSetField as lt } from "./MembershipSetField.js";
|
|
26
|
+
import { PlanGridField as st } from "./PlanGrid.js";
|
|
27
|
+
import { smartParseDate as ct, CountdownChip as dt, DurationField as ut, FiscalPeriodField as mt, ChecklistField as pt, RepeaterField as yt, RangeSliderField as _t, DateRangeField as ft, AddressField as bt, maskFor as xt, applyInputMask as le } from "./PolishFields.js";
|
|
28
|
+
import { QuickCreateButton as ht } from "./QuickCreateButton.js";
|
|
29
|
+
import { RelationCombobox as gt } from "./RelationCombobox.js";
|
|
30
|
+
import { RelationGroupedCombobox as vt } from "./RelationGroupedCombobox.js";
|
|
31
|
+
import { RichTextEditor as wt } from "./RichTextEditor.js";
|
|
32
|
+
function Nt({
|
|
33
|
+
plugin: e,
|
|
32
34
|
props: n
|
|
33
35
|
}) {
|
|
34
|
-
const l =
|
|
35
|
-
return p.current = n,
|
|
36
|
+
const l = E(null), m = E(void 0), p = E(n);
|
|
37
|
+
return p.current = n, te(() => {
|
|
36
38
|
if (l.current)
|
|
37
|
-
return l.current.innerHTML = "", m.current =
|
|
39
|
+
return l.current.innerHTML = "", m.current = e.mount(l.current, p.current), () => {
|
|
38
40
|
var c, u;
|
|
39
41
|
(u = (c = m.current) == null ? void 0 : c.destroy) == null || u.call(c), m.current = void 0;
|
|
40
42
|
};
|
|
41
|
-
}, [
|
|
43
|
+
}, [e]), te(() => {
|
|
42
44
|
var c, u;
|
|
43
45
|
(u = (c = m.current) == null ? void 0 : c.update) == null || u.call(c, n);
|
|
44
|
-
}, [n]), /* @__PURE__ */ i("div", { ref: l, "data-custom-interface":
|
|
46
|
+
}, [n]), /* @__PURE__ */ i("div", { ref: l, "data-custom-interface": e.interface });
|
|
45
47
|
}
|
|
46
|
-
function
|
|
47
|
-
const n =
|
|
48
|
+
function se(e) {
|
|
49
|
+
const n = e.validation_rules, l = Array.isArray(n) ? n : _(typeof n == "string" ? n : null);
|
|
48
50
|
if (!Array.isArray(l)) return {};
|
|
49
51
|
const m = (c) => {
|
|
50
52
|
const u = /* @__PURE__ */ new Date();
|
|
@@ -58,8 +60,8 @@ function le(t) {
|
|
|
58
60
|
}
|
|
59
61
|
return p;
|
|
60
62
|
}
|
|
61
|
-
function
|
|
62
|
-
field:
|
|
63
|
+
function or({
|
|
64
|
+
field: e,
|
|
63
65
|
value: n,
|
|
64
66
|
onChange: l,
|
|
65
67
|
relations: m,
|
|
@@ -70,100 +72,101 @@ function Zt({
|
|
|
70
72
|
narrowedBy: F,
|
|
71
73
|
onCountChange: d,
|
|
72
74
|
displayOnly: w,
|
|
73
|
-
prefillParentId:
|
|
74
|
-
pinnedOption:
|
|
75
|
+
prefillParentId: ce,
|
|
76
|
+
pinnedOption: G
|
|
75
77
|
}) {
|
|
76
|
-
var
|
|
77
|
-
const j =
|
|
78
|
+
var Y, z, U, C, Q, X, Z, O, ee;
|
|
79
|
+
const j = qe(), I = Ce(), A = Te(), J = Be(Ee), D = A, f = (() => {
|
|
78
80
|
try {
|
|
79
|
-
return
|
|
81
|
+
return Je();
|
|
80
82
|
} catch {
|
|
81
83
|
return null;
|
|
82
84
|
}
|
|
83
|
-
})(), s =
|
|
84
|
-
if (
|
|
85
|
+
})(), s = e.interface ?? "", K = E(He(s)).current;
|
|
86
|
+
if (K)
|
|
85
87
|
return /* @__PURE__ */ i(
|
|
86
|
-
|
|
88
|
+
Nt,
|
|
87
89
|
{
|
|
88
|
-
plugin:
|
|
90
|
+
plugin: K,
|
|
89
91
|
props: {
|
|
90
92
|
value: n,
|
|
91
93
|
onChange: l,
|
|
92
|
-
field: { field:
|
|
93
|
-
readOnly: !!
|
|
94
|
+
field: { field: e.field, label: e.label, options: e.options },
|
|
95
|
+
readOnly: !!e.readonly || !!w,
|
|
94
96
|
collection: p,
|
|
95
97
|
itemId: c || null
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
);
|
|
99
101
|
if (s === "file-image" || s === "file") {
|
|
100
|
-
const r = _(
|
|
102
|
+
const r = _(e.options);
|
|
101
103
|
return /* @__PURE__ */ i(
|
|
102
|
-
|
|
104
|
+
et,
|
|
103
105
|
{
|
|
104
106
|
value: n,
|
|
105
107
|
onChange: l,
|
|
106
|
-
disabled:
|
|
108
|
+
disabled: e.readonly,
|
|
107
109
|
allowUpload: (r == null ? void 0 : r.allow_upload) !== !1,
|
|
108
110
|
allowPick: (r == null ? void 0 : r.allow_pick) !== !1
|
|
109
111
|
}
|
|
110
112
|
);
|
|
111
113
|
}
|
|
112
|
-
const
|
|
113
|
-
(r) => r.many_collection === p && r.many_field ===
|
|
114
|
+
const V = !s || s.startsWith("relation-") || s === "select-multiple-m2m" || s.endsWith("-m2o") || s.endsWith("-m2m"), N = V ? m.find(
|
|
115
|
+
(r) => r.many_collection === p && r.many_field === e.field && !r.junction_field
|
|
114
116
|
) : null;
|
|
115
117
|
if (N != null && N.one_collection) {
|
|
116
118
|
if (s === "relation-grouped") {
|
|
117
|
-
const y = _(
|
|
119
|
+
const y = _(e.options);
|
|
118
120
|
if (y != null && y.group_field && (y != null && y.option_field))
|
|
119
121
|
return /* @__PURE__ */ i(
|
|
120
|
-
|
|
122
|
+
vt,
|
|
121
123
|
{
|
|
122
124
|
collection: N.one_collection,
|
|
123
125
|
value: n,
|
|
124
126
|
onChange: l,
|
|
125
127
|
groupField: y.group_field,
|
|
126
128
|
optionField: y.option_field,
|
|
127
|
-
disabled:
|
|
128
|
-
placeholder:
|
|
129
|
+
disabled: e.readonly,
|
|
130
|
+
placeholder: e.placeholder ?? void 0,
|
|
129
131
|
extraFilter: u,
|
|
130
|
-
pinned:
|
|
132
|
+
pinned: G
|
|
131
133
|
}
|
|
132
134
|
);
|
|
133
135
|
}
|
|
134
|
-
const r = j && n != null && n !== "" ?
|
|
136
|
+
const r = j && n != null && n !== "" ? H(e) : null, o = _(e.options), a = re(
|
|
135
137
|
o != null && o.option_filter && typeof o.option_filter == "object" ? o.option_filter : void 0,
|
|
136
138
|
A == null ? void 0 : A.draft,
|
|
137
139
|
c
|
|
138
|
-
),
|
|
139
|
-
|
|
140
|
+
), t = a ? u ? { _and: [a, u] } : a : u, b = /* @__PURE__ */ i(
|
|
141
|
+
gt,
|
|
140
142
|
{
|
|
141
|
-
fieldKey:
|
|
143
|
+
fieldKey: e.field,
|
|
144
|
+
missPlacement: (I == null ? void 0 : I.layoutId) != null && I.pickerMisses !== !1 ? { layoutId: Number(I.layoutId), collection: p, field: e.field } : null,
|
|
142
145
|
collection: N.one_collection,
|
|
143
146
|
value: n,
|
|
144
147
|
onChange: l,
|
|
145
|
-
disabled:
|
|
146
|
-
placeholder:
|
|
147
|
-
extraFilter:
|
|
148
|
+
disabled: e.readonly,
|
|
149
|
+
placeholder: e.placeholder ?? void 0,
|
|
150
|
+
extraFilter: t,
|
|
148
151
|
autoSelectSingle: (o == null ? void 0 : o.auto_select_single) === !0,
|
|
149
152
|
optionSort: typeof (o == null ? void 0 : o.option_sort) == "string" && o.option_sort ? o.option_sort : void 0,
|
|
150
153
|
requiredParent: g ?? void 0,
|
|
151
154
|
narrowedBy: F,
|
|
152
|
-
pinned:
|
|
155
|
+
pinned: G,
|
|
153
156
|
facets: Array.isArray(o == null ? void 0 : o.picker_facets) ? o.picker_facets.map((y) => ({
|
|
154
157
|
...y,
|
|
155
158
|
// Facet filters support the same '$parent.<field>' tokens (and
|
|
156
159
|
// _and clause pruning) as option_filter, resolved from the same
|
|
157
160
|
// parent draft — keeps facet option lists in sync with the main
|
|
158
161
|
// option query's eligibility clauses.
|
|
159
|
-
filter: y.filter && typeof y.filter == "object" ?
|
|
162
|
+
filter: y.filter && typeof y.filter == "object" ? re(y.filter, A == null ? void 0 : A.draft, c) : void 0
|
|
160
163
|
})) : void 0
|
|
161
164
|
}
|
|
162
|
-
), v = o != null && o.quick_create && Array.isArray(o.quick_create.fields) && !
|
|
165
|
+
), v = o != null && o.quick_create && Array.isArray(o.quick_create.fields) && !e.readonly ? o.quick_create : null;
|
|
163
166
|
return !r && !v ? b : /* @__PURE__ */ h("div", { className: "flex items-center gap-1.5", children: [
|
|
164
167
|
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: b }),
|
|
165
168
|
v && /* @__PURE__ */ i(
|
|
166
|
-
|
|
169
|
+
ht,
|
|
167
170
|
{
|
|
168
171
|
targetCollection: N.one_collection,
|
|
169
172
|
config: v,
|
|
@@ -182,14 +185,14 @@ function Zt({
|
|
|
182
185
|
width: r.width
|
|
183
186
|
}),
|
|
184
187
|
className: "shrink-0 rounded p-1 text-slate-400 hover:bg-slate-100 hover:text-nvr-cyan dark:hover:bg-slate-800",
|
|
185
|
-
children: /* @__PURE__ */ i(
|
|
188
|
+
children: /* @__PURE__ */ i(Me, { className: "h-3.5 w-3.5" })
|
|
186
189
|
}
|
|
187
190
|
)
|
|
188
191
|
] });
|
|
189
192
|
}
|
|
190
|
-
const
|
|
193
|
+
const q = V && !N ? (() => {
|
|
191
194
|
const r = m.find(
|
|
192
|
-
(a) => a.one_collection === p && (a.one_field ===
|
|
195
|
+
(a) => a.one_collection === p && (a.one_field === e.field || a.junction_field != null && a.many_collection === e.field)
|
|
193
196
|
);
|
|
194
197
|
if (!r) return null;
|
|
195
198
|
if (r.junction_field) return r;
|
|
@@ -198,27 +201,27 @@ function Zt({
|
|
|
198
201
|
);
|
|
199
202
|
return o ? { ...r, junction_field: o.many_field } : null;
|
|
200
203
|
})() : null;
|
|
201
|
-
if (
|
|
204
|
+
if (q) {
|
|
202
205
|
if (s === "files-m2m") {
|
|
203
|
-
const a = _(
|
|
206
|
+
const a = _(e.options);
|
|
204
207
|
return /* @__PURE__ */ i(
|
|
205
|
-
|
|
208
|
+
tt,
|
|
206
209
|
{
|
|
207
|
-
relation:
|
|
210
|
+
relation: q,
|
|
208
211
|
parentId: c,
|
|
209
212
|
allRelations: m,
|
|
210
|
-
disabled:
|
|
213
|
+
disabled: e.readonly,
|
|
211
214
|
allowUpload: (a == null ? void 0 : a.allow_upload) !== !1,
|
|
212
215
|
allowPick: (a == null ? void 0 : a.allow_pick) !== !1,
|
|
213
216
|
pendingSave: (a == null ? void 0 : a.pending_save) === !0
|
|
214
217
|
}
|
|
215
218
|
);
|
|
216
219
|
}
|
|
217
|
-
const r = _(
|
|
220
|
+
const r = _(e.options), o = typeof (r == null ? void 0 : r.option_sort) == "string" && r.option_sort ? r.option_sort : void 0;
|
|
218
221
|
return (r == null ? void 0 : r.max_values) === 1 ? /* @__PURE__ */ i(
|
|
219
|
-
|
|
222
|
+
it,
|
|
220
223
|
{
|
|
221
|
-
relation:
|
|
224
|
+
relation: q,
|
|
222
225
|
parentId: c,
|
|
223
226
|
allRelations: m,
|
|
224
227
|
extraFilter: u,
|
|
@@ -228,81 +231,81 @@ function Zt({
|
|
|
228
231
|
readOnly: w
|
|
229
232
|
}
|
|
230
233
|
) : /* @__PURE__ */ i(
|
|
231
|
-
|
|
234
|
+
at,
|
|
232
235
|
{
|
|
233
|
-
relation:
|
|
236
|
+
relation: q,
|
|
234
237
|
parentId: c,
|
|
235
238
|
allRelations: m,
|
|
236
239
|
extraFilter: u,
|
|
237
240
|
optionSort: o,
|
|
238
241
|
requiredParent: g ?? void 0,
|
|
239
242
|
onCountChange: d,
|
|
240
|
-
drilldown:
|
|
243
|
+
drilldown: H(e)
|
|
241
244
|
}
|
|
242
245
|
);
|
|
243
246
|
}
|
|
244
|
-
if (
|
|
247
|
+
if (e.readonly && s !== "inline-table") {
|
|
245
248
|
if (s === "relation-path" && n != null && n !== "" && j) {
|
|
246
|
-
const a =
|
|
247
|
-
if (a && (
|
|
249
|
+
const a = H(e), t = J == null ? void 0 : J[e.field];
|
|
250
|
+
if (a && (t != null && t.target_collection) && t.ids.length > 0)
|
|
248
251
|
return /* @__PURE__ */ i("div", { className: "min-h-[36px] flex items-center", children: /* @__PURE__ */ i(
|
|
249
252
|
"button",
|
|
250
253
|
{
|
|
251
254
|
type: "button",
|
|
252
255
|
onClick: () => j.open({
|
|
253
|
-
collection:
|
|
254
|
-
itemId:
|
|
256
|
+
collection: t.target_collection,
|
|
257
|
+
itemId: t.ids[0],
|
|
255
258
|
layoutId: a.layout_id,
|
|
256
259
|
width: a.width,
|
|
257
260
|
title: String(n)
|
|
258
261
|
}),
|
|
259
262
|
className: "text-left text-sm text-slate-700 underline decoration-slate-300 decoration-dotted underline-offset-2 hover:text-[#172940] hover:decoration-nvr-cyan dark:text-slate-200 dark:hover:text-nvr-cyan",
|
|
260
|
-
children:
|
|
263
|
+
children: L(n, e)
|
|
261
264
|
}
|
|
262
265
|
) });
|
|
263
266
|
}
|
|
264
|
-
const r = (
|
|
267
|
+
const r = (Y = e.options) == null ? void 0 : Y.__live_delta;
|
|
265
268
|
if (r && Number.isFinite(Number(r.live))) {
|
|
266
|
-
const a = Number(r.original),
|
|
269
|
+
const a = Number(r.original), t = Number(r.live) - (Number.isFinite(a) ? a : 0), b = Math.round(t * 100) / 100;
|
|
267
270
|
return /* @__PURE__ */ h("div", { className: "flex min-h-[36px] flex-wrap items-center gap-x-2 gap-y-0.5", children: [
|
|
268
|
-
/* @__PURE__ */ i("span", { className: "text-sm text-slate-400 line-through tabular-nums", children:
|
|
271
|
+
/* @__PURE__ */ i("span", { className: "text-sm text-slate-400 line-through tabular-nums", children: L(r.original, e) }),
|
|
269
272
|
/* @__PURE__ */ i("span", { className: "text-slate-300", "aria-hidden": !0, children: "→" }),
|
|
270
|
-
/* @__PURE__ */ i("span", { className: "text-sm font-medium tabular-nums", children:
|
|
273
|
+
/* @__PURE__ */ i("span", { className: "text-sm font-medium tabular-nums", children: L(r.live, e) }),
|
|
271
274
|
b !== 0 && /* @__PURE__ */ h(
|
|
272
275
|
"span",
|
|
273
276
|
{
|
|
274
277
|
className: `rounded px-1.5 py-px text-[11px] font-medium tabular-nums ${b > 0 ? "bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400" : "bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-400"}`,
|
|
275
278
|
children: [
|
|
276
279
|
b > 0 ? "+" : "−",
|
|
277
|
-
|
|
280
|
+
L(Math.abs(b), e)
|
|
278
281
|
]
|
|
279
282
|
}
|
|
280
283
|
)
|
|
281
284
|
] });
|
|
282
285
|
}
|
|
283
|
-
if (s === "progress") return /* @__PURE__ */ i(
|
|
286
|
+
if (s === "progress") return /* @__PURE__ */ i(oe, { value: n, onChange: l, readOnly: !0 });
|
|
284
287
|
if (s === "rating") {
|
|
285
|
-
const a = (
|
|
286
|
-
return /* @__PURE__ */ i(
|
|
288
|
+
const a = (z = _(e.options)) == null ? void 0 : z.rating_max;
|
|
289
|
+
return /* @__PURE__ */ i(ne, { value: n, onChange: l, max: a ?? 5, readOnly: !0 });
|
|
287
290
|
}
|
|
288
|
-
if (s === "duration") return /* @__PURE__ */ i(
|
|
289
|
-
if (s === "checklist") return /* @__PURE__ */ i(
|
|
291
|
+
if (s === "duration") return /* @__PURE__ */ i(Qe, { value: n });
|
|
292
|
+
if (s === "checklist") return /* @__PURE__ */ i(Xe, { value: n });
|
|
290
293
|
if (s === "color")
|
|
291
|
-
return /* @__PURE__ */ i(
|
|
292
|
-
if (s === "phone") return /* @__PURE__ */ i(
|
|
293
|
-
const o = n == null ? /* @__PURE__ */ i("span", { className: "text-muted-foreground italic text-sm", children: "—" }) : typeof n == "boolean" ? /* @__PURE__ */ i(
|
|
294
|
+
return /* @__PURE__ */ i(ie, { field: e, value: n, onChange: l, readOnly: !0 });
|
|
295
|
+
if (s === "phone") return /* @__PURE__ */ i(ae, { value: n, onChange: l, readOnly: !0 });
|
|
296
|
+
const o = n == null ? /* @__PURE__ */ i("span", { className: "text-muted-foreground italic text-sm", children: "—" }) : typeof n == "boolean" ? /* @__PURE__ */ i(Ve, { variant: n ? "default" : "secondary", children: n ? "Yes" : "No" }) : /* @__PURE__ */ i("span", { className: "text-sm tabular-nums", children: L(n, e) });
|
|
294
297
|
return /* @__PURE__ */ i("div", { className: "min-h-[36px] flex items-center", children: o });
|
|
295
298
|
}
|
|
296
299
|
const x = n == null ? "" : String(n);
|
|
297
|
-
if (
|
|
300
|
+
if (e.type === "boolean")
|
|
298
301
|
return /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
299
|
-
/* @__PURE__ */ i(
|
|
300
|
-
/* @__PURE__ */ i(
|
|
302
|
+
/* @__PURE__ */ i(ze, { checked: !!n, onCheckedChange: l }),
|
|
303
|
+
/* @__PURE__ */ i(We, { className: "font-normal text-sm", children: n ? "Yes" : "No" })
|
|
301
304
|
] });
|
|
302
|
-
if (
|
|
303
|
-
const r = _(
|
|
305
|
+
if (e.type === "datetime" || s === "datetime") {
|
|
306
|
+
const r = _(e.options);
|
|
304
307
|
if ((r == null ? void 0 : r.date_mode) === "date") {
|
|
305
|
-
const o =
|
|
308
|
+
const o = se(e);
|
|
306
309
|
return /* @__PURE__ */ i(
|
|
307
310
|
B,
|
|
308
311
|
{
|
|
@@ -311,7 +314,7 @@ function Zt({
|
|
|
311
314
|
min: o.min,
|
|
312
315
|
max: o.max,
|
|
313
316
|
onChange: (a) => l(a.target.value || null),
|
|
314
|
-
placeholder:
|
|
317
|
+
placeholder: e.placeholder ?? void 0
|
|
315
318
|
}
|
|
316
319
|
);
|
|
317
320
|
}
|
|
@@ -319,14 +322,14 @@ function Zt({
|
|
|
319
322
|
B,
|
|
320
323
|
{
|
|
321
324
|
type: "datetime-local",
|
|
322
|
-
value:
|
|
325
|
+
value: rt(n),
|
|
323
326
|
onChange: (o) => l(o.target.value ? new Date(o.target.value).toISOString() : null),
|
|
324
|
-
placeholder:
|
|
327
|
+
placeholder: e.placeholder ?? void 0
|
|
325
328
|
}
|
|
326
329
|
);
|
|
327
330
|
}
|
|
328
|
-
if (
|
|
329
|
-
const r = ((
|
|
331
|
+
if (e.type === "date" || s === "date") {
|
|
332
|
+
const r = ((U = _(e.options)) == null ? void 0 : U.countdown) === !0, o = se(e);
|
|
330
333
|
return /* @__PURE__ */ h("div", { className: "flex items-center", children: [
|
|
331
334
|
/* @__PURE__ */ i(
|
|
332
335
|
B,
|
|
@@ -337,14 +340,14 @@ function Zt({
|
|
|
337
340
|
max: o.max,
|
|
338
341
|
onChange: (a) => l(a.target.value || null),
|
|
339
342
|
onPaste: (a) => {
|
|
340
|
-
const
|
|
341
|
-
|
|
343
|
+
const t = ct(a.clipboardData.getData("text"));
|
|
344
|
+
t && (a.preventDefault(), l(t));
|
|
342
345
|
},
|
|
343
|
-
placeholder:
|
|
346
|
+
placeholder: e.placeholder ?? void 0,
|
|
344
347
|
className: "flex-1"
|
|
345
348
|
}
|
|
346
349
|
),
|
|
347
|
-
r && /* @__PURE__ */ i(
|
|
350
|
+
r && /* @__PURE__ */ i(dt, { value: x.slice(0, 10) })
|
|
348
351
|
] });
|
|
349
352
|
}
|
|
350
353
|
if ([
|
|
@@ -362,31 +365,31 @@ function Zt({
|
|
|
362
365
|
"smallmoney",
|
|
363
366
|
"double",
|
|
364
367
|
"number"
|
|
365
|
-
].includes(
|
|
368
|
+
].includes(e.type)) {
|
|
366
369
|
const r = ["integer", "bigInteger", "int", "bigint", "smallint", "tinyint"].includes(
|
|
367
|
-
|
|
368
|
-
), o = r ? 0 :
|
|
370
|
+
e.type
|
|
371
|
+
), o = r ? 0 : $e(e.options, -1), a = r ? "1" : o >= 0 ? String(10 ** -o) : "any";
|
|
369
372
|
return /* @__PURE__ */ i(
|
|
370
373
|
B,
|
|
371
374
|
{
|
|
372
375
|
type: "number",
|
|
373
376
|
step: a,
|
|
374
377
|
value: x,
|
|
375
|
-
onChange: (
|
|
376
|
-
onBlur: (
|
|
377
|
-
if (o < 0 ||
|
|
378
|
-
const b = Number(
|
|
378
|
+
onChange: (t) => l(t.target.value === "" ? null : Number(t.target.value)),
|
|
379
|
+
onBlur: (t) => {
|
|
380
|
+
if (o < 0 || t.target.value === "") return;
|
|
381
|
+
const b = Number(t.target.value);
|
|
379
382
|
if (!Number.isFinite(b)) return;
|
|
380
383
|
const v = Number(b.toFixed(o));
|
|
381
384
|
v !== b && l(v);
|
|
382
385
|
},
|
|
383
|
-
placeholder:
|
|
386
|
+
placeholder: e.placeholder ?? void 0
|
|
384
387
|
}
|
|
385
388
|
);
|
|
386
389
|
}
|
|
387
|
-
if (
|
|
390
|
+
if (e.type === "json" || s === "code")
|
|
388
391
|
return /* @__PURE__ */ i(
|
|
389
|
-
|
|
392
|
+
$,
|
|
390
393
|
{
|
|
391
394
|
className: "font-mono text-xs",
|
|
392
395
|
rows: 4,
|
|
@@ -398,64 +401,64 @@ function Zt({
|
|
|
398
401
|
l(r.target.value);
|
|
399
402
|
}
|
|
400
403
|
},
|
|
401
|
-
placeholder:
|
|
404
|
+
placeholder: e.placeholder ?? void 0
|
|
402
405
|
}
|
|
403
406
|
);
|
|
404
407
|
if (s === "textarea")
|
|
405
408
|
return /* @__PURE__ */ i(
|
|
406
|
-
|
|
409
|
+
$,
|
|
407
410
|
{
|
|
408
411
|
rows: 4,
|
|
409
412
|
value: x,
|
|
410
413
|
onChange: (r) => l(r.target.value),
|
|
411
|
-
placeholder:
|
|
414
|
+
placeholder: e.placeholder ?? void 0
|
|
412
415
|
}
|
|
413
416
|
);
|
|
414
417
|
if (s === "wysiwyg" || s === "markdown")
|
|
415
418
|
return /* @__PURE__ */ i(
|
|
416
|
-
|
|
419
|
+
$,
|
|
417
420
|
{
|
|
418
421
|
rows: 6,
|
|
419
422
|
value: x,
|
|
420
423
|
onChange: (r) => l(r.target.value),
|
|
421
|
-
placeholder:
|
|
424
|
+
placeholder: e.placeholder ?? void 0,
|
|
422
425
|
className: "font-mono text-sm"
|
|
423
426
|
}
|
|
424
427
|
);
|
|
425
|
-
if (s === "input-rich-text-html" || s === "rich_text" ||
|
|
428
|
+
if (s === "input-rich-text-html" || s === "rich_text" || e.type === "rich_text" || s === "extension-editorjs")
|
|
426
429
|
return /* @__PURE__ */ i(
|
|
427
|
-
|
|
430
|
+
wt,
|
|
428
431
|
{
|
|
429
432
|
value: x,
|
|
430
433
|
onChange: l,
|
|
431
|
-
placeholder:
|
|
432
|
-
disabled:
|
|
433
|
-
pastePlain: ((
|
|
434
|
+
placeholder: e.placeholder ?? void 0,
|
|
435
|
+
disabled: e.readonly,
|
|
436
|
+
pastePlain: ((C = _(e.options)) == null ? void 0 : C.paste_plain) === !0
|
|
434
437
|
}
|
|
435
438
|
);
|
|
436
439
|
if (s === "inline-grid" || s === "relation-list" || s === "list-o2m") {
|
|
437
440
|
const r = m.find(
|
|
438
|
-
(o) => o.one_collection === p && !o.junction_field && (o.one_field ===
|
|
441
|
+
(o) => o.one_collection === p && !o.junction_field && (o.one_field === e.field || o.many_collection === e.field)
|
|
439
442
|
);
|
|
440
443
|
if (r) {
|
|
441
444
|
const o = r.many_collection ?? null, a = r.many_field ?? null;
|
|
442
445
|
if (o && a && c) {
|
|
443
|
-
const b = (typeof
|
|
446
|
+
const b = (typeof e.options == "string" ? (() => {
|
|
444
447
|
try {
|
|
445
|
-
return JSON.parse(
|
|
448
|
+
return JSON.parse(e.options);
|
|
446
449
|
} catch {
|
|
447
450
|
return {};
|
|
448
451
|
}
|
|
449
|
-
})() :
|
|
452
|
+
})() : e.options ?? {}).layout_slug ?? null;
|
|
450
453
|
return /* @__PURE__ */ i(
|
|
451
|
-
|
|
454
|
+
ot,
|
|
452
455
|
{
|
|
453
456
|
relatedCollection: o,
|
|
454
457
|
manyField: a,
|
|
455
458
|
parentId: c,
|
|
456
459
|
layoutSlug: b,
|
|
457
|
-
parentFieldKey:
|
|
458
|
-
emptyLabel:
|
|
460
|
+
parentFieldKey: e.field,
|
|
461
|
+
emptyLabel: e.label || void 0
|
|
459
462
|
}
|
|
460
463
|
);
|
|
461
464
|
}
|
|
@@ -464,64 +467,64 @@ function Zt({
|
|
|
464
467
|
}
|
|
465
468
|
if (s === "inline-table") {
|
|
466
469
|
const r = m.find(
|
|
467
|
-
(o) => o.one_collection === p && !o.junction_field && (o.one_field ===
|
|
470
|
+
(o) => o.one_collection === p && !o.junction_field && (o.one_field === e.field || o.many_collection === e.field)
|
|
468
471
|
);
|
|
469
472
|
if (r) {
|
|
470
473
|
const o = r.many_collection ?? null, a = r.many_field ?? null;
|
|
471
474
|
if (o && a && c) {
|
|
472
|
-
const
|
|
475
|
+
const t = typeof e.options == "string" ? (() => {
|
|
473
476
|
try {
|
|
474
|
-
return JSON.parse(
|
|
477
|
+
return JSON.parse(e.options);
|
|
475
478
|
} catch {
|
|
476
479
|
return {};
|
|
477
480
|
}
|
|
478
|
-
})() :
|
|
481
|
+
})() : e.options ?? {}, b = t.layout_id ?? null, v = !!t.show_row_revisions, y = !!t.row_comments, de = t.allow_revision_restore !== !1, ue = t.save_mode ?? "immediate", me = !!t.show_line_numbers, pe = t.enable_reorder !== !1, ye = Array.isArray(t.parent_cascades) ? t.parent_cascades : void 0, _e = Array.isArray(t.row_rules) ? t.row_rules : void 0, fe = Array.isArray(t.column_presets) ? t.column_presets : void 0, be = typeof t.default_preset == "string" && t.default_preset ? t.default_preset : void 0, xe = Array.isArray(t.drawer_relations) ? t.drawer_relations : void 0, he = Array.isArray(t.parent_context_fields) ? t.parent_context_fields : void 0, ge = Array.isArray(t.unique_by) ? t.unique_by : void 0, ve = typeof t.sort_field == "string" && t.sort_field ? t.sort_field : void 0, we = t.sort_dir === "desc" ? "desc" : "asc", Ne = t.freeze_first_column === !0, ke = typeof t.section_group_by == "string" && t.section_group_by.includes(".") ? t.section_group_by : void 0, Fe = t.row_filter && typeof t.row_filter == "object" ? t.row_filter : void 0, Ae = t.allocate_drawer && typeof t.allocate_drawer == "object" ? t.allocate_drawer : void 0, Se = t.auto_allocate && typeof t.auto_allocate == "object" ? t.auto_allocate : void 0, Re = Array.isArray(t.row_bulk_actions) ? t.row_bulk_actions : void 0, je = typeof t.upload_template == "string" && t.upload_template ? t.upload_template : void 0, De = t.row_match_panel ?? void 0, Ie = t.row_defaults && typeof t.row_defaults == "object" ? t.row_defaults : void 0, Pe = t.submission_errors === !0 ? {} : t.submission_errors && typeof t.submission_errors == "object" ? t.submission_errors : void 0, S = t.membership_set;
|
|
479
482
|
if (S != null && S.key_field && (S != null && S.value_field))
|
|
480
483
|
return /* @__PURE__ */ i(
|
|
481
|
-
|
|
484
|
+
lt,
|
|
482
485
|
{
|
|
483
486
|
relatedCollection: o,
|
|
484
487
|
manyField: a,
|
|
485
488
|
parentId: c,
|
|
486
489
|
config: S,
|
|
487
|
-
readOnly:
|
|
490
|
+
readOnly: e.readonly
|
|
488
491
|
}
|
|
489
492
|
);
|
|
490
|
-
const R =
|
|
493
|
+
const R = t.catalog_mode;
|
|
491
494
|
if (R != null && R.item_field && (R != null && R.section_by))
|
|
492
495
|
return /* @__PURE__ */ i(
|
|
493
|
-
|
|
496
|
+
Ue,
|
|
494
497
|
{
|
|
495
498
|
relatedCollection: o,
|
|
496
499
|
manyField: a,
|
|
497
500
|
parentId: c,
|
|
498
501
|
parentCollection: p,
|
|
499
502
|
config: R,
|
|
500
|
-
readOnly:
|
|
503
|
+
readOnly: e.readonly
|
|
501
504
|
}
|
|
502
505
|
);
|
|
503
|
-
const k =
|
|
506
|
+
const k = t.row_split;
|
|
504
507
|
if (k != null && k.key_field && (k != null && k.category_field) && Array.isArray(k.value_fields)) {
|
|
505
|
-
const
|
|
508
|
+
const T = t.spread_remaining;
|
|
506
509
|
return /* @__PURE__ */ i(
|
|
507
|
-
|
|
510
|
+
st,
|
|
508
511
|
{
|
|
509
512
|
relatedCollection: o,
|
|
510
513
|
manyField: a,
|
|
511
514
|
parentId: c,
|
|
512
515
|
config: k,
|
|
513
|
-
compareSeries:
|
|
514
|
-
stats: Array.isArray(
|
|
515
|
-
sumCap:
|
|
516
|
-
remaining: typeof (
|
|
517
|
-
readOnly:
|
|
516
|
+
compareSeries: t.compare_series && typeof t.compare_series == "object" && typeof t.compare_series.endpoint == "string" ? t.compare_series : null,
|
|
517
|
+
stats: Array.isArray(t.stats) ? t.stats : null,
|
|
518
|
+
sumCap: t.sum_cap && typeof t.sum_cap == "object" ? t.sum_cap : null,
|
|
519
|
+
remaining: typeof (T == null ? void 0 : T.remaining) == "string" ? T.remaining : null,
|
|
520
|
+
readOnly: e.readonly,
|
|
518
521
|
showHistory: v,
|
|
519
|
-
emptyLabel:
|
|
522
|
+
emptyLabel: e.label || void 0
|
|
520
523
|
}
|
|
521
524
|
);
|
|
522
525
|
}
|
|
523
526
|
return /* @__PURE__ */ i(
|
|
524
|
-
|
|
527
|
+
nt,
|
|
525
528
|
{
|
|
526
529
|
relatedCollection: o,
|
|
527
530
|
manyField: a,
|
|
@@ -530,103 +533,103 @@ function Zt({
|
|
|
530
533
|
layoutId: b,
|
|
531
534
|
showRowRevisions: v,
|
|
532
535
|
rowComments: y,
|
|
533
|
-
allowRevisionRestore:
|
|
534
|
-
saveMode:
|
|
535
|
-
showLineNumbers:
|
|
536
|
-
enableReorder:
|
|
537
|
-
parentCascades:
|
|
538
|
-
rowRules:
|
|
539
|
-
columnPresets:
|
|
540
|
-
defaultPreset:
|
|
541
|
-
drawerRelations:
|
|
542
|
-
parentContextFields:
|
|
543
|
-
uniqueBy:
|
|
544
|
-
sortField:
|
|
545
|
-
sortDir:
|
|
546
|
-
sectionGroupBy:
|
|
547
|
-
freezeFirstColumn:
|
|
548
|
-
rowFilter:
|
|
549
|
-
rowDefaults:
|
|
550
|
-
allocateDrawer:
|
|
551
|
-
autoAllocate:
|
|
552
|
-
rowBulkActions:
|
|
553
|
-
uploadTemplate:
|
|
554
|
-
rowMatchPanel:
|
|
555
|
-
lineSla:
|
|
556
|
-
editorMode:
|
|
557
|
-
rowLints: Array.isArray(
|
|
558
|
-
stats: Array.isArray(
|
|
559
|
-
sumCap:
|
|
560
|
-
spreadRemaining:
|
|
561
|
-
compareSeries:
|
|
536
|
+
allowRevisionRestore: de,
|
|
537
|
+
saveMode: ue,
|
|
538
|
+
showLineNumbers: me,
|
|
539
|
+
enableReorder: pe,
|
|
540
|
+
parentCascades: ye,
|
|
541
|
+
rowRules: _e,
|
|
542
|
+
columnPresets: fe,
|
|
543
|
+
defaultPreset: be,
|
|
544
|
+
drawerRelations: xe,
|
|
545
|
+
parentContextFields: he,
|
|
546
|
+
uniqueBy: ge,
|
|
547
|
+
sortField: ve,
|
|
548
|
+
sortDir: we,
|
|
549
|
+
sectionGroupBy: ke,
|
|
550
|
+
freezeFirstColumn: Ne,
|
|
551
|
+
rowFilter: Fe,
|
|
552
|
+
rowDefaults: Ie,
|
|
553
|
+
allocateDrawer: Ae,
|
|
554
|
+
autoAllocate: Se,
|
|
555
|
+
rowBulkActions: Re,
|
|
556
|
+
uploadTemplate: je,
|
|
557
|
+
rowMatchPanel: De,
|
|
558
|
+
lineSla: t.line_sla ?? null,
|
|
559
|
+
editorMode: t.editor_mode === "split" ? "split" : "drawer",
|
|
560
|
+
rowLints: Array.isArray(t.row_lints) ? t.row_lints : null,
|
|
561
|
+
stats: Array.isArray(t.stats) ? t.stats : null,
|
|
562
|
+
sumCap: t.sum_cap && typeof t.sum_cap == "object" ? t.sum_cap : null,
|
|
563
|
+
spreadRemaining: t.spread_remaining && typeof t.spread_remaining == "object" ? t.spread_remaining : null,
|
|
564
|
+
compareSeries: t.compare_series && typeof t.compare_series == "object" && typeof t.compare_series.endpoint == "string" ? t.compare_series : null,
|
|
562
565
|
submissionErrors: Pe,
|
|
563
|
-
prefillParentId:
|
|
564
|
-
parentFieldKey:
|
|
565
|
-
readOnly:
|
|
566
|
-
emptyLabel:
|
|
566
|
+
prefillParentId: ce,
|
|
567
|
+
parentFieldKey: e.field,
|
|
568
|
+
readOnly: e.readonly,
|
|
569
|
+
emptyLabel: e.label || void 0
|
|
567
570
|
}
|
|
568
571
|
);
|
|
569
572
|
}
|
|
570
573
|
}
|
|
571
574
|
return /* @__PURE__ */ i("p", { className: "text-[12px] text-slate-400 py-1", children: "Inline table editing not available in embedded form" });
|
|
572
575
|
}
|
|
573
|
-
if (s === "color") return /* @__PURE__ */ i(
|
|
576
|
+
if (s === "color") return /* @__PURE__ */ i(ie, { field: e, value: n, onChange: l });
|
|
574
577
|
if (s === "rating") {
|
|
575
|
-
const r = (
|
|
576
|
-
return /* @__PURE__ */ i(
|
|
578
|
+
const r = (Q = _(e.options)) == null ? void 0 : Q.rating_max;
|
|
579
|
+
return /* @__PURE__ */ i(ne, { value: n, onChange: l, max: r ?? 5 });
|
|
577
580
|
}
|
|
578
|
-
if (s === "progress") return /* @__PURE__ */ i(
|
|
581
|
+
if (s === "progress") return /* @__PURE__ */ i(oe, { value: n, onChange: l });
|
|
579
582
|
if (s === "phone")
|
|
580
|
-
return /* @__PURE__ */ i(
|
|
583
|
+
return /* @__PURE__ */ i(ae, { value: n, onChange: l, placeholder: e.placeholder ?? void 0 });
|
|
581
584
|
if (s === "email")
|
|
582
|
-
return /* @__PURE__ */ i(
|
|
585
|
+
return /* @__PURE__ */ i(Ze, { value: n, onChange: l, placeholder: e.placeholder ?? void 0 });
|
|
583
586
|
if (s === "address-autocomplete")
|
|
584
587
|
return /* @__PURE__ */ i(
|
|
585
|
-
|
|
588
|
+
Oe,
|
|
586
589
|
{
|
|
587
|
-
field:
|
|
590
|
+
field: e,
|
|
588
591
|
value: n,
|
|
589
592
|
onChange: l,
|
|
590
593
|
apiBase: f == null ? void 0 : f.apiBase,
|
|
591
594
|
authHeaders: f == null ? void 0 : f.authHeaders,
|
|
592
595
|
credentials: f == null ? void 0 : f.credentials,
|
|
593
|
-
placeholder:
|
|
596
|
+
placeholder: e.placeholder ?? void 0
|
|
594
597
|
}
|
|
595
598
|
);
|
|
596
|
-
if (s === "duration") return /* @__PURE__ */ i(
|
|
597
|
-
if (s === "fiscal_period") return /* @__PURE__ */ i(
|
|
598
|
-
if (s === "checklist") return /* @__PURE__ */ i(
|
|
599
|
-
if (s === "repeater" ||
|
|
600
|
-
return /* @__PURE__ */ i(
|
|
599
|
+
if (s === "duration") return /* @__PURE__ */ i(ut, { value: n, onChange: l });
|
|
600
|
+
if (s === "fiscal_period") return /* @__PURE__ */ i(mt, { value: n, onChange: l });
|
|
601
|
+
if (s === "checklist") return /* @__PURE__ */ i(pt, { value: n, onChange: l });
|
|
602
|
+
if (s === "repeater" || e.repeater_schema && e.type === "json")
|
|
603
|
+
return /* @__PURE__ */ i(yt, { field: e, value: n, onChange: l });
|
|
601
604
|
if (s === "range_slider") {
|
|
602
|
-
const r = (
|
|
605
|
+
const r = (X = _(e.options)) == null ? void 0 : X.range_end_field;
|
|
603
606
|
return /* @__PURE__ */ i(
|
|
604
|
-
|
|
607
|
+
_t,
|
|
605
608
|
{
|
|
606
|
-
field:
|
|
609
|
+
field: e,
|
|
607
610
|
value: n,
|
|
608
611
|
onChange: l,
|
|
609
|
-
pairedValue: r ? (
|
|
612
|
+
pairedValue: r ? (Z = D == null ? void 0 : D.draft) == null ? void 0 : Z[r] : void 0
|
|
610
613
|
}
|
|
611
614
|
);
|
|
612
615
|
}
|
|
613
616
|
if (s === "date_range") {
|
|
614
|
-
const r = (
|
|
617
|
+
const r = (O = _(e.options)) == null ? void 0 : O.range_end_field;
|
|
615
618
|
return /* @__PURE__ */ i(
|
|
616
|
-
|
|
619
|
+
ft,
|
|
617
620
|
{
|
|
618
|
-
field:
|
|
621
|
+
field: e,
|
|
619
622
|
value: n,
|
|
620
623
|
onChange: l,
|
|
621
|
-
pairedValue: r ? (
|
|
624
|
+
pairedValue: r ? (ee = D == null ? void 0 : D.draft) == null ? void 0 : ee[r] : void 0
|
|
622
625
|
}
|
|
623
626
|
);
|
|
624
627
|
}
|
|
625
628
|
if (s === "address")
|
|
626
629
|
return /* @__PURE__ */ i(
|
|
627
|
-
|
|
630
|
+
bt,
|
|
628
631
|
{
|
|
629
|
-
field:
|
|
632
|
+
field: e,
|
|
630
633
|
value: n,
|
|
631
634
|
onChange: l,
|
|
632
635
|
apiBase: f == null ? void 0 : f.apiBase,
|
|
@@ -634,71 +637,71 @@ function Zt({
|
|
|
634
637
|
}
|
|
635
638
|
);
|
|
636
639
|
if (s === "tags")
|
|
637
|
-
return /* @__PURE__ */ i(
|
|
640
|
+
return /* @__PURE__ */ i(kt, { field: e, value: n, onChange: l });
|
|
638
641
|
if (s === "select-dropdown" || s === "radio-buttons") {
|
|
639
642
|
const r = (() => {
|
|
640
|
-
const o = _(
|
|
643
|
+
const o = _(e.options);
|
|
641
644
|
return (o == null ? void 0 : o.choices) ?? [];
|
|
642
645
|
})();
|
|
643
646
|
if (r.length > 0)
|
|
644
647
|
return /* @__PURE__ */ i(
|
|
645
|
-
|
|
648
|
+
Ye,
|
|
646
649
|
{
|
|
647
650
|
value: x,
|
|
648
651
|
onChange: (o) => l(o || null),
|
|
649
652
|
options: [
|
|
650
653
|
{ value: "", label: "— Select —" },
|
|
651
|
-
...r.map((o) => ({ value: o.value, label:
|
|
654
|
+
...r.map((o) => ({ value: o.value, label: Ke(o.text) }))
|
|
652
655
|
],
|
|
653
|
-
ariaLabel:
|
|
656
|
+
ariaLabel: e.label ?? e.field,
|
|
654
657
|
className: "h-9 rounded-md text-sm"
|
|
655
658
|
}
|
|
656
659
|
);
|
|
657
660
|
}
|
|
658
|
-
const P =
|
|
659
|
-
const r = _(
|
|
661
|
+
const P = xt(e), M = (() => {
|
|
662
|
+
const r = _(e.options);
|
|
660
663
|
if (Number.isFinite(Number(r == null ? void 0 : r.max_length))) return Number(r == null ? void 0 : r.max_length);
|
|
661
|
-
const o = _(
|
|
664
|
+
const o = _(e.validation_rules), a = Array.isArray(o) ? o.find((t) => (t == null ? void 0 : t.type) === "max") : null;
|
|
662
665
|
return a && Number.isFinite(Number(a.value)) ? Number(a.value) : null;
|
|
663
|
-
})(),
|
|
666
|
+
})(), W = /* @__PURE__ */ i(
|
|
664
667
|
B,
|
|
665
668
|
{
|
|
666
|
-
value: P ?
|
|
669
|
+
value: P ? le(P, x).display : x,
|
|
667
670
|
onChange: (r) => {
|
|
668
671
|
if (P) {
|
|
669
|
-
const { clean: o } =
|
|
672
|
+
const { clean: o } = le(P, r.target.value);
|
|
670
673
|
l(o || null);
|
|
671
674
|
} else
|
|
672
675
|
l(r.target.value || null);
|
|
673
676
|
},
|
|
674
|
-
placeholder:
|
|
677
|
+
placeholder: e.placeholder ?? P ?? void 0
|
|
675
678
|
}
|
|
676
679
|
);
|
|
677
|
-
if (
|
|
680
|
+
if (M != null && M > 0 && !Ge(e._overrides)) {
|
|
678
681
|
const r = x.length;
|
|
679
682
|
return /* @__PURE__ */ h("div", { children: [
|
|
680
|
-
|
|
681
|
-
r >=
|
|
683
|
+
W,
|
|
684
|
+
r >= M * 0.6 && /* @__PURE__ */ h(
|
|
682
685
|
"p",
|
|
683
686
|
{
|
|
684
|
-
className: r >
|
|
687
|
+
className: r > M ? "mt-0.5 text-right text-[10.5px] tabular-nums text-red-500" : "mt-0.5 text-right text-[10.5px] tabular-nums text-slate-400",
|
|
685
688
|
children: [
|
|
686
689
|
r,
|
|
687
690
|
"/",
|
|
688
|
-
|
|
691
|
+
M
|
|
689
692
|
]
|
|
690
693
|
}
|
|
691
694
|
)
|
|
692
695
|
] });
|
|
693
696
|
}
|
|
694
|
-
return
|
|
697
|
+
return W;
|
|
695
698
|
}
|
|
696
|
-
function
|
|
697
|
-
field:
|
|
699
|
+
function kt({
|
|
700
|
+
field: e,
|
|
698
701
|
value: n,
|
|
699
702
|
onChange: l
|
|
700
703
|
}) {
|
|
701
|
-
const [m, p] =
|
|
704
|
+
const [m, p] = Le(""), c = (() => {
|
|
702
705
|
if (Array.isArray(n)) return n.map(String);
|
|
703
706
|
if (typeof n == "string" && n.trim().startsWith("["))
|
|
704
707
|
try {
|
|
@@ -709,7 +712,7 @@ function vt({
|
|
|
709
712
|
}
|
|
710
713
|
return typeof n == "string" && n.trim() !== "" ? [n] : [];
|
|
711
714
|
})(), u = (() => {
|
|
712
|
-
const d = _(
|
|
715
|
+
const d = _(e.options);
|
|
713
716
|
return Array.isArray(d == null ? void 0 : d.tag_options) ? d.tag_options.map(String) : [];
|
|
714
717
|
})(), g = (d) => l(d.length > 0 ? JSON.stringify(d) : null), F = (d) => {
|
|
715
718
|
const w = d.trim();
|
|
@@ -767,6 +770,6 @@ function vt({
|
|
|
767
770
|
] });
|
|
768
771
|
}
|
|
769
772
|
export {
|
|
770
|
-
|
|
771
|
-
|
|
773
|
+
or as FieldRenderer,
|
|
774
|
+
re as resolveOptionFilterTokens
|
|
772
775
|
};
|