@flowgram.ai/form-materials 0.1.0-alpha.15 → 0.1.0-alpha.17
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/bin/run.sh +3 -2
- package/dist/cjs/components/blur-input/index.js +2 -12
- package/dist/cjs/components/code-editor/editor-all.js +52 -0
- package/dist/cjs/components/code-editor/editor-json.js +71 -0
- package/dist/cjs/components/code-editor/editor-python.js +63 -0
- package/dist/cjs/components/code-editor/editor-shell.js +63 -0
- package/dist/cjs/components/code-editor/editor-sql.js +71 -0
- package/dist/cjs/components/code-editor/editor-ts.js +80 -0
- package/dist/cjs/components/code-editor/editor.js +45 -57
- package/dist/cjs/components/code-editor/factory.js +96 -0
- package/dist/cjs/components/code-editor/index.js +31 -28
- package/dist/cjs/components/code-editor/theme/dark.js +120 -50
- package/dist/cjs/components/code-editor/theme/light.js +110 -61
- package/dist/cjs/components/code-editor/utils.js +1 -0
- package/dist/cjs/components/condition-context/context.js +59 -0
- package/dist/cjs/components/condition-context/hooks/use-condition.js +97 -0
- package/dist/cjs/components/condition-context/index.js +47 -0
- package/dist/cjs/components/condition-context/op.js +117 -0
- package/dist/cjs/components/condition-row/index.js +43 -26
- package/dist/cjs/components/condition-row/types.js +1 -35
- package/dist/cjs/components/{prompt-editor-with-inputs/inputs-picker.js → coze-editor-extensions/extensions/inputs-tree.js} +70 -2
- package/dist/cjs/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.js +4 -3
- package/dist/cjs/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.js +13 -7
- package/dist/cjs/components/coze-editor-extensions/index.js +86 -0
- package/dist/cjs/components/db-condition-row/index.js +59 -34
- package/dist/cjs/components/display-schema-tree/index.js +2 -2
- package/dist/cjs/components/index.js +49 -4
- package/dist/cjs/components/json-editor-with-variables/editor.js +10 -7
- package/dist/cjs/components/prompt-editor-with-inputs/editor.js +2 -2
- package/dist/cjs/components/prompt-editor-with-variables/editor.js +3 -4
- package/dist/cjs/components/{condition-row/hooks/useRule.js → sql-editor-with-variables/editor.js} +19 -34
- package/dist/cjs/components/sql-editor-with-variables/index.js +57 -0
- package/dist/cjs/components/type-selector/index.js +2 -2
- package/dist/cjs/components/variable-selector/use-variable-tree.js +1 -2
- package/dist/cjs/effects/provide-batch-input/index.js +1 -1
- package/dist/cjs/effects/provide-json-schema-outputs/index.js +1 -1
- package/dist/cjs/form-plugins/batch-outputs-plugin/index.js +9 -2
- package/dist/cjs/form-plugins/infer-assign-plugin/index.js +1 -1
- package/dist/cjs/form-plugins/infer-inputs-plugin/index.js +30 -3
- package/dist/cjs/index.js +44 -2
- package/dist/cjs/plugins/json-schema-preset/create-type-preset-plugin.js +1 -0
- package/dist/cjs/plugins/json-schema-preset/index.js +3 -13
- package/dist/cjs/{components/code-editor/init-worker.js → plugins/json-schema-preset/react.js} +18 -23
- package/dist/cjs/plugins/json-schema-preset/type-definition/array.js +33 -4
- package/dist/cjs/plugins/json-schema-preset/type-definition/boolean.js +23 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/date-time.js +31 -2
- package/dist/cjs/plugins/json-schema-preset/type-definition/index.js +9 -1
- package/dist/cjs/plugins/json-schema-preset/type-definition/integer.js +34 -1
- package/dist/cjs/plugins/json-schema-preset/type-definition/map.js +54 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/number.js +34 -1
- package/dist/cjs/plugins/json-schema-preset/type-definition/object.js +9 -4
- package/dist/cjs/plugins/json-schema-preset/type-definition/string.js +30 -1
- package/dist/cjs/plugins/json-schema-preset/types.js +18 -0
- package/dist/cjs/shared/flow-value/utils.js +22 -8
- package/dist/cjs/shared/inject-material/index.js +2 -1
- package/dist/esm/components/blur-input/index.mjs +2 -2
- package/dist/esm/components/code-editor/editor-all.mjs +18 -0
- package/dist/esm/components/code-editor/editor-json.mjs +16 -0
- package/dist/esm/components/code-editor/editor-python.mjs +8 -0
- package/dist/esm/components/code-editor/editor-shell.mjs +8 -0
- package/dist/esm/components/code-editor/editor-sql.mjs +16 -0
- package/dist/esm/components/code-editor/editor-ts.mjs +22 -0
- package/dist/esm/components/code-editor/editor.mjs +38 -33
- package/dist/esm/components/code-editor/factory.mjs +36 -0
- package/dist/esm/components/code-editor/index.mjs +8 -5
- package/dist/esm/components/code-editor/theme/dark.mjs +117 -50
- package/dist/esm/components/code-editor/theme/light.mjs +108 -62
- package/dist/esm/components/code-editor/utils.mjs +1 -0
- package/dist/esm/components/condition-context/context.mjs +19 -0
- package/dist/esm/components/condition-context/hooks/use-condition.mjs +63 -0
- package/dist/esm/components/condition-context/index.mjs +4 -0
- package/dist/esm/components/condition-context/op.mjs +80 -0
- package/dist/esm/components/condition-row/index.mjs +45 -28
- package/dist/esm/components/condition-row/types.mjs +0 -18
- package/dist/esm/components/coze-editor-extensions/extensions/inputs-tree.mjs +135 -0
- package/dist/esm/components/{json-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.mjs +4 -3
- package/dist/esm/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.mjs +13 -7
- package/dist/esm/components/coze-editor-extensions/index.mjs +18 -0
- package/dist/esm/components/db-condition-row/index.mjs +59 -34
- package/dist/esm/components/display-schema-tree/index.mjs +1 -1
- package/dist/esm/components/index.mjs +5 -2
- package/dist/esm/components/json-editor-with-variables/editor.mjs +10 -7
- package/dist/esm/components/prompt-editor-with-inputs/editor.mjs +2 -2
- package/dist/esm/components/prompt-editor-with-variables/editor.mjs +3 -4
- package/dist/esm/components/sql-editor-with-variables/editor.mjs +19 -0
- package/dist/esm/components/sql-editor-with-variables/index.mjs +5 -0
- package/dist/esm/components/type-selector/index.mjs +1 -1
- package/dist/esm/components/variable-selector/use-variable-tree.mjs +1 -2
- package/dist/esm/effects/provide-batch-input/index.mjs +2 -2
- package/dist/esm/effects/provide-json-schema-outputs/index.mjs +2 -2
- package/dist/esm/form-plugins/batch-outputs-plugin/index.mjs +10 -3
- package/dist/esm/form-plugins/infer-assign-plugin/index.mjs +2 -2
- package/dist/esm/form-plugins/infer-inputs-plugin/index.mjs +31 -4
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/plugins/json-schema-preset/create-type-preset-plugin.mjs +2 -1
- package/dist/esm/plugins/json-schema-preset/index.mjs +3 -13
- package/dist/esm/plugins/json-schema-preset/react.mjs +14 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/array.mjs +33 -4
- package/dist/esm/plugins/json-schema-preset/type-definition/boolean.mjs +23 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/date-time.mjs +31 -2
- package/dist/esm/plugins/json-schema-preset/type-definition/index.mjs +7 -2
- package/dist/esm/plugins/json-schema-preset/type-definition/integer.mjs +34 -1
- package/dist/esm/plugins/json-schema-preset/type-definition/map.mjs +20 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/number.mjs +34 -1
- package/dist/esm/plugins/json-schema-preset/type-definition/object.mjs +9 -4
- package/dist/esm/plugins/json-schema-preset/type-definition/string.mjs +30 -1
- package/dist/esm/plugins/json-schema-preset/types.mjs +0 -0
- package/dist/esm/shared/flow-value/utils.mjs +22 -8
- package/dist/esm/shared/inject-material/index.mjs +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/blur-input/index.d.ts +7 -1
- package/dist/types/components/code-editor/editor-all.d.ts +8 -0
- package/dist/types/components/code-editor/editor-json.d.ts +6 -0
- package/dist/types/components/code-editor/editor-python.d.ts +6 -0
- package/dist/types/components/code-editor/editor-shell.d.ts +6 -0
- package/dist/types/components/code-editor/editor-sql.d.ts +6 -0
- package/dist/types/components/code-editor/editor-ts.d.ts +6 -0
- package/dist/types/components/code-editor/editor.d.ts +3 -4
- package/dist/types/components/code-editor/factory.d.ts +13 -0
- package/dist/types/components/code-editor/index.d.ts +7 -2
- package/dist/types/components/code-editor/theme/dark.d.ts +29 -0
- package/dist/types/components/code-editor/theme/light.d.ts +24 -0
- package/dist/types/components/code-editor/utils.d.ts +1 -1
- package/dist/types/components/code-editor-mini/index.d.ts +3 -0
- package/dist/types/components/condition-context/context.d.ts +14 -0
- package/dist/types/components/condition-context/hooks/use-condition.d.ts +29 -0
- package/dist/types/components/condition-context/index.d.ts +8 -0
- package/dist/types/components/condition-context/op.d.ts +22 -0
- package/dist/types/components/condition-context/types.d.ts +14 -0
- package/dist/types/components/condition-row/index.d.ts +4 -7
- package/dist/types/components/condition-row/types.d.ts +0 -24
- package/dist/types/components/{prompt-editor-with-inputs/inputs-picker.d.ts → coze-editor-extensions/extensions/inputs-tree.d.ts} +5 -0
- package/dist/types/components/{json-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.d.ts +3 -1
- package/dist/types/components/coze-editor-extensions/index.d.ts +18 -0
- package/dist/types/components/db-condition-row/index.d.ts +4 -3
- package/dist/types/components/db-condition-row/types.d.ts +0 -8
- package/dist/types/components/display-schema-tree/index.d.ts +1 -1
- package/dist/types/components/dynamic-value-input/index.d.ts +3 -1
- package/dist/types/components/index.d.ts +4 -1
- package/dist/types/components/sql-editor-with-variables/editor.d.ts +9 -0
- package/dist/types/components/sql-editor-with-variables/index.d.ts +6 -0
- package/dist/types/components/type-selector/index.d.ts +3 -1
- package/dist/types/components/variable-selector/index.d.ts +4 -2
- package/dist/types/form-plugins/batch-outputs-plugin/index.d.ts +4 -0
- package/dist/types/form-plugins/infer-inputs-plugin/index.d.ts +4 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/create-type-preset-plugin.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/index.d.ts +3 -7
- package/dist/types/plugins/json-schema-preset/react.d.ts +11 -0
- package/dist/types/plugins/json-schema-preset/type-definition/array.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/type-definition/boolean.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/type-definition/date-time.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/type-definition/index.d.ts +3 -1
- package/dist/types/plugins/json-schema-preset/type-definition/integer.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/type-definition/map.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/number.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/type-definition/object.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/type-definition/string.d.ts +1 -1
- package/dist/types/plugins/json-schema-preset/{manager.d.ts → types.d.ts} +5 -0
- package/dist/types/shared/flow-value/utils.d.ts +3 -1
- package/dist/types/shared/inject-material/index.d.ts +6 -4
- package/dist/types/validate/validate-flow-value/index.d.ts +1 -1
- package/package.json +56 -17
- package/src/components/blur-input/index.tsx +9 -1
- package/src/components/code-editor/editor-all.tsx +30 -0
- package/src/components/code-editor/editor-json.tsx +25 -0
- package/src/components/code-editor/editor-python.tsx +18 -0
- package/src/components/code-editor/editor-shell.tsx +18 -0
- package/src/components/code-editor/editor-sql.tsx +24 -0
- package/src/components/code-editor/editor-ts.tsx +31 -0
- package/src/components/code-editor/editor.tsx +45 -36
- package/src/components/code-editor/factory.tsx +61 -0
- package/src/components/code-editor/index.tsx +7 -7
- package/src/components/code-editor/theme/dark.ts +62 -77
- package/src/components/code-editor/theme/light.ts +60 -91
- package/src/components/code-editor/utils.ts +4 -0
- package/src/components/code-editor-mini/index.tsx +3 -0
- package/src/components/condition-context/context.tsx +28 -0
- package/src/components/condition-context/hooks/use-condition.tsx +99 -0
- package/src/components/condition-context/index.tsx +14 -0
- package/src/components/condition-context/op.ts +86 -0
- package/src/components/condition-context/types.ts +22 -0
- package/src/components/condition-row/index.tsx +44 -22
- package/src/components/condition-row/types.ts +0 -30
- package/src/components/{prompt-editor-with-inputs/inputs-picker.tsx → coze-editor-extensions/extensions/inputs-tree.tsx} +95 -5
- package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.tsx +6 -3
- package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.tsx +12 -3
- package/src/components/coze-editor-extensions/index.tsx +33 -0
- package/src/components/db-condition-row/index.tsx +76 -24
- package/src/components/db-condition-row/types.ts +0 -13
- package/src/components/display-schema-tree/index.tsx +6 -4
- package/src/components/index.ts +29 -1
- package/src/components/json-editor-with-variables/editor.tsx +7 -8
- package/src/components/prompt-editor-with-inputs/editor.tsx +2 -3
- package/src/components/prompt-editor-with-variables/editor.tsx +3 -5
- package/src/components/sql-editor-with-variables/editor.tsx +28 -0
- package/src/components/sql-editor-with-variables/index.tsx +12 -0
- package/src/components/type-selector/index.tsx +2 -3
- package/src/components/variable-selector/index.tsx +2 -2
- package/src/components/variable-selector/use-variable-tree.tsx +7 -4
- package/src/effects/provide-batch-input/index.ts +1 -2
- package/src/effects/provide-json-schema-outputs/index.ts +1 -2
- package/src/form-plugins/batch-outputs-plugin/index.ts +64 -46
- package/src/form-plugins/infer-assign-plugin/index.ts +1 -2
- package/src/form-plugins/infer-inputs-plugin/index.ts +62 -14
- package/src/index.ts +19 -0
- package/src/plugins/json-schema-preset/create-type-preset-plugin.tsx +4 -2
- package/src/plugins/json-schema-preset/index.tsx +4 -20
- package/src/plugins/json-schema-preset/react.tsx +31 -0
- package/src/plugins/json-schema-preset/type-definition/array.tsx +13 -4
- package/src/plugins/json-schema-preset/type-definition/boolean.tsx +17 -1
- package/src/plugins/json-schema-preset/type-definition/date-time.tsx +21 -2
- package/src/plugins/json-schema-preset/type-definition/index.tsx +10 -1
- package/src/plugins/json-schema-preset/type-definition/integer.tsx +19 -1
- package/src/plugins/json-schema-preset/type-definition/map.tsx +31 -0
- package/src/plugins/json-schema-preset/type-definition/number.tsx +19 -1
- package/src/plugins/json-schema-preset/type-definition/object.tsx +9 -4
- package/src/plugins/json-schema-preset/type-definition/string.tsx +19 -1
- package/src/plugins/json-schema-preset/{manager.ts → types.ts} +7 -0
- package/src/shared/flow-value/utils.ts +22 -9
- package/src/shared/inject-material/index.tsx +10 -6
- package/src/validate/validate-flow-value/index.tsx +1 -2
- package/dist/cjs/components/code-editor/language-features.js +0 -21
- package/dist/cjs/components/condition-row/constants.js +0 -165
- package/dist/cjs/components/condition-row/hooks/useOp.js +0 -78
- package/dist/cjs/components/db-condition-row/hooks/use-left.js +0 -86
- package/dist/cjs/components/db-condition-row/hooks/use-op.js +0 -79
- package/dist/cjs/components/json-editor-with-variables/extensions/variable-tag.js +0 -151
- package/dist/cjs/components/json-editor-with-variables/extensions/variable-tree.js +0 -97
- package/dist/cjs/components/prompt-editor-with-inputs/extensions/inputs-tree.js +0 -101
- package/dist/cjs/components/prompt-editor-with-variables/styles.js +0 -89
- package/dist/esm/components/code-editor/init-worker.mjs +0 -19
- package/dist/esm/components/code-editor/language-features.mjs +0 -15
- package/dist/esm/components/condition-row/constants.mjs +0 -128
- package/dist/esm/components/condition-row/hooks/useOp.mjs +0 -44
- package/dist/esm/components/condition-row/hooks/useRule.mjs +0 -34
- package/dist/esm/components/db-condition-row/hooks/use-left.mjs +0 -52
- package/dist/esm/components/db-condition-row/hooks/use-op.mjs +0 -45
- package/dist/esm/components/json-editor-with-variables/extensions/variable-tree.mjs +0 -63
- package/dist/esm/components/prompt-editor-with-inputs/extensions/inputs-tree.mjs +0 -67
- package/dist/esm/components/prompt-editor-with-inputs/inputs-picker.mjs +0 -70
- package/dist/esm/components/prompt-editor-with-variables/extensions/variable-tag.mjs +0 -117
- package/dist/esm/components/prompt-editor-with-variables/styles.mjs +0 -36
- package/dist/types/components/code-editor/init-worker.d.ts +0 -5
- package/dist/types/components/code-editor/language-features.d.ts +0 -5
- package/dist/types/components/condition-row/constants.d.ts +0 -7
- package/dist/types/components/condition-row/hooks/useOp.d.ts +0 -18
- package/dist/types/components/condition-row/hooks/useRule.d.ts +0 -9
- package/dist/types/components/db-condition-row/hooks/use-left.d.ts +0 -18
- package/dist/types/components/db-condition-row/hooks/use-op.d.ts +0 -18
- package/dist/types/components/prompt-editor-with-inputs/extensions/inputs-tree.d.ts +0 -9
- package/dist/types/components/prompt-editor-with-variables/extensions/variable-tag.d.ts +0 -5
- package/dist/types/components/prompt-editor-with-variables/extensions/variable-tree.d.ts +0 -6
- package/dist/types/components/prompt-editor-with-variables/styles.d.ts +0 -9
- package/src/components/code-editor/init-worker.ts +0 -27
- package/src/components/code-editor/language-features.ts +0 -23
- package/src/components/condition-row/constants.ts +0 -134
- package/src/components/condition-row/hooks/useOp.tsx +0 -56
- package/src/components/condition-row/hooks/useRule.ts +0 -35
- package/src/components/db-condition-row/hooks/use-left.tsx +0 -66
- package/src/components/db-condition-row/hooks/use-op.tsx +0 -59
- package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +0 -174
- package/src/components/json-editor-with-variables/extensions/variable-tree.tsx +0 -83
- package/src/components/prompt-editor-with-inputs/extensions/inputs-tree.tsx +0 -94
- package/src/components/prompt-editor-with-variables/styles.tsx +0 -44
- /package/dist/cjs/{plugins/json-schema-preset/manager.js → components/condition-context/types.js} +0 -0
- /package/dist/cjs/components/{json-editor-with-variables → coze-editor-extensions}/styles.js +0 -0
- /package/dist/esm/{plugins/json-schema-preset/manager.mjs → components/condition-context/types.mjs} +0 -0
- /package/dist/esm/components/{json-editor-with-variables → coze-editor-extensions}/styles.mjs +0 -0
- /package/dist/types/components/{json-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.d.ts +0 -0
- /package/dist/types/components/{json-editor-with-variables → coze-editor-extensions}/styles.d.ts +0 -0
- /package/src/components/{json-editor-with-variables → coze-editor-extensions}/styles.tsx +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24,6 +24,7 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
JsonCodeEditor: ()=>index_js_namespaceObject.JsonCodeEditor,
|
|
27
28
|
TypeSelector: ()=>index_js_namespaceObject.TypeSelector,
|
|
28
29
|
createInjectMaterial: ()=>external_shared_index_js_namespaceObject.createInjectMaterial,
|
|
29
30
|
AssignRows: ()=>index_js_namespaceObject.AssignRows,
|
|
@@ -34,19 +35,27 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
34
35
|
JsonEditorWithVariables: ()=>index_js_namespaceObject.JsonEditorWithVariables,
|
|
35
36
|
createTypePresetPlugin: ()=>external_plugins_index_js_namespaceObject.createTypePresetPlugin,
|
|
36
37
|
provideBatchInputEffect: ()=>external_effects_index_js_namespaceObject.provideBatchInputEffect,
|
|
38
|
+
useConditionContext: ()=>index_js_namespaceObject.useConditionContext,
|
|
39
|
+
BaseCodeEditor: ()=>index_js_namespaceObject.BaseCodeEditor,
|
|
37
40
|
PromptEditor: ()=>index_js_namespaceObject.PromptEditor,
|
|
38
41
|
validateWhenVariableSync: ()=>external_effects_index_js_namespaceObject.validateWhenVariableSync,
|
|
39
42
|
listenRefValueChange: ()=>external_effects_index_js_namespaceObject.listenRefValueChange,
|
|
40
43
|
JsonSchemaTypePresetProvider: ()=>external_plugins_index_js_namespaceObject.JsonSchemaTypePresetProvider,
|
|
41
44
|
useTypeManager: ()=>external_plugins_index_js_namespaceObject.useTypeManager,
|
|
42
45
|
DisplaySchemaTag: ()=>index_js_namespaceObject.DisplaySchemaTag,
|
|
43
|
-
|
|
46
|
+
ConditionPresetOp: ()=>index_js_namespaceObject.ConditionPresetOp,
|
|
44
47
|
InputsValues: ()=>index_js_namespaceObject.InputsValues,
|
|
48
|
+
PythonCodeEditor: ()=>index_js_namespaceObject.PythonCodeEditor,
|
|
49
|
+
SQLCodeEditor: ()=>index_js_namespaceObject.SQLCodeEditor,
|
|
50
|
+
provideBatchOutputsEffect: ()=>external_form_plugins_index_js_namespaceObject.provideBatchOutputsEffect,
|
|
45
51
|
useVariableTree: ()=>index_js_namespaceObject.useVariableTree,
|
|
46
52
|
formatLegacyRefOnSubmit: ()=>external_shared_index_js_namespaceObject.formatLegacyRefOnSubmit,
|
|
47
53
|
DisplayFlowValue: ()=>index_js_namespaceObject.DisplayFlowValue,
|
|
54
|
+
EditorVariableTagInject: ()=>index_js_namespaceObject.EditorVariableTagInject,
|
|
55
|
+
SQLEditorWithVariables: ()=>index_js_namespaceObject.SQLEditorWithVariables,
|
|
48
56
|
formatLegacyRefToNewRef: ()=>external_shared_index_js_namespaceObject.formatLegacyRefToNewRef,
|
|
49
57
|
formatLegacyRefOnInit: ()=>external_shared_index_js_namespaceObject.formatLegacyRefOnInit,
|
|
58
|
+
TypeScriptCodeEditor: ()=>index_js_namespaceObject.TypeScriptCodeEditor,
|
|
50
59
|
CodeEditor: ()=>index_js_namespaceObject.CodeEditor,
|
|
51
60
|
DisplayInputsValueAllInTag: ()=>index_js_namespaceObject.DisplayInputsValueAllInTag,
|
|
52
61
|
getTypeSelectValue: ()=>index_js_namespaceObject.getTypeSelectValue,
|
|
@@ -59,19 +68,23 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
59
68
|
CodeEditorMini: ()=>index_js_namespaceObject.CodeEditorMini,
|
|
60
69
|
DBConditionRow: ()=>index_js_namespaceObject.DBConditionRow,
|
|
61
70
|
DynamicValueInput: ()=>index_js_namespaceObject.DynamicValueInput,
|
|
71
|
+
EditorInputsTree: ()=>index_js_namespaceObject.EditorInputsTree,
|
|
62
72
|
PromptEditorWithVariables: ()=>index_js_namespaceObject.PromptEditorWithVariables,
|
|
63
73
|
lazySuspense: ()=>external_shared_index_js_namespaceObject.lazySuspense,
|
|
64
|
-
|
|
74
|
+
ConditionProvider: ()=>index_js_namespaceObject.ConditionProvider,
|
|
65
75
|
provideJsonSchemaOutputs: ()=>external_effects_index_js_namespaceObject.provideJsonSchemaOutputs,
|
|
66
76
|
createInferInputsPlugin: ()=>external_form_plugins_index_js_namespaceObject.createInferInputsPlugin,
|
|
67
77
|
InjectVariableSelector: ()=>index_js_namespaceObject.InjectVariableSelector,
|
|
78
|
+
unstableSetCreateRoot: ()=>external_shared_index_js_namespaceObject.unstableSetCreateRoot,
|
|
68
79
|
DisplayOutputs: ()=>index_js_namespaceObject.DisplayOutputs,
|
|
69
80
|
isLegacyFlowRefValueSchema: ()=>external_shared_index_js_namespaceObject.isLegacyFlowRefValueSchema,
|
|
70
81
|
DisplaySchemaTree: ()=>index_js_namespaceObject.DisplaySchemaTree,
|
|
82
|
+
useCondition: ()=>index_js_namespaceObject.useCondition,
|
|
71
83
|
createDisableDeclarationPlugin: ()=>external_plugins_index_js_namespaceObject.createDisableDeclarationPlugin,
|
|
72
84
|
validateFlowValue: ()=>external_validate_index_js_namespaceObject.validateFlowValue,
|
|
73
85
|
ConstantInput: ()=>index_js_namespaceObject.ConstantInput,
|
|
74
86
|
BlurInput: ()=>index_js_namespaceObject.BlurInput,
|
|
87
|
+
ShellCodeEditor: ()=>index_js_namespaceObject.ShellCodeEditor,
|
|
75
88
|
isNewFlowRefValueSchema: ()=>external_shared_index_js_namespaceObject.isNewFlowRefValueSchema,
|
|
76
89
|
FlowValueUtils: ()=>external_shared_index_js_namespaceObject.FlowValueUtils,
|
|
77
90
|
InjectTypeSelector: ()=>index_js_namespaceObject.InjectTypeSelector,
|
|
@@ -82,6 +95,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
82
95
|
InputsValuesTree: ()=>index_js_namespaceObject.InputsValuesTree,
|
|
83
96
|
parseTypeSelectValue: ()=>index_js_namespaceObject.parseTypeSelectValue,
|
|
84
97
|
syncVariableTitle: ()=>external_effects_index_js_namespaceObject.syncVariableTitle,
|
|
98
|
+
EditorVariableTree: ()=>index_js_namespaceObject.EditorVariableTree,
|
|
85
99
|
JsonSchemaUtils: ()=>external_plugins_index_js_namespaceObject.JsonSchemaUtils,
|
|
86
100
|
DisplayInputsValues: ()=>index_js_namespaceObject.DisplayInputsValues,
|
|
87
101
|
autoRenameRefEffect: ()=>external_effects_index_js_namespaceObject.autoRenameRefEffect,
|
|
@@ -97,11 +111,14 @@ const external_shared_index_js_namespaceObject = require("./shared/index.js");
|
|
|
97
111
|
const external_validate_index_js_namespaceObject = require("./validate/index.js");
|
|
98
112
|
exports.AssignRow = __webpack_exports__.AssignRow;
|
|
99
113
|
exports.AssignRows = __webpack_exports__.AssignRows;
|
|
114
|
+
exports.BaseCodeEditor = __webpack_exports__.BaseCodeEditor;
|
|
100
115
|
exports.BatchOutputs = __webpack_exports__.BatchOutputs;
|
|
101
116
|
exports.BatchVariableSelector = __webpack_exports__.BatchVariableSelector;
|
|
102
117
|
exports.BlurInput = __webpack_exports__.BlurInput;
|
|
103
118
|
exports.CodeEditor = __webpack_exports__.CodeEditor;
|
|
104
119
|
exports.CodeEditorMini = __webpack_exports__.CodeEditorMini;
|
|
120
|
+
exports.ConditionPresetOp = __webpack_exports__.ConditionPresetOp;
|
|
121
|
+
exports.ConditionProvider = __webpack_exports__.ConditionProvider;
|
|
105
122
|
exports.ConditionRow = __webpack_exports__.ConditionRow;
|
|
106
123
|
exports.ConstantInput = __webpack_exports__.ConstantInput;
|
|
107
124
|
exports.DBConditionRow = __webpack_exports__.DBConditionRow;
|
|
@@ -112,12 +129,16 @@ exports.DisplayOutputs = __webpack_exports__.DisplayOutputs;
|
|
|
112
129
|
exports.DisplaySchemaTag = __webpack_exports__.DisplaySchemaTag;
|
|
113
130
|
exports.DisplaySchemaTree = __webpack_exports__.DisplaySchemaTree;
|
|
114
131
|
exports.DynamicValueInput = __webpack_exports__.DynamicValueInput;
|
|
132
|
+
exports.EditorInputsTree = __webpack_exports__.EditorInputsTree;
|
|
133
|
+
exports.EditorVariableTagInject = __webpack_exports__.EditorVariableTagInject;
|
|
134
|
+
exports.EditorVariableTree = __webpack_exports__.EditorVariableTree;
|
|
115
135
|
exports.FlowValueUtils = __webpack_exports__.FlowValueUtils;
|
|
116
136
|
exports.InjectDynamicValueInput = __webpack_exports__.InjectDynamicValueInput;
|
|
117
137
|
exports.InjectTypeSelector = __webpack_exports__.InjectTypeSelector;
|
|
118
138
|
exports.InjectVariableSelector = __webpack_exports__.InjectVariableSelector;
|
|
119
139
|
exports.InputsValues = __webpack_exports__.InputsValues;
|
|
120
140
|
exports.InputsValuesTree = __webpack_exports__.InputsValuesTree;
|
|
141
|
+
exports.JsonCodeEditor = __webpack_exports__.JsonCodeEditor;
|
|
121
142
|
exports.JsonEditorWithVariables = __webpack_exports__.JsonEditorWithVariables;
|
|
122
143
|
exports.JsonSchemaEditor = __webpack_exports__.JsonSchemaEditor;
|
|
123
144
|
exports.JsonSchemaTypePresetProvider = __webpack_exports__.JsonSchemaTypePresetProvider;
|
|
@@ -125,6 +146,11 @@ exports.JsonSchemaUtils = __webpack_exports__.JsonSchemaUtils;
|
|
|
125
146
|
exports.PromptEditor = __webpack_exports__.PromptEditor;
|
|
126
147
|
exports.PromptEditorWithInputs = __webpack_exports__.PromptEditorWithInputs;
|
|
127
148
|
exports.PromptEditorWithVariables = __webpack_exports__.PromptEditorWithVariables;
|
|
149
|
+
exports.PythonCodeEditor = __webpack_exports__.PythonCodeEditor;
|
|
150
|
+
exports.SQLCodeEditor = __webpack_exports__.SQLCodeEditor;
|
|
151
|
+
exports.SQLEditorWithVariables = __webpack_exports__.SQLEditorWithVariables;
|
|
152
|
+
exports.ShellCodeEditor = __webpack_exports__.ShellCodeEditor;
|
|
153
|
+
exports.TypeScriptCodeEditor = __webpack_exports__.TypeScriptCodeEditor;
|
|
128
154
|
exports.TypeSelector = __webpack_exports__.TypeSelector;
|
|
129
155
|
exports.VariableSelector = __webpack_exports__.VariableSelector;
|
|
130
156
|
exports.VariableSelectorProvider = __webpack_exports__.VariableSelectorProvider;
|
|
@@ -152,6 +178,8 @@ exports.provideBatchOutputsEffect = __webpack_exports__.provideBatchOutputsEffec
|
|
|
152
178
|
exports.provideJsonSchemaOutputs = __webpack_exports__.provideJsonSchemaOutputs;
|
|
153
179
|
exports.syncVariableTitle = __webpack_exports__.syncVariableTitle;
|
|
154
180
|
exports.unstableSetCreateRoot = __webpack_exports__.unstableSetCreateRoot;
|
|
181
|
+
exports.useCondition = __webpack_exports__.useCondition;
|
|
182
|
+
exports.useConditionContext = __webpack_exports__.useConditionContext;
|
|
155
183
|
exports.useObjectList = __webpack_exports__.useObjectList;
|
|
156
184
|
exports.useTypeManager = __webpack_exports__.useTypeManager;
|
|
157
185
|
exports.useVariableTree = __webpack_exports__.useVariableTree;
|
|
@@ -161,11 +189,14 @@ exports.withSuspense = __webpack_exports__.withSuspense;
|
|
|
161
189
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
162
190
|
"AssignRow",
|
|
163
191
|
"AssignRows",
|
|
192
|
+
"BaseCodeEditor",
|
|
164
193
|
"BatchOutputs",
|
|
165
194
|
"BatchVariableSelector",
|
|
166
195
|
"BlurInput",
|
|
167
196
|
"CodeEditor",
|
|
168
197
|
"CodeEditorMini",
|
|
198
|
+
"ConditionPresetOp",
|
|
199
|
+
"ConditionProvider",
|
|
169
200
|
"ConditionRow",
|
|
170
201
|
"ConstantInput",
|
|
171
202
|
"DBConditionRow",
|
|
@@ -176,12 +207,16 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
176
207
|
"DisplaySchemaTag",
|
|
177
208
|
"DisplaySchemaTree",
|
|
178
209
|
"DynamicValueInput",
|
|
210
|
+
"EditorInputsTree",
|
|
211
|
+
"EditorVariableTagInject",
|
|
212
|
+
"EditorVariableTree",
|
|
179
213
|
"FlowValueUtils",
|
|
180
214
|
"InjectDynamicValueInput",
|
|
181
215
|
"InjectTypeSelector",
|
|
182
216
|
"InjectVariableSelector",
|
|
183
217
|
"InputsValues",
|
|
184
218
|
"InputsValuesTree",
|
|
219
|
+
"JsonCodeEditor",
|
|
185
220
|
"JsonEditorWithVariables",
|
|
186
221
|
"JsonSchemaEditor",
|
|
187
222
|
"JsonSchemaTypePresetProvider",
|
|
@@ -189,6 +224,11 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
189
224
|
"PromptEditor",
|
|
190
225
|
"PromptEditorWithInputs",
|
|
191
226
|
"PromptEditorWithVariables",
|
|
227
|
+
"PythonCodeEditor",
|
|
228
|
+
"SQLCodeEditor",
|
|
229
|
+
"SQLEditorWithVariables",
|
|
230
|
+
"ShellCodeEditor",
|
|
231
|
+
"TypeScriptCodeEditor",
|
|
192
232
|
"TypeSelector",
|
|
193
233
|
"VariableSelector",
|
|
194
234
|
"VariableSelectorProvider",
|
|
@@ -216,6 +256,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
216
256
|
"provideJsonSchemaOutputs",
|
|
217
257
|
"syncVariableTitle",
|
|
218
258
|
"unstableSetCreateRoot",
|
|
259
|
+
"useCondition",
|
|
260
|
+
"useConditionContext",
|
|
219
261
|
"useObjectList",
|
|
220
262
|
"useTypeManager",
|
|
221
263
|
"useVariableTree",
|
|
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const json_schema_namespaceObject = require("@flowgram.ai/json-schema");
|
|
30
30
|
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
31
31
|
const index_js_namespaceObject = require("./type-definition/index.js");
|
|
32
|
+
(0, index_js_namespaceObject.initRegistries)();
|
|
32
33
|
const createTypePresetPlugin = (0, editor_namespaceObject.definePluginCreator)({
|
|
33
34
|
onInit (ctx, opts) {
|
|
34
35
|
const typeManager = ctx.get(json_schema_namespaceObject.BaseTypeManager);
|
|
@@ -25,23 +25,13 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
JsonSchemaUtils: ()=>json_schema_namespaceObject.JsonSchemaUtils,
|
|
28
|
-
JsonSchemaTypePresetProvider: ()=>JsonSchemaTypePresetProvider,
|
|
28
|
+
JsonSchemaTypePresetProvider: ()=>external_react_js_namespaceObject.JsonSchemaTypePresetProvider,
|
|
29
29
|
createTypePresetPlugin: ()=>external_create_type_preset_plugin_js_namespaceObject.createTypePresetPlugin,
|
|
30
|
-
useTypeManager: ()=>useTypeManager
|
|
30
|
+
useTypeManager: ()=>external_react_js_namespaceObject.useTypeManager
|
|
31
31
|
});
|
|
32
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
33
|
-
require("react");
|
|
34
32
|
const json_schema_namespaceObject = require("@flowgram.ai/json-schema");
|
|
35
|
-
const
|
|
33
|
+
const external_react_js_namespaceObject = require("./react.js");
|
|
36
34
|
const external_create_type_preset_plugin_js_namespaceObject = require("./create-type-preset-plugin.js");
|
|
37
|
-
const useTypeManager = ()=>(0, json_schema_namespaceObject.useTypeManager)();
|
|
38
|
-
const JsonSchemaTypePresetProvider = ({ types = [], children })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(json_schema_namespaceObject.TypePresetProvider, {
|
|
39
|
-
types: [
|
|
40
|
-
...index_js_namespaceObject.jsonSchemaTypePreset,
|
|
41
|
-
...types
|
|
42
|
-
],
|
|
43
|
-
children: children
|
|
44
|
-
});
|
|
45
35
|
exports.JsonSchemaTypePresetProvider = __webpack_exports__.JsonSchemaTypePresetProvider;
|
|
46
36
|
exports.JsonSchemaUtils = __webpack_exports__.JsonSchemaUtils;
|
|
47
37
|
exports.createTypePresetPlugin = __webpack_exports__.createTypePresetPlugin;
|
package/dist/cjs/{components/code-editor/init-worker.js → plugins/json-schema-preset/react.js}
RENAMED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const __rslib_import_meta_url__ = /*#__PURE__*/ function() {
|
|
3
|
-
return 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
4
|
-
}();
|
|
5
2
|
var __webpack_require__ = {};
|
|
6
3
|
(()=>{
|
|
7
4
|
__webpack_require__.d = (exports1, definition)=>{
|
|
@@ -27,29 +24,27 @@ var __webpack_require__ = {};
|
|
|
27
24
|
var __webpack_exports__ = {};
|
|
28
25
|
__webpack_require__.r(__webpack_exports__);
|
|
29
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
30
|
-
|
|
27
|
+
useTypeManager: ()=>useTypeManager,
|
|
28
|
+
JsonSchemaTypePresetProvider: ()=>JsonSchemaTypePresetProvider
|
|
31
29
|
});
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
require("react");
|
|
32
|
+
const json_schema_namespaceObject = require("@flowgram.ai/json-schema");
|
|
33
|
+
const index_js_namespaceObject = require("./type-definition/index.js");
|
|
34
|
+
(0, index_js_namespaceObject.initRegistries)();
|
|
35
|
+
const useTypeManager = ()=>(0, json_schema_namespaceObject.useTypeManager)();
|
|
36
|
+
const JsonSchemaTypePresetProvider = ({ types = [], children })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(json_schema_namespaceObject.TypePresetProvider, {
|
|
37
|
+
types: [
|
|
38
|
+
...index_js_namespaceObject.jsonSchemaTypePreset,
|
|
39
|
+
...types
|
|
40
|
+
],
|
|
41
|
+
children: children
|
|
39
42
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
lib: [
|
|
43
|
-
'es2015',
|
|
44
|
-
'dom'
|
|
45
|
-
],
|
|
46
|
-
noImplicitAny: false
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
exports.initTsWorker = __webpack_exports__.initTsWorker;
|
|
43
|
+
exports.JsonSchemaTypePresetProvider = __webpack_exports__.JsonSchemaTypePresetProvider;
|
|
44
|
+
exports.useTypeManager = __webpack_exports__.useTypeManager;
|
|
51
45
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
52
|
-
"
|
|
46
|
+
"JsonSchemaTypePresetProvider",
|
|
47
|
+
"useTypeManager"
|
|
53
48
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
54
49
|
Object.defineProperty(exports, '__esModule', {
|
|
55
50
|
value: true
|
|
@@ -29,16 +29,45 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
require("react");
|
|
31
31
|
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
32
|
-
const
|
|
32
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
33
|
+
const index_js_namespaceObject = require("../../../components/code-editor/index.js");
|
|
33
34
|
const arrayRegistry = {
|
|
34
35
|
type: 'array',
|
|
35
|
-
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.
|
|
36
|
+
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.JsonCodeEditor, {
|
|
37
|
+
mini: true,
|
|
36
38
|
value: props.value,
|
|
37
|
-
languageId: "json",
|
|
38
39
|
onChange: (v)=>props.onChange?.(v),
|
|
39
40
|
placeholder: editor_namespaceObject.I18n.t('Please Input Array'),
|
|
40
41
|
readonly: props.readonly
|
|
41
|
-
})
|
|
42
|
+
}),
|
|
43
|
+
conditionRule: {
|
|
44
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_EMPTY]: null,
|
|
45
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_NOT_EMPTY]: null,
|
|
46
|
+
[op_js_namespaceObject.ConditionPresetOp.CONTAINS]: {
|
|
47
|
+
type: 'array',
|
|
48
|
+
extra: {
|
|
49
|
+
weak: true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
[op_js_namespaceObject.ConditionPresetOp.NOT_CONTAINS]: {
|
|
53
|
+
type: 'array',
|
|
54
|
+
extra: {
|
|
55
|
+
weak: true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
[op_js_namespaceObject.ConditionPresetOp.EQ]: {
|
|
59
|
+
type: 'array',
|
|
60
|
+
extra: {
|
|
61
|
+
weak: true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
[op_js_namespaceObject.ConditionPresetOp.NEQ]: {
|
|
65
|
+
type: 'array',
|
|
66
|
+
extra: {
|
|
67
|
+
weak: true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
42
71
|
};
|
|
43
72
|
exports.arrayRegistry = __webpack_exports__.arrayRegistry;
|
|
44
73
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -30,6 +30,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
30
30
|
require("react");
|
|
31
31
|
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
32
32
|
const semi_ui_namespaceObject = require("@douyinfe/semi-ui");
|
|
33
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
33
34
|
const booleanRegistry = {
|
|
34
35
|
type: 'boolean',
|
|
35
36
|
ConstantRenderer: (props)=>{
|
|
@@ -52,6 +53,28 @@ const booleanRegistry = {
|
|
|
52
53
|
onChange: (value)=>onChange?.(!!value),
|
|
53
54
|
...rest
|
|
54
55
|
});
|
|
56
|
+
},
|
|
57
|
+
conditionRule: {
|
|
58
|
+
[op_js_namespaceObject.ConditionPresetOp.EQ]: {
|
|
59
|
+
type: 'boolean'
|
|
60
|
+
},
|
|
61
|
+
[op_js_namespaceObject.ConditionPresetOp.NEQ]: {
|
|
62
|
+
type: 'boolean'
|
|
63
|
+
},
|
|
64
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_TRUE]: null,
|
|
65
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_FALSE]: null,
|
|
66
|
+
[op_js_namespaceObject.ConditionPresetOp.IN]: {
|
|
67
|
+
type: 'array',
|
|
68
|
+
items: {
|
|
69
|
+
type: 'boolean'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
[op_js_namespaceObject.ConditionPresetOp.NIN]: {
|
|
73
|
+
type: 'array',
|
|
74
|
+
items: {
|
|
75
|
+
type: 'boolean'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
55
78
|
}
|
|
56
79
|
};
|
|
57
80
|
exports.booleanRegistry = __webpack_exports__.booleanRegistry;
|
|
@@ -28,20 +28,49 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
require("react");
|
|
31
|
+
const external_date_fns_namespaceObject = require("date-fns");
|
|
31
32
|
const semi_ui_namespaceObject = require("@douyinfe/semi-ui");
|
|
33
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
32
34
|
const dateTimeRegistry = {
|
|
33
35
|
type: 'date-time',
|
|
34
36
|
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(semi_ui_namespaceObject.DatePicker, {
|
|
35
37
|
size: "small",
|
|
36
38
|
type: "dateTime",
|
|
37
39
|
density: "compact",
|
|
40
|
+
defaultValue: Date.now(),
|
|
38
41
|
style: {
|
|
39
42
|
width: '100%',
|
|
40
43
|
...props.style || {}
|
|
41
44
|
},
|
|
42
45
|
disabled: props.readonly,
|
|
43
|
-
...props
|
|
44
|
-
|
|
46
|
+
...props,
|
|
47
|
+
onChange: (date)=>{
|
|
48
|
+
props.onChange?.((0, external_date_fns_namespaceObject.format)(date, "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"));
|
|
49
|
+
},
|
|
50
|
+
value: props.value
|
|
51
|
+
}),
|
|
52
|
+
conditionRule: {
|
|
53
|
+
[op_js_namespaceObject.ConditionPresetOp.EQ]: {
|
|
54
|
+
type: 'date-time'
|
|
55
|
+
},
|
|
56
|
+
[op_js_namespaceObject.ConditionPresetOp.NEQ]: {
|
|
57
|
+
type: 'date-time'
|
|
58
|
+
},
|
|
59
|
+
[op_js_namespaceObject.ConditionPresetOp.GT]: {
|
|
60
|
+
type: 'date-time'
|
|
61
|
+
},
|
|
62
|
+
[op_js_namespaceObject.ConditionPresetOp.GTE]: {
|
|
63
|
+
type: 'date-time'
|
|
64
|
+
},
|
|
65
|
+
[op_js_namespaceObject.ConditionPresetOp.LT]: {
|
|
66
|
+
type: 'date-time'
|
|
67
|
+
},
|
|
68
|
+
[op_js_namespaceObject.ConditionPresetOp.LTE]: {
|
|
69
|
+
type: 'date-time'
|
|
70
|
+
},
|
|
71
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_EMPTY]: null,
|
|
72
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_NOT_EMPTY]: null
|
|
73
|
+
}
|
|
45
74
|
};
|
|
46
75
|
exports.dateTimeRegistry = __webpack_exports__.dateTimeRegistry;
|
|
47
76
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -24,12 +24,14 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
initRegistries: ()=>initRegistries,
|
|
27
28
|
jsonSchemaTypePreset: ()=>jsonSchemaTypePreset
|
|
28
29
|
});
|
|
29
30
|
const json_schema_namespaceObject = require("@flowgram.ai/json-schema");
|
|
30
31
|
const external_string_js_namespaceObject = require("./string.js");
|
|
31
32
|
const external_object_js_namespaceObject = require("./object.js");
|
|
32
33
|
const external_number_js_namespaceObject = require("./number.js");
|
|
34
|
+
const external_map_js_namespaceObject = require("./map.js");
|
|
33
35
|
const external_integer_js_namespaceObject = require("./integer.js");
|
|
34
36
|
const external_date_time_js_namespaceObject = require("./date-time.js");
|
|
35
37
|
const external_boolean_js_namespaceObject = require("./boolean.js");
|
|
@@ -41,11 +43,17 @@ const jsonSchemaTypePreset = [
|
|
|
41
43
|
external_integer_js_namespaceObject.integerRegistry,
|
|
42
44
|
external_boolean_js_namespaceObject.booleanRegistry,
|
|
43
45
|
external_array_js_namespaceObject.arrayRegistry,
|
|
46
|
+
external_map_js_namespaceObject.mapRegistry,
|
|
44
47
|
external_date_time_js_namespaceObject.dateTimeRegistry
|
|
45
48
|
];
|
|
46
|
-
|
|
49
|
+
const initRegistries = ()=>{
|
|
50
|
+
if (json_schema_namespaceObject.jsonSchemaTypeManager.getTypeByName('string')?.ConstantRenderer) return;
|
|
51
|
+
jsonSchemaTypePreset.forEach((_type)=>json_schema_namespaceObject.jsonSchemaTypeManager.register(_type));
|
|
52
|
+
};
|
|
53
|
+
exports.initRegistries = __webpack_exports__.initRegistries;
|
|
47
54
|
exports.jsonSchemaTypePreset = __webpack_exports__.jsonSchemaTypePreset;
|
|
48
55
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
56
|
+
"initRegistries",
|
|
49
57
|
"jsonSchemaTypePreset"
|
|
50
58
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
51
59
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -30,6 +30,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
30
30
|
require("react");
|
|
31
31
|
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
32
32
|
const semi_ui_namespaceObject = require("@douyinfe/semi-ui");
|
|
33
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
33
34
|
const integerRegistry = {
|
|
34
35
|
type: 'integer',
|
|
35
36
|
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(semi_ui_namespaceObject.InputNumber, {
|
|
@@ -38,7 +39,39 @@ const integerRegistry = {
|
|
|
38
39
|
disabled: props.readonly,
|
|
39
40
|
precision: 0,
|
|
40
41
|
...props
|
|
41
|
-
})
|
|
42
|
+
}),
|
|
43
|
+
conditionRule: {
|
|
44
|
+
[op_js_namespaceObject.ConditionPresetOp.EQ]: {
|
|
45
|
+
type: 'number'
|
|
46
|
+
},
|
|
47
|
+
[op_js_namespaceObject.ConditionPresetOp.NEQ]: {
|
|
48
|
+
type: 'number'
|
|
49
|
+
},
|
|
50
|
+
[op_js_namespaceObject.ConditionPresetOp.GT]: {
|
|
51
|
+
type: 'number'
|
|
52
|
+
},
|
|
53
|
+
[op_js_namespaceObject.ConditionPresetOp.GTE]: {
|
|
54
|
+
type: 'number'
|
|
55
|
+
},
|
|
56
|
+
[op_js_namespaceObject.ConditionPresetOp.LT]: {
|
|
57
|
+
type: 'number'
|
|
58
|
+
},
|
|
59
|
+
[op_js_namespaceObject.ConditionPresetOp.LTE]: {
|
|
60
|
+
type: 'number'
|
|
61
|
+
},
|
|
62
|
+
[op_js_namespaceObject.ConditionPresetOp.IN]: {
|
|
63
|
+
type: 'array',
|
|
64
|
+
extra: {
|
|
65
|
+
weak: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[op_js_namespaceObject.ConditionPresetOp.NIN]: {
|
|
69
|
+
type: 'array',
|
|
70
|
+
extra: {
|
|
71
|
+
weak: true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
42
75
|
};
|
|
43
76
|
exports.integerRegistry = __webpack_exports__.integerRegistry;
|
|
44
77
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
mapRegistry: ()=>mapRegistry
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
require("react");
|
|
31
|
+
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
32
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
33
|
+
const index_js_namespaceObject = require("../../../components/code-editor/index.js");
|
|
34
|
+
const mapRegistry = {
|
|
35
|
+
type: 'map',
|
|
36
|
+
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.JsonCodeEditor, {
|
|
37
|
+
mini: true,
|
|
38
|
+
value: props.value,
|
|
39
|
+
onChange: (v)=>props.onChange?.(v),
|
|
40
|
+
placeholder: editor_namespaceObject.I18n.t('Please Input Map'),
|
|
41
|
+
readonly: props.readonly
|
|
42
|
+
}),
|
|
43
|
+
conditionRule: {
|
|
44
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_EMPTY]: null,
|
|
45
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_NOT_EMPTY]: null
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.mapRegistry = __webpack_exports__.mapRegistry;
|
|
49
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
50
|
+
"mapRegistry"
|
|
51
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
52
|
+
Object.defineProperty(exports, '__esModule', {
|
|
53
|
+
value: true
|
|
54
|
+
});
|
|
@@ -30,6 +30,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
30
30
|
require("react");
|
|
31
31
|
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
32
32
|
const semi_ui_namespaceObject = require("@douyinfe/semi-ui");
|
|
33
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
33
34
|
const numberRegistry = {
|
|
34
35
|
type: 'number',
|
|
35
36
|
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(semi_ui_namespaceObject.InputNumber, {
|
|
@@ -38,7 +39,39 @@ const numberRegistry = {
|
|
|
38
39
|
disabled: props.readonly,
|
|
39
40
|
hideButtons: true,
|
|
40
41
|
...props
|
|
41
|
-
})
|
|
42
|
+
}),
|
|
43
|
+
conditionRule: {
|
|
44
|
+
[op_js_namespaceObject.ConditionPresetOp.EQ]: {
|
|
45
|
+
type: 'number'
|
|
46
|
+
},
|
|
47
|
+
[op_js_namespaceObject.ConditionPresetOp.NEQ]: {
|
|
48
|
+
type: 'number'
|
|
49
|
+
},
|
|
50
|
+
[op_js_namespaceObject.ConditionPresetOp.GT]: {
|
|
51
|
+
type: 'number'
|
|
52
|
+
},
|
|
53
|
+
[op_js_namespaceObject.ConditionPresetOp.GTE]: {
|
|
54
|
+
type: 'number'
|
|
55
|
+
},
|
|
56
|
+
[op_js_namespaceObject.ConditionPresetOp.LT]: {
|
|
57
|
+
type: 'number'
|
|
58
|
+
},
|
|
59
|
+
[op_js_namespaceObject.ConditionPresetOp.LTE]: {
|
|
60
|
+
type: 'number'
|
|
61
|
+
},
|
|
62
|
+
[op_js_namespaceObject.ConditionPresetOp.IN]: {
|
|
63
|
+
type: 'array',
|
|
64
|
+
extra: {
|
|
65
|
+
weak: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[op_js_namespaceObject.ConditionPresetOp.NIN]: {
|
|
69
|
+
type: 'array',
|
|
70
|
+
extra: {
|
|
71
|
+
weak: true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
42
75
|
};
|
|
43
76
|
exports.numberRegistry = __webpack_exports__.numberRegistry;
|
|
44
77
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -29,16 +29,21 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
require("react");
|
|
31
31
|
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
32
|
-
const
|
|
32
|
+
const op_js_namespaceObject = require("../../../components/condition-context/op.js");
|
|
33
|
+
const index_js_namespaceObject = require("../../../components/code-editor/index.js");
|
|
33
34
|
const objectRegistry = {
|
|
34
35
|
type: 'object',
|
|
35
|
-
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.
|
|
36
|
+
ConstantRenderer: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.JsonCodeEditor, {
|
|
37
|
+
mini: true,
|
|
36
38
|
value: props.value,
|
|
37
39
|
onChange: (v)=>props.onChange?.(v),
|
|
38
|
-
languageId: "json",
|
|
39
40
|
placeholder: editor_namespaceObject.I18n.t('Please Input Object'),
|
|
40
41
|
readonly: props.readonly
|
|
41
|
-
})
|
|
42
|
+
}),
|
|
43
|
+
conditionRule: {
|
|
44
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_EMPTY]: null,
|
|
45
|
+
[op_js_namespaceObject.ConditionPresetOp.IS_NOT_EMPTY]: null
|
|
46
|
+
}
|
|
42
47
|
};
|
|
43
48
|
exports.objectRegistry = __webpack_exports__.objectRegistry;
|
|
44
49
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|