@vef-framework-react/form-editor 2.6.0 → 2.7.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/button/index.cjs +1 -1
- package/dist/cjs/components/checkbox-group-field/index.cjs +1 -1
- package/dist/cjs/components/code-editor/index.cjs +1 -1
- package/dist/cjs/components/date-field/index.cjs +1 -1
- package/dist/cjs/components/field-entries.cjs +1 -1
- package/dist/cjs/components/mobile/checkbox-group.cjs +1 -1
- package/dist/cjs/components/mobile/input-cell.cjs +1 -1
- package/dist/cjs/components/mobile/number.cjs +1 -1
- package/dist/cjs/components/mobile/switch.cjs +1 -1
- package/dist/cjs/components/mobile/textfield.cjs +1 -1
- package/dist/cjs/components/number-field/index.cjs +1 -1
- package/dist/cjs/components/textfield/index.cjs +1 -1
- package/dist/cjs/editor/canvas/canvas-field.cjs +1 -1
- package/dist/cjs/editor/canvas/canvas.cjs +1 -1
- package/dist/cjs/editor/canvas/drop-zones.cjs +1 -1
- package/dist/cjs/editor/canvas/json-split-view.cjs +1 -1
- package/dist/cjs/editor/canvas/subform-column-eligibility.cjs +1 -1
- package/dist/cjs/editor/context-sources.cjs +1 -0
- package/dist/cjs/editor/dnd.cjs +1 -1
- package/dist/cjs/editor/editor-layout-context.cjs +1 -1
- package/dist/cjs/editor/form-config/form-config-drawer.cjs +1 -1
- package/dist/cjs/editor/form-config/linkage-overview.cjs +1 -0
- package/dist/cjs/editor/form-editor.cjs +1 -1
- package/dist/cjs/editor/palette/palette-group.cjs +1 -1
- package/dist/cjs/editor/preview-runtime-context.cjs +1 -1
- package/dist/cjs/editor/properties/container-properties.cjs +1 -1
- package/dist/cjs/editor/properties/entries/index.cjs +1 -1
- 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/expression-input.cjs +1 -0
- 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/options.cjs +1 -1
- package/dist/cjs/editor/properties/entries/linkage/rule-diagnostics.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/entries/linkage/use-linkage-editor-model.cjs +1 -1
- package/dist/cjs/editor/properties/form-linkage-panel.cjs +1 -1
- package/dist/cjs/editor/properties/form-variables-panel.cjs +1 -1
- package/dist/cjs/editor/properties/properties-panel.cjs +1 -1
- package/dist/cjs/editor/properties/properties-provider.cjs +1 -1
- package/dist/cjs/editor/remove-node-confirm.cjs +2 -1
- package/dist/cjs/editor/schema-apply.cjs +2 -2
- package/dist/cjs/editor/toolbar/notify.cjs +1 -1
- package/dist/cjs/editor/toolbar/toolbar.cjs +2 -1
- package/dist/cjs/engine/conversion/index.cjs +1 -1
- package/dist/cjs/engine/keys.cjs +1 -1
- package/dist/cjs/engine/linkage/cycle.cjs +1 -1
- package/dist/cjs/engine/linkage/default-evaluator.cjs +1 -1
- package/dist/cjs/engine/linkage/effects.cjs +1 -1
- package/dist/cjs/engine/linkage/evaluator.cjs +1 -1
- package/dist/cjs/engine/linkage/index.cjs +1 -1
- package/dist/cjs/engine/linkage/operators.cjs +1 -1
- package/dist/cjs/engine/linkage/source-tracking.cjs +1 -1
- package/dist/cjs/engine/linkage/taxonomy.cjs +1 -1
- package/dist/cjs/engine/linkage/validator.cjs +1 -1
- package/dist/cjs/engine/registry/form-field-registry.cjs +1 -1
- package/dist/cjs/engine/schema/column-type.cjs +1 -1
- package/dist/cjs/engine/schema/edit-ops.cjs +1 -1
- package/dist/cjs/engine/schema/permission-bridge.cjs +1 -1
- package/dist/cjs/engine/schema/presentation.cjs +1 -1
- package/dist/cjs/engine/schema/reconcile.cjs +1 -1
- package/dist/cjs/engine/schema/validate.cjs +1 -1
- package/dist/cjs/engine/schema/walk.cjs +1 -1
- package/dist/cjs/engine/validation.cjs +1 -1
- package/dist/cjs/render/form-renderer.cjs +1 -1
- package/dist/cjs/render/stack-style.cjs +1 -1
- package/dist/cjs/render/submit.cjs +1 -1
- package/dist/cjs/runtime/effects.cjs +1 -1
- package/dist/cjs/runtime/runtime-state-controller.cjs +1 -1
- package/dist/cjs/runtime/stabilize-state-map.cjs +1 -1
- package/dist/cjs/store/form-store.cjs +1 -1
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/es/components/button/index.js +18 -18
- package/dist/es/components/checkbox-group-field/index.js +20 -19
- package/dist/es/components/code-editor/code-editor-input.js +1 -1
- package/dist/es/components/code-editor/index.js +31 -31
- package/dist/es/components/containers/index.js +1 -1
- package/dist/es/components/date-field/index.js +4 -2
- package/dist/es/components/display/index.js +1 -1
- package/dist/es/components/field-entries.js +5 -5
- 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 +18 -18
- 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 +1 -1
- package/dist/es/components/mobile/divider.js +1 -1
- package/dist/es/components/mobile/input-cell.js +13 -9
- package/dist/es/components/mobile/number.js +30 -35
- 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 +43 -19
- package/dist/es/components/mobile/textarea.js +1 -1
- package/dist/es/components/mobile/textfield.js +30 -26
- package/dist/es/components/mobile/theme.js +1 -1
- package/dist/es/components/number-field/index.js +2 -2
- 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 +29 -28
- package/dist/es/editor/canvas/canvas-field.js +13 -11
- package/dist/es/editor/canvas/canvas.js +259 -248
- package/dist/es/editor/canvas/drop-indicator.js +1 -1
- package/dist/es/editor/canvas/drop-zones.js +31 -23
- package/dist/es/editor/canvas/json-split-view.js +73 -73
- 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 +2 -2
- package/dist/es/editor/canvas/subform-table-cell.js +1 -1
- package/dist/es/editor/context-sources.js +21 -0
- package/dist/es/editor/dnd.js +2 -2
- package/dist/es/editor/editor-layout-context.js +2 -2
- 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 +125 -103
- package/dist/es/editor/form-config/linkage-overview.js +96 -0
- package/dist/es/editor/form-config/outline-tab.js +1 -1
- package/dist/es/editor/form-editor.js +94 -90
- package/dist/es/editor/palette/field-groups.js +1 -1
- package/dist/es/editor/palette/palette-group.js +3 -2
- 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 +3 -3
- package/dist/es/editor/properties/block-layout-section.js +1 -1
- package/dist/es/editor/properties/container-properties.js +16 -24
- 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 +10 -9
- package/dist/es/editor/properties/entries/key-entry.js +1 -1
- package/dist/es/editor/properties/entries/linkage/action-editor.js +117 -136
- package/dist/es/editor/properties/entries/linkage/actions-editor.js +13 -14
- package/dist/es/editor/properties/entries/linkage/condition-editor.js +158 -163
- package/dist/es/editor/properties/entries/linkage/container-linkage-section.js +18 -20
- package/dist/es/editor/properties/entries/linkage/expression-input.js +17 -0
- package/dist/es/editor/properties/entries/linkage/index.js +1 -1
- package/dist/es/editor/properties/entries/linkage/linkage-rules-entry.js +9 -11
- package/dist/es/editor/properties/entries/linkage/mutators.js +13 -13
- package/dist/es/editor/properties/entries/linkage/options.js +4 -4
- package/dist/es/editor/properties/entries/linkage/rule-diagnostics.js +30 -20
- package/dist/es/editor/properties/entries/linkage/rule-list-editor.js +29 -32
- package/dist/es/editor/properties/entries/linkage/styles.js +1 -1
- package/dist/es/editor/properties/entries/linkage/trigger-editor.js +10 -11
- package/dist/es/editor/properties/entries/linkage/use-linkage-editor-model.js +12 -13
- 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 +1 -1
- package/dist/es/editor/properties/form-linkage-panel.js +2 -4
- package/dist/es/editor/properties/form-variables-panel.js +4 -4
- package/dist/es/editor/properties/option-editors.js +1 -1
- 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 +9 -9
- package/dist/es/editor/properties/properties-provider.js +6 -10
- 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 +24 -29
- package/dist/es/editor/schema-apply.js +15 -17
- package/dist/es/editor/styles.js +1 -1
- package/dist/es/editor/toolbar/notify.js +9 -8
- package/dist/es/editor/toolbar/schema-io.js +1 -1
- package/dist/es/editor/toolbar/toolbar.js +29 -24
- 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 +2 -2
- package/dist/es/engine/ids.js +1 -1
- package/dist/es/engine/keys.js +28 -20
- package/dist/es/engine/linkage/cycle.js +6 -6
- package/dist/es/engine/linkage/default-evaluator.js +37 -32
- package/dist/es/engine/linkage/effects.js +13 -12
- package/dist/es/engine/linkage/evaluator.js +50 -47
- package/dist/es/engine/linkage/index.js +9 -8
- package/dist/es/engine/linkage/operators.js +51 -24
- package/dist/es/engine/linkage/source-tracking.js +15 -12
- package/dist/es/engine/linkage/taxonomy.js +12 -12
- package/dist/es/engine/linkage/validator.js +59 -50
- package/dist/es/engine/registry/defaults-mobile.js +1 -1
- package/dist/es/engine/registry/defaults.js +1 -1
- package/dist/es/engine/registry/form-field-registry.js +6 -6
- package/dist/es/engine/schema/column-type.js +20 -25
- package/dist/es/engine/schema/edit-ops.js +14 -11
- 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 +17 -22
- package/dist/es/engine/schema/presentation.js +2 -3
- package/dist/es/engine/schema/reconcile.js +4 -8
- 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 +74 -71
- package/dist/es/engine/schema/walk.js +2 -2
- package/dist/es/engine/validation.js +15 -11
- package/dist/es/icons.js +1 -1
- package/dist/es/index.js +1 -1
- 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/flex-style.js +1 -1
- package/dist/es/render/form-field.js +1 -1
- package/dist/es/render/form-renderer.js +180 -217
- 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 +2 -2
- package/dist/es/render/subform-columns.js +1 -1
- package/dist/es/render/submit.js +6 -6
- package/dist/es/runtime/effects.js +37 -34
- 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 +8 -8
- package/dist/es/runtime/stabilize-state-map.js +5 -3
- package/dist/es/store/engine-provider.js +1 -1
- package/dist/es/store/form-store.js +14 -8
- 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/index.js +6 -5
- 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/mobile/input-cell.d.ts +5 -0
- package/dist/types/components/mobile/switch.d.ts +9 -8
- package/dist/types/components/mobile/textfield.d.ts +3 -0
- package/dist/types/editor/canvas/drop-zones.d.ts +12 -1
- package/dist/types/editor/context-sources.d.ts +19 -0
- package/dist/types/editor/dnd.d.ts +5 -4
- package/dist/types/editor/form-config/linkage-overview.d.ts +8 -0
- package/dist/types/editor/form-editor.d.ts +12 -4
- package/dist/types/editor/preview-runtime-context.d.ts +3 -3
- package/dist/types/editor/properties/entries/linkage/action-editor.d.ts +0 -5
- package/dist/types/editor/properties/entries/linkage/actions-editor.d.ts +0 -5
- package/dist/types/editor/properties/entries/linkage/condition-editor.d.ts +1 -6
- package/dist/types/editor/properties/entries/linkage/expression-input.d.ts +22 -0
- package/dist/types/editor/properties/entries/linkage/rule-diagnostics.d.ts +10 -0
- package/dist/types/editor/properties/entries/linkage/rule-list-editor.d.ts +0 -5
- package/dist/types/editor/properties/entries/linkage/trigger-editor.d.ts +0 -5
- package/dist/types/editor/properties/entries/linkage/use-linkage-editor-model.d.ts +5 -10
- package/dist/types/editor/properties/entries/linkage/use-stable-options.d.ts +4 -4
- package/dist/types/editor/properties/form-variables-panel.d.ts +1 -1
- package/dist/types/editor/toolbar/notify.d.ts +17 -1
- package/dist/types/engine/keys.d.ts +11 -1
- package/dist/types/engine/linkage/default-evaluator.d.ts +6 -7
- package/dist/types/engine/linkage/effects.d.ts +2 -2
- package/dist/types/engine/linkage/evaluator.d.ts +12 -6
- package/dist/types/engine/linkage/index.d.ts +1 -1
- package/dist/types/engine/linkage/operators.d.ts +7 -5
- package/dist/types/engine/linkage/taxonomy.d.ts +4 -3
- package/dist/types/engine/registry/form-field-registry.d.ts +1 -1
- package/dist/types/engine/validation.d.ts +7 -1
- package/dist/types/render/form-renderer.d.ts +6 -7
- package/dist/types/render/submit.d.ts +4 -4
- package/dist/types/runtime/effects.d.ts +3 -3
- package/dist/types/runtime/runtime-state-controller.d.ts +5 -5
- package/dist/types/store/form-store.d.ts +7 -0
- package/dist/types/types/linkage.d.ts +30 -10
- package/dist/types/types/schema.d.ts +1 -1
- package/package.json +6 -12
- package/dist/cjs/editor/properties/entries/linkage/expression-assist.cjs +0 -1
- package/dist/es/editor/properties/entries/linkage/expression-assist.js +0 -86
- package/dist/types/editor/properties/entries/linkage/expression-assist.d.ts +0 -33
- package/dist/types/editor/properties/entries/linkage/expression-assist.test.d.ts +0 -1
- package/dist/types/test-expression-engine.d.ts +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { findNode as e, findScope as t, nodeLabel as n, walkNodes as r } from "./walk.js";
|
|
3
3
|
import { collectSubtreeKeysByScope as i } from "../keys.js";
|
|
4
4
|
import { removeBlock as a } from "./mutate.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { containerBodies as e, mapPreservingIdentity as t, withContainerBodies as n } from "./nodes.js";
|
|
3
3
|
import { isContainerNode as r } from "./walk.js";
|
|
4
4
|
//#region src/engine/schema/rewrite.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { CONTAINER_TYPES as e, GAP_SCALES as t } from "../../types/schema.js";
|
|
3
3
|
import { createIssue as n, hasErrorIssues as r, isRecord as i, validateRemoteRequest as a } from "../validation.js";
|
|
4
4
|
import { validateLinkageSchema as o } from "../linkage/validator.js";
|
|
@@ -25,14 +25,14 @@ function d(e, t) {
|
|
|
25
25
|
valid: !1,
|
|
26
26
|
issues: a
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
_({
|
|
29
29
|
dataSourceIds: s,
|
|
30
30
|
formLinkage: o.linkage,
|
|
31
31
|
issues: a,
|
|
32
32
|
layer: c.pc,
|
|
33
33
|
registry: t.pc,
|
|
34
34
|
where: "presentations.pc"
|
|
35
|
-
}), c.mobile !== void 0 &&
|
|
35
|
+
}), c.mobile !== void 0 && _({
|
|
36
36
|
dataSourceIds: s,
|
|
37
37
|
formLinkage: void 0,
|
|
38
38
|
issues: a,
|
|
@@ -43,7 +43,7 @@ function d(e, t) {
|
|
|
43
43
|
let l = !r(a);
|
|
44
44
|
return {
|
|
45
45
|
valid: l,
|
|
46
|
-
...l
|
|
46
|
+
...l && { schema: o },
|
|
47
47
|
issues: a
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -67,26 +67,29 @@ function p(e, t) {
|
|
|
67
67
|
let r = /* @__PURE__ */ new Set();
|
|
68
68
|
if (e === void 0) return r;
|
|
69
69
|
if (!Array.isArray(e)) return t.push(n("dataSources", "data_sources_invalid")), r;
|
|
70
|
-
let
|
|
71
|
-
for (let [e,
|
|
72
|
-
let
|
|
73
|
-
if (!i(
|
|
74
|
-
t.push(n(
|
|
70
|
+
let a = e;
|
|
71
|
+
for (let [e, o] of a.entries()) {
|
|
72
|
+
let a = `dataSources[${e}]`;
|
|
73
|
+
if (!i(o)) {
|
|
74
|
+
t.push(n(a, "data_sources_invalid"));
|
|
75
75
|
continue;
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
case "static":
|
|
79
|
-
m(s.options, `${o}.options`, "data_sources_invalid", t);
|
|
80
|
-
break;
|
|
81
|
-
case "remote":
|
|
82
|
-
t.push(...a(s.request, `${o}.request`)), h(s.mapping, `${o}.mapping`, "data_sources_invalid", t);
|
|
83
|
-
break;
|
|
84
|
-
default: t.push(n(`${o}.kind`, "data_sources_invalid"));
|
|
85
|
-
}
|
|
77
|
+
typeof o.id != "string" || o.id.length === 0 || r.has(o.id) ? t.push(n(`${a}.id`, "data_sources_invalid")) : r.add(o.id), typeof o.name != "string" && t.push(n(`${a}.name`, "data_sources_invalid")), m(o, a, t);
|
|
86
78
|
}
|
|
87
79
|
return r;
|
|
88
80
|
}
|
|
89
|
-
function m(e, t, r
|
|
81
|
+
function m(e, t, r) {
|
|
82
|
+
switch (e.kind) {
|
|
83
|
+
case "static":
|
|
84
|
+
h(e.options, `${t}.options`, "data_sources_invalid", r);
|
|
85
|
+
return;
|
|
86
|
+
case "remote":
|
|
87
|
+
r.push(...a(e.request, `${t}.request`)), g(e.mapping, `${t}.mapping`, "data_sources_invalid", r);
|
|
88
|
+
return;
|
|
89
|
+
default: r.push(n(`${t}.kind`, "data_sources_invalid"));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function h(e, t, r, a) {
|
|
90
93
|
if (!Array.isArray(e)) {
|
|
91
94
|
a.push(n(t, r));
|
|
92
95
|
return;
|
|
@@ -94,7 +97,7 @@ function m(e, t, r, a) {
|
|
|
94
97
|
let o = e;
|
|
95
98
|
for (let [e, s] of o.entries()) (!i(s) || typeof s.label != "string" || typeof s.value != "string" && typeof s.value != "number") && a.push(n(`${t}[${e}]`, r));
|
|
96
99
|
}
|
|
97
|
-
function
|
|
100
|
+
function g(e, t, r, a) {
|
|
98
101
|
if (e !== void 0) {
|
|
99
102
|
if (!i(e)) {
|
|
100
103
|
a.push(n(t, r));
|
|
@@ -108,7 +111,7 @@ function h(e, t, r, a) {
|
|
|
108
111
|
]) e[i] !== void 0 && typeof e[i] != "string" && a.push(n(`${t}.${i}`, r));
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
|
-
function
|
|
114
|
+
function _(e) {
|
|
112
115
|
let { dataSourceIds: t, formLinkage: a, issues: s, layer: c, registry: l, where: u } = e;
|
|
113
116
|
if (!i(c)) {
|
|
114
117
|
s.push(n(u, "presentation_not_object"));
|
|
@@ -125,15 +128,15 @@ function g(e) {
|
|
|
125
128
|
keysByScope: /* @__PURE__ */ new Map(),
|
|
126
129
|
dataSourceIds: t
|
|
127
130
|
}, f = s.length;
|
|
128
|
-
for (let [e, t] of c.children.entries())
|
|
131
|
+
for (let [e, t] of c.children.entries()) v(t, `${u}.children[${e}]`, [], d);
|
|
129
132
|
r(s.slice(f)) || s.push(...o(c, a).issues);
|
|
130
133
|
}
|
|
131
|
-
function
|
|
134
|
+
function v(e, t, r, a) {
|
|
132
135
|
if (!i(e)) {
|
|
133
136
|
a.issues.push(n(t, "block_not_object"));
|
|
134
137
|
return;
|
|
135
138
|
}
|
|
136
|
-
|
|
139
|
+
L(e.id, t, a), z(e.span, t, a), B(e.flex, t, a), V(e.columnWidth, t, a);
|
|
137
140
|
let { type: o } = e;
|
|
138
141
|
if (typeof o != "string" || o.length === 0) {
|
|
139
142
|
a.issues.push(n(`${t}.type`, "type_required"));
|
|
@@ -141,24 +144,24 @@ function _(e, t, r, a) {
|
|
|
141
144
|
}
|
|
142
145
|
switch (o) {
|
|
143
146
|
case "section":
|
|
144
|
-
|
|
147
|
+
O(e, t, r, a);
|
|
145
148
|
return;
|
|
146
149
|
case "tabs":
|
|
147
|
-
|
|
150
|
+
P(e, t, r, a);
|
|
148
151
|
return;
|
|
149
152
|
case "subform":
|
|
150
|
-
|
|
153
|
+
F(e, t, r, a);
|
|
151
154
|
return;
|
|
152
155
|
case "flex":
|
|
153
|
-
|
|
156
|
+
j(e, t, r, a);
|
|
154
157
|
return;
|
|
155
158
|
case "grid":
|
|
156
|
-
|
|
159
|
+
M(e, t, r, a);
|
|
157
160
|
return;
|
|
158
|
-
default:
|
|
161
|
+
default: x(e, o, t, r, a);
|
|
159
162
|
}
|
|
160
163
|
}
|
|
161
|
-
var
|
|
164
|
+
var y = [
|
|
162
165
|
"label",
|
|
163
166
|
"placeholder",
|
|
164
167
|
"helperText",
|
|
@@ -166,26 +169,26 @@ var v = [
|
|
|
166
169
|
"text",
|
|
167
170
|
"message"
|
|
168
171
|
];
|
|
169
|
-
function
|
|
170
|
-
for (let i of
|
|
172
|
+
function b(e, t, r) {
|
|
173
|
+
for (let i of y) e[i] !== void 0 && typeof e[i] != "string" && r.issues.push(n(`${t}.${i}`, "display_text_invalid", { prop: i }));
|
|
171
174
|
}
|
|
172
|
-
function
|
|
175
|
+
function x(e, t, r, i, a) {
|
|
173
176
|
if (!a.registry.has(t)) {
|
|
174
177
|
a.issues.push(n(`${r}.type`, "unknown_field_type", { type: t }));
|
|
175
178
|
return;
|
|
176
179
|
}
|
|
177
|
-
|
|
180
|
+
b(e, r, a);
|
|
178
181
|
let o = typeof e.key == "string" && e.key.length > 0, s = a.registry.get(t)?.config.keyed === !0;
|
|
179
|
-
s && !o && a.issues.push(n(`${r}.key`, "key_required", { type: t })), o && !s ? a.issues.push(n(`${r}.key`, "stray_key", { type: t })) : o &&
|
|
182
|
+
s && !o && a.issues.push(n(`${r}.key`, "key_required", { type: t })), o && !s ? a.issues.push(n(`${r}.key`, "stray_key", { type: t })) : o && R(e.key, i, r, a), C(e.validate, `${r}.validate`, a), e.dataSource !== void 0 && S(e.dataSource, `${r}.dataSource`, a);
|
|
180
183
|
}
|
|
181
|
-
function
|
|
184
|
+
function S(e, t, r) {
|
|
182
185
|
if (!i(e)) {
|
|
183
186
|
r.issues.push(n(t, "data_source_invalid"));
|
|
184
187
|
return;
|
|
185
188
|
}
|
|
186
189
|
switch (e.kind) {
|
|
187
190
|
case "static":
|
|
188
|
-
|
|
191
|
+
h(e.options, `${t}.options`, "data_source_invalid", r.issues);
|
|
189
192
|
return;
|
|
190
193
|
case "ref": {
|
|
191
194
|
let { dataSourceId: i } = e;
|
|
@@ -193,12 +196,12 @@ function x(e, t, r) {
|
|
|
193
196
|
return;
|
|
194
197
|
}
|
|
195
198
|
case "remote":
|
|
196
|
-
r.issues.push(...a(e.request, `${t}.request`)),
|
|
199
|
+
r.issues.push(...a(e.request, `${t}.request`)), g(e.mapping, `${t}.mapping`, "data_source_invalid", r.issues);
|
|
197
200
|
return;
|
|
198
201
|
default: r.issues.push(n(`${t}.kind`, "data_source_invalid"));
|
|
199
202
|
}
|
|
200
203
|
}
|
|
201
|
-
function
|
|
204
|
+
function C(e, t, r) {
|
|
202
205
|
if (e === void 0) return;
|
|
203
206
|
if (!i(e)) {
|
|
204
207
|
r.issues.push(n(t, "validate_malformed"));
|
|
@@ -211,48 +214,48 @@ function S(e, t, r) {
|
|
|
211
214
|
})), typeof s == "number" && typeof a == "number" && s > a && r.issues.push(n(`${t}.min`, "validate_range_invalid", {
|
|
212
215
|
lower: "min",
|
|
213
216
|
upper: "max"
|
|
214
|
-
})), typeof l == "string" && l.length > 0 && !
|
|
217
|
+
})), typeof l == "string" && l.length > 0 && !w(l) && r.issues.push(n(`${t}.pattern`, "pattern_invalid"));
|
|
215
218
|
}
|
|
216
|
-
function
|
|
219
|
+
function w(e) {
|
|
217
220
|
try {
|
|
218
221
|
return new RegExp(e), !0;
|
|
219
222
|
} catch {
|
|
220
223
|
return !1;
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
e !== void 0 && !
|
|
226
|
+
var T = new Set(t);
|
|
227
|
+
function E(e, t, r) {
|
|
228
|
+
e !== void 0 && !T.has(e) && r.issues.push(n(`${t}.gap`, "gap_invalid"));
|
|
226
229
|
}
|
|
227
|
-
function
|
|
230
|
+
function D(e, t, r, i) {
|
|
228
231
|
typeof e.key == "string" && e.key.length > 0 && i.issues.push(n(`${r}.key`, "stray_key_on_container", { type: t }));
|
|
229
232
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
233
|
+
function O(e, t, r, i) {
|
|
234
|
+
D(e, "section", t, i), e.variant !== "card" && e.variant !== "collapse" && i.issues.push(n(`${t}.variant`, "variant_invalid")), e.title !== void 0 && typeof e.title != "string" && i.issues.push(n(`${t}.title`, "title_invalid")), E(e.gap, t, i), I(e.children, `${t}.children`, r, i);
|
|
232
235
|
}
|
|
233
|
-
var
|
|
236
|
+
var k = /* @__PURE__ */ new Set([
|
|
234
237
|
"start",
|
|
235
238
|
"center",
|
|
236
239
|
"end",
|
|
237
240
|
"between",
|
|
238
241
|
"around"
|
|
239
|
-
]),
|
|
242
|
+
]), A = /* @__PURE__ */ new Set([
|
|
240
243
|
"start",
|
|
241
244
|
"center",
|
|
242
245
|
"end",
|
|
243
246
|
"stretch"
|
|
244
247
|
]);
|
|
245
|
-
function A(e, t, r, i) {
|
|
246
|
-
E(e, "flex", t, i), e.direction !== void 0 && e.direction !== "row" && e.direction !== "column" && i.issues.push(n(`${t}.direction`, "flex_invalid")), e.justify !== void 0 && !O.has(e.justify) && i.issues.push(n(`${t}.justify`, "flex_invalid")), e.align !== void 0 && !k.has(e.align) && i.issues.push(n(`${t}.align`, "flex_invalid")), e.wrap !== void 0 && typeof e.wrap != "boolean" && i.issues.push(n(`${t}.wrap`, "flex_invalid")), e.gap !== void 0 && !M(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), F(e.children, `${t}.children`, r, i);
|
|
247
|
-
}
|
|
248
248
|
function j(e, t, r, i) {
|
|
249
|
-
|
|
249
|
+
D(e, "flex", t, i), e.direction !== void 0 && e.direction !== "row" && e.direction !== "column" && i.issues.push(n(`${t}.direction`, "flex_invalid")), e.justify !== void 0 && !k.has(e.justify) && i.issues.push(n(`${t}.justify`, "flex_invalid")), e.align !== void 0 && !A.has(e.align) && i.issues.push(n(`${t}.align`, "flex_invalid")), e.wrap !== void 0 && typeof e.wrap != "boolean" && i.issues.push(n(`${t}.wrap`, "flex_invalid")), e.gap !== void 0 && !N(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), I(e.children, `${t}.children`, r, i);
|
|
250
250
|
}
|
|
251
|
-
function M(e) {
|
|
252
|
-
|
|
251
|
+
function M(e, t, r, i) {
|
|
252
|
+
D(e, "grid", t, i), e.columns !== void 0 && (typeof e.columns != "number" || !Number.isSafeInteger(e.columns) || e.columns < 1 || e.columns > 24) && i.issues.push(n(`${t}.columns`, "columns_invalid", { max: 24 })), e.gap !== void 0 && !N(e.gap) && i.issues.push(n(`${t}.gap`, "gap_invalid")), e.rowGap !== void 0 && !N(e.rowGap) && i.issues.push(n(`${t}.rowGap`, "gap_invalid")), I(e.children, `${t}.children`, r, i);
|
|
253
253
|
}
|
|
254
|
-
function N(e
|
|
255
|
-
|
|
254
|
+
function N(e) {
|
|
255
|
+
return typeof e == "number" && Number.isSafeInteger(e) && e >= 0;
|
|
256
|
+
}
|
|
257
|
+
function P(e, t, r, a) {
|
|
258
|
+
if (D(e, "tabs", t, a), E(e.gap, t, a), !Array.isArray(e.tabs)) {
|
|
256
259
|
a.issues.push(n(`${t}.tabs`, "children_not_array"));
|
|
257
260
|
return;
|
|
258
261
|
}
|
|
@@ -267,28 +270,28 @@ function N(e, t, r, a) {
|
|
|
267
270
|
a.issues.push(n(o, "tab_malformed"));
|
|
268
271
|
continue;
|
|
269
272
|
}
|
|
270
|
-
|
|
273
|
+
L(s.id, o, a), typeof s.label != "string" && a.issues.push(n(`${o}.label`, "tab_malformed")), I(s.children, `${o}.children`, r, a);
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
|
-
function
|
|
274
|
-
t.variant !== "table" && t.variant !== "stack" && (
|
|
276
|
+
function F(t, r, a, o) {
|
|
277
|
+
t.variant !== "table" && t.variant !== "stack" && o.issues.push(n(`${r}.variant`, "subform_variant_invalid"));
|
|
275
278
|
let s = typeof t.key == "string" && t.key.length > 0;
|
|
276
|
-
s ?
|
|
279
|
+
s ? R(t.key, a, r, o) : o.issues.push(n(`${r}.key`, "key_required", { type: "subform" })), E(t.gap, r, o), t.minRows !== void 0 && !N(t.minRows) && o.issues.push(n(`${r}.minRows`, "rows_bound_invalid")), t.maxRows !== void 0 && !N(t.maxRows) && o.issues.push(n(`${r}.maxRows`, "rows_bound_invalid")), typeof t.minRows == "number" && typeof t.maxRows == "number" && t.minRows > t.maxRows && o.issues.push(n(`${r}.minRows`, "rows_bound_invalid"));
|
|
277
280
|
let c = s ? [...a, t.key] : a;
|
|
278
|
-
if (
|
|
281
|
+
if (I(t.template, `${r}.template`, c, o), t.variant === "table" && Array.isArray(t.template)) for (let [a, s] of t.template.entries()) {
|
|
279
282
|
let t = i(s) ? s.type : void 0, c = typeof t == "string" && e.includes(t), l = i(s) && typeof s.key == "string" && s.key.length > 0;
|
|
280
283
|
(c || !l) && o.issues.push(n(`${r}.template[${a}]`, "subform_table_column"));
|
|
281
284
|
}
|
|
282
285
|
}
|
|
283
|
-
function
|
|
286
|
+
function I(e, t, r, i) {
|
|
284
287
|
if (!Array.isArray(e)) {
|
|
285
288
|
i.issues.push(n(t, "children_not_array"));
|
|
286
289
|
return;
|
|
287
290
|
}
|
|
288
291
|
let a = e;
|
|
289
|
-
for (let [e, n] of a.entries())
|
|
292
|
+
for (let [e, n] of a.entries()) v(n, `${t}[${e}]`, r, i);
|
|
290
293
|
}
|
|
291
|
-
function
|
|
294
|
+
function L(e, t, r) {
|
|
292
295
|
if (typeof e != "string" || e.length === 0) {
|
|
293
296
|
r.issues.push(n(`${t}.id`, "id_required"));
|
|
294
297
|
return;
|
|
@@ -299,15 +302,15 @@ function I(e, t, r) {
|
|
|
299
302
|
}
|
|
300
303
|
r.seenIds.add(e);
|
|
301
304
|
}
|
|
302
|
-
function
|
|
305
|
+
function R(e, t, r, i) {
|
|
303
306
|
s.test(e) || i.issues.push(n(`${r}.key`, "key_invalid_charset", { key: e }));
|
|
304
307
|
let a = t.join("/"), o = i.keysByScope.get(a) ?? /* @__PURE__ */ new Set();
|
|
305
308
|
o.has(e) ? i.issues.push(n(`${r}.key`, "duplicate_key", { key: e })) : o.add(e), i.keysByScope.set(a, o);
|
|
306
309
|
}
|
|
307
|
-
function R(e, t, r) {
|
|
308
|
-
e !== void 0 && (typeof e != "number" || !Number.isInteger(e) || e < 1 || e > 24) && r.issues.push(n(`${t}.span`, "span_invalid", { max: 24 }));
|
|
309
|
-
}
|
|
310
310
|
function z(e, t, r) {
|
|
311
|
+
e !== void 0 && (typeof e != "number" || !Number.isSafeInteger(e) || e < 1 || e > 24) && r.issues.push(n(`${t}.span`, "span_invalid", { max: 24 }));
|
|
312
|
+
}
|
|
313
|
+
function B(e, t, r) {
|
|
311
314
|
if (e !== void 0) {
|
|
312
315
|
if (!i(e)) {
|
|
313
316
|
r.issues.push(n(`${t}.flex`, "flex_invalid"));
|
|
@@ -316,7 +319,7 @@ function z(e, t, r) {
|
|
|
316
319
|
e.grow !== void 0 && (typeof e.grow != "number" || e.grow < 0) && r.issues.push(n(`${t}.flex.grow`, "flex_invalid")), e.shrink !== void 0 && (typeof e.shrink != "number" || e.shrink < 0) && r.issues.push(n(`${t}.flex.shrink`, "flex_invalid")), e.basis !== void 0 && typeof e.basis != "string" && r.issues.push(n(`${t}.flex.basis`, "flex_invalid"));
|
|
317
320
|
}
|
|
318
321
|
}
|
|
319
|
-
function
|
|
322
|
+
function V(e, t, r) {
|
|
320
323
|
e !== void 0 && (typeof e != "number" || !Number.isFinite(e) || e <= 0) && r.issues.push(n(`${t}.columnWidth`, "column_width_invalid"));
|
|
321
324
|
}
|
|
322
325
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { CONTAINER_TYPES as e } from "../../types/schema.js";
|
|
3
3
|
import { bodyScopeKey as t, containerBodies as n } from "./nodes.js";
|
|
4
4
|
import { isShallowEqual as r } from "@vef-framework-react/shared";
|
|
@@ -100,4 +100,4 @@ function x(e, t) {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
|
-
export { y as containsNode, p as countFields, g as findField, h as findNode, x as findNodeWithParentContainer, b as findParentContainer, _ as findScope, a as isContainerNode, o as isLeafField, c as isRootScope, l as nodeLabel, s as scopeEquals, f as walkFields, d as walkNodes };
|
|
103
|
+
export { v as collectNodeIds, y as containsNode, p as countFields, g as findField, h as findNode, x as findNodeWithParentContainer, b as findParentContainer, _ as findScope, a as isContainerNode, o as isLeafField, c as isRootScope, l as nodeLabel, s as scopeEquals, f as walkFields, d as walkNodes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { isPlainObject as e } from "@vef-framework-react/shared";
|
|
3
3
|
//#region src/engine/validation.ts
|
|
4
|
-
var t = new Set([
|
|
4
|
+
var t = /* @__PURE__ */ new Set([
|
|
5
5
|
"data_source_ref_unknown",
|
|
6
6
|
"request_incomplete",
|
|
7
7
|
"condition_group_empty",
|
|
@@ -32,6 +32,7 @@ var t = new Set([
|
|
|
32
32
|
column_width_invalid: "columnWidth 必须为正数(表格子表单列的固定像素宽度)",
|
|
33
33
|
gap_invalid: "间距取值非法(需为预设档位或非负整数)",
|
|
34
34
|
variant_invalid: "variant 必须为 \"card\" 或 \"collapse\"",
|
|
35
|
+
subform_variant_invalid: "variant 必须为 \"stack\" 或 \"table\"",
|
|
35
36
|
title_invalid: "title 必须为字符串",
|
|
36
37
|
rows_bound_invalid: "行数限制无效:minRows / maxRows 须为非负整数且 minRows ≤ maxRows",
|
|
37
38
|
subform_table_column: "表格子表单的列必须是绑定字段(不能是容器或展示 / 按钮类组件)",
|
|
@@ -89,7 +90,7 @@ var t = new Set([
|
|
|
89
90
|
cycle_detected: "联动规则存在循环依赖:{cycle}"
|
|
90
91
|
};
|
|
91
92
|
function i(e) {
|
|
92
|
-
return e
|
|
93
|
+
return Object.hasOwn(r, e);
|
|
93
94
|
}
|
|
94
95
|
function a(e, t) {
|
|
95
96
|
if (!i(e)) return n[e];
|
|
@@ -99,25 +100,28 @@ function a(e, t) {
|
|
|
99
100
|
function o(e, t) {
|
|
100
101
|
return a(e, t);
|
|
101
102
|
}
|
|
102
|
-
function s(e
|
|
103
|
+
function s(e) {
|
|
104
|
+
return e.path.length > 0 ? `${e.path}:${e.message}` : e.message;
|
|
105
|
+
}
|
|
106
|
+
function c(e, n, r, i) {
|
|
103
107
|
return {
|
|
104
108
|
path: e,
|
|
105
109
|
code: n,
|
|
106
110
|
severity: t.has(n) ? "warning" : "error",
|
|
107
111
|
message: a(n, r),
|
|
108
|
-
...i
|
|
112
|
+
...i !== void 0 && { ruleId: i }
|
|
109
113
|
};
|
|
110
114
|
}
|
|
111
|
-
function
|
|
115
|
+
function l(e) {
|
|
112
116
|
return e.some((e) => e.severity === "error");
|
|
113
117
|
}
|
|
114
|
-
function
|
|
118
|
+
function u(t) {
|
|
115
119
|
return e(t);
|
|
116
120
|
}
|
|
117
|
-
function
|
|
118
|
-
if (!
|
|
121
|
+
function d(e, t, n) {
|
|
122
|
+
if (!u(e)) return [c(t, "request_malformed", void 0, n)];
|
|
119
123
|
let r = [], { action: i, resource: a } = e;
|
|
120
|
-
return typeof a == "string" ? a.length === 0 && r.push(
|
|
124
|
+
return typeof a == "string" ? a.length === 0 && r.push(c(`${t}.resource`, "request_incomplete", void 0, n)) : r.push(c(`${t}.resource`, "request_malformed", void 0, n)), typeof i == "string" ? i.length === 0 && r.push(c(`${t}.action`, "request_incomplete", void 0, n)) : r.push(c(`${t}.action`, "request_malformed", void 0, n)), r;
|
|
121
125
|
}
|
|
122
126
|
//#endregion
|
|
123
|
-
export {
|
|
127
|
+
export { c as createIssue, s as formatIssueLine, o as formatIssueMessage, l as hasErrorIssues, u as isRecord, d as validateRemoteRequest };
|
package/dist/es/icons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { DynamicIcon as t, Icon as n } from "@vef-framework-react/components";
|
|
4
4
|
import { BracesIcon as r, CalendarIcon as i, CalendarRangeIcon as a, ChevronDownIcon as o, ChevronRightIcon as s, ChevronUpIcon as c, CircleDotIcon as l, CircleHelpIcon as u, CircleXIcon as d, ClipboardListIcon as f, ClockIcon as p, Code2Icon as m, CodeIcon as h, CopyIcon as g, DatabaseIcon as _, DownloadIcon as v, EllipsisIcon as y, EyeIcon as b, FolderPlusIcon as x, GitBranchIcon as S, GripVerticalIcon as C, HashIcon as w, InfoIcon as T, LayoutGridIcon as E, LayoutListIcon as D, LayoutPanelTopIcon as O, Link2Icon as ee, ListChecksIcon as k, ListTreeIcon as A, MinusIcon as j, MonitorIcon as M, MousePointer2Icon as N, MousePointerClickIcon as P, PaletteIcon as F, PilcrowIcon as I, PlusIcon as L, Redo2Icon as R, RocketIcon as z, SearchIcon as B, Settings2Icon as V, ShieldCheckIcon as H, SlidersHorizontalIcon as U, SmartphoneIcon as W, SquareIcon as G, SquarePenIcon as K, StretchHorizontalIcon as q, TableIcon as J, TextIcon as Y, ToggleLeftIcon as X, Trash2Icon as Z, TriangleAlertIcon as Q, TypeIcon as $, Undo2Icon as te, UploadIcon as ne, XIcon as re } from "lucide-react";
|
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
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
4
|
import { definePropertyEntry as r } from "./types/properties.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
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.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
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.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.7.0 made by Venus | 2026-07-06T01:41:21.201Z */
|
|
2
2
|
import { useFieldRegistry as e } from "../store/engine-provider.js";
|
|
3
3
|
import { isKeyedField as t } from "../engine/keys.js";
|
|
4
4
|
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|