@vef-framework-react/form-editor 2.4.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/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/button/index.cjs +1 -0
- package/dist/cjs/components/checkbox-group-field/index.cjs +1 -0
- package/dist/cjs/components/code-editor/code-editor-input.cjs +1 -0
- package/dist/cjs/components/code-editor/index.cjs +1 -0
- package/dist/cjs/components/containers/index.cjs +1 -0
- package/dist/cjs/components/date-field/index.cjs +1 -0
- package/dist/cjs/components/display/index.cjs +1 -0
- package/dist/cjs/components/field-entries.cjs +1 -0
- package/dist/cjs/components/mobile/alert-block.cjs +1 -0
- package/dist/cjs/components/mobile/button.cjs +1 -0
- package/dist/cjs/components/mobile/checkbox-group.cjs +1 -0
- package/dist/cjs/components/mobile/date-adapters.cjs +1 -0
- package/dist/cjs/components/mobile/date.cjs +1 -0
- package/dist/cjs/components/mobile/daterange.cjs +1 -0
- package/dist/cjs/components/mobile/datetime.cjs +1 -0
- package/dist/cjs/components/mobile/definitions.cjs +1 -0
- package/dist/cjs/components/mobile/divider.cjs +1 -0
- package/dist/cjs/components/mobile/input-cell.cjs +1 -0
- package/dist/cjs/components/mobile/number.cjs +1 -0
- package/dist/cjs/components/mobile/option-group.cjs +1 -0
- package/dist/cjs/components/mobile/paragraph.cjs +1 -0
- package/dist/cjs/components/mobile/picker-trigger.cjs +1 -0
- package/dist/cjs/components/mobile/radio.cjs +1 -0
- package/dist/cjs/components/mobile/scope.cjs +1 -0
- package/dist/cjs/components/mobile/select.cjs +1 -0
- package/dist/cjs/components/mobile/switch.cjs +1 -0
- package/dist/cjs/components/mobile/textarea.cjs +1 -0
- package/dist/cjs/components/mobile/textfield.cjs +1 -0
- package/dist/cjs/components/mobile/theme.cjs +1 -0
- package/dist/cjs/components/number-field/index.cjs +1 -0
- package/dist/cjs/components/radio-field/index.cjs +1 -0
- package/dist/cjs/components/select-field/index.cjs +1 -0
- package/dist/cjs/components/switch-field/index.cjs +1 -0
- package/dist/cjs/components/textarea-field/index.cjs +1 -0
- package/dist/cjs/components/textfield/index.cjs +1 -0
- package/dist/cjs/editor/canvas/canvas-field.cjs +1 -0
- package/dist/cjs/editor/canvas/canvas.cjs +1 -0
- package/dist/cjs/editor/canvas/drop-indicator.cjs +1 -0
- package/dist/cjs/editor/canvas/drop-zones.cjs +1 -0
- package/dist/cjs/editor/canvas/json-split-view.cjs +1 -0
- package/dist/cjs/editor/canvas/mobile-seed-state.cjs +2 -0
- package/dist/cjs/editor/canvas/phone-frame.cjs +1 -0
- package/dist/cjs/editor/dnd.cjs +1 -0
- package/dist/cjs/editor/editor-layout-context.cjs +1 -0
- package/dist/cjs/editor/footer/footer.cjs +1 -0
- package/dist/cjs/editor/form-config/form-basics-tab.cjs +1 -0
- package/dist/cjs/editor/form-config/form-config-drawer.cjs +1 -0
- package/dist/cjs/editor/form-config/outline-tab.cjs +1 -0
- package/dist/cjs/editor/form-editor.cjs +1 -0
- package/dist/cjs/editor/palette/field-groups.cjs +1 -0
- package/dist/cjs/editor/palette/palette-group.cjs +1 -0
- package/dist/cjs/editor/palette/palette-item.cjs +1 -0
- package/dist/cjs/editor/palette/palette-panel.cjs +1 -0
- package/dist/cjs/editor/preview-effects.cjs +1 -0
- package/dist/cjs/editor/preview-runtime-context.cjs +1 -0
- package/dist/cjs/editor/properties/block-layout-section.cjs +1 -0
- package/dist/cjs/editor/properties/container-properties.cjs +1 -0
- package/dist/cjs/editor/properties/entries/built-ins.cjs +1 -0
- package/dist/cjs/editor/properties/entries/checkbox-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/coerce.cjs +1 -0
- package/dist/cjs/editor/properties/entries/entry-field.cjs +1 -0
- package/dist/cjs/editor/properties/entries/icon-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/index.cjs +1 -0
- package/dist/cjs/editor/properties/entries/key-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/action-editor.cjs +2 -0
- package/dist/cjs/editor/properties/entries/linkage/actions-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/condition-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/container-linkage-section.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/expression-assist.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/index.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/linkage-rules-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/mutators.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/options.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/rule-diagnostics.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/rule-list-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/styles.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/trigger-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/use-linkage-editor-model.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/use-stable-options.cjs +1 -0
- package/dist/cjs/editor/properties/entries/number-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/options-source/index.cjs +1 -0
- package/dist/cjs/editor/properties/entries/options-source/source-mutators.cjs +1 -0
- package/dist/cjs/editor/properties/entries/select-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/text-entry.cjs +1 -0
- package/dist/cjs/editor/properties/form-data-sources-panel.cjs +1 -0
- package/dist/cjs/editor/properties/form-linkage-panel.cjs +1 -0
- package/dist/cjs/editor/properties/form-variables-panel.cjs +1 -0
- package/dist/cjs/editor/properties/option-editors.cjs +1 -0
- package/dist/cjs/editor/properties/panel-header.cjs +1 -0
- package/dist/cjs/editor/properties/properties-empty.cjs +1 -0
- package/dist/cjs/editor/properties/properties-header.cjs +1 -0
- package/dist/cjs/editor/properties/properties-panel.cjs +1 -0
- package/dist/cjs/editor/properties/properties-provider.cjs +1 -0
- package/dist/cjs/editor/properties/properties-tabs.cjs +1 -0
- package/dist/cjs/editor/properties/use-confirmable-kind-switch.cjs +1 -0
- package/dist/cjs/editor/remove-node-confirm.cjs +1 -0
- package/dist/cjs/editor/schema-apply.cjs +2 -0
- package/dist/cjs/editor/styles.cjs +1 -0
- package/dist/cjs/editor/toolbar/notify.cjs +1 -0
- package/dist/cjs/editor/toolbar/schema-io.cjs +1 -0
- package/dist/cjs/editor/toolbar/toolbar.cjs +1 -0
- package/dist/cjs/editor/use-editor-shortcuts.cjs +1 -0
- package/dist/cjs/editor/validation-summary.cjs +1 -0
- package/dist/cjs/engine/assert-never.cjs +1 -0
- package/dist/cjs/engine/conversion/index.cjs +1 -0
- package/dist/cjs/engine/ids.cjs +1 -0
- package/dist/cjs/engine/keys.cjs +1 -0
- package/dist/cjs/engine/linkage/cycle.cjs +1 -0
- package/dist/cjs/engine/linkage/default-evaluator.cjs +1 -0
- package/dist/cjs/engine/linkage/effects.cjs +1 -0
- package/dist/cjs/engine/linkage/evaluator.cjs +1 -0
- package/dist/cjs/engine/linkage/index.cjs +1 -0
- package/dist/cjs/engine/linkage/operators.cjs +1 -0
- package/dist/cjs/engine/linkage/source-tracking.cjs +1 -0
- package/dist/cjs/engine/linkage/taxonomy.cjs +1 -0
- package/dist/cjs/engine/linkage/validator.cjs +1 -0
- package/dist/cjs/engine/registry/defaults-mobile.cjs +1 -0
- package/dist/cjs/engine/registry/defaults.cjs +1 -0
- package/dist/cjs/engine/registry/form-field-registry.cjs +1 -0
- package/dist/cjs/engine/schema/edit-ops.cjs +1 -0
- package/dist/cjs/engine/schema/mutate.cjs +1 -0
- package/dist/cjs/engine/schema/nodes.cjs +1 -0
- package/dist/cjs/engine/schema/permission-bridge.cjs +1 -0
- package/dist/cjs/engine/schema/presentation.cjs +1 -0
- package/dist/cjs/engine/schema/reconcile.cjs +1 -0
- package/dist/cjs/engine/schema/removal-impact.cjs +1 -0
- package/dist/cjs/engine/schema/rewrite.cjs +1 -0
- package/dist/cjs/engine/schema/validate.cjs +1 -0
- package/dist/cjs/engine/schema/walk.cjs +1 -0
- package/dist/cjs/engine/validation.cjs +1 -0
- package/dist/cjs/icons.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/render/chrome/mobile-chrome.cjs +1 -0
- package/dist/cjs/render/chrome/pc-chrome.cjs +1 -0
- package/dist/cjs/render/chrome/subform-shell.cjs +1 -0
- package/dist/cjs/render/data-source-context.cjs +0 -0
- package/dist/cjs/render/flex-style.cjs +1 -0
- package/dist/cjs/render/form-field.cjs +1 -0
- package/dist/cjs/render/form-renderer.cjs +1 -0
- package/dist/cjs/render/grid-style.cjs +1 -0
- package/dist/cjs/render/parts/field-shell.cjs +1 -0
- package/dist/cjs/render/parts/label.cjs +1 -0
- package/dist/cjs/render/parts/options-status.cjs +1 -0
- package/dist/cjs/render/stack-style.cjs +1 -0
- package/dist/cjs/render/subform-columns.cjs +1 -0
- package/dist/cjs/render/submit.cjs +1 -0
- package/dist/cjs/runtime/effects.cjs +1 -0
- package/dist/cjs/runtime/resolve-scope-values.cjs +1 -0
- package/dist/cjs/runtime/runtime-context.cjs +1 -0
- package/dist/cjs/runtime/runtime-state-controller.cjs +1 -0
- package/dist/cjs/runtime/stabilize-state-map.cjs +1 -0
- package/dist/cjs/store/engine-provider.cjs +1 -0
- package/dist/cjs/store/form-store.cjs +1 -0
- package/dist/cjs/types/chrome.cjs +0 -0
- package/dist/cjs/types/component.cjs +1 -0
- package/dist/cjs/types/data-source.cjs +1 -0
- package/dist/cjs/types/index.cjs +1 -0
- package/dist/cjs/types/linkage.cjs +0 -0
- package/dist/cjs/types/properties.cjs +1 -0
- package/dist/cjs/types/schema.cjs +1 -0
- package/dist/es/components/button/index.js +183 -0
- package/dist/es/components/checkbox-group-field/index.js +103 -0
- package/dist/es/components/code-editor/code-editor-input.js +3 -0
- package/dist/es/components/code-editor/index.js +212 -0
- package/dist/es/components/containers/index.js +72 -0
- package/dist/es/components/date-field/index.js +197 -0
- package/dist/es/components/display/index.js +276 -0
- package/dist/es/components/field-entries.js +184 -0
- package/dist/es/components/mobile/alert-block.js +40 -0
- package/dist/es/components/mobile/button.js +41 -0
- package/dist/es/components/mobile/checkbox-group.js +35 -0
- package/dist/es/components/mobile/date-adapters.js +16 -0
- package/dist/es/components/mobile/date.js +42 -0
- package/dist/es/components/mobile/daterange.js +48 -0
- package/dist/es/components/mobile/datetime.js +42 -0
- package/dist/es/components/mobile/definitions.js +58 -0
- package/dist/es/components/mobile/divider.js +10 -0
- package/dist/es/components/mobile/input-cell.js +56 -0
- package/dist/es/components/mobile/number.js +73 -0
- package/dist/es/components/mobile/option-group.js +34 -0
- package/dist/es/components/mobile/paragraph.js +30 -0
- package/dist/es/components/mobile/picker-trigger.js +94 -0
- package/dist/es/components/mobile/radio.js +35 -0
- package/dist/es/components/mobile/scope.js +61 -0
- package/dist/es/components/mobile/select.js +45 -0
- package/dist/es/components/mobile/switch.js +22 -0
- package/dist/es/components/mobile/textarea.js +32 -0
- package/dist/es/components/mobile/textfield.js +30 -0
- package/dist/es/components/mobile/theme.js +8 -0
- package/dist/es/components/number-field/index.js +186 -0
- package/dist/es/components/radio-field/index.js +139 -0
- package/dist/es/components/select-field/index.js +128 -0
- package/dist/es/components/switch-field/index.js +133 -0
- package/dist/es/components/textarea-field/index.js +137 -0
- package/dist/es/components/textfield/index.js +138 -0
- package/dist/es/editor/canvas/canvas-field.js +202 -0
- package/dist/es/editor/canvas/canvas.js +415 -0
- package/dist/es/editor/canvas/drop-indicator.js +42 -0
- package/dist/es/editor/canvas/drop-zones.js +42 -0
- package/dist/es/editor/canvas/json-split-view.js +148 -0
- package/dist/es/editor/canvas/mobile-seed-state.js +103 -0
- package/dist/es/editor/canvas/phone-frame.js +109 -0
- package/dist/es/editor/dnd.js +75 -0
- package/dist/es/editor/editor-layout-context.js +34 -0
- package/dist/es/editor/footer/footer.js +154 -0
- package/dist/es/editor/form-config/form-basics-tab.js +184 -0
- package/dist/es/editor/form-config/form-config-drawer.js +224 -0
- package/dist/es/editor/form-config/outline-tab.js +132 -0
- package/dist/es/editor/form-editor.js +179 -0
- package/dist/es/editor/palette/field-groups.js +19 -0
- package/dist/es/editor/palette/palette-group.js +147 -0
- package/dist/es/editor/palette/palette-item.js +153 -0
- package/dist/es/editor/palette/palette-panel.js +109 -0
- package/dist/es/editor/preview-effects.js +22 -0
- package/dist/es/editor/preview-runtime-context.js +24 -0
- package/dist/es/editor/properties/block-layout-section.js +161 -0
- package/dist/es/editor/properties/container-properties.js +575 -0
- package/dist/es/editor/properties/entries/built-ins.js +21 -0
- package/dist/es/editor/properties/entries/checkbox-entry.js +31 -0
- package/dist/es/editor/properties/entries/coerce.js +8 -0
- package/dist/es/editor/properties/entries/entry-field.js +43 -0
- package/dist/es/editor/properties/entries/icon-entry.js +21 -0
- package/dist/es/editor/properties/entries/index.js +9 -0
- package/dist/es/editor/properties/entries/key-entry.js +29 -0
- package/dist/es/editor/properties/entries/linkage/action-editor.js +260 -0
- package/dist/es/editor/properties/entries/linkage/actions-editor.js +64 -0
- package/dist/es/editor/properties/entries/linkage/condition-editor.js +265 -0
- package/dist/es/editor/properties/entries/linkage/container-linkage-section.js +71 -0
- package/dist/es/editor/properties/entries/linkage/expression-assist.js +87 -0
- package/dist/es/editor/properties/entries/linkage/index.js +3 -0
- package/dist/es/editor/properties/entries/linkage/linkage-rules-entry.js +110 -0
- package/dist/es/editor/properties/entries/linkage/mutators.js +209 -0
- package/dist/es/editor/properties/entries/linkage/options.js +155 -0
- package/dist/es/editor/properties/entries/linkage/rule-diagnostics.js +58 -0
- package/dist/es/editor/properties/entries/linkage/rule-list-editor.js +126 -0
- package/dist/es/editor/properties/entries/linkage/styles.js +276 -0
- package/dist/es/editor/properties/entries/linkage/trigger-editor.js +64 -0
- package/dist/es/editor/properties/entries/linkage/use-linkage-editor-model.js +20 -0
- package/dist/es/editor/properties/entries/linkage/use-stable-options.js +12 -0
- package/dist/es/editor/properties/entries/number-entry.js +25 -0
- package/dist/es/editor/properties/entries/options-source/index.js +122 -0
- package/dist/es/editor/properties/entries/options-source/source-mutators.js +31 -0
- package/dist/es/editor/properties/entries/select-entry.js +23 -0
- package/dist/es/editor/properties/entries/text-entry.js +23 -0
- package/dist/es/editor/properties/form-data-sources-panel.js +170 -0
- package/dist/es/editor/properties/form-linkage-panel.js +36 -0
- package/dist/es/editor/properties/form-variables-panel.js +184 -0
- package/dist/es/editor/properties/option-editors.js +170 -0
- package/dist/es/editor/properties/panel-header.js +93 -0
- package/dist/es/editor/properties/properties-empty.js +62 -0
- package/dist/es/editor/properties/properties-header.js +31 -0
- package/dist/es/editor/properties/properties-panel.js +195 -0
- package/dist/es/editor/properties/properties-provider.js +95 -0
- package/dist/es/editor/properties/properties-tabs.js +91 -0
- package/dist/es/editor/properties/use-confirmable-kind-switch.js +26 -0
- package/dist/es/editor/remove-node-confirm.js +60 -0
- package/dist/es/editor/schema-apply.js +36 -0
- package/dist/es/editor/styles.js +74 -0
- package/dist/es/editor/toolbar/notify.js +59 -0
- package/dist/es/editor/toolbar/schema-io.js +107 -0
- package/dist/es/editor/toolbar/toolbar.js +394 -0
- package/dist/es/editor/use-editor-shortcuts.js +43 -0
- package/dist/es/editor/validation-summary.js +66 -0
- package/dist/es/engine/assert-never.js +8 -0
- package/dist/es/engine/conversion/index.js +127 -0
- package/dist/es/engine/ids.js +18 -0
- package/dist/es/engine/keys.js +48 -0
- package/dist/es/engine/linkage/cycle.js +25 -0
- package/dist/es/engine/linkage/default-evaluator.js +79 -0
- package/dist/es/engine/linkage/effects.js +41 -0
- package/dist/es/engine/linkage/evaluator.js +119 -0
- package/dist/es/engine/linkage/index.js +9 -0
- package/dist/es/engine/linkage/operators.js +44 -0
- package/dist/es/engine/linkage/source-tracking.js +17 -0
- package/dist/es/engine/linkage/taxonomy.js +51 -0
- package/dist/es/engine/linkage/validator.js +360 -0
- package/dist/es/engine/registry/defaults-mobile.js +12 -0
- package/dist/es/engine/registry/defaults.js +25 -0
- package/dist/es/engine/registry/form-field-registry.js +52 -0
- package/dist/es/engine/schema/edit-ops.js +264 -0
- package/dist/es/engine/schema/mutate.js +39 -0
- package/dist/es/engine/schema/nodes.js +61 -0
- package/dist/es/engine/schema/permission-bridge.js +46 -0
- package/dist/es/engine/schema/presentation.js +37 -0
- package/dist/es/engine/schema/reconcile.js +258 -0
- package/dist/es/engine/schema/removal-impact.js +59 -0
- package/dist/es/engine/schema/rewrite.js +11 -0
- package/dist/es/engine/schema/validate.js +320 -0
- package/dist/es/engine/schema/walk.js +103 -0
- package/dist/es/engine/validation.js +122 -0
- package/dist/es/icons.js +74 -0
- package/dist/es/index.js +54 -0
- package/dist/es/render/chrome/mobile-chrome.js +119 -0
- package/dist/es/render/chrome/pc-chrome.js +76 -0
- package/dist/es/render/chrome/subform-shell.js +38 -0
- package/dist/es/render/data-source-context.js +0 -0
- package/dist/es/render/flex-style.js +24 -0
- package/dist/es/render/form-field.js +37 -0
- package/dist/es/render/form-renderer.js +516 -0
- package/dist/es/render/grid-style.js +23 -0
- package/dist/es/render/parts/field-shell.js +119 -0
- package/dist/es/render/parts/label.js +44 -0
- package/dist/es/render/parts/options-status.js +19 -0
- package/dist/es/render/stack-style.js +13 -0
- package/dist/es/render/subform-columns.js +118 -0
- package/dist/es/render/submit.js +112 -0
- package/dist/es/runtime/effects.js +109 -0
- package/dist/es/runtime/resolve-scope-values.js +14 -0
- package/dist/es/runtime/runtime-context.js +10 -0
- package/dist/es/runtime/runtime-state-controller.js +99 -0
- package/dist/es/runtime/stabilize-state-map.js +14 -0
- package/dist/es/store/engine-provider.js +37 -0
- package/dist/es/store/form-store.js +306 -0
- package/dist/es/types/chrome.js +1 -0
- package/dist/es/types/component.js +13 -0
- package/dist/es/types/data-source.js +5 -0
- package/dist/es/types/index.js +5 -0
- package/dist/es/types/linkage.js +1 -0
- package/dist/es/types/properties.js +7 -0
- package/dist/es/types/schema.js +15 -0
- package/dist/types/src/components/button/index.d.ts +8 -0
- package/dist/types/src/components/checkbox-group-field/index.d.ts +2 -0
- package/dist/types/src/components/code-editor/code-editor-input.d.ts +1 -0
- package/dist/types/src/components/code-editor/index.d.ts +4 -0
- package/dist/types/src/components/containers/index.d.ts +12 -0
- package/dist/types/src/components/date-field/index.d.ts +4 -0
- package/dist/types/src/components/display/index.d.ts +4 -0
- package/dist/types/src/components/field-entries.d.ts +103 -0
- package/dist/types/src/components/mobile/alert-block.d.ts +12 -0
- package/dist/types/src/components/mobile/button.d.ts +9 -0
- package/dist/types/src/components/mobile/checkbox-group.d.ts +11 -0
- package/dist/types/src/components/mobile/date-adapters.d.ts +28 -0
- package/dist/types/src/components/mobile/date.d.ts +10 -0
- package/dist/types/src/components/mobile/daterange.d.ts +11 -0
- package/dist/types/src/components/mobile/datetime.d.ts +10 -0
- package/dist/types/src/components/mobile/definitions.d.ts +9 -0
- package/dist/types/src/components/mobile/divider.d.ts +10 -0
- package/dist/types/src/components/mobile/input-cell.d.ts +30 -0
- package/dist/types/src/components/mobile/number.d.ts +25 -0
- package/dist/types/src/components/mobile/option-group.d.ts +17 -0
- package/dist/types/src/components/mobile/paragraph.d.ts +10 -0
- package/dist/types/src/components/mobile/picker-trigger.d.ts +31 -0
- package/dist/types/src/components/mobile/radio.d.ts +12 -0
- package/dist/types/src/components/mobile/scope.d.ts +42 -0
- package/dist/types/src/components/mobile/select.d.ts +12 -0
- package/dist/types/src/components/mobile/switch.d.ts +14 -0
- package/dist/types/src/components/mobile/textarea.d.ts +3 -0
- package/dist/types/src/components/mobile/textfield.d.ts +11 -0
- package/dist/types/src/components/mobile/theme.d.ts +16 -0
- package/dist/types/src/components/number-field/index.d.ts +2 -0
- package/dist/types/src/components/radio-field/index.d.ts +2 -0
- package/dist/types/src/components/select-field/index.d.ts +2 -0
- package/dist/types/src/components/switch-field/index.d.ts +2 -0
- package/dist/types/src/components/textarea-field/index.d.ts +2 -0
- package/dist/types/src/components/textfield/index.d.ts +11 -0
- package/dist/types/src/editor/canvas/canvas-field.d.ts +24 -0
- package/dist/types/src/editor/canvas/canvas.d.ts +11 -0
- package/dist/types/src/editor/canvas/drop-indicator.d.ts +14 -0
- package/dist/types/src/editor/canvas/drop-zones.d.ts +48 -0
- package/dist/types/src/editor/canvas/json-split-view.d.ts +15 -0
- package/dist/types/src/editor/canvas/mobile-seed-state.d.ts +9 -0
- package/dist/types/src/editor/canvas/phone-frame.d.ts +15 -0
- package/dist/types/src/editor/dnd.d.ts +88 -0
- package/dist/types/src/editor/editor-layout-context.d.ts +53 -0
- package/dist/types/src/editor/footer/footer.d.ts +7 -0
- package/dist/types/src/editor/form-config/form-basics-tab.d.ts +34 -0
- package/dist/types/src/editor/form-config/form-config-drawer.d.ts +8 -0
- package/dist/types/src/editor/form-config/outline-tab.d.ts +2 -0
- package/dist/types/src/editor/form-editor.d.ts +142 -0
- package/dist/types/src/editor/palette/field-groups.d.ts +12 -0
- package/dist/types/src/editor/palette/palette-group.d.ts +31 -0
- package/dist/types/src/editor/palette/palette-item.d.ts +34 -0
- package/dist/types/src/editor/palette/palette-panel.d.ts +17 -0
- package/dist/types/src/editor/preview-effects.d.ts +14 -0
- package/dist/types/src/editor/preview-runtime-context.d.ts +23 -0
- package/dist/types/src/editor/properties/block-layout-section.d.ts +19 -0
- package/dist/types/src/editor/properties/container-properties.d.ts +19 -0
- package/dist/types/src/editor/properties/entries/built-ins.d.ts +19 -0
- package/dist/types/src/editor/properties/entries/checkbox-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/entries/coerce.d.ts +6 -0
- package/dist/types/src/editor/properties/entries/entry-field.d.ts +29 -0
- package/dist/types/src/editor/properties/entries/icon-entry.d.ts +8 -0
- package/dist/types/src/editor/properties/entries/index.d.ts +8 -0
- package/dist/types/src/editor/properties/entries/key-entry.d.ts +14 -0
- package/dist/types/src/editor/properties/entries/linkage/action-editor.d.ts +42 -0
- package/dist/types/src/editor/properties/entries/linkage/actions-editor.d.ts +43 -0
- package/dist/types/src/editor/properties/entries/linkage/condition-editor.d.ts +28 -0
- package/dist/types/src/editor/properties/entries/linkage/container-linkage-section.d.ts +14 -0
- package/dist/types/src/editor/properties/entries/linkage/expression-assist.d.ts +33 -0
- package/dist/types/src/editor/properties/entries/linkage/index.d.ts +1 -0
- package/dist/types/src/editor/properties/entries/linkage/linkage-rules-entry.d.ts +17 -0
- package/dist/types/src/editor/properties/entries/linkage/mutators.d.ts +73 -0
- package/dist/types/src/editor/properties/entries/linkage/options.d.ts +72 -0
- package/dist/types/src/editor/properties/entries/linkage/rule-diagnostics.d.ts +20 -0
- package/dist/types/src/editor/properties/entries/linkage/rule-list-editor.d.ts +75 -0
- package/dist/types/src/editor/properties/entries/linkage/styles.d.ts +46 -0
- package/dist/types/src/editor/properties/entries/linkage/trigger-editor.d.ts +35 -0
- package/dist/types/src/editor/properties/entries/linkage/use-linkage-editor-model.d.ts +46 -0
- package/dist/types/src/editor/properties/entries/linkage/use-stable-options.d.ts +17 -0
- package/dist/types/src/editor/properties/entries/number-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/entries/options-source/index.d.ts +9 -0
- package/dist/types/src/editor/properties/entries/options-source/source-mutators.d.ts +14 -0
- package/dist/types/src/editor/properties/entries/select-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/entries/text-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/form-data-sources-panel.d.ts +16 -0
- package/dist/types/src/editor/properties/form-linkage-panel.d.ts +13 -0
- package/dist/types/src/editor/properties/form-variables-panel.d.ts +17 -0
- package/dist/types/src/editor/properties/option-editors.d.ts +33 -0
- package/dist/types/src/editor/properties/panel-header.d.ts +21 -0
- package/dist/types/src/editor/properties/properties-empty.d.ts +13 -0
- package/dist/types/src/editor/properties/properties-header.d.ts +13 -0
- package/dist/types/src/editor/properties/properties-panel.d.ts +18 -0
- package/dist/types/src/editor/properties/properties-provider.d.ts +42 -0
- package/dist/types/src/editor/properties/properties-tabs.d.ts +24 -0
- package/dist/types/src/editor/properties/use-confirmable-kind-switch.d.ts +38 -0
- package/dist/types/src/editor/remove-node-confirm.d.ts +8 -0
- package/dist/types/src/editor/schema-apply.d.ts +25 -0
- package/dist/types/src/editor/styles.d.ts +37 -0
- package/dist/types/src/editor/toolbar/notify.d.ts +13 -0
- package/dist/types/src/editor/toolbar/schema-io.d.ts +12 -0
- package/dist/types/src/editor/toolbar/toolbar.d.ts +42 -0
- package/dist/types/src/editor/use-editor-shortcuts.d.ts +23 -0
- package/dist/types/src/editor/validation-summary.d.ts +19 -0
- package/dist/types/src/engine/assert-never.d.ts +18 -0
- package/dist/types/src/engine/conversion/index.d.ts +87 -0
- package/dist/types/src/engine/ids.d.ts +14 -0
- package/dist/types/src/engine/keys.d.ts +70 -0
- package/dist/types/src/engine/linkage/cycle.d.ts +28 -0
- package/dist/types/src/engine/linkage/default-evaluator.d.ts +10 -0
- package/dist/types/src/engine/linkage/effects.d.ts +76 -0
- package/dist/types/src/engine/linkage/evaluator.d.ts +72 -0
- package/dist/types/src/engine/linkage/index.d.ts +8 -0
- package/dist/types/src/engine/linkage/operators.d.ts +23 -0
- package/dist/types/src/engine/linkage/source-tracking.d.ts +25 -0
- package/dist/types/src/engine/linkage/taxonomy.d.ts +49 -0
- package/dist/types/src/engine/linkage/validator.d.ts +23 -0
- package/dist/types/src/engine/registry/defaults-mobile.d.ts +17 -0
- package/dist/types/src/engine/registry/defaults.d.ts +22 -0
- package/dist/types/src/engine/registry/form-field-registry.d.ts +79 -0
- package/dist/types/src/engine/schema/edit-ops.d.ts +101 -0
- package/dist/types/src/engine/schema/mutate.d.ts +41 -0
- package/dist/types/src/engine/schema/nodes.d.ts +34 -0
- package/dist/types/src/engine/schema/permission-bridge.d.ts +37 -0
- package/dist/types/src/engine/schema/presentation.d.ts +30 -0
- package/dist/types/src/engine/schema/reconcile.d.ts +80 -0
- package/dist/types/src/engine/schema/removal-impact.d.ts +39 -0
- package/dist/types/src/engine/schema/rewrite.d.ts +15 -0
- package/dist/types/src/engine/schema/validate.d.ts +36 -0
- package/dist/types/src/engine/schema/walk.d.ts +90 -0
- package/dist/types/src/engine/validation.d.ts +139 -0
- package/dist/types/src/icons.d.ts +8 -0
- package/dist/types/src/index.d.ts +39 -0
- package/dist/types/src/render/chrome/mobile-chrome.d.ts +9 -0
- package/dist/types/src/render/chrome/pc-chrome.d.ts +7 -0
- package/dist/types/src/render/chrome/subform-shell.d.ts +17 -0
- package/dist/types/src/render/data-source-context.d.ts +42 -0
- package/dist/types/src/render/flex-style.d.ts +26 -0
- package/dist/types/src/render/form-field.d.ts +32 -0
- package/dist/types/src/render/form-renderer.d.ts +65 -0
- package/dist/types/src/render/grid-style.d.ts +24 -0
- package/dist/types/src/render/parts/field-shell.d.ts +33 -0
- package/dist/types/src/render/parts/label.d.ts +20 -0
- package/dist/types/src/render/parts/options-status.d.ts +14 -0
- package/dist/types/src/render/stack-style.d.ts +19 -0
- package/dist/types/src/render/subform-columns.d.ts +16 -0
- package/dist/types/src/render/submit.d.ts +91 -0
- package/dist/types/src/runtime/effects.d.ts +77 -0
- package/dist/types/src/runtime/resolve-scope-values.d.ts +8 -0
- package/dist/types/src/runtime/runtime-context.d.ts +21 -0
- package/dist/types/src/runtime/runtime-state-controller.d.ts +33 -0
- package/dist/types/src/runtime/stabilize-state-map.d.ts +12 -0
- package/dist/types/src/runtime/types.d.ts +13 -0
- package/dist/types/src/store/engine-provider.d.ts +50 -0
- package/dist/types/src/store/form-store.d.ts +234 -0
- package/dist/types/src/types/chrome.d.ts +51 -0
- package/dist/types/src/types/component.d.ts +116 -0
- package/dist/types/src/types/data-source.d.ts +70 -0
- package/dist/types/src/types/index.d.ts +6 -0
- package/dist/types/src/types/linkage.d.ts +350 -0
- package/dist/types/src/types/properties.d.ts +122 -0
- package/dist/types/src/types/schema.d.ts +839 -0
- package/package.json +77 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { CheckboxEntry as e } from "./checkbox-entry.js";
|
|
3
|
+
import { IconEntry as t } from "./icon-entry.js";
|
|
4
|
+
import { KeyEntry as n } from "./key-entry.js";
|
|
5
|
+
import { NumberEntry as r } from "./number-entry.js";
|
|
6
|
+
import { OptionsSourceEntry as i } from "./options-source/index.js";
|
|
7
|
+
import { SelectEntry as a } from "./select-entry.js";
|
|
8
|
+
import { TextEntry as o } from "./text-entry.js";
|
|
9
|
+
import { lazy as s } from "react";
|
|
10
|
+
var c = {
|
|
11
|
+
text: o,
|
|
12
|
+
key: n,
|
|
13
|
+
number: r,
|
|
14
|
+
checkbox: e,
|
|
15
|
+
select: a,
|
|
16
|
+
icon: t,
|
|
17
|
+
"options-editor": i,
|
|
18
|
+
"linkage-rules": s(async () => ({ default: (await import("./linkage/index.js")).LinkageRulesEntry }))
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { c as BUILT_IN_PROPERTY_ENTRIES };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { css as n } from "@emotion/react";
|
|
4
|
+
import { Checkbox as r, globalCssVars as i } from "@vef-framework-react/components";
|
|
5
|
+
//#region src/editor/properties/entries/checkbox-entry.tsx
|
|
6
|
+
var a = /*#__PURE__*/ n({
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
gap: 4,
|
|
10
|
+
padding: "4px 0",
|
|
11
|
+
fontSize: i.fontSize,
|
|
12
|
+
color: i.colorText
|
|
13
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNoZWNrYm94LWVudHJ5LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPbUIiLCJmaWxlIjoiY2hlY2tib3gtZW50cnkudHN4Iiwic291cmNlc0Nvb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rZWR9XG4gICAgICAgIGRpc2FibGVkPXtlbnRyeS5yZWFkT25seX1cbiAgICAgICAgb25DaGFuZ2U9e2V2ZW50ID0+IG9uQ2hhbmdlKGV2ZW50LnRhcmdldC5jaGVja2VkKX1cbiAgICAgID5cbiAgICAgICAge2VudHJ5LmxhYmVsfVxuICAgICAgPC9DaGVja2JveD5cblxuICAgICAge2VudHJ5LmRlc2NyaXB0aW9uID8gPHNwYW4gY3NzPXtkZXNjcmlwdGlvbkNzc30+e2VudHJ5LmRlc2NyaXB0aW9ufTwvc3Bhbj4gOiBudWxsfVxuICAgIDwvZGl2PlxuICApO1xufTtcbiJdfQ== */"), o = /*#__PURE__*/ n({
|
|
14
|
+
paddingLeft: 26,
|
|
15
|
+
fontSize: i.fontSizeSm,
|
|
16
|
+
color: i.colorTextTertiary,
|
|
17
|
+
lineHeight: 1.4
|
|
18
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNoZWNrYm94LWVudHJ5LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQnVCIiwiZmlsZSI6ImNoZWNrYm94LWVudHJ5LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRkMgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHR5cGUgeyBFbnRyeUNvbXBvbmVudFByb3BzIH0gZnJvbSBcIi4uLy4uLy4uL3R5cGVzXCI7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgQ2hlY2tib3gsIGdsb2JhbENzc1ZhcnMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29tcG9uZW50c1wiO1xuXG5jb25zdCB3cmFwcGVyQ3NzID0gY3NzKHtcbiAgZGlzcGxheTogXCJmbGV4XCIsXG4gIGZsZXhEa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*/ t("div", {
|
|
19
|
+
css: a,
|
|
20
|
+
children: [/* @__PURE__ */ e(r, {
|
|
21
|
+
checked: !!n.read(i),
|
|
22
|
+
disabled: n.readOnly,
|
|
23
|
+
onChange: (e) => s(e.target.checked),
|
|
24
|
+
children: n.label
|
|
25
|
+
}), n.description ? /* @__PURE__ */ e("span", {
|
|
26
|
+
css: o,
|
|
27
|
+
children: n.description
|
|
28
|
+
}) : null]
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as CheckboxEntry };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { isNullish as e, isString as t } from "@vef-framework-react/shared";
|
|
3
|
+
//#region src/editor/properties/entries/coerce.ts
|
|
4
|
+
function n(n) {
|
|
5
|
+
return t(n) ? n : e(n) ? "" : String(n);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as coerceToString };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { css as n } from "@emotion/react";
|
|
4
|
+
import { globalCssVars as r } from "@vef-framework-react/components";
|
|
5
|
+
//#region src/editor/properties/entries/entry-field.tsx
|
|
6
|
+
function i() {
|
|
7
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
8
|
+
}
|
|
9
|
+
var a = process.env.NODE_ENV === "production" ? {
|
|
10
|
+
name: "1xc5zxn",
|
|
11
|
+
styles: "display:flex;flex-direction:column;gap:6px"
|
|
12
|
+
} : {
|
|
13
|
+
name: "1xc5zxn",
|
|
14
|
+
styles: "display:flex;flex-direction:column;gap:6px/*# sourceMappingURL=data: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aGUgcnVudGltZSBgRmllbGRTaGVsbGAgc3BsaXQg4oCUIHNvIHRoZSBsYWJlbCAvIHNwYWNpbmcgL1xuICogZGVzY3JpcHRpb24gdG9rZW5zIGxpdmUgaW4gb25lIHBsYWNlLiBUaGUgYDxsYWJlbD5gIHdyYXBwZXIga2VlcHMgdGhlXG4gKiBjbGljay10by1mb2N1cyBiZWhhdmlvciB0aG9zZSBzaW5nbGUtY29udHJvbCBlbnRyaWVzIHJlbHkgb24uXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBFbnRyeUZpZWxkKHtcbiAgY2hpbGRyZW4sXG4gIGRlc2NyaXB0aW9uLFxuICBsYWJlbFxufTogRW50cnlGaWVsZFByb3BzKTogUmVhY3RFbGVtZW50IHtcbiAgcmV0dXJuIChcbiAgICA8bGFiZWwgY3NzPXt3cmFwcGVyQ3NzfT5cbiAgICAgIDxzcGFuIGNzcz17ZW50cnlMYWJlbENzc30+e2xhYmVsfTwvc3Bhbj5cbiAgICAgIHtjaGlsZHJlbn1cbiAgICAgIHtkZXNjcmlwdGlvbiA/IDxzcGFuIGNzcz17ZGVzY3JpcHRpb25Dc3N9PntkZXNjcmlwdGlvbn08L3NwYW4+IDogbnVsbH1cbiAgICA8L2xhYmVsPlxuICApO1xufVxuIl19 */",
|
|
15
|
+
toString: i
|
|
16
|
+
}, o = /*#__PURE__*/ n({
|
|
17
|
+
fontSize: r.fontSize,
|
|
18
|
+
fontWeight: 500,
|
|
19
|
+
color: r.colorTextSecondary,
|
|
20
|
+
letterSpacing: 0
|
|
21
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudHJ5LWZpZWxkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQjZCIiwiZmlsZSI6ImVudHJ5LWZpZWxkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHs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ZXBzIHRoZVxuICogY2xpY2stdG8tZm9jdXMgYmVoYXZpb3IgdGhvc2Ugc2luZ2xlLWNvbnRyb2wgZW50cmllcyByZWx5IG9uLlxuICovXG5leHBvcnQgZnVuY3Rpb24gRW50cnlGaWVsZCh7XG4gIGNoaWxkcmVuLFxuICBkZXNjcmlwdGlvbixcbiAgbGFiZWxcbn06IEVudHJ5RmllbGRQcm9wcyk6IFJlYWN0RWxlbWVudCB7XG4gIHJldHVybiAoXG4gICAgPGxhYmVsIGNzcz17d3JhcHBlckNzc30+XG4gICAgICA8c3BhbiBjc3M9e2VudHJ5TGFiZWxDc3N9PntsYWJlbH08L3NwYW4+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgICB7ZGVzY3JpcHRpb24gPyA8c3BhbiBjc3M9e2Rlc2NyaXB0aW9uQ3NzfT57ZGVzY3JpcHRpb259PC9zcGFuPiA6IG51bGx9XG4gICAgPC9sYWJlbD5cbiAgKTtcbn1cbiJdfQ== */"), s = /*#__PURE__*/ n({
|
|
22
|
+
fontSize: r.fontSizeSm,
|
|
23
|
+
color: r.colorTextTertiary,
|
|
24
|
+
lineHeight: 1.4
|
|
25
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudHJ5LWZpZWxkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QjhCIiwiZmlsZSI6ImVudHJ5LWZpZWxkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUmVhY3RFbGVtZW50LCBSZWFjdE5vZGUgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrLXJlYWN0L2NvbXBvbmVudHNcIjtc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RQcm9wcyk6IFJlYWN0RWxlbWVudCB7XG4gIHJldHVybiAoXG4gICAgPGxhYmVsIGNzcz17d3JhcHBlckNzc30+XG4gICAgICA8c3BhbiBjc3M9e2VudHJ5TGFiZWxDc3N9PntsYWJlbH08L3NwYW4+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgICB7ZGVzY3JpcHRpb24gPyA8c3BhbiBjc3M9e2Rlc2NyaXB0aW9uQ3NzfT57ZGVzY3JpcHRpb259PC9zcGFuPiA6IG51bGx9XG4gICAgPC9sYWJlbD5cbiAgKTtcbn1cbiJdfQ== */");
|
|
26
|
+
function c({ children: n, description: r, label: i }) {
|
|
27
|
+
return /* @__PURE__ */ t("label", {
|
|
28
|
+
css: a,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ e("span", {
|
|
31
|
+
css: o,
|
|
32
|
+
children: i
|
|
33
|
+
}),
|
|
34
|
+
n,
|
|
35
|
+
r ? /* @__PURE__ */ e("span", {
|
|
36
|
+
css: s,
|
|
37
|
+
children: r
|
|
38
|
+
}) : null
|
|
39
|
+
]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { c as EntryField, s as descriptionCss, o as entryLabelCss };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { EntryField as e } from "./entry-field.js";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { IconPicker as n } from "@vef-framework-react/components";
|
|
5
|
+
import { isString as r } from "@vef-framework-react/shared";
|
|
6
|
+
//#region src/editor/properties/entries/icon-entry.tsx
|
|
7
|
+
var i = ({ entry: i, field: a, onChange: o }) => {
|
|
8
|
+
let s = i.read(a), c = r(s) && s.length > 0 ? s : void 0;
|
|
9
|
+
return /* @__PURE__ */ t(e, {
|
|
10
|
+
description: i.description,
|
|
11
|
+
label: i.label,
|
|
12
|
+
children: /* @__PURE__ */ t(n, {
|
|
13
|
+
disabled: i.readOnly,
|
|
14
|
+
placeholder: i.placeholder,
|
|
15
|
+
value: c,
|
|
16
|
+
onChange: (e) => o(e ?? void 0)
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { i as IconEntry };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import "./linkage/linkage-rules-entry.js";
|
|
3
|
+
import "./checkbox-entry.js";
|
|
4
|
+
import "./icon-entry.js";
|
|
5
|
+
import "./key-entry.js";
|
|
6
|
+
import "./number-entry.js";
|
|
7
|
+
import "./options-source/index.js";
|
|
8
|
+
import "./select-entry.js";
|
|
9
|
+
import "./text-entry.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { coerceToString as e } from "./coerce.js";
|
|
3
|
+
import { EntryField as t } from "./entry-field.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { Input as r } from "@vef-framework-react/components";
|
|
6
|
+
import { useState as i } from "react";
|
|
7
|
+
//#region src/editor/properties/entries/key-entry.tsx
|
|
8
|
+
var a = ({ entry: a, field: o, onChange: s }) => {
|
|
9
|
+
let c = e(a.read(o)), [l, u] = i(null), d = () => {
|
|
10
|
+
l !== null && (s(l), u(null));
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ n(t, {
|
|
13
|
+
description: a.description,
|
|
14
|
+
label: a.label,
|
|
15
|
+
children: /* @__PURE__ */ n(r, {
|
|
16
|
+
disabled: a.readOnly,
|
|
17
|
+
placeholder: a.placeholder,
|
|
18
|
+
value: l ?? c,
|
|
19
|
+
onBlur: d,
|
|
20
|
+
onChange: (e) => {
|
|
21
|
+
u(e.target.value);
|
|
22
|
+
},
|
|
23
|
+
onFocus: () => u(c),
|
|
24
|
+
onPressEnter: d
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { a as KeyEntry };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { EditorIcon as e } from "../../../../icons.js";
|
|
3
|
+
import { sanitizeKey as t } from "../../../../engine/keys.js";
|
|
4
|
+
import { isEffectAction as n } from "../../../../engine/linkage/taxonomy.js";
|
|
5
|
+
import { createActionFor as r, setActionValueMode as i } from "./mutators.js";
|
|
6
|
+
import { coerceToString as a } from "../coerce.js";
|
|
7
|
+
import { expressionAssistExtensions as o } from "./expression-assist.js";
|
|
8
|
+
import { alertLevelOptions as s, isLinkageActionType as c } from "./options.js";
|
|
9
|
+
import { actionCardCss as l, actionDeleteCss as u, actionHeaderCss as d, actionRetriggerCss as f, actionRetriggerLabelCss as p, apiFieldsCss as m, codeEditorWrapperCss as h, defaultHintCss as g, defaultTextCss as _, selectStyle as v, valueEditorCss as y } from "./styles.js";
|
|
10
|
+
import { Fragment as b, jsx as x, jsxs as S } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { Button as C, CodeEditor as w, Input as T, Segmented as E, Select as D, Switch as O } from "@vef-framework-react/components";
|
|
12
|
+
import { useMemo as k } from "react";
|
|
13
|
+
//#region src/editor/properties/entries/linkage/action-editor.tsx
|
|
14
|
+
var A = [{
|
|
15
|
+
value: "literal",
|
|
16
|
+
label: "字面量"
|
|
17
|
+
}, {
|
|
18
|
+
value: "expression",
|
|
19
|
+
label: "表达式"
|
|
20
|
+
}], j = ({ action: t, availableActions: i, canRemove: a, dataSourceOptions: s, isConditionTrigger: m, targetOptions: h, variableNames: y, onChange: b, onRemove: w }) => {
|
|
21
|
+
let T = k(() => o({
|
|
22
|
+
fields: h,
|
|
23
|
+
variables: y ?? []
|
|
24
|
+
}), [h, y]);
|
|
25
|
+
return /* @__PURE__ */ S("div", {
|
|
26
|
+
css: l,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ S("div", {
|
|
29
|
+
css: d,
|
|
30
|
+
children: [/* @__PURE__ */ x(D, {
|
|
31
|
+
options: i,
|
|
32
|
+
style: v,
|
|
33
|
+
value: t.type,
|
|
34
|
+
onChange: (e) => {
|
|
35
|
+
if (c(e)) {
|
|
36
|
+
let n = r(e);
|
|
37
|
+
b(t.id === void 0 ? n : {
|
|
38
|
+
...n,
|
|
39
|
+
id: t.id
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}), a ? /* @__PURE__ */ x(C, {
|
|
44
|
+
"aria-label": "删除动作",
|
|
45
|
+
css: u,
|
|
46
|
+
icon: /* @__PURE__ */ x(e, { name: "x" }),
|
|
47
|
+
size: "small",
|
|
48
|
+
type: "text",
|
|
49
|
+
onClick: w
|
|
50
|
+
}) : null]
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ x(M, {
|
|
53
|
+
action: t,
|
|
54
|
+
assistExtensions: T,
|
|
55
|
+
dataSourceOptions: s,
|
|
56
|
+
targetOptions: h,
|
|
57
|
+
onChange: b
|
|
58
|
+
}),
|
|
59
|
+
m && n(t) && /* @__PURE__ */ S("div", {
|
|
60
|
+
css: f,
|
|
61
|
+
children: [/* @__PURE__ */ S("div", {
|
|
62
|
+
css: _,
|
|
63
|
+
children: [/* @__PURE__ */ x("span", {
|
|
64
|
+
css: p,
|
|
65
|
+
children: "重复触发"
|
|
66
|
+
}), /* @__PURE__ */ x("span", {
|
|
67
|
+
css: g,
|
|
68
|
+
children: "条件持续满足期间,依赖字段每次变化都重新触发;关闭(默认)则仅在条件首次满足时触发一次。"
|
|
69
|
+
})]
|
|
70
|
+
}), /* @__PURE__ */ x(O, {
|
|
71
|
+
"aria-label": "重复触发",
|
|
72
|
+
checked: t.retrigger === "always",
|
|
73
|
+
size: "small",
|
|
74
|
+
onChange: (e) => {
|
|
75
|
+
if (e) {
|
|
76
|
+
b({
|
|
77
|
+
...t,
|
|
78
|
+
retrigger: "always"
|
|
79
|
+
});
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
let n = { ...t };
|
|
83
|
+
delete n.retrigger, b(n);
|
|
84
|
+
}
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
function M({ action: e, assistExtensions: n, dataSourceOptions: r, targetOptions: i, onChange: a }) {
|
|
91
|
+
switch (e.type) {
|
|
92
|
+
case "assign": return /* @__PURE__ */ x(N, {
|
|
93
|
+
assistExtensions: n,
|
|
94
|
+
expressionPlaceholder: "field.A + field.B",
|
|
95
|
+
literalPlaceholder: "赋值内容",
|
|
96
|
+
value: e.value,
|
|
97
|
+
onChange: (t) => a({
|
|
98
|
+
...e,
|
|
99
|
+
value: t
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
case "set_field": return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(D, {
|
|
103
|
+
options: i,
|
|
104
|
+
placeholder: "选择目标字段",
|
|
105
|
+
style: v,
|
|
106
|
+
value: e.targetKey.length > 0 ? e.targetKey : void 0,
|
|
107
|
+
onChange: (t) => a({
|
|
108
|
+
...e,
|
|
109
|
+
targetKey: String(t)
|
|
110
|
+
})
|
|
111
|
+
}), /* @__PURE__ */ x(N, {
|
|
112
|
+
assistExtensions: n,
|
|
113
|
+
expressionPlaceholder: "field.A",
|
|
114
|
+
literalPlaceholder: "写入的值",
|
|
115
|
+
value: e.value,
|
|
116
|
+
onChange: (t) => a({
|
|
117
|
+
...e,
|
|
118
|
+
value: t
|
|
119
|
+
})
|
|
120
|
+
})] });
|
|
121
|
+
case "set_variable": return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(T, {
|
|
122
|
+
placeholder: "变量名($vars.名称)",
|
|
123
|
+
value: e.variable,
|
|
124
|
+
onChange: (n) => a({
|
|
125
|
+
...e,
|
|
126
|
+
variable: t(n.target.value)
|
|
127
|
+
})
|
|
128
|
+
}), /* @__PURE__ */ x(N, {
|
|
129
|
+
assistExtensions: n,
|
|
130
|
+
expressionPlaceholder: "$vars.count + 1",
|
|
131
|
+
literalPlaceholder: "写入的值",
|
|
132
|
+
value: e.value,
|
|
133
|
+
onChange: (t) => a({
|
|
134
|
+
...e,
|
|
135
|
+
value: t
|
|
136
|
+
})
|
|
137
|
+
})] });
|
|
138
|
+
case "refresh_data_source": return /* @__PURE__ */ x(D, {
|
|
139
|
+
notFoundContent: "请先在表单「数据源」中创建",
|
|
140
|
+
options: r,
|
|
141
|
+
placeholder: "选择数据源",
|
|
142
|
+
style: v,
|
|
143
|
+
value: e.dataSourceId.length > 0 ? e.dataSourceId : void 0,
|
|
144
|
+
onChange: (t) => a({
|
|
145
|
+
...e,
|
|
146
|
+
dataSourceId: String(t)
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
case "alert": return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(D, {
|
|
150
|
+
options: s,
|
|
151
|
+
style: v,
|
|
152
|
+
value: e.level ?? "info",
|
|
153
|
+
onChange: (t) => a({
|
|
154
|
+
...e,
|
|
155
|
+
level: P(t)
|
|
156
|
+
})
|
|
157
|
+
}), /* @__PURE__ */ x(N, {
|
|
158
|
+
assistExtensions: n,
|
|
159
|
+
expressionPlaceholder: "field.name + ' 已保存'",
|
|
160
|
+
literalPlaceholder: "提示内容",
|
|
161
|
+
value: e.message,
|
|
162
|
+
onChange: (t) => a({
|
|
163
|
+
...e,
|
|
164
|
+
message: t
|
|
165
|
+
})
|
|
166
|
+
})] });
|
|
167
|
+
case "navigate": return /* @__PURE__ */ x(N, {
|
|
168
|
+
assistExtensions: n,
|
|
169
|
+
expressionPlaceholder: "'/orders/' + field.id",
|
|
170
|
+
literalPlaceholder: "目标路径,如 /orders",
|
|
171
|
+
value: e.to,
|
|
172
|
+
onChange: (t) => a({
|
|
173
|
+
...e,
|
|
174
|
+
to: t
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
case "api_call": return /* @__PURE__ */ S("div", {
|
|
178
|
+
css: m,
|
|
179
|
+
children: [/* @__PURE__ */ x(T, {
|
|
180
|
+
placeholder: "资源 (resource)",
|
|
181
|
+
value: e.request.resource,
|
|
182
|
+
onChange: (t) => a({
|
|
183
|
+
...e,
|
|
184
|
+
request: {
|
|
185
|
+
...e.request,
|
|
186
|
+
resource: t.target.value
|
|
187
|
+
}
|
|
188
|
+
})
|
|
189
|
+
}), /* @__PURE__ */ x(T, {
|
|
190
|
+
placeholder: "动作 (action)",
|
|
191
|
+
value: e.request.action,
|
|
192
|
+
onChange: (t) => a({
|
|
193
|
+
...e,
|
|
194
|
+
request: {
|
|
195
|
+
...e.request,
|
|
196
|
+
action: t.target.value
|
|
197
|
+
}
|
|
198
|
+
})
|
|
199
|
+
})]
|
|
200
|
+
});
|
|
201
|
+
case "script": return /* @__PURE__ */ x("div", {
|
|
202
|
+
css: h,
|
|
203
|
+
children: /* @__PURE__ */ x(w, {
|
|
204
|
+
showLineNumbers: !0,
|
|
205
|
+
extensions: n,
|
|
206
|
+
language: "javascript",
|
|
207
|
+
minHeight: 90,
|
|
208
|
+
showFoldGutter: !1,
|
|
209
|
+
size: "small",
|
|
210
|
+
value: e.source,
|
|
211
|
+
placeholder: "if (field.A === \"x\") return { hidden: true };\nreturn { value: field.B + field.C };",
|
|
212
|
+
onChange: (t) => a({
|
|
213
|
+
...e,
|
|
214
|
+
source: t
|
|
215
|
+
})
|
|
216
|
+
})
|
|
217
|
+
});
|
|
218
|
+
default: return null;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function N({ assistExtensions: e, expressionPlaceholder: t, literalPlaceholder: n, value: r, onChange: o }) {
|
|
222
|
+
return /* @__PURE__ */ S("div", {
|
|
223
|
+
css: y,
|
|
224
|
+
children: [/* @__PURE__ */ x(E, {
|
|
225
|
+
options: [...A],
|
|
226
|
+
value: r.kind,
|
|
227
|
+
onChange: (e) => {
|
|
228
|
+
(e === "literal" || e === "expression") && o(i(r, e));
|
|
229
|
+
}
|
|
230
|
+
}), r.kind === "literal" ? /* @__PURE__ */ x(T, {
|
|
231
|
+
placeholder: n,
|
|
232
|
+
value: a(r.value),
|
|
233
|
+
onChange: (e) => o({
|
|
234
|
+
kind: "literal",
|
|
235
|
+
value: e.target.value
|
|
236
|
+
})
|
|
237
|
+
}) : /* @__PURE__ */ x("div", {
|
|
238
|
+
css: h,
|
|
239
|
+
children: /* @__PURE__ */ x(w, {
|
|
240
|
+
extensions: e,
|
|
241
|
+
language: "javascript",
|
|
242
|
+
minHeight: 60,
|
|
243
|
+
placeholder: t,
|
|
244
|
+
showFoldGutter: !1,
|
|
245
|
+
showLineNumbers: !1,
|
|
246
|
+
size: "small",
|
|
247
|
+
value: r.source,
|
|
248
|
+
onChange: (e) => o({
|
|
249
|
+
kind: "expression",
|
|
250
|
+
source: e
|
|
251
|
+
})
|
|
252
|
+
})
|
|
253
|
+
})]
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function P(e) {
|
|
257
|
+
return e === "success" || e === "warning" || e === "error" ? e : "info";
|
|
258
|
+
}
|
|
259
|
+
//#endregion
|
|
260
|
+
export { j as ActionEditor };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*! @vef-framework-react/form-editor v2.4.0 made by Venus | 2026-06-15T15:10:34.033Z */
|
|
2
|
+
import { EditorIcon as e } from "../../../../icons.js";
|
|
3
|
+
import { createActionFor as t } from "./mutators.js";
|
|
4
|
+
import { actionOptionsFor as n } from "./options.js";
|
|
5
|
+
import { actionsListCss as r, addInlineButtonCss as i, sectionCss as a, sectionLabelCss as o } from "./styles.js";
|
|
6
|
+
import { ActionEditor as s } from "./action-editor.js";
|
|
7
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { Button as u } from "@vef-framework-react/components";
|
|
9
|
+
import { useMemo as d } from "react";
|
|
10
|
+
//#region src/editor/properties/entries/linkage/actions-editor.tsx
|
|
11
|
+
var f = ({ actions: f, allowStateActions: p, dataSourceOptions: m, isContainerTarget: h = !1, isTargetKeyed: g, targetOptions: _, triggerKind: v, variableNames: y, onChange: b }) => {
|
|
12
|
+
let x = d(() => n({
|
|
13
|
+
triggerKind: v,
|
|
14
|
+
isTargetKeyed: g,
|
|
15
|
+
allowStateActions: p,
|
|
16
|
+
isContainerTarget: h
|
|
17
|
+
}), [
|
|
18
|
+
v,
|
|
19
|
+
g,
|
|
20
|
+
p,
|
|
21
|
+
h
|
|
22
|
+
]), S = (e, t) => {
|
|
23
|
+
b(f.map((n, r) => r === e ? t : n));
|
|
24
|
+
}, C = (e) => {
|
|
25
|
+
b(f.filter((t, n) => n !== e));
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ l("div", {
|
|
28
|
+
css: a,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ c("span", {
|
|
31
|
+
css: o,
|
|
32
|
+
children: "THEN"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ c("div", {
|
|
35
|
+
css: r,
|
|
36
|
+
children: f.map((e, t) => /* @__PURE__ */ c(s, {
|
|
37
|
+
action: e,
|
|
38
|
+
availableActions: x,
|
|
39
|
+
canRemove: f.length > 1,
|
|
40
|
+
dataSourceOptions: m,
|
|
41
|
+
isConditionTrigger: v === "condition",
|
|
42
|
+
targetOptions: _,
|
|
43
|
+
variableNames: y,
|
|
44
|
+
onChange: (e) => S(t, e),
|
|
45
|
+
onRemove: () => C(t)
|
|
46
|
+
}, e.id ?? t))
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ c(u, {
|
|
49
|
+
css: i,
|
|
50
|
+
disabled: x.length === 0,
|
|
51
|
+
icon: /* @__PURE__ */ c(e, { name: "plus" }),
|
|
52
|
+
size: "small",
|
|
53
|
+
type: "dashed",
|
|
54
|
+
onClick: () => {
|
|
55
|
+
let e = x[0]?.value;
|
|
56
|
+
e && b([...f, t(e)]);
|
|
57
|
+
},
|
|
58
|
+
children: "新增动作"
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { f as ActionsEditor };
|