1.15.0 • Published 1 year ago
@forter/logical-conditions v1.15.0
fc-logical-conditions
An element by Forter
Usage
<script>
import '@forter/logical-conditions';
</script>
<fc-logical-conditions>
</fc-logical-conditions>
Properties
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
actionResults | actionResults | any[] | ||
addValueToList | ({ optionalValues, currentDepth, index, previousIndex }: { optionalValues: any; currentDepth: any; index: any; previousIndex: any; }) => void | |||
attributes | attributes | {} | {} | |
conditionsSchema | conditionsSchema | {} | {} | |
getDefaultValuesForCheckboxSearch | (values: any, valuesForCheckboxSearch: any) => any[] | |||
getSingleConditionElementsByAttributeTargetId | (targetId: any) => { operationSelectionTargetSelect: any; valueSelectionTargetSelect: any; contextualMenuTarget: any; targetElement: any; } | |||
getValuesForCheckboxSearch | (optionalValues: any) => any | |||
isEditMode | isEditMode | boolean | false | If the element is in edit mode |
label | label | string | "" | |
maximumDepth | maximumDepth | number | 2 | |
onActionChange | (event: any) => void | |||
onAttributeFocus | (event: any) => void | |||
onAttributeFocusOut | (event: any) => void | |||
onLogicalConditionChange | (event: any, optionalValues: any) => void | |||
onValueChange | ({ currentDepth, conditionIndex, previousIndex, listValueIndex, newValue, changeType, optionalValues }: { currentDepth: any; conditionIndex: any; previousIndex: any; listValueIndex: any; newValue: any; changeType: any; optionalValues: any; }) => void | |||
renderAddingConditionButton | () => TemplateResult | |||
renderConditionContextualMenu | ({ currentDepth, index, previousIndex, id }: { currentDepth: any; index: any; previousIndex: any; id: any; }) => TemplateResult | |||
renderConditionType | (index: any, currentDepth: any, currentConditionType: any, previousConditionType: any, previousIndex: any) => TemplateResult | |||
renderConditionValue | ({ value, optionalValues, type, currentDepth, index, previousIndex }: any) => TemplateResult \| undefined | |||
renderConditions | () => TemplateResult | |||
renderConditionsBody | () => TemplateResult | |||
renderHeader | () => TemplateResult | |||
renderListConditionValue | (values: any, optionalValues: any, currentDepth: any, index: any, previousIndex: any) => TemplateResult | |||
renderListWithOptionalValues | (values: any, optionalValues: any, currentDepth: any, index: any, previousIndex: any) => TemplateResult | |||
renderListWithoutOptionalValues | (values: any, currentDepth: any, index: any, previousIndex: any) => TemplateResult | |||
renderOperatorSelectionByType | ({ type, defaultOperator, currentDepth, index, previousIndex, optionalValues }: any) => TemplateResult \| undefined | |||
renderResultAction | () => TemplateResult | |||
renderRootConditionHeader | () => TemplateResult | |||
renderSingleCondition | ({ singleCondition, index, currentConditionType, currentDepth, previousConditionType, previousIndex }: any) => TemplateResult \| undefined | A single condition can be either 'regular' condition or nested one, with other conditions in it.Example to nested condition is: singleCondition = {or: ...}Nested condition type can be only AND or OR.In case of a nested condition we will render recursively renderSingleCondition in order to get its all children (may be more than 2 depth). | ||
renderSingleConditionValue | (value: any, optionalValues: any, currentDepth: any, index: any, previousIndex: any) => TemplateResult \| undefined | |||
rootOption | rootOption | string | ||
selectedAction | selectedAction | any | ||
setSingleConditionTargetsNewStyle | ({ operationSelectionTargetSelect, valueSelectionTargetSelect, contextualMenuTarget, targetElement, operationSelectionWidth, valueSelectionWidth, attributeSelectionWidth, contextualOpacity }: { operationSelectionTargetSelect: any; valueSelectionTargetSelect: any; contextualMenuTarget: any; targetElement: any; operat... | |||
updateConditionsSchema | (newSchema: any) => void |
CSS Custom Properties
Property | Description |
---|---|
--fc-logical-conditions-disabled-color | disabled color. example: gray |
1.15.0
1 year ago
1.14.0
1 year ago
1.13.2
1 year ago
1.13.1
1 year ago
1.13.0
1 year ago
1.11.2
1 year ago
1.10.3
1 year ago
1.12.0
1 year ago
1.11.1
1 year ago
1.10.2
1 year ago
1.9.1
1 year ago
1.9.0
1 year ago
1.8.0
2 years ago
1.7.0
2 years ago
1.5.2
2 years ago
1.6.0
2 years ago
1.5.1
2 years ago
1.11.0
1 year ago
1.10.1
1 year ago
1.10.0
1 year ago
1.4.5
2 years ago
1.4.4
2 years ago
1.4.3
2 years ago
1.4.2
2 years ago
1.5.0
2 years ago
1.4.1
2 years ago
1.2.0
2 years ago
1.3.3
2 years ago
1.4.0
2 years ago
1.1.3
2 years ago
1.3.0
2 years ago
1.2.1
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago