@flowgram.ai/form-antd-materials 0.4.2 → 0.4.4
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/esm/index.js
CHANGED
|
@@ -1101,13 +1101,14 @@ var UISelect = styled3(Select)`
|
|
|
1101
1101
|
`;
|
|
1102
1102
|
|
|
1103
1103
|
// src/components/constant-input/index.tsx
|
|
1104
|
+
import { I18n } from "@flowgram.ai/editor";
|
|
1104
1105
|
var defaultStrategies = [
|
|
1105
1106
|
{
|
|
1106
1107
|
hit: (schema) => schema?.type === "string",
|
|
1107
1108
|
Renderer: (props) => /* @__PURE__ */ React7.createElement(
|
|
1108
1109
|
UIInput,
|
|
1109
1110
|
{
|
|
1110
|
-
placeholder: "Please Input String",
|
|
1111
|
+
placeholder: I18n.t("Please Input String"),
|
|
1111
1112
|
size: "small",
|
|
1112
1113
|
disabled: props.readonly,
|
|
1113
1114
|
...props
|
|
@@ -1119,7 +1120,7 @@ var defaultStrategies = [
|
|
|
1119
1120
|
Renderer: (props) => /* @__PURE__ */ React7.createElement(
|
|
1120
1121
|
UIInputNumber,
|
|
1121
1122
|
{
|
|
1122
|
-
placeholder: "Please Input Number",
|
|
1123
|
+
placeholder: I18n.t("Please Input Number"),
|
|
1123
1124
|
size: "small",
|
|
1124
1125
|
disabled: props.readonly,
|
|
1125
1126
|
...props
|
|
@@ -1131,7 +1132,7 @@ var defaultStrategies = [
|
|
|
1131
1132
|
Renderer: (props) => /* @__PURE__ */ React7.createElement(
|
|
1132
1133
|
UIInputNumber,
|
|
1133
1134
|
{
|
|
1134
|
-
placeholder: "Please Input Integer",
|
|
1135
|
+
placeholder: I18n.t("Please Input Integer"),
|
|
1135
1136
|
size: "small",
|
|
1136
1137
|
disabled: props.readonly,
|
|
1137
1138
|
precision: 0,
|
|
@@ -1273,6 +1274,7 @@ function BlurInput(props) {
|
|
|
1273
1274
|
}
|
|
1274
1275
|
|
|
1275
1276
|
// src/components/json-schema-editor/index.tsx
|
|
1277
|
+
import { I18n as I18n2 } from "@flowgram.ai/editor";
|
|
1276
1278
|
function JsonSchemaEditor(props) {
|
|
1277
1279
|
const { value = { type: "object" }, config = {}, onChange: onChangeProps } = props;
|
|
1278
1280
|
const { propertyList, onAddProperty, onRemoveProperty, onEditProperty } = usePropertiesEdit(
|
|
@@ -1354,7 +1356,7 @@ function PropertyEdit(props) {
|
|
|
1354
1356
|
/* @__PURE__ */ React10.createElement(UIRow, null, /* @__PURE__ */ React10.createElement(UIName, null, /* @__PURE__ */ React10.createElement(
|
|
1355
1357
|
BlurInput,
|
|
1356
1358
|
{
|
|
1357
|
-
placeholder: config?.placeholder ?? "Input Variable Name",
|
|
1359
|
+
placeholder: config?.placeholder ?? I18n2.t("Input Variable Name"),
|
|
1358
1360
|
size: "small",
|
|
1359
1361
|
value: name,
|
|
1360
1362
|
onChange: (value2) => onChange("name", value2)
|