Merge branch 'master' of github.com:Start9Labs/start-sdk

This commit is contained in:
BluJ
2023-05-19 16:43:26 -06:00
2 changed files with 7 additions and 8 deletions

View File

@@ -159,8 +159,9 @@ export class Value<Type, Store, Vault> {
patterns?: Pattern[] patterns?: Pattern[]
/** Default = 'text' */ /** Default = 'text' */
inputmode?: ValueSpecText["inputmode"] inputmode?: ValueSpecText["inputmode"]
/** Immutable means it can only be configed at the first config then never again /** Immutable means it can only be configured at the first config then never again
Default is false */ * Default is false
*/
immutable?: boolean immutable?: boolean
generate?: null | RandomString generate?: null | RandomString
}) { }) {
@@ -202,6 +203,10 @@ export class Value<Type, Store, Vault> {
patterns?: Pattern[] patterns?: Pattern[]
/** Default = 'text' */ /** Default = 'text' */
inputmode?: ValueSpecText["inputmode"] inputmode?: ValueSpecText["inputmode"]
disabled?: string | false
/** Immutable means it can only be configured at the first config then never again
* Default is false
*/
generate?: null | RandomString generate?: null | RandomString
} }
>, >,
@@ -240,7 +245,6 @@ export class Value<Type, Store, Vault> {
/** Immutable means it can only be configed at the first config then never again /** Immutable means it can only be configed at the first config then never again
Default is false */ Default is false */
immutable?: boolean immutable?: boolean
generate?: null | RandomString
}) { }) {
return new Value<string, never, never>(async () => { return new Value<string, never, never>(async () => {
const built: ValueSpecTextarea = { const built: ValueSpecTextarea = {
@@ -252,7 +256,6 @@ export class Value<Type, Store, Vault> {
type: "textarea" as const, type: "textarea" as const,
disabled: false, disabled: false,
immutable: a.immutable ?? false, immutable: a.immutable ?? false,
generate: a.generate ?? null,
...a, ...a,
} }
return built return built
@@ -271,7 +274,6 @@ export class Value<Type, Store, Vault> {
maxLength?: number | null maxLength?: number | null
placeholder?: string | null placeholder?: string | null
disabled?: false | string disabled?: false | string
generate?: null | RandomString
} }
>, >,
) { ) {
@@ -286,7 +288,6 @@ export class Value<Type, Store, Vault> {
type: "textarea" as const, type: "textarea" as const,
disabled: false, disabled: false,
immutable: false, immutable: false,
generate: a.generate ?? null,
...a, ...a,
} }
}, string) }, string)
@@ -399,7 +400,6 @@ export class Value<Type, Store, Vault> {
description?: string | null description?: string | null
warning?: string | null warning?: string | null
required: RequiredDefault<string> required: RequiredDefault<string>
disabled?: false | string disabled?: false | string
} }
>, >,

View File

@@ -55,7 +55,6 @@ export interface ValueSpecTextarea extends WithStandalone {
maxLength: number | null maxLength: number | null
required: boolean required: boolean
disabled: false | string disabled: false | string
generate: null | RandomString
/** Immutable means it can only be configed at the first config then never again */ /** Immutable means it can only be configed at the first config then never again */
immutable: boolean immutable: boolean
} }