@json-layout/vocabulary
Advanced tools
Comparing version 0.13.0 to 0.14.0
{ | ||
"name": "@json-layout/vocabulary", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "Main JSON Layout vocabulary as JSON schemas and Typescript types. Also contains some small utility functions to validate and normalize annotations.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -465,3 +465,3 @@ import { validateLayoutKeyword, isComponentName, isPartialCompObject, isPartialChildren, isPartialSwitch, isPartialGetItemsExpr, isPartialGetItemsObj, isPartialSlotMarkdown, isPartialGetItemsFetch } from './layout-keyword/index.js' | ||
const defaultOptionsKeys = ['readOnly', 'summary', 'titleDepth', 'density', 'removeAdditional', 'validateOn', 'initialValidation', 'defaultOn', 'readOnlyPropertiesMode', 'debounceInputMs'] | ||
const defaultOptionsKeys = ['readOnly', 'summary', 'titleDepth', 'density', 'removeAdditional', 'validateOn', 'updateOne', 'debounceInputMs', 'initialValidation', 'defaultOn', 'readOnlyPropertiesMode'] | ||
@@ -468,0 +468,0 @@ /** |
@@ -73,3 +73,3 @@ import validate from './validate.js' | ||
// these components can received keybord inputs and emit blur events | ||
// they will be debounced and validateOn=blur is applicable | ||
// they will be debounced when validateOn=blur is applicable and data binding will be updated on blur | ||
export const editableCompNames = ['text-field', 'number-field', 'textarea', 'markdown'] | ||
@@ -76,0 +76,0 @@ |
@@ -1074,2 +1074,15 @@ | ||
}, | ||
"updateOn": { | ||
"type": "string", | ||
"enum": [ | ||
"input", | ||
"blur" | ||
], | ||
"default": "input" | ||
}, | ||
"debounceInputMs": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"default": 300 | ||
}, | ||
"initialValidation": { | ||
@@ -1105,7 +1118,2 @@ "type": "string", | ||
"default": "show" | ||
}, | ||
"debounceInputMs": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"default": 300 | ||
} | ||
@@ -1112,0 +1120,0 @@ } |
@@ -510,2 +510,12 @@ { | ||
}, | ||
"updateOn": { | ||
"type": "string", | ||
"enum": ["input", "blur"], | ||
"default": "input" | ||
}, | ||
"debounceInputMs": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"default": 300 | ||
}, | ||
"initialValidation": { | ||
@@ -526,7 +536,2 @@ "type": "string", | ||
"default": "show" | ||
}, | ||
"debounceInputMs": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"default": 300 | ||
} | ||
@@ -533,0 +538,0 @@ } |
@@ -59,2 +59,4 @@ export type NormalizedLayout = SwitchStruct | CompObject; | ||
validateOn?: "input" | "blur" | "submit"; | ||
updateOn?: "input" | "blur"; | ||
debounceInputMs?: number; | ||
initialValidation?: "never" | "always" | "withData"; | ||
@@ -64,3 +66,2 @@ defaultOn?: "missing" | "empty" | "never"; | ||
readOnlyPropertiesMode?: "remove" | "hide" | "show"; | ||
debounceInputMs?: number; | ||
[k: string]: unknown; | ||
@@ -67,0 +68,0 @@ }; |
@@ -815,2 +815,12 @@ declare namespace _default { | ||
}; | ||
updateOn: { | ||
type: string; | ||
enum: string[]; | ||
default: string; | ||
}; | ||
debounceInputMs: { | ||
type: string; | ||
minimum: number; | ||
default: number; | ||
}; | ||
initialValidation: { | ||
@@ -835,7 +845,2 @@ type: string; | ||
}; | ||
debounceInputMs: { | ||
type: string; | ||
minimum: number; | ||
default: number; | ||
}; | ||
}; | ||
@@ -842,0 +847,0 @@ $ref?: undefined; |
@@ -34,2 +34,4 @@ export type NormalizedLayout = SwitchStruct | CompObject; | ||
validateOn?: "input" | "blur" | "submit"; | ||
updateOn?: "input" | "blur"; | ||
debounceInputMs?: number; | ||
initialValidation?: "never" | "always" | "withData"; | ||
@@ -39,3 +41,2 @@ defaultOn?: "missing" | "empty" | "never"; | ||
readOnlyPropertiesMode?: "remove" | "hide" | "show"; | ||
debounceInputMs?: number; | ||
[k: string]: unknown; | ||
@@ -42,0 +43,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
432013
5305