@json-layout/vocabulary
Advanced tools
Comparing version 0.11.0 to 0.12.0
{ | ||
"name": "@json-layout/vocabulary", | ||
"version": "0.11.0", | ||
"version": "0.12.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'] | ||
const defaultOptionsKeys = ['readOnly', 'summary', 'titleDepth', 'density', 'removeAdditional', 'validateOn', 'initialValidation', 'defaultOn', 'readOnlyPropertiesMode', 'debounceInputMs'] | ||
@@ -468,0 +468,0 @@ /** |
@@ -72,2 +72,6 @@ import validate from './validate.js' | ||
// these components can received keybord inputs and emit blur events | ||
// they will be debounced and validateOn=blur is applicable | ||
export const editableCompNames = ['text-field', 'number-field', 'textarea', 'markdown'] | ||
/** @type {(layout: CompObject) => layout is CompositeCompObject} */ | ||
@@ -74,0 +78,0 @@ export function isCompositeLayout (layout) { |
@@ -1095,2 +1095,7 @@ | ||
"default": "show" | ||
}, | ||
"debounceInputMs": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"default": 300 | ||
} | ||
@@ -1097,0 +1102,0 @@ } |
@@ -522,2 +522,7 @@ { | ||
"default": "show" | ||
}, | ||
"debounceInputMs": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"default": 300 | ||
} | ||
@@ -524,0 +529,0 @@ } |
@@ -63,2 +63,3 @@ export type NormalizedLayout = SwitchStruct | CompObject; | ||
readOnlyPropertiesMode?: "remove" | "hide" | "show"; | ||
debounceInputMs?: number; | ||
[k: string]: unknown; | ||
@@ -65,0 +66,0 @@ }; |
@@ -72,2 +72,3 @@ export function isSwitchStruct(layout: NormalizedLayout): layout is import("./types.js").SwitchStruct; | ||
export const compositeCompNames: string[]; | ||
export const editableCompNames: string[]; | ||
export type NormalizedLayout = import('./types.js').NormalizedLayout; | ||
@@ -74,0 +75,0 @@ export type SwitchStruct = import('./types.js').SwitchStruct; |
@@ -825,2 +825,7 @@ declare namespace _default { | ||
}; | ||
debounceInputMs: { | ||
type: string; | ||
minimum: number; | ||
default: number; | ||
}; | ||
}; | ||
@@ -827,0 +832,0 @@ $ref?: undefined; |
@@ -38,2 +38,3 @@ export type NormalizedLayout = SwitchStruct | CompObject; | ||
readOnlyPropertiesMode?: "remove" | "hide" | "show"; | ||
debounceInputMs?: number; | ||
[k: string]: unknown; | ||
@@ -40,0 +41,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
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
427693
5249