diff --git a/lib/config/builder/list.ts b/lib/config/builder/list.ts
index 2e908e9..9f4d179 100644
--- a/lib/config/builder/list.ts
+++ b/lib/config/builder/list.ts
@@ -40,7 +40,7 @@ export class List extends IBuilder {
maxLength?: number | null;
patterns: Pattern[];
/** Default = "text" */
- inputMode?: ListValueSpecText["inputMode"];
+ inputmode?: ListValueSpecText["inputmode"];
},
) {
const spec = {
@@ -49,7 +49,7 @@ export class List extends IBuilder {
minLength: null,
maxLength: null,
masked: false,
- inputMode: "text" as const,
+ inputmode: "text" as const,
...aSpec,
};
return new List({
diff --git a/lib/config/builder/value.ts b/lib/config/builder/value.ts
index 69e4ac1..7c8ec93 100644
--- a/lib/config/builder/value.ts
+++ b/lib/config/builder/value.ts
@@ -65,7 +65,7 @@ export class Value extends IBuilder {
maxLength?: number | null;
patterns?: Pattern[];
/** Default = 'text' */
- inputMode?: ValueSpecText["inputMode"];
+ inputmode?: ValueSpecText["inputmode"];
}) {
return new Value({
type: "text" as const,
@@ -77,7 +77,7 @@ export class Value extends IBuilder {
minLength: null,
maxLength: null,
patterns: [],
- inputMode: "text",
+ inputmode: "text",
...a,
});
}
@@ -148,7 +148,7 @@ export class Value extends IBuilder {
warning?: string | null;
required: boolean;
/** Default = 'datetime-local' */
- inputMode?: ValueSpecDatetime["inputMode"];
+ inputmode?: ValueSpecDatetime["inputmode"];
min?: string | null;
max?: string | null;
step?: string | null;
@@ -158,7 +158,7 @@ export class Value extends IBuilder {
type: "datetime" as const,
description: null,
warning: null,
- inputMode: "datetime-local",
+ inputmode: "datetime-local",
min: null,
max: null,
step: null,
diff --git a/lib/config/configTypes.ts b/lib/config/configTypes.ts
index 0c83971..4b080d6 100644
--- a/lib/config/configTypes.ts
+++ b/lib/config/configTypes.ts
@@ -63,7 +63,7 @@ export interface ValueSpecColor extends WithStandalone {
export interface ValueSpecDatetime extends WithStandalone {
type: "datetime";
required: boolean;
- inputMode: "date" | "time" | "datetime-local";
+ inputmode: "date" | "time" | "datetime-local";
min: string | null;
max: string | null;
step: string | null;
@@ -150,7 +150,7 @@ export interface ListValueSpecText {
minLength: number | null;
maxLength: number | null;
masked: boolean;
- inputMode: "text" | "email" | "tel" | "url";
+ inputmode: "text" | "email" | "tel" | "url";
placeholder: string | null;
}
export interface ListValueSpecNumber {
diff --git a/lib/config/specToBuilder.ts b/lib/config/specToBuilder.ts
index 452c181..e216af1 100644
--- a/lib/config/specToBuilder.ts
+++ b/lib/config/specToBuilder.ts
@@ -109,7 +109,7 @@ export async function specToBuilder(
masked: spec?.masked || false,
placeholder: spec?.placeholder || null,
pattern: spec?.patterns || [],
- inputMode: spec?.inputMode || "text",
+ inputmode: spec?.inputmode || "text",
})})`;
}
case "number": {
diff --git a/lib/test/configBuilder.test.ts b/lib/test/configBuilder.test.ts
index 75457fe..397aed6 100644
--- a/lib/test/configBuilder.test.ts
+++ b/lib/test/configBuilder.test.ts
@@ -38,7 +38,7 @@ describe("builder tests", () => {
"minLength": null,
"maxLength": null,
"patterns": [],
- "inputMode":"text",
+ "inputmode":"text",
"name": "Peer tor address",
"required": true
}}`
diff --git a/package-lock.json b/package-lock.json
index 0bb5405..2cfd4a1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "start-sdk",
- "version": "0.4.0-lib0.charlie32",
+ "version": "0.4.0-lib0.charlie33",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "start-sdk",
- "version": "0.4.0-lib0.charlie32",
+ "version": "0.4.0-lib0.charlie33",
"license": "MIT",
"dependencies": {
"@iarna/toml": "^2.2.5",
diff --git a/package.json b/package.json
index 2253e16..6e81fd4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "start-sdk",
- "version": "0.4.0-lib0.charlie32",
+ "version": "0.4.0-lib0.charlie33",
"description": "For making the patterns that are wanted in making services for the startOS.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",