@overmap-ai/core 1.0.36-misc-improvements.2 → 1.0.36-misc-improvements.3
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/forms/fields/MultiStringField/MultiStringField.d.ts +0 -1
- package/dist/forms/fields/NumberField/NumberField.d.ts +0 -1
- package/dist/forms/fields/SelectField/MultiSelectField.d.ts +0 -1
- package/dist/forms/fields/SelectField/SelectField.d.ts +0 -1
- package/dist/forms/fields/StringOrTextFields/StringField/StringField.d.ts +0 -1
- package/dist/forms/fields/StringOrTextFields/TextField/TextField.d.ts +0 -1
- package/dist/forms/fields/constants.d.ts +0 -6
- package/dist/overmap-core.js +22 -18
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +22 -18
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -8497,8 +8497,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8497
8497
|
type: "number",
|
|
8498
8498
|
minimum: Number.MIN_SAFE_INTEGER,
|
|
8499
8499
|
maximum: Number.MAX_SAFE_INTEGER,
|
|
8500
|
-
integers: false
|
|
8501
|
-
placeholder: "Enter a number"
|
|
8500
|
+
integers: false
|
|
8502
8501
|
};
|
|
8503
8502
|
const valueIsFormikUserFormRevision$1 = (form) => {
|
|
8504
8503
|
return "fields" in form;
|
|
@@ -8846,15 +8845,14 @@ var __publicField = (obj, key, value) => {
|
|
|
8846
8845
|
...emptyBaseField,
|
|
8847
8846
|
type: "string",
|
|
8848
8847
|
maximum_length: 500,
|
|
8849
|
-
input_type: "text"
|
|
8850
|
-
placeholder: "Enter a short description"
|
|
8848
|
+
input_type: "text"
|
|
8851
8849
|
};
|
|
8852
8850
|
const _StringField = class _StringField extends StringOrTextField {
|
|
8853
8851
|
constructor(options) {
|
|
8854
|
-
const { inputType = "text",
|
|
8852
|
+
const { inputType = "text", ...rest } = options;
|
|
8855
8853
|
const maxLength = options.maxLength ? Math.min(500, options.maxLength) : 500;
|
|
8856
8854
|
const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
|
|
8857
|
-
super({ ...rest, maxLength, minLength,
|
|
8855
|
+
super({ ...rest, maxLength, minLength, type: "string" });
|
|
8858
8856
|
__publicField(this, "inputType");
|
|
8859
8857
|
this.inputType = inputType;
|
|
8860
8858
|
}
|
|
@@ -8865,7 +8863,13 @@ var __publicField = (obj, key, value) => {
|
|
|
8865
8863
|
if (data.type !== "string")
|
|
8866
8864
|
throw new Error("Type mismatch.");
|
|
8867
8865
|
const { maximum_length, minimum_length, input_type, ...rest } = data;
|
|
8868
|
-
return new _StringField({
|
|
8866
|
+
return new _StringField({
|
|
8867
|
+
...rest,
|
|
8868
|
+
maxLength: maximum_length,
|
|
8869
|
+
minLength: minimum_length,
|
|
8870
|
+
inputType: input_type,
|
|
8871
|
+
placeholder: "Enter a short description"
|
|
8872
|
+
});
|
|
8869
8873
|
}
|
|
8870
8874
|
getInput(props) {
|
|
8871
8875
|
return /* @__PURE__ */ jsxRuntime.jsx(StringInput, { field: this, ...props });
|
|
@@ -8907,15 +8911,13 @@ var __publicField = (obj, key, value) => {
|
|
|
8907
8911
|
const emptyTextField = {
|
|
8908
8912
|
...emptyBaseField,
|
|
8909
8913
|
type: "text",
|
|
8910
|
-
maximum_length: 5e3
|
|
8911
|
-
placeholder: "Enter a description"
|
|
8914
|
+
maximum_length: 5e3
|
|
8912
8915
|
};
|
|
8913
8916
|
const _TextField = class _TextField extends StringOrTextField {
|
|
8914
8917
|
constructor(options) {
|
|
8915
|
-
const { placeholder = "Enter a description", ...rest } = options;
|
|
8916
8918
|
const maxLength = options.maxLength ? Math.min(5e3, options.maxLength) : 5e3;
|
|
8917
8919
|
const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
|
|
8918
|
-
super({ ...
|
|
8920
|
+
super({ ...options, maxLength, minLength, type: "text" });
|
|
8919
8921
|
}
|
|
8920
8922
|
serialize() {
|
|
8921
8923
|
return super._serialize();
|
|
@@ -8924,7 +8926,12 @@ var __publicField = (obj, key, value) => {
|
|
|
8924
8926
|
if (data.type !== "text")
|
|
8925
8927
|
throw new Error("Type mismatch.");
|
|
8926
8928
|
const { maximum_length, minimum_length, ...rest } = data;
|
|
8927
|
-
return new _TextField({
|
|
8929
|
+
return new _TextField({
|
|
8930
|
+
...rest,
|
|
8931
|
+
maxLength: maximum_length,
|
|
8932
|
+
minLength: minimum_length,
|
|
8933
|
+
placeholder: "Enter a description"
|
|
8934
|
+
});
|
|
8928
8935
|
}
|
|
8929
8936
|
getInput(props) {
|
|
8930
8937
|
return /* @__PURE__ */ jsxRuntime.jsx(TextInput, { field: this, ...props });
|
|
@@ -9301,8 +9308,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9301
9308
|
...emptyBaseField,
|
|
9302
9309
|
type: "multi-string",
|
|
9303
9310
|
minimum_length: 0,
|
|
9304
|
-
maximum_length: null
|
|
9305
|
-
placeholder: "Press enter to add a new option"
|
|
9311
|
+
maximum_length: null
|
|
9306
9312
|
};
|
|
9307
9313
|
const _MultiStringField = class _MultiStringField extends BaseField {
|
|
9308
9314
|
constructor(options) {
|
|
@@ -9409,8 +9415,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9409
9415
|
const emptySelectField = {
|
|
9410
9416
|
...emptyBaseField,
|
|
9411
9417
|
type: "select",
|
|
9412
|
-
options: []
|
|
9413
|
-
placeholder: "Select one..."
|
|
9418
|
+
options: []
|
|
9414
9419
|
};
|
|
9415
9420
|
const _SelectField = class _SelectField extends BaseSelectField {
|
|
9416
9421
|
constructor(options) {
|
|
@@ -9488,8 +9493,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9488
9493
|
const emptyMultiSelectField = {
|
|
9489
9494
|
...emptyBaseField,
|
|
9490
9495
|
type: "multi-select",
|
|
9491
|
-
options: []
|
|
9492
|
-
placeholder: "Select one or more..."
|
|
9496
|
+
options: []
|
|
9493
9497
|
};
|
|
9494
9498
|
const _MultiSelectField = class _MultiSelectField extends BaseSelectField {
|
|
9495
9499
|
constructor(options) {
|