@vef-framework-react/form-editor 2.18.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/mobile/definitions.cjs +1 -1
- package/dist/cjs/components/upload-field/index.cjs +1 -0
- package/dist/cjs/editor/canvas/canvas.cjs +1 -1
- package/dist/cjs/editor/canvas/container-drag-chip.cjs +1 -1
- package/dist/cjs/editor/dnd.cjs +1 -1
- package/dist/cjs/editor/form-config/linkage-overview.cjs +1 -1
- package/dist/cjs/editor/form-config/outline-tab.cjs +1 -1
- package/dist/cjs/editor/properties/dynamic-value-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/action-editor.cjs +2 -2
- package/dist/cjs/editor/properties/entries/linkage/actions-editor.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/condition-editor.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/container-linkage-section.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/linkage-rules-entry.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/mutators.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/rule-list-editor.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/trigger-editor.cjs +1 -1
- package/dist/cjs/editor/properties/form-data-sources-panel.cjs +1 -1
- package/dist/cjs/editor/properties/option-editors.cjs +1 -1
- package/dist/cjs/editor/properties/properties-panel.cjs +1 -1
- package/dist/cjs/editor/toolbar/toolbar.cjs +1 -1
- package/dist/cjs/engine/data-source-params.cjs +1 -0
- package/dist/cjs/engine/linkage/evaluator.cjs +1 -1
- package/dist/cjs/engine/linkage/operators.cjs +1 -1
- package/dist/cjs/engine/linkage/validator.cjs +1 -1
- package/dist/cjs/engine/registry/defaults.cjs +1 -1
- package/dist/cjs/engine/schema/edit-ops.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/render/data-source-context.cjs +0 -0
- package/dist/cjs/render/data-source-param-scope.cjs +1 -0
- package/dist/cjs/render/form-field.cjs +1 -1
- package/dist/cjs/render/form-renderer.cjs +1 -1
- package/dist/cjs/runtime/effects.cjs +1 -1
- package/dist/cjs/types/dynamic-value.cjs +1 -0
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/es/components/button/index.js +1 -1
- package/dist/es/components/checkbox-group-field/index.js +1 -1
- package/dist/es/components/code-editor/code-editor-input.js +1 -1
- package/dist/es/components/code-editor/index.js +1 -1
- package/dist/es/components/containers/index.js +1 -1
- package/dist/es/components/date-field/index.js +1 -1
- package/dist/es/components/display/index.js +1 -1
- package/dist/es/components/field-entries.js +1 -1
- package/dist/es/components/mobile/alert-block.js +1 -1
- package/dist/es/components/mobile/button.js +1 -1
- package/dist/es/components/mobile/checkbox-group.js +1 -1
- package/dist/es/components/mobile/date-adapters.js +1 -1
- package/dist/es/components/mobile/date.js +1 -1
- package/dist/es/components/mobile/daterange.js +1 -1
- package/dist/es/components/mobile/datetime.js +1 -1
- package/dist/es/components/mobile/definitions.js +34 -32
- package/dist/es/components/mobile/divider.js +1 -1
- package/dist/es/components/mobile/input-cell.js +1 -1
- package/dist/es/components/mobile/number.js +1 -1
- package/dist/es/components/mobile/option-group.js +1 -1
- package/dist/es/components/mobile/paragraph.js +1 -1
- package/dist/es/components/mobile/picker-trigger.js +1 -1
- package/dist/es/components/mobile/radio.js +1 -1
- package/dist/es/components/mobile/scope.js +1 -1
- package/dist/es/components/mobile/select.js +1 -1
- package/dist/es/components/mobile/switch.js +1 -1
- package/dist/es/components/mobile/textarea.js +1 -1
- package/dist/es/components/mobile/textfield.js +1 -1
- package/dist/es/components/mobile/theme.js +1 -1
- package/dist/es/components/number-field/index.js +1 -1
- package/dist/es/components/radio-field/index.js +1 -1
- package/dist/es/components/select-field/index.js +1 -1
- package/dist/es/components/switch-field/index.js +1 -1
- package/dist/es/components/textarea-field/index.js +1 -1
- package/dist/es/components/textfield/index.js +1 -1
- package/dist/es/components/upload-field/index.js +104 -0
- package/dist/es/editor/canvas/canvas-field.js +1 -1
- package/dist/es/editor/canvas/canvas.js +103 -103
- package/dist/es/editor/canvas/container-drag-chip.js +8 -8
- package/dist/es/editor/canvas/drop-indicator.js +1 -1
- package/dist/es/editor/canvas/drop-zones.js +1 -1
- package/dist/es/editor/canvas/json-split-view.js +1 -1
- package/dist/es/editor/canvas/mobile-seed-state.js +1 -1
- package/dist/es/editor/canvas/phone-frame.js +1 -1
- package/dist/es/editor/canvas/subform-column-eligibility.js +1 -1
- package/dist/es/editor/canvas/subform-table-cell.js +1 -1
- package/dist/es/editor/canvas/use-scroll-selection-into-view.js +1 -1
- package/dist/es/editor/context-sources.js +1 -1
- package/dist/es/editor/dnd.js +18 -18
- package/dist/es/editor/editor-layout-context.js +1 -1
- package/dist/es/editor/footer/footer.js +1 -1
- package/dist/es/editor/form-config/form-basics-tab.js +1 -1
- package/dist/es/editor/form-config/form-config-drawer.js +1 -1
- package/dist/es/editor/form-config/linkage-overview.js +9 -9
- package/dist/es/editor/form-config/outline-tab.js +6 -6
- package/dist/es/editor/form-editor.js +1 -1
- package/dist/es/editor/palette/field-groups.js +1 -1
- package/dist/es/editor/palette/palette-group.js +1 -1
- package/dist/es/editor/palette/palette-item.js +1 -1
- package/dist/es/editor/palette/palette-panel.js +1 -1
- package/dist/es/editor/preview-effects.js +1 -1
- package/dist/es/editor/preview-runtime-context.js +1 -1
- package/dist/es/editor/properties/block-layout-section.js +1 -1
- package/dist/es/editor/properties/container-properties.js +1 -1
- package/dist/es/editor/properties/dynamic-value-editor.js +57 -0
- package/dist/es/editor/properties/entries/built-ins.js +1 -1
- package/dist/es/editor/properties/entries/checkbox-entry.js +1 -1
- package/dist/es/editor/properties/entries/coerce.js +1 -1
- package/dist/es/editor/properties/entries/entry-field.js +1 -1
- package/dist/es/editor/properties/entries/icon-entry.js +1 -1
- package/dist/es/editor/properties/entries/index.js +1 -1
- package/dist/es/editor/properties/entries/key-entry.js +1 -1
- package/dist/es/editor/properties/entries/linkage/action-editor.js +75 -110
- package/dist/es/editor/properties/entries/linkage/actions-editor.js +10 -10
- package/dist/es/editor/properties/entries/linkage/condition-editor.js +87 -87
- package/dist/es/editor/properties/entries/linkage/container-linkage-section.js +7 -7
- package/dist/es/editor/properties/entries/linkage/expression-input.js +1 -1
- package/dist/es/editor/properties/entries/linkage/index.js +1 -1
- package/dist/es/editor/properties/entries/linkage/linkage-rules-entry.js +24 -24
- package/dist/es/editor/properties/entries/linkage/mutators.js +2 -11
- package/dist/es/editor/properties/entries/linkage/options.js +1 -1
- package/dist/es/editor/properties/entries/linkage/rule-diagnostics.js +1 -1
- package/dist/es/editor/properties/entries/linkage/rule-list-editor.js +29 -29
- package/dist/es/editor/properties/entries/linkage/styles.js +1 -1
- package/dist/es/editor/properties/entries/linkage/trigger-editor.js +13 -13
- package/dist/es/editor/properties/entries/linkage/use-linkage-editor-model.js +1 -1
- package/dist/es/editor/properties/entries/linkage/use-stable-options.js +1 -1
- package/dist/es/editor/properties/entries/number-entry.js +1 -1
- package/dist/es/editor/properties/entries/options-source/index.js +1 -1
- package/dist/es/editor/properties/entries/options-source/source-mutators.js +1 -1
- package/dist/es/editor/properties/entries/select-entry.js +1 -1
- package/dist/es/editor/properties/entries/text-entry.js +1 -1
- package/dist/es/editor/properties/form-data-sources-panel.js +7 -7
- package/dist/es/editor/properties/form-linkage-panel.js +1 -1
- package/dist/es/editor/properties/form-variables-panel.js +1 -1
- package/dist/es/editor/properties/option-editors.js +225 -121
- package/dist/es/editor/properties/panel-header.js +1 -1
- package/dist/es/editor/properties/properties-empty.js +1 -1
- package/dist/es/editor/properties/properties-header.js +1 -1
- package/dist/es/editor/properties/properties-panel.js +17 -17
- package/dist/es/editor/properties/properties-provider.js +1 -1
- package/dist/es/editor/properties/properties-tabs.js +1 -1
- package/dist/es/editor/properties/use-confirmable-kind-switch.js +1 -1
- package/dist/es/editor/remove-node-confirm.js +1 -1
- package/dist/es/editor/schema-apply.js +1 -1
- package/dist/es/editor/styles.js +1 -1
- package/dist/es/editor/toolbar/notify.js +1 -1
- package/dist/es/editor/toolbar/schema-io.js +1 -1
- package/dist/es/editor/toolbar/toolbar.js +7 -7
- package/dist/es/editor/use-editor-shortcuts.js +1 -1
- package/dist/es/editor/validation-summary.js +1 -1
- package/dist/es/engine/assert-never.js +1 -1
- package/dist/es/engine/conversion/index.js +1 -1
- package/dist/es/engine/data-source-params.js +38 -0
- package/dist/es/engine/ids.js +1 -1
- package/dist/es/engine/keys.js +1 -1
- package/dist/es/engine/linkage/cycle.js +1 -1
- package/dist/es/engine/linkage/default-evaluator.js +1 -1
- package/dist/es/engine/linkage/effects.js +1 -1
- package/dist/es/engine/linkage/evaluator.js +22 -22
- package/dist/es/engine/linkage/index.js +1 -1
- package/dist/es/engine/linkage/operators.js +2 -2
- package/dist/es/engine/linkage/source-tracking.js +1 -1
- package/dist/es/engine/linkage/taxonomy.js +1 -1
- package/dist/es/engine/linkage/validator.js +94 -94
- package/dist/es/engine/registry/defaults-mobile.js +1 -1
- package/dist/es/engine/registry/defaults.js +10 -9
- package/dist/es/engine/registry/form-field-registry.js +1 -1
- package/dist/es/engine/schema/column-type.js +1 -1
- package/dist/es/engine/schema/edit-ops.js +9 -9
- package/dist/es/engine/schema/mutate.js +1 -1
- package/dist/es/engine/schema/nodes.js +1 -1
- package/dist/es/engine/schema/permission-bridge.js +1 -1
- package/dist/es/engine/schema/presentation.js +1 -1
- package/dist/es/engine/schema/reconcile.js +1 -1
- package/dist/es/engine/schema/removal-impact.js +1 -1
- package/dist/es/engine/schema/rewrite.js +1 -1
- package/dist/es/engine/schema/validate.js +1 -1
- package/dist/es/engine/schema/walk.js +1 -1
- package/dist/es/engine/validation.js +1 -1
- package/dist/es/icons.js +1 -1
- package/dist/es/index.js +55 -54
- package/dist/es/render/chrome/mobile-chrome.js +1 -1
- package/dist/es/render/chrome/pc-chrome.js +1 -1
- package/dist/es/render/chrome/subform-shell.js +1 -1
- package/dist/es/render/data-source-context.js +0 -0
- package/dist/es/render/data-source-param-scope.js +34 -0
- package/dist/es/render/flex-style.js +1 -1
- package/dist/es/render/form-field.js +5 -5
- package/dist/es/render/form-renderer.js +308 -300
- package/dist/es/render/grid-style.js +1 -1
- package/dist/es/render/parts/field-shell.js +1 -1
- package/dist/es/render/parts/label.js +1 -1
- package/dist/es/render/parts/options-status.js +1 -1
- package/dist/es/render/stack-style.js +1 -1
- package/dist/es/render/subform-columns.js +1 -1
- package/dist/es/render/submit.js +1 -1
- package/dist/es/runtime/effects.js +49 -47
- package/dist/es/runtime/field-write.js +1 -1
- package/dist/es/runtime/resolve-scope-values.js +1 -1
- package/dist/es/runtime/runtime-context.js +1 -1
- package/dist/es/runtime/runtime-state-controller.js +1 -1
- package/dist/es/runtime/stabilize-state-map.js +1 -1
- package/dist/es/store/engine-provider.js +1 -1
- package/dist/es/store/form-store.js +1 -1
- package/dist/es/types/chrome.js +1 -1
- package/dist/es/types/component.js +1 -1
- package/dist/es/types/data-source.js +1 -1
- package/dist/es/types/dynamic-value.js +9 -0
- package/dist/es/types/index.js +5 -4
- package/dist/es/types/linkage.js +1 -1
- package/dist/es/types/properties.js +1 -1
- package/dist/es/types/schema.js +1 -1
- package/dist/types/components/upload-field/index.d.ts +2 -0
- package/dist/types/editor/properties/dynamic-value-editor.d.ts +23 -0
- package/dist/types/editor/properties/entries/linkage/mutators.d.ts +1 -8
- package/dist/types/engine/data-source-params.d.ts +33 -0
- package/dist/types/render/data-source-param-scope.d.ts +48 -0
- package/dist/types/types/data-source.d.ts +26 -1
- package/dist/types/types/dynamic-value.d.ts +21 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/linkage.d.ts +9 -8
- package/dist/types/types/schema.d.ts +29 -0
- package/package.json +5 -5
package/dist/es/index.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.19.0 made by Venus | 2026-09-01T08:49:01.461Z */
|
|
2
2
|
import { defineContainerDefinition as e, defineFieldDefinition as t } from "./types/component.js";
|
|
3
3
|
import { noopDataSourceResolver as n } from "./types/data-source.js";
|
|
4
|
-
import {
|
|
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
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
|
|
4
|
+
import { isDynamicValue as r } from "./types/dynamic-value.js";
|
|
5
|
+
import { definePropertyEntry as i } from "./types/properties.js";
|
|
6
|
+
import { CONTAINER_TYPES as a, DEFAULT_GAP_SCALE as o, GAP_SCALES as s, ROW_COLS as c } from "./types/schema.js";
|
|
7
|
+
import { buttonDefinition as l } from "./components/button/index.js";
|
|
8
|
+
import { createId as u } from "./engine/ids.js";
|
|
9
|
+
import { createEmptySchema as d } from "./engine/schema/nodes.js";
|
|
10
|
+
import { findField as f, findNode as p, findParentContainer as m, isContainerNode as h, isLeafField as g, walkFields as _, walkNodes as v } from "./engine/schema/walk.js";
|
|
11
|
+
import { formatIssueMessage as y } from "./engine/validation.js";
|
|
12
|
+
import { defaultEvaluateAssignExpression as b, defaultEvaluateExpression as x, defaultEvaluateScriptAction as S, resolveLinkageEvaluators as C } from "./engine/linkage/default-evaluator.js";
|
|
13
|
+
import { generateUniqueKey as w, isKeyedField as T, isKeyedNode as E, nextUniqueKey as D, sanitizeKey as O } from "./engine/keys.js";
|
|
14
|
+
import { LINKAGE_OPERATORS as k } from "./engine/linkage/operators.js";
|
|
15
|
+
import { ALERT_LEVELS as A, EFFECT_ACTION_TYPES as j, FIELD_EVENT_TRIGGER_KINDS as M, FIELD_TRIGGER_KINDS as N, FORM_TRIGGER_KINDS as P, KEYED_ONLY_ACTIONS as F, LINKAGE_ACTION_TYPES as I, STATE_ACTION_TYPES as L, isEffectAction as R, isFieldEventTriggerKind as z, isStateAction as B } from "./engine/linkage/taxonomy.js";
|
|
16
|
+
import { getFieldPermission as V, isWritableFieldPermission as H } from "./engine/linkage/evaluator.js";
|
|
17
|
+
import { validateLinkageSchema as U } from "./engine/linkage/validator.js";
|
|
18
|
+
import { DataSourceProvider as W, useFieldOptions as G } from "./render/data-source-context.js";
|
|
19
|
+
import { Label as K } from "./render/parts/label.js";
|
|
20
|
+
import { FieldShell as q } from "./render/parts/field-shell.js";
|
|
21
|
+
import { checkboxGroupFieldDefinition as J } from "./components/checkbox-group-field/index.js";
|
|
22
|
+
import { codeEditorDefinition as Y } from "./components/code-editor/index.js";
|
|
23
|
+
import { flexDefinition as X, gridDefinition as Z, sectionDefinition as Q, subformDefinition as $, tabsDefinition as ee } from "./components/containers/index.js";
|
|
24
|
+
import { dateFieldDefinition as te, dateRangeFieldDefinition as ne, datetimeFieldDefinition as re } from "./components/date-field/index.js";
|
|
25
|
+
import { alertBlockDefinition as ie, dividerDefinition as ae, paragraphDefinition as oe } from "./components/display/index.js";
|
|
26
|
+
import { numberFieldDefinition as se } from "./components/number-field/index.js";
|
|
27
|
+
import { radioFieldDefinition as ce } from "./components/radio-field/index.js";
|
|
28
|
+
import { selectFieldDefinition as le } from "./components/select-field/index.js";
|
|
29
|
+
import { switchFieldDefinition as ue } from "./components/switch-field/index.js";
|
|
30
|
+
import { textareaFieldDefinition as de } from "./components/textarea-field/index.js";
|
|
31
|
+
import { textfieldDefinition as fe } from "./components/textfield/index.js";
|
|
32
|
+
import { useMobileScopeContainer as pe } from "./components/mobile/scope.js";
|
|
33
|
+
import { mobileFieldDefinitions as me } from "./components/mobile/definitions.js";
|
|
34
|
+
import { FormFieldRegistry as he } from "./engine/registry/form-field-registry.js";
|
|
35
|
+
import { createDefaultRegistry as ge, registerDefaults as _e } from "./engine/registry/defaults.js";
|
|
36
|
+
import { createDefaultMobileRegistry as ve } from "./engine/registry/defaults-mobile.js";
|
|
37
|
+
import { DeviceProvider as ye, RegistryProvider as be, useDeviceRegistries as xe, useFieldRegistry as Se } from "./store/engine-provider.js";
|
|
38
|
+
import { editField as Ce, removeBlock as we, updateNode as Te } from "./engine/schema/mutate.js";
|
|
39
|
+
import { cloneBlock as Ee, insertBlock as De, moveBlock as Oe, setFlex as ke, setSpan as Ae } from "./engine/schema/edit-ops.js";
|
|
40
|
+
import { currentLayer as je, emptyLayer as Me, resolvePresentation as Ne, toRuntimeSchema as Pe, withPresentation as Fe } from "./engine/schema/presentation.js";
|
|
41
|
+
import { validateSchema as Ie } from "./engine/schema/validate.js";
|
|
42
|
+
import { FormEditorStoreProvider as Le, isPaletteVisible as Re, useCurrentLayer as ze, useFormEditorStore as Be, useFormEditorStoreApi as Ve } from "./store/form-store.js";
|
|
43
|
+
import { FormRenderer as He } from "./render/form-renderer.js";
|
|
44
|
+
import { ConversionRegistry as Ue, convertPresentation as We, createDefaultConversionRules as Ge } from "./engine/conversion/index.js";
|
|
45
|
+
import { LinkageRulesEntry as Ke } from "./editor/properties/entries/linkage/linkage-rules-entry.js";
|
|
46
|
+
import { CheckboxEntry as qe } from "./editor/properties/entries/checkbox-entry.js";
|
|
47
|
+
import { IconEntry as Je } from "./editor/properties/entries/icon-entry.js";
|
|
48
|
+
import { KeyEntry as Ye } from "./editor/properties/entries/key-entry.js";
|
|
49
|
+
import { NumberEntry as Xe } from "./editor/properties/entries/number-entry.js";
|
|
50
|
+
import { OptionsSourceEntry as Ze } from "./editor/properties/entries/options-source/index.js";
|
|
51
|
+
import { SelectEntry as Qe } from "./editor/properties/entries/select-entry.js";
|
|
52
|
+
import { TextEntry as $e } from "./editor/properties/entries/text-entry.js";
|
|
53
|
+
import { Toolbar as et } from "./editor/toolbar/toolbar.js";
|
|
54
|
+
import { FormEditor as tt, FormEditorProvider as nt, FormEditorShell as rt, FormEditorStage as it, FormEditorWorkspace as at } from "./editor/form-editor.js";
|
|
55
|
+
import { inferColumnType as ot, toColumnDefinitions as st } from "./engine/schema/column-type.js";
|
|
56
|
+
import { toFormFieldDefinitions as ct } from "./engine/schema/permission-bridge.js";
|
|
57
|
+
export { A as ALERT_LEVELS, a as CONTAINER_TYPES, qe as CheckboxEntry, Ue as ConversionRegistry, o as DEFAULT_GAP_SCALE, W as DataSourceProvider, ye as DeviceProvider, j as EFFECT_ACTION_TYPES, M as FIELD_EVENT_TRIGGER_KINDS, N as FIELD_TRIGGER_KINDS, P as FORM_TRIGGER_KINDS, q as FieldShell, tt as FormEditor, nt as FormEditorProvider, rt as FormEditorShell, it as FormEditorStage, Le as FormEditorStoreProvider, et as FormEditorToolbar, at as FormEditorWorkspace, he as FormFieldRegistry, He as FormRenderer, s as GAP_SCALES, Je as IconEntry, F as KEYED_ONLY_ACTIONS, Ye as KeyEntry, I as LINKAGE_ACTION_TYPES, k as LINKAGE_OPERATORS, K as Label, Ke as LinkageRulesEntry, Xe as NumberEntry, Ze as OptionsSourceEntry, c as ROW_COLS, be as RegistryProvider, L as STATE_ACTION_TYPES, Qe as SelectEntry, $e as TextEntry, ie as alertBlockDefinition, l as buttonDefinition, J as checkboxGroupFieldDefinition, Ee as cloneBlock, Y as codeEditorDefinition, We as convertPresentation, Ge as createDefaultConversionRules, ve as createDefaultMobileRegistry, ge as createDefaultRegistry, d as createEmptySchema, u as createId, je as currentLayer, te as dateFieldDefinition, ne as dateRangeFieldDefinition, re as datetimeFieldDefinition, b as defaultEvaluateAssignExpression, x as defaultEvaluateExpression, S as defaultEvaluateScriptAction, e as defineContainerDefinition, t as defineFieldDefinition, i as definePropertyEntry, ae as dividerDefinition, Ce as editField, Me as emptyLayer, f as findField, p as findNode, m as findParentContainer, X as flexDefinition, y as formatIssueMessage, w as generateUniqueKey, V as getFieldPermission, Z as gridDefinition, ot as inferColumnType, De as insertBlock, h as isContainerNode, r as isDynamicValue, R as isEffectAction, z as isFieldEventTriggerKind, T as isKeyedField, E as isKeyedNode, g as isLeafField, Re as isPaletteVisible, B as isStateAction, H as isWritableFieldPermission, me as mobileFieldDefinitions, Oe as moveBlock, D as nextUniqueKey, n as noopDataSourceResolver, se as numberFieldDefinition, oe as paragraphDefinition, ce as radioFieldDefinition, _e as registerDefaults, we as removeBlock, C as resolveLinkageEvaluators, Ne as resolvePresentation, O as sanitizeKey, Q as sectionDefinition, le as selectFieldDefinition, ke as setFlex, Ae as setSpan, $ as subformDefinition, ue as switchFieldDefinition, ee as tabsDefinition, de as textareaFieldDefinition, fe as textfieldDefinition, st as toColumnDefinitions, ct as toFormFieldDefinitions, Pe as toRuntimeSchema, Te as updateNode, ze as useCurrentLayer, xe as useDeviceRegistries, G as useFieldOptions, Se as useFieldRegistry, Be as useFormEditorStore, Ve as useFormEditorStoreApi, pe as useMobileScopeContainer, U as validateLinkageSchema, Ie as validateSchema, _ as walkFields, v as walkNodes, Fe as withPresentation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.19.0 made by Venus | 2026-09-01T08:49:01.461Z */
|
|
2
2
|
import { EditorIcon as e } from "../../icons.js";
|
|
3
3
|
import { SECTION_PANEL_KEY as t, subformBodyCss as n, subformRemoveCss as r, subformRowBodyCss as i, subformRowCss as a } from "./subform-shell.js";
|
|
4
4
|
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.19.0 made by Venus | 2026-09-01T08:49:01.461Z */
|
|
2
2
|
import { EditorIcon as e } from "../../icons.js";
|
|
3
3
|
import { SECTION_PANEL_KEY as t, subformBodyCss as n, subformRemoveCss as r, subformRowBodyCss as i, subformRowCss as a } from "./subform-shell.js";
|
|
4
4
|
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.19.0 made by Venus | 2026-09-01T08:49:01.461Z */
|
|
2
2
|
import { css as e } from "@emotion/react";
|
|
3
3
|
import { globalCssVars as t } from "@vef-framework-react/components";
|
|
4
4
|
//#region src/render/chrome/subform-shell.ts
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.19.0 made by Venus | 2026-09-01T08:49:01.461Z */
|
|
2
|
+
import { resolveLinkageEvaluators as e } from "../engine/linkage/default-evaluator.js";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useFormStore as n } from "@vef-framework-react/components";
|
|
5
|
+
import { createContext as r, use as i, useMemo as a } from "react";
|
|
6
|
+
//#region src/render/data-source-param-scope.tsx
|
|
7
|
+
var o = r(void 0);
|
|
8
|
+
o.displayName = "DataSourceParamScopeContext";
|
|
9
|
+
function s({ children: r, context: i, enabled: s, evaluators: c, form: l }) {
|
|
10
|
+
let u = n(l.store, (e) => s ? e.values : null), d = a(() => e(c), [c]);
|
|
11
|
+
return /* @__PURE__ */ t(o, {
|
|
12
|
+
value: a(() => u === null ? void 0 : {
|
|
13
|
+
values: u,
|
|
14
|
+
context: i,
|
|
15
|
+
evaluators: d
|
|
16
|
+
}, [
|
|
17
|
+
u,
|
|
18
|
+
i,
|
|
19
|
+
d
|
|
20
|
+
]),
|
|
21
|
+
children: r
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function c() {
|
|
25
|
+
return i(o);
|
|
26
|
+
}
|
|
27
|
+
function l(e) {
|
|
28
|
+
return (t) => {
|
|
29
|
+
if (t.kind === "literal") return t.value;
|
|
30
|
+
if (e) return e.evaluators.evaluateAssignExpression(t.source, e.values, e.context);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { s as DataSourceParamScopeProvider, l as paramEvaluatorFor, c as useDataSourceParamScope };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.19.0 made by Venus | 2026-09-01T08:49:01.461Z */
|
|
2
|
+
import { isKeyedField as e } from "../engine/keys.js";
|
|
3
|
+
import { useFieldRegistry as t } from "../store/engine-provider.js";
|
|
4
4
|
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
5
5
|
import { css as i } from "@emotion/react";
|
|
6
6
|
import { globalCssVars as a } from "@vef-framework-react/components";
|
|
@@ -13,13 +13,13 @@ var o = /*#__PURE__*/ i({
|
|
|
13
13
|
color: a.colorTextTertiary
|
|
14
14
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvcm0tZmllbGQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWF3QiIsImZpbGUiOiJmb3JtLWZpZWxkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUmV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BrZXllZCBmaWVsZHMgKG5vbi1lbXB0eSBkYXRhLWJpbmRpbmcga2V5KSBjYXJyeSBhIHZhbHVlOyBhIG5vbi1rZXllZFxuICAvLyBmaWVsZCAoZS5nLiBCdXR0b24pIHNob3dzIG5vIHZhbHVlIGFuZCBpdHMgY2hhbmdlcyBnbyBub3doZXJlLlxuICBjb25zdCBrZXllZCA9IGlzS2V5ZWRGaWVsZChmaWVsZCk7XG4gIGNvbnN0IGZpZWxkVmFsdWUgPSBrZXllZCA/IHZhbHVlIDogdW5kZWZpbmVkO1xuXG4gIGNvbnN0IGhhbmRsZUNoYW5nZSA9IChuZXh0OiB1bmtub3duKTogdm9pZCA9PiB7XG4gICAgaWYgKGtleWVkKSB7XG4gICAgICBvbkNoYW5nZT8uKG5leHQpO1xuICAgIH1cbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxDb21wb25lbnRcbiAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgIGRvbUlkPXtyZXNvbHZlZERvbUlkfVxuICAgICAgZXJyb3JzPXtlcnJvcnN9XG4gICAgICBmaWVsZD17ZmllbGR9XG4gICAgICBsYWJlbFBvc2l0aW9uPXtsYWJlbFBvc2l0aW9ufVxuICAgICAgcmVxdWlyZWQ9e3JlcXVpcmVkfVxuICAgICAgdmFsdWU9e2ZpZWxkVmFsdWV9XG4gICAgICBvbkNoYW5nZT17aGFuZGxlQ2hhbmdlfVxuICAgIC8+XG4gICk7XG59XG4iXX0= */");
|
|
15
15
|
function s({ disabled: i, domId: a, errors: s, field: c, labelPosition: l, required: u, value: d, onChange: f }) {
|
|
16
|
-
let p =
|
|
16
|
+
let p = t().get(c.type);
|
|
17
17
|
if (!p?.Component) return /* @__PURE__ */ r("div", {
|
|
18
18
|
css: o,
|
|
19
19
|
"data-unknown-type": c.type,
|
|
20
20
|
children: ["未知字段类型:", c.type]
|
|
21
21
|
});
|
|
22
|
-
let { Component: m } = p, h = a ?? `field-${c.id}`, g =
|
|
22
|
+
let { Component: m } = p, h = a ?? `field-${c.id}`, g = e(c);
|
|
23
23
|
return /* @__PURE__ */ n(m, {
|
|
24
24
|
disabled: i,
|
|
25
25
|
domId: h,
|