@vef-framework-react/form-editor 2.18.0 → 2.20.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/checkbox-group-field/index.cjs +1 -1
- package/dist/cjs/components/code-editor/index.cjs +1 -1
- package/dist/cjs/components/mobile/checkbox-group.cjs +1 -1
- package/dist/cjs/components/mobile/date-adapters.cjs +1 -1
- package/dist/cjs/components/mobile/date.cjs +1 -1
- package/dist/cjs/components/mobile/datetime.cjs +1 -1
- package/dist/cjs/components/mobile/definitions.cjs +1 -1
- package/dist/cjs/components/mobile/radio.cjs +1 -1
- package/dist/cjs/components/mobile/select.cjs +1 -1
- package/dist/cjs/components/mobile/switch.cjs +1 -1
- package/dist/cjs/components/radio-field/index.cjs +1 -1
- package/dist/cjs/components/select-field/index.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/palette/palette-item.cjs +1 -1
- package/dist/cjs/editor/properties/container-properties.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/options.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/form-variables-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/remove-node-confirm.cjs +2 -2
- package/dist/cjs/editor/toolbar/toolbar.cjs +2 -2
- package/dist/cjs/engine/data-source-params.cjs +1 -0
- package/dist/cjs/engine/keys.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/operators.cjs +1 -1
- package/dist/cjs/engine/linkage/shape.cjs +1 -0
- package/dist/cjs/engine/linkage/source-tracking.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/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/removal-impact.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/render/chrome/mobile-chrome.cjs +1 -1
- package/dist/cjs/render/chrome/pc-chrome.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/render/parts/field-shell.cjs +1 -1
- package/dist/cjs/render/parts/label.cjs +1 -1
- package/dist/cjs/render/parts/option-order.cjs +1 -0
- package/dist/cjs/render/subform-columns.cjs +1 -1
- package/dist/cjs/render/submit.cjs +1 -1
- package/dist/cjs/runtime/effects.cjs +1 -1
- package/dist/cjs/runtime/field-write.cjs +1 -1
- package/dist/cjs/runtime/runtime-state-controller.cjs +1 -1
- package/dist/cjs/store/form-store.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 +24 -22
- package/dist/es/components/code-editor/code-editor-input.js +1 -1
- package/dist/es/components/code-editor/index.js +3 -2
- 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 +26 -24
- package/dist/es/components/mobile/date-adapters.js +3 -2
- package/dist/es/components/mobile/date.js +36 -34
- package/dist/es/components/mobile/daterange.js +1 -1
- package/dist/es/components/mobile/datetime.js +36 -34
- 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 +2 -1
- package/dist/es/components/mobile/scope.js +1 -1
- package/dist/es/components/mobile/select.js +2 -2
- package/dist/es/components/mobile/switch.js +17 -11
- 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 +3 -2
- package/dist/es/components/select-field/index.js +14 -13
- 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 +105 -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 +71 -70
- 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 +198 -200
- 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 +123 -123
- 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 +60 -59
- package/dist/es/editor/properties/entries/linkage/mutators.js +2 -11
- package/dist/es/editor/properties/entries/linkage/options.js +5 -2
- 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 +36 -36
- 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 +68 -67
- package/dist/es/editor/properties/option-editors.js +244 -123
- 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 +36 -29
- 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 +173 -172
- 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 +6 -3
- 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 +38 -32
- package/dist/es/engine/linkage/evaluator.js +70 -60
- package/dist/es/engine/linkage/index.js +1 -1
- package/dist/es/engine/linkage/operators.js +3 -3
- package/dist/es/engine/linkage/shape.js +21 -0
- package/dist/es/engine/linkage/source-tracking.js +20 -11
- package/dist/es/engine/linkage/taxonomy.js +1 -1
- package/dist/es/engine/linkage/validator.js +187 -186
- 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 +6 -2
- 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 +4 -3
- 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 +60 -39
- 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 +67 -66
- package/dist/es/render/chrome/pc-chrome.js +38 -37
- 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 +33 -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 +250 -237
- package/dist/es/render/grid-style.js +1 -1
- package/dist/es/render/parts/field-shell.js +29 -22
- package/dist/es/render/parts/label.js +12 -10
- package/dist/es/render/parts/option-order.js +8 -0
- 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 +49 -48
- package/dist/es/render/submit.js +73 -53
- package/dist/es/runtime/effects.js +75 -58
- package/dist/es/runtime/field-write.js +15 -5
- 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 +91 -78
- 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 +147 -111
- 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/mobile/date-adapters.d.ts +21 -0
- package/dist/types/components/mobile/switch.d.ts +5 -3
- 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/editor/properties/entries/linkage/options.d.ts +16 -0
- package/dist/types/editor/remove-node-confirm.d.ts +6 -0
- package/dist/types/engine/data-source-params.d.ts +33 -0
- package/dist/types/engine/keys.d.ts +5 -0
- package/dist/types/engine/linkage/effects.d.ts +13 -3
- package/dist/types/engine/linkage/shape.d.ts +54 -0
- package/dist/types/engine/linkage/source-tracking.d.ts +20 -1
- package/dist/types/engine/schema/removal-impact.d.ts +23 -0
- package/dist/types/render/data-source-param-scope.d.ts +58 -0
- package/dist/types/render/parts/field-shell.d.ts +16 -1
- package/dist/types/render/parts/label.d.ts +14 -1
- package/dist/types/render/parts/option-order.d.ts +20 -0
- package/dist/types/render/submit.d.ts +7 -4
- package/dist/types/runtime/effects.d.ts +1 -0
- package/dist/types/runtime/field-write.d.ts +7 -1
- package/dist/types/runtime/runtime-state-controller.d.ts +4 -2
- package/dist/types/store/form-store.d.ts +15 -3
- package/dist/types/types/chrome.d.ts +7 -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 +48 -5
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
import "../../types/schema.js";
|
|
3
3
|
import { createId as e, idPrefixForType as t } from "../ids.js";
|
|
4
4
|
import { containerBodies as n, mapPreservingIdentity as r, withContainerBodies as i } from "./nodes.js";
|
|
5
5
|
import { containsNode as a, findNode as o, findScope as s, isContainerNode as c, scopeEquals as l } from "./walk.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { assertNever as u } from "../assert-never.js";
|
|
7
|
+
import { collectScopeKeys as d, isKeyedNode as f, nextUniqueKey as p } from "../keys.js";
|
|
8
8
|
import { rewriteContainerBodies as m } from "./rewrite.js";
|
|
9
9
|
import { removeBlock as h, updateNode as g } from "./mutate.js";
|
|
10
10
|
import { cloneDeep as _, isShallowEqual as v } from "@vef-framework-react/shared";
|
|
@@ -32,7 +32,7 @@ function S(e, t, n) {
|
|
|
32
32
|
if (!r) return e;
|
|
33
33
|
let i = y(n);
|
|
34
34
|
if (i !== void 0 && a(r, i)) return e;
|
|
35
|
-
let c = h(e, t),
|
|
35
|
+
let c = h(e, t), u = s(e, t) ?? [], f = b(e, n), p = F(c, l(u, f) ? r : H(r, d(c, f)), n);
|
|
36
36
|
return o(p, t) ? p : e;
|
|
37
37
|
}
|
|
38
38
|
function C(e, t, n) {
|
|
@@ -131,7 +131,7 @@ function V(e, t) {
|
|
|
131
131
|
return U(_(e), t, z);
|
|
132
132
|
}
|
|
133
133
|
function H(e, t) {
|
|
134
|
-
return U(e, (e) =>
|
|
134
|
+
return U(e, (e) => p(t, e), B);
|
|
135
135
|
}
|
|
136
136
|
function U(e, t, n) {
|
|
137
137
|
if (t === null) return W(e, null, n);
|
|
@@ -143,7 +143,7 @@ function U(e, t, n) {
|
|
|
143
143
|
}
|
|
144
144
|
function W(e, n, r) {
|
|
145
145
|
let i = r(t(e.type), e.id), a = Q(e.linkage, r);
|
|
146
|
-
if (!c(e)) return
|
|
146
|
+
if (!c(e)) return f(e) ? {
|
|
147
147
|
...e,
|
|
148
148
|
id: i,
|
|
149
149
|
key: n ? n(e.key) : e.key,
|
|
@@ -189,7 +189,7 @@ function W(e, n, r) {
|
|
|
189
189
|
linkage: a,
|
|
190
190
|
children: G(e.children, n, r)
|
|
191
191
|
};
|
|
192
|
-
default: return
|
|
192
|
+
default: return u(e);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function G(e, t, n) {
|
|
@@ -229,7 +229,7 @@ function K(e, t) {
|
|
|
229
229
|
linkage: n,
|
|
230
230
|
children: q(e.children, t)
|
|
231
231
|
};
|
|
232
|
-
default: return
|
|
232
|
+
default: return u(e);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
function q(e, t) {
|
|
@@ -273,7 +273,7 @@ function Z(e, t) {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
case "expression": return e;
|
|
276
|
-
default: return
|
|
276
|
+
default: return u(e);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
function Q(e, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
import { mapPreservingIdentity as e } from "./nodes.js";
|
|
3
3
|
import { isLeafField as t } from "./walk.js";
|
|
4
4
|
import { rewriteContainerBodies as n } from "./rewrite.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
import { createId as e } from "../ids.js";
|
|
3
3
|
//#region src/engine/schema/nodes.ts
|
|
4
4
|
function t(e, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
import { walkUniqueRootKeyedFields as e } from "../keys.js";
|
|
3
3
|
//#region src/engine/schema/permission-bridge.ts
|
|
4
4
|
var t = {
|
|
@@ -12,10 +12,11 @@ var t = {
|
|
|
12
12
|
"checkbox-group": "select",
|
|
13
13
|
date: "date",
|
|
14
14
|
datetime: "date",
|
|
15
|
-
daterange: "date"
|
|
15
|
+
daterange: "date",
|
|
16
|
+
upload: "upload"
|
|
16
17
|
};
|
|
17
18
|
function n(e) {
|
|
18
|
-
return t[e] ?? "input";
|
|
19
|
+
return (Object.hasOwn(t, e) ? t[e] : void 0) ?? "input";
|
|
19
20
|
}
|
|
20
21
|
function r(e, t) {
|
|
21
22
|
let n = "dataSource" in e ? e.dataSource : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
//#region src/engine/schema/presentation.ts
|
|
3
3
|
var e = Object.freeze({ children: Object.freeze([]) });
|
|
4
4
|
function t() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
import { bodyScopeKey as e, mapPreservingIdentity as t } from "./nodes.js";
|
|
3
3
|
import { isContainerNode as n, isLeafField as r, isRootScope as i, scopeEquals as a } from "./walk.js";
|
|
4
4
|
import { assertNever as o } from "../assert-never.js";
|
|
@@ -1,59 +1,80 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
|
+
import { hasConditionTriggeredShow as e } from "../linkage/shape.js";
|
|
3
|
+
import { findNode as t, findScope as n, nodeLabel as r, walkNodes as i } from "./walk.js";
|
|
4
|
+
import { collectBlocksKeysByScope as a, collectSubtreeKeysByScope as o } from "../keys.js";
|
|
5
|
+
import { removeBlock as s, updateNode as c } from "./mutate.js";
|
|
6
|
+
import { pruneFormLinkageForRootBucket as l, pruneScopedReferences as u } from "./reconcile.js";
|
|
6
7
|
//#region src/engine/schema/removal-impact.ts
|
|
7
|
-
function
|
|
8
|
+
function d(e) {
|
|
8
9
|
return e.removedRules.length > 0 || e.unreachable.length > 0 || e.formRulesRemoved > 0;
|
|
9
10
|
}
|
|
10
|
-
var
|
|
11
|
+
var f = {
|
|
11
12
|
removedRules: [],
|
|
12
13
|
unreachable: [],
|
|
13
14
|
formRulesRemoved: 0
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
if (!
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
function p(e, r, i) {
|
|
17
|
+
let a = t(e, r);
|
|
18
|
+
if (!a) return f;
|
|
19
|
+
let c = o(a, n(e, r) ?? []);
|
|
20
|
+
return g(e, u(s(e, r), c), c, i);
|
|
21
|
+
}
|
|
22
|
+
function m(e, t, n, r) {
|
|
23
|
+
let i = h(e, t, n);
|
|
24
|
+
return i ? g(e, u(i.layer, i.buckets), i.buckets, r) : f;
|
|
25
|
+
}
|
|
26
|
+
function h(e, r, i) {
|
|
27
|
+
let o = t(e, r);
|
|
28
|
+
if (o?.type !== "tabs" || o.tabs.length <= 1) return;
|
|
29
|
+
let s = o.tabs.find((e) => e.id === i);
|
|
30
|
+
if (s) return {
|
|
31
|
+
layer: c(e, r, (e) => e.type === "tabs" ? {
|
|
32
|
+
...e,
|
|
33
|
+
tabs: e.tabs.filter((e) => e.id !== i)
|
|
34
|
+
} : e),
|
|
35
|
+
buckets: a(s.children, n(e, r) ?? [])
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function g(e, n, r, i) {
|
|
39
|
+
let a = _(e), o = _(n), s = [];
|
|
40
|
+
for (let [e, r] of a) {
|
|
41
|
+
if (t(n, e) === void 0) continue;
|
|
42
|
+
let i = o.get(e)?.ruleIds ?? /* @__PURE__ */ new Set(), a = [...r.ruleIds].filter((e) => !i.has(e)).length;
|
|
43
|
+
a > 0 && s.push({
|
|
44
|
+
ownerId: e,
|
|
45
|
+
ownerLabel: r.label,
|
|
46
|
+
count: a
|
|
26
47
|
});
|
|
27
48
|
}
|
|
28
|
-
let
|
|
29
|
-
if (
|
|
30
|
-
let e =
|
|
31
|
-
|
|
49
|
+
let c = new Set(v(e).map((e) => e.id)), u = v(n).filter((e) => !c.has(e.id)), d = 0;
|
|
50
|
+
if (i?.rules !== void 0) {
|
|
51
|
+
let e = l(i, r);
|
|
52
|
+
d = i.rules.length - (e.rules?.length ?? 0);
|
|
32
53
|
}
|
|
33
54
|
return {
|
|
34
|
-
removedRules:
|
|
35
|
-
unreachable:
|
|
36
|
-
formRulesRemoved:
|
|
55
|
+
removedRules: s,
|
|
56
|
+
unreachable: u,
|
|
57
|
+
formRulesRemoved: d
|
|
37
58
|
};
|
|
38
59
|
}
|
|
39
|
-
function
|
|
60
|
+
function _(e) {
|
|
40
61
|
let t = /* @__PURE__ */ new Map();
|
|
41
|
-
return
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
label:
|
|
45
|
-
ruleIds: new Set(
|
|
62
|
+
return i(e, (e) => {
|
|
63
|
+
let n = e.linkage?.rules;
|
|
64
|
+
n === void 0 || n.length === 0 || t.set(e.id, {
|
|
65
|
+
label: r(e) ?? e.id,
|
|
66
|
+
ruleIds: new Set(n.map((e) => e.id))
|
|
46
67
|
});
|
|
47
68
|
}), t;
|
|
48
69
|
}
|
|
49
|
-
function
|
|
50
|
-
let
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
id:
|
|
54
|
-
label:
|
|
70
|
+
function v(t) {
|
|
71
|
+
let n = [];
|
|
72
|
+
return i(t, (t) => {
|
|
73
|
+
t.linkage?.defaults?.hidden === !0 && (e(t.linkage.rules) || n.push({
|
|
74
|
+
id: t.id,
|
|
75
|
+
label: r(t) ?? t.id
|
|
55
76
|
}));
|
|
56
|
-
}),
|
|
77
|
+
}), n;
|
|
57
78
|
}
|
|
58
79
|
//#endregion
|
|
59
|
-
export {
|
|
80
|
+
export { p as collectRemovalImpact, m as collectTabRemovalImpact, d as hasRemovalImpact, h as removeTabBody };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
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.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
2
2
|
import { isPlainObject as e } from "@vef-framework-react/shared";
|
|
3
3
|
//#region src/engine/validation.ts
|
|
4
4
|
var t = /* @__PURE__ */ new Set([
|
package/dist/es/icons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
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,56 +1,57 @@
|
|
|
1
|
-
/*! @vef-framework-react/form-editor v2.
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.20.0 made by Venus | 2026-09-07T11:07:17.087Z */
|
|
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 { formatIssueMessage as u } from "./engine/validation.js";
|
|
9
|
+
import { createId as d } from "./engine/ids.js";
|
|
10
|
+
import { createEmptySchema as f } from "./engine/schema/nodes.js";
|
|
11
|
+
import { findField as p, findNode as m, findParentContainer as h, isContainerNode as g, isLeafField as _, walkFields as v, walkNodes as y } from "./engine/schema/walk.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, f as createEmptySchema, d 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, p as findField, m as findNode, h as findParentContainer, X as flexDefinition, u as formatIssueMessage, w as generateUniqueKey, V as getFieldPermission, Z as gridDefinition, ot as inferColumnType, De as insertBlock, g as isContainerNode, r as isDynamicValue, R as isEffectAction, z as isFieldEventTriggerKind, T as isKeyedField, E as isKeyedNode, _ 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, v as walkFields, y as walkNodes, Fe as withPresentation };
|