PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.1.1
JetFormBuilder — Dynamic Blocks Form Builder v3.1.1
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / assets / src / package / validation / components / ValidationMetaMessage.js
jetformbuilder / assets / src / package / validation / components Last commit date
AdvancedRuleItem.js 2 years ago AdvancedRuleModalItem.js 2 years ago AdvancedRulesIsEmpty.js 2 years ago AdvancedRulesList.js 2 years ago AdvancedRulesModal.js 2 years ago ChooseRelatedField.js 2 years ago EditAdvancedRulesButton.js 2 years ago EditRulesModalContext.js 2 years ago HumanReadableRule.js 2 years ago ValidationBlockMessage.js 2 years ago ValidationMetaMessage.js 2 years ago ValidationToggleGroup.js 2 years ago
ValidationMetaMessage.js
53 lines
1 import getItemByName from '../helpers/getItemByName';
2
3 const {
4 TextControl,
5 Tooltip,
6 } = wp.components;
7
8 function ValidationMetaMessage( {
9 message,
10 update,
11 value = null,
12 help = null,
13 ...props
14 } ) {
15 const current = getItemByName( message.id );
16
17 return <div { ...props }>
18 <label
19 htmlFor={ message.id }
20 className={ 'jet-fb flex jc-space-between' }
21 >
22 <span>{ current.label }</span>
23 <span className={ 'jet-fb flex gap-1em' }>
24 { message.blocks.map( block => <span
25 key={ 'message_block_item' + block.title }
26 className="jet-fb-validation-messages-item-heading-pair__icon"
27 >
28 <Tooltip
29 text={ block.title }
30 delay={ 200 }
31 position={ 'top center' }
32 >
33 <div>{ block.icon }</div>
34 </Tooltip>
35 </span> ) }
36 </span>
37 </label>
38 <TextControl
39 id={ message.id }
40 key={ 'validation_message_' + message.id }
41 help={ help ?? current?.help }
42 value={ value ?? current?.initial }
43 onChange={ value => update( prev => (
44 {
45 ...prev,
46 [ message.id ]: value,
47 }
48 ) ) }
49 />
50 </div>;
51 }
52
53 export default ValidationMetaMessage;