@overmap-ai/core 1.0.36-misc-improvements.0 → 1.0.36-misc-improvements.2
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.
|
@@ -6954,7 +6954,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6954
6954
|
return /* @__PURE__ */ jsxRuntime.jsx(InputWithHelpText, { ...restProps, children });
|
|
6955
6955
|
};
|
|
6956
6956
|
const useFormikInput = (props) => {
|
|
6957
|
-
const { id, field, formId: formId2, size, showInputOnly,
|
|
6957
|
+
const { id, field, formId: formId2, size, showInputOnly, ...rest } = props;
|
|
6958
6958
|
const [fieldProps, meta, helpers] = formik.useField(field.getId());
|
|
6959
6959
|
const { touched } = meta;
|
|
6960
6960
|
const helpText = meta.error ?? field.description;
|
|
@@ -6989,7 +6989,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6989
6989
|
labelId,
|
|
6990
6990
|
label,
|
|
6991
6991
|
showInputOnly,
|
|
6992
|
-
placeholder,
|
|
6993
6992
|
fieldProps: fieldPropsWithValidation,
|
|
6994
6993
|
helpers,
|
|
6995
6994
|
field
|
|
@@ -8461,7 +8460,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8461
8460
|
Content: TabsContent
|
|
8462
8461
|
});
|
|
8463
8462
|
const NumberInput = React.memo((props) => {
|
|
8464
|
-
const [{ inputId, labelId, size, severity, showInputOnly,
|
|
8463
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
8465
8464
|
let [{ helpText, label }] = useFormikInput(props);
|
|
8466
8465
|
helpText = showInputOnly ? null : helpText;
|
|
8467
8466
|
label = showInputOnly ? "" : label;
|
|
@@ -8482,7 +8481,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8482
8481
|
...fieldProps,
|
|
8483
8482
|
type: "number",
|
|
8484
8483
|
id: inputId,
|
|
8485
|
-
placeholder,
|
|
8484
|
+
placeholder: field.placeholder,
|
|
8486
8485
|
min: field.minimum,
|
|
8487
8486
|
max: field.maximum,
|
|
8488
8487
|
step: field.integers ? 1 : 0.1,
|
|
@@ -8793,7 +8792,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8793
8792
|
TextFieldInputCopy
|
|
8794
8793
|
};
|
|
8795
8794
|
const StringInput = React.memo((props) => {
|
|
8796
|
-
const [{ inputId, labelId, size, severity, showInputOnly,
|
|
8795
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
8797
8796
|
let [{ helpText, label }] = useFormikInput(props);
|
|
8798
8797
|
helpText = showInputOnly ? null : helpText;
|
|
8799
8798
|
label = showInputOnly ? "" : label;
|
|
@@ -8814,7 +8813,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8814
8813
|
...fieldProps,
|
|
8815
8814
|
type: field.inputType,
|
|
8816
8815
|
id: inputId,
|
|
8817
|
-
placeholder,
|
|
8816
|
+
placeholder: field.placeholder,
|
|
8818
8817
|
color
|
|
8819
8818
|
}
|
|
8820
8819
|
) : /* @__PURE__ */ jsxRuntime.jsxs(TextField$1.Root, { className: styles$5.clickableLinkContainer, children: [
|
|
@@ -8852,10 +8851,10 @@ var __publicField = (obj, key, value) => {
|
|
|
8852
8851
|
};
|
|
8853
8852
|
const _StringField = class _StringField extends StringOrTextField {
|
|
8854
8853
|
constructor(options) {
|
|
8855
|
-
const { inputType = "text", ...rest } = options;
|
|
8854
|
+
const { inputType = "text", placeholder = "Enter a short description", ...rest } = options;
|
|
8856
8855
|
const maxLength = options.maxLength ? Math.min(500, options.maxLength) : 500;
|
|
8857
8856
|
const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
|
|
8858
|
-
super({ ...rest, maxLength, minLength, type: "string" });
|
|
8857
|
+
super({ ...rest, maxLength, minLength, placeholder, type: "string" });
|
|
8859
8858
|
__publicField(this, "inputType");
|
|
8860
8859
|
this.inputType = inputType;
|
|
8861
8860
|
}
|
|
@@ -8877,7 +8876,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8877
8876
|
__publicField(_StringField, "Icon", InputIcon);
|
|
8878
8877
|
let StringField = _StringField;
|
|
8879
8878
|
const TextInput = React.memo((props) => {
|
|
8880
|
-
const [{ inputId, labelId, size, severity, showInputOnly,
|
|
8879
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
8881
8880
|
let [{ helpText, label }] = useFormikInput(props);
|
|
8882
8881
|
helpText = showInputOnly ? null : helpText;
|
|
8883
8882
|
label = showInputOnly ? "" : label;
|
|
@@ -8897,7 +8896,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8897
8896
|
...fieldProps,
|
|
8898
8897
|
resize: "vertical",
|
|
8899
8898
|
id: inputId,
|
|
8900
|
-
placeholder,
|
|
8899
|
+
placeholder: field.placeholder,
|
|
8901
8900
|
severity
|
|
8902
8901
|
}
|
|
8903
8902
|
)
|
|
@@ -8913,9 +8912,10 @@ var __publicField = (obj, key, value) => {
|
|
|
8913
8912
|
};
|
|
8914
8913
|
const _TextField = class _TextField extends StringOrTextField {
|
|
8915
8914
|
constructor(options) {
|
|
8915
|
+
const { placeholder = "Enter a description", ...rest } = options;
|
|
8916
8916
|
const maxLength = options.maxLength ? Math.min(5e3, options.maxLength) : 5e3;
|
|
8917
8917
|
const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
|
|
8918
|
-
super({ ...
|
|
8918
|
+
super({ ...rest, maxLength, minLength, placeholder, type: "text" });
|
|
8919
8919
|
}
|
|
8920
8920
|
serialize() {
|
|
8921
8921
|
return super._serialize();
|
|
@@ -8935,7 +8935,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8935
8935
|
__publicField(_TextField, "Icon", RowsIcon);
|
|
8936
8936
|
let TextField = _TextField;
|
|
8937
8937
|
const SelectInput = React.memo((props) => {
|
|
8938
|
-
const [{ inputId, labelId, size, severity, showInputOnly,
|
|
8938
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
8939
8939
|
const { onChange, onBlur } = fieldProps;
|
|
8940
8940
|
let [{ helpText, label }] = useFormikInput(props);
|
|
8941
8941
|
helpText = showInputOnly ? null : helpText;
|
|
@@ -8966,7 +8966,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8966
8966
|
items: options,
|
|
8967
8967
|
...fieldProps,
|
|
8968
8968
|
onValueChange: handleChange,
|
|
8969
|
-
placeholder,
|
|
8969
|
+
placeholder: field.placeholder,
|
|
8970
8970
|
id: inputId,
|
|
8971
8971
|
severity,
|
|
8972
8972
|
...rest
|
|
@@ -9141,7 +9141,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9141
9141
|
return { reorderSection, reorderField };
|
|
9142
9142
|
};
|
|
9143
9143
|
const MultiStringInput = React.memo((props) => {
|
|
9144
|
-
const [{ inputId, labelId, size, severity, showInputOnly,
|
|
9144
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
9145
9145
|
let [{ helpText, label }] = useFormikInput(props);
|
|
9146
9146
|
helpText = showInputOnly ? null : helpText;
|
|
9147
9147
|
label = showInputOnly ? "" : label;
|
|
@@ -9233,7 +9233,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9233
9233
|
onChange: handleChange,
|
|
9234
9234
|
onKeyDown: handleKeyDown,
|
|
9235
9235
|
id: inputId,
|
|
9236
|
-
placeholder,
|
|
9236
|
+
placeholder: field.placeholder,
|
|
9237
9237
|
color: updatedColor,
|
|
9238
9238
|
onBlur: void 0
|
|
9239
9239
|
}
|
|
@@ -9446,7 +9446,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9446
9446
|
return [value];
|
|
9447
9447
|
};
|
|
9448
9448
|
const MultiSelectInput = React.memo((props) => {
|
|
9449
|
-
const [{ inputId, labelId, size, severity, showInputOnly,
|
|
9449
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
9450
9450
|
const { onChange, onBlur } = fieldProps;
|
|
9451
9451
|
let [{ helpText, label }] = useFormikInput(props);
|
|
9452
9452
|
helpText = showInputOnly ? null : helpText;
|
|
@@ -9475,7 +9475,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9475
9475
|
onValueChange: handleChange,
|
|
9476
9476
|
options: field.options,
|
|
9477
9477
|
name: fieldProps.name,
|
|
9478
|
-
placeholder,
|
|
9478
|
+
placeholder: field.placeholder,
|
|
9479
9479
|
id: inputId,
|
|
9480
9480
|
severity,
|
|
9481
9481
|
...rest
|