@overmap-ai/core 1.0.36-misc-improvements.1 → 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.
package/dist/overmap-core.js
CHANGED
|
@@ -8855,10 +8855,10 @@ const emptyStringField = {
|
|
|
8855
8855
|
};
|
|
8856
8856
|
const _StringField = class _StringField extends StringOrTextField {
|
|
8857
8857
|
constructor(options) {
|
|
8858
|
-
const { inputType = "text", ...rest } = options;
|
|
8858
|
+
const { inputType = "text", placeholder = "Enter a short description", ...rest } = options;
|
|
8859
8859
|
const maxLength = options.maxLength ? Math.min(500, options.maxLength) : 500;
|
|
8860
8860
|
const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
|
|
8861
|
-
super({ ...rest, maxLength, minLength, type: "string" });
|
|
8861
|
+
super({ ...rest, maxLength, minLength, placeholder, type: "string" });
|
|
8862
8862
|
__publicField(this, "inputType");
|
|
8863
8863
|
this.inputType = inputType;
|
|
8864
8864
|
}
|
|
@@ -8916,9 +8916,10 @@ const emptyTextField = {
|
|
|
8916
8916
|
};
|
|
8917
8917
|
const _TextField = class _TextField extends StringOrTextField {
|
|
8918
8918
|
constructor(options) {
|
|
8919
|
+
const { placeholder = "Enter a description", ...rest } = options;
|
|
8919
8920
|
const maxLength = options.maxLength ? Math.min(5e3, options.maxLength) : 5e3;
|
|
8920
8921
|
const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
|
|
8921
|
-
super({ ...
|
|
8922
|
+
super({ ...rest, maxLength, minLength, placeholder, type: "text" });
|
|
8922
8923
|
}
|
|
8923
8924
|
serialize() {
|
|
8924
8925
|
return super._serialize();
|