| /misc/config_tools/configurator/packages/vue-json-schema-form/utils/ |
| A D | formUtils.js | 33 schema, 48 schema = {}, argument 95 if (!fieldCtor && (schema.anyOf || schema.oneOf)) { 150 if (schema.minimum || schema.minimum === 0) { 153 if (schema.maximum || schema.maximum === 0) { 157 if (schema.minLength || schema.minLength === 0) { 160 if (schema.maxLength || schema.maxLength === 0) { 177 if (schema.title) spec.title = schema.title; 349 const altSchemas = schema.oneOf || schema.anyOf; 369 if (!schema.uniqueItems || !schema.items) { [all …]
|
| A D | CHANGELOG.md | 6 ## [1.12.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.1...v1.12.2) (2022-04-11) 11 …/lljj-x/vue-json-schema-form/commit/f63094ee85659d1fea45bd789321817c08664ffa)), closes [#170](http… 17 # [1.12.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.11.0...v1.12.0) (2022-03-08) 22 …/lljj-x/vue-json-schema-form/commit/10cdc089087d83d8fe08e1fd379b7a1aaad0cd5d)), closes [#152](http… 38 …/lljj-x/vue-json-schema-form/commit/2cd65bb5f275a021f1cc368e4c63387163c94d57)), closes [#157](http… 49 …/lljj-x/vue-json-schema-form/commit/65a7143fc19105f9096afc24a25107c0ef27ac5f)), closes [#122](http… 60 …/lljj-x/vue-json-schema-form/commit/c0bd0cde9f15b4ca928fec84b4831a5cb459aa43)), closes [#116](http… 71 …/lljj-x/vue-json-schema-form/commit/44bcb44af63a37847cd3df5614fad2f26bdf307d)), closes [#108](http… 113 …m/lljj-x/vue-json-schema-form/commit/27f1501eda01eabd4a723656be56904e9cb0f069)), closes [#45](http… 186 …schema-form/commit/71a281045af11f215333050396aa546dd5e78b88)), closes [#27](https://github.com/llj… [all …]
|
| A D | README.md | 8 ## @lljj/vjsf-utils/schema/getDefaultFormState 9 根据 jsonSchema 和 formData,计算当前schema value 11 ## @lljj/vjsf-utils/schema/validate 18 } from '@lljj/vjsf-utils/schema/validate'; 20 // 直接调用 ajv 验证schema,返回格式化后的结果
|
| A D | utils.js | 91 export function getSchemaType(schema) { argument 92 const { type } = schema; 95 if (!type && schema.const) { 96 return guessType(schema.const); 100 if (!type && schema.enum) { 105 if (!type && (schema.items)) { 110 if (!type && (schema.properties || schema.additionalProperties)) {
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/utils/schema/ |
| A D | getDefaultFormState.js | 59 if ('allOf' in schema) { 60 schema = resolveAllOf(schema, rootSchema, formData); 104 schema.oneOf[getMatchingOption(formData, schema.oneOf, rootSchema, haveAllFields)], 109 schema = mergeObjects(schema, matchSchema); 110 delete schema.oneOf; 127 schema = mergeObjects(schema, matchSchema); 128 delete schema.anyOf; 171 schema.items[idx] || schema.additionalItems || {}, 183 schema.items, 192 if (schema.minItems) { [all …]
|
| A D | retriev.js | 198 function resolveReference(schema, rootSchema, formData) { argument 203 const { $ref, ...localSchema } = schema; 320 export function resolveAllOf(schema, rootSchema, formData) { argument 323 ...schema, 343 if (schema.hasOwnProperty('allOf')) { 344 schema = resolveAllOf(schema, rootSchema, formData); 348 if (schema.hasOwnProperty('$ref')) { 349 schema = resolveReference(schema, rootSchema, formData); 372 return schema; 419 if (!isObject(schema)) { [all …]
|
| A D | validate.js | 78 schema, argument 112 ajv.validate(schema, formData); 153 schema, argument 168 … const emptyArray = (schema.type === 'array' && Array.isArray(formData) && formData.length === 0); 182 schema, 202 schema, 218 schema, 237 export function isValid(schema, data) { argument 239 return ajv.validate(schema, data); 246 export function ajvValid(schema, data) { argument [all …]
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/ |
| A D | CHANGELOG.md | 6 ## [1.12.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.1...v1.12.2) (2022-04-11) 14 ## [1.12.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.0...v1.12.1) (2022-04-05) 19 …/lljj-x/vue-json-schema-form/commit/60cac995779c1eeb90b23f2cfeeb5deb8c350feb)), closes [#166](http… 25 # [1.12.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.11.0...v1.12.0) (2022-03-08) 41 …/lljj-x/vue-json-schema-form/commit/2cd65bb5f275a021f1cc368e4c63387163c94d57)), closes [#157](http… 46 …/lljj-x/vue-json-schema-form/commit/a882181d65a9a152f8017e55367100658464aeba)), closes [#150](http… 68 …/lljj-x/vue-json-schema-form/commit/65a7143fc19105f9096afc24a25107c0ef27ac5f)), closes [#122](http… 107 …m/lljj-x/vue-json-schema-form/commit/d2f9791ce7d35228edd07257049607177a95fc84)), closes [#77](http… 108 …/lljj-x/vue-json-schema-form/commit/85d95451b56b9d985ca7094118fbfaca87342322)), closes [#105](http… 151 …m/lljj-x/vue-json-schema-form/commit/27f1501eda01eabd4a723656be56904e9cb0f069)), closes [#45](http… [all …]
|
| A D | README.md | 6 …jj-x/vue-json-schema-form/tree/master/packages/lib/vue3/vue3-form-element) 、[@lljj/vue3-form-ant](… 41 // 默认按schema type 映射默认widget组件 56 // 按 schema format 映射默认widget组件,优先级高于 types
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-form-naive/ |
| A D | CHANGELOG.md | 6 ## [1.12.2](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.1...v1.12.2) (2022-04-11) 14 ## [1.12.1](https://github.com/lljj-x/vue-json-schema-form/compare/v1.12.0...v1.12.1) (2022-04-05) 22 # [1.12.0](https://github.com/lljj-x/vue-json-schema-form/compare/v1.11.0...v1.12.0) (2022-03-08) 27 …/lljj-x/vue-json-schema-form/commit/10cdc089087d83d8fe08e1fd379b7a1aaad0cd5d)), closes [#152](http… 33 …/lljj-x/vue-json-schema-form/commit/a159c78eb1a9156aa042a0cf82a350c46e035dcc)), closes [#152](http… 58 ## [1.9.5](https://github.com/lljj-x/vue-json-schema-form/compare/v1.9.4...v1.9.5) (2021-11-21) 79 …/lljj-x/vue-json-schema-form/commit/c0bd0cde9f15b4ca928fec84b4831a5cb459aa43)), closes [#116](http… 122 …m/lljj-x/vue-json-schema-form/commit/27f1501eda01eabd4a723656be56904e9cb0f069)), closes [#45](http… 204 …m/lljj-x/vue-json-schema-form/commit/6dd97804573aa55001c2715da4a6ffcc5ee897b9)), closes [#57](http… 215 …m/lljj-x/vue-json-schema-form/commit/cd2d8c3ed72b9bc03e44eb5b86eb1b18fe67c34c)), closes [#45](http… [all …]
|
| A D | README.md | 3 …eui.com/zh-CN/os-theme) 、Vue3、 [JSON Schema](https://json-schema.org/understanding-json-schema/ind… 5 > 通过 [@lljj/vue3-form-core](https://github.com/lljj-x/vue-json-schema-form/tree/master/packages/lib… 21 :schema="schema" 38 schema: {
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/ArrayField/arrayTypes/ |
| A D | ArrayFieldTuple.js | 31 if (isNoArray || props.itemsFormData.length < props.schema.items.length) { 60 schema, uiSchema, errorSchema, curNodePath, globalOptions 76 schema, 83 const cutOfArr = cutOff(props.itemsFormData, props.schema.items.length - 1); 90 required: !([].concat(schema.items[index].type).includes('null')), 91 schema: schema.items[index], 101 schema: schema.additionalItems, 112 schema: schema.additionalItems, 152 tupleItemsLength: schema.items.length, 157 maxItems: schema.maxItems, [all …]
|
| A D | ArrayFieldNormal.js | 27 … schema, uiSchema, curNodePath, rootFormData, itemsFormData, errorSchema, globalOptions 43 schema, 51 schema: schema.items, 62 schema: schema.items, 63 required: !([].concat(schema.items.type).includes('null')), 98 maxItems: schema.maxItems, 99 minItems: schema.minItems,
|
| A D | ArrayFieldSpecialFormat.js | 15 schema, uiSchema, curNodePath, rootFormData, globalOptions 18 schema: { 19 'ui:widget': globalOptions.WIDGET_MAP.formats[schema.format], 20 ...schema
|
| A D | ArrayFieldMultiSelect.js | 23 schema, rootSchema, uiSchema, curNodePath, rootFormData, globalOptions 27 const itemsSchema = retrieveSchema(schema.items, rootSchema); 32 schema,
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/SchemaField/ |
| A D | index.js | 22 const schema = retrieveSchema(props.schema, props.rootSchema); constant 25 const curProps = { ...props, schema }; 28 if (Object.keys(schema).length === 0) return null; 35 schema, 43 if (schema.anyOf && schema.anyOf.length > 0 && !isSelect(schema)) { 53 } if (schema.oneOf && schema.oneOf.length > 0 && !isSelect(schema)) {
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/ObjectField/ |
| A D | index.js | 22 …const isRequired = name => Array.isArray(props.schema.required) && !!~props.schema.required.indexO… 31 if (isObject(props.schema.dependencies)) { 32 curDependent = Object.entries(props.schema.dependencies).some(([key, value]) => { 56 schema: props.schema, 62 const properties = Object.keys(props.schema.properties || {}); 76 schema: props.schema.properties[name], 109 … schema: Object.entries(props.schema).reduce((preVal, [key, value]) => { 111 props.schema.additionalProperties === false
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/combiningSchemas/SelectLinkageField/ |
| A D | index.js | 52 … schema: props.schema[`${props.combiningType}Select`] || {}, // 扩展 oneOfSelect,anyOfSelect字段 71 schema: option, 165 const isTypeObject = (props.schema.type === 'object' || props.schema.properties); 184 } = props.schema; 196 schema: props.schema, 204 schema: props.schema, 215 schema: { 237 if (isTypeObject && !isEmptyObject(props.schema.properties)) { 244 const origSchema = Object.assign({}, props.schema, optionSchema); 254 schema: origSchema, [all …]
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/StringField/ |
| A D | index.js | 17 const enumOptions = isSelect(props.schema) 18 … && optionsList(props.schema, props.uiSchema, props.curNodePath, props.rootFormData); 21 schema: props.schema, 26 const isNumber = props.schema.type === 'number' || props.schema.type === 'integer'; 32 props.globalOptions.WIDGET_MAP.formats[props.schema.format]
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/ArrayField/ |
| A D | index.js | 67 const { schema, rootSchema } = props; 68 let itemSchema = schema.items; 72 if (isFixedItems(schema) && allowAdditionalItems(schema)) { 73 itemSchema = schema.additionalItems; 146 schema, 154 if (!schema.hasOwnProperty('items')) { 155 throw new Error(`[${schema}] 请先定义 items属性`); 159 if (isMultiSelect(schema, rootSchema)) { 172 if (schema.format || schema['ui:widget'] || uiSchema['ui:widget']) { 183 const CurrentField = isFixedItems(schema) ? ArrayFieldTuple : ArrayFieldNormal; [all …]
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-form-naive/types/ |
| A D | formUtils.d.ts | 2 schema: object, property 27 function isConstant(schema: object): boolean; 29 function toConstant(schema: object): object | null; 35 function isFixedItems(schema: object): boolean; 38 function isMultiSelect(schema: object, rootSchema: object): boolean;
|
| A D | schemaValidate.d.ts | 9 function isValid(schema: object, data: any): boolean; 12 function ajvValid(schema: object, data: any): boolean;
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/ |
| A D | index.js | 54 …const rootFormData = ref(getDefaultFormState(props.schema, props.modelValue, props.schema, props.s… 81 …const tempVal = getDefaultFormState(props.schema, props.modelValue, props.schema, props.strictMode… 96 watch(() => props.schema, (newVal, oldVal) => { 147 schema: props.schema, property in createForm.Form.setup.schemaProps 152 rootSchema: props.schema, 171 [`genFromComponent_${props.schema.id}Form`]: !!props.schema.id,
|
| /misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/BooleanField/ |
| A D | index.js | 17 schema, uiSchema, curNodePath, rootFormData, globalOptions 22 enumNames: schema.enumNames || ['true', 'false'], 23 enum: schema.enum || [true, false] 27 schema,
|
| /misc/config_tools/board_inspector/inspectorlib/ |
| A D | validator.py | 23 schema = xmlschema.XMLSchema11(schema_etree) 25 it = schema.iter_errors(board_etree)
|