Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.6.6/schema.json",
"$schema": "https://biomejs.dev/schemas/2.6.8/schema.json",
"vcs": {
"enabled": true,
"defaultBranch": "master",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,32 @@ the properties of the component, which are available only inside Form Builder De

***

### slotConditionResolver?

> `readonly` `optional` **slotConditionResolver?**: (`source`, `parentProps`) => `boolean`

Evaluates the saved condition for this slot.

#### Parameters

##### source

`string`

the saved slot condition.

##### parentProps

`Record`\<`string`, `unknown`\>

the current parent component properties.

#### Returns

`boolean`

***

### type?

> `readonly` `optional` **type?**: keyof SchemaTypeMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,36 @@ the properties of the component, which are available only inside Form Builder De

***

### slotConditionResolver?

> `readonly` `optional` **slotConditionResolver?**: (`source`, `parentProps`) => `boolean`

Evaluates the saved condition for this slot.

#### Parameters

##### source

`string`

the saved slot condition.

##### parentProps

`Record`\<`string`, `unknown`\>

the current parent component properties.

#### Returns

`boolean`

#### Inherited from

[`Annotation`](Annotation.md).[`slotConditionResolver`](Annotation.md#slotconditionresolver)

***

### type?

> `readonly` `optional` **type?**: keyof SchemaTypeMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,36 @@ the properties of the component, which are available only inside Form Builder De

***

### slotConditionResolver?

> `readonly` `optional` **slotConditionResolver?**: (`source`, `parentProps`) => `boolean`

Evaluates the saved condition for this slot.

#### Parameters

##### source

`string`

the saved slot condition.

##### parentProps

`Record`\<`string`, `unknown`\>

the current parent component properties.

#### Returns

`boolean`

#### Inherited from

[`Annotation`](Annotation.md).[`slotConditionResolver`](Annotation.md#slotconditionresolver)

***

### type?

> `readonly` `optional` **type?**: keyof SchemaTypeMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the type of React component properties.

### Constructor

> **new Model**\<`T`\>(`component`, `name?`, `actionsInitializer?`, `valued?`, `valueType?`, `defaultProps?`, `css?`, `wrapperCss?`, `typeName?`, `kind?`, `readOnly?`, `propsBindingTypes?`, `uncontrolledValue?`, `disabled?`, `dataBindingType?`, `features?`): `Model`\<`T`\>
> **new Model**\<`T`\>(`component`, `name?`, `actionsInitializer?`, `valued?`, `valueType?`, `defaultProps?`, `css?`, `wrapperCss?`, `typeName?`, `kind?`, `readOnly?`, `propsBindingTypes?`, `uncontrolledValue?`, `disabled?`, `dataBindingType?`, `features?`, `slotConditionResolvers?`): `Model`\<`T`\>

Creates component metadata for the form viewer.

Expand Down Expand Up @@ -116,6 +116,12 @@ the type of component data binding.

the component features that provide additional information about component's characteristic.

##### slotConditionResolvers?

`ReadonlyMap`\<`string`, (`source`, `parentProps`) => `boolean`\>

the condition resolvers keyed by slot name.

#### Returns

`Model`\<`T`\>
Expand Down Expand Up @@ -202,6 +208,14 @@ the name of the component property that stores the read-only flag.

***

### slotConditionResolvers?

> `readonly` `optional` **slotConditionResolvers?**: `ReadonlyMap`\<`string`, (`source`, `parentProps`) => `boolean`\>

the condition resolvers keyed by slot name.

***

### typeName?

> `readonly` `optional` **typeName?**: `string`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,36 @@ the properties of the component, which are available only inside Form Builder De

***

### slotConditionResolver?

> `readonly` `optional` **slotConditionResolver?**: (`source`, `parentProps`) => `boolean`

Evaluates the saved condition for this slot.

#### Parameters

##### source

`string`

the saved slot condition.

##### parentProps

`Record`\<`string`, `unknown`\>

the current parent component properties.

#### Returns

`boolean`

#### Inherited from

[`Annotation`](Annotation.md).[`slotConditionResolver`](Annotation.md#slotconditionresolver)

***

### type?

> `readonly` `optional` **type?**: keyof SchemaTypeMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,28 @@ the instance of the metadata property builder.

***

### withSlotConditionResolver()

> **withSlotConditionResolver**(`slotConditionResolver`): `this`

Registers a resolver for saved conditions on this slot.

#### Parameters

##### slotConditionResolver

(`source`, `parentProps`) => `boolean`

the resolver that evaluates the saved condition with the current parent properties.

#### Returns

`this`

the instance of the metadata property builder.

***

### create()

> `static` **create**\<`T`\>(`editor`): [`AnnotationBuilder`](AnnotationBuilder.md)\<`T`\>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,36 @@ the properties of the component, which are available only inside Form Builder De

***

### slotConditionResolver?

> `readonly` `optional` **slotConditionResolver?**: (`source`, `parentProps`) => `boolean`

Evaluates the saved condition for this slot.

#### Parameters

##### source

`string`

the saved slot condition.

##### parentProps

`Record`\<`string`, `unknown`\>

the current parent component properties.

#### Returns

`boolean`

#### Inherited from

[`Annotation`](Annotation.md).[`slotConditionResolver`](Annotation.md#slotconditionresolver)

***

### type?

> `readonly` `optional` **type?**: keyof SchemaTypeMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,36 @@ the properties of the component, which are available only inside Form Builder De

***

### slotConditionResolver?

> `readonly` `optional` **slotConditionResolver?**: (`source`, `parentProps`) => `boolean`

Evaluates the saved condition for this slot.

#### Parameters

##### source

`string`

the saved slot condition.

##### parentProps

`Record`\<`string`, `unknown`\>

the current parent component properties.

#### Returns

`boolean`

#### Inherited from

[`Annotation`](Annotation.md).[`slotConditionResolver`](Annotation.md#slotconditionresolver)

***

### type?

> `readonly` `optional` **type?**: keyof SchemaTypeMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: checkSlotCondition()

> **checkSlotCondition**(`childStore`, `parentProps`): `boolean`
> **checkSlotCondition**(`childStore`, `parentProps`, `parentModel?`): `boolean`

Performs the function of checking if the child component can be bound. **Internal use only.**

Expand All @@ -18,6 +18,12 @@ the child component settings.

the parent component properties.

### parentModel?

[`Model`](../classes/Model.md)\<`any`\>

the parent component model containing the slot resolvers.

## Returns

`boolean`
Expand Down
Loading