block.json
110 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/calculated-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "title": "Calculated Field", |
| 6 | "description": "Calculate and display your number values", |
| 7 | "icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M60 16H4C2.89543 16 2 16.8954 2 18V38C2 39.1046 2.89543 40 4 40H60C61.1046 40 62 39.1046 62 38V18C62 16.8954 61.1046 16 60 16ZM4 14C1.79086 14 0 15.7909 0 18V38C0 40.2091 1.79086 42 4 42H60C62.2091 42 64 40.2091 64 38V18C64 15.7909 62.2091 14 60 14H4Z\" fill=\"#162B40\"/><path d=\"M30.0333 40.0333H27.3667C26.9775 40.0333 26.6418 40.195 26.396 40.4408C26.1353 40.7015 26 41.0418 26 41.4V43.6C26 43.9557 26.1322 44.2795 26.3598 44.5325L26.395 44.5716L26.4342 44.6068C26.6871 44.8345 27.011 44.9667 27.3667 44.9667H30.0333V47.6333C30.0333 47.9915 30.1686 48.3318 30.4293 48.5925C30.6751 48.8383 31.0109 49 31.4 49H33.6C33.9754 49 34.3116 48.8484 34.5595 48.5928C34.8151 48.3449 34.9667 48.0087 34.9667 47.6333V44.9667H37.6333C37.9915 44.9667 38.3318 44.8314 38.5925 44.5707C38.8383 44.3249 39 43.9891 39 43.6V41.4C39 41.0246 38.8484 40.6884 38.5928 40.4405C38.3449 40.1849 38.0087 40.0333 37.6333 40.0333H34.9667V37.3667C34.9667 36.9913 34.8151 36.6551 34.5595 36.4072C34.3116 36.1516 33.9754 36 33.6 36H31.4C31.0109 36 30.6751 36.1617 30.4294 36.4075L31.1365 37.1146L30.4294 36.4075C30.1686 36.6682 30.0333 37.0085 30.0333 37.3667V40.0333Z\" fill=\"#4AF3BA\" stroke=\"#162B40\" stroke-width=\"2\"/><path d=\"M52.0688 45.9949L52.0688 45.9949L52.0743 46.0003C52.4373 46.3595 52.6155 46.7809 52.6155 47.3289C52.6155 48.0345 52.3912 48.4956 51.9978 48.833C51.5866 49.1856 50.9592 49.4211 49.9936 49.4211C49.0383 49.4211 48.4404 49.1544 48.0492 48.7441C47.6528 48.3284 47.3845 47.6705 47.3845 46.6184V45.6184H46.3845H44H43V46.6184C43 48.53 43.4997 50.1667 44.6052 51.4134L44.6051 51.4135L44.6112 51.4202C45.528 52.4355 46.7156 53.0671 48.1171 53.3503V55V56H49.1171H51.0247H52.0247V55V53.3438C53.3759 53.0668 54.5232 52.4931 55.4047 51.5761C56.4928 50.4535 57 48.9947 57 47.3026C57 46.2477 56.8 45.2769 56.3652 44.4197C55.9365 43.5574 55.2757 42.8331 54.4266 42.2374C53.5819 41.63 52.4558 41.1146 51.0945 40.6692C49.8425 40.2485 49.0609 39.8226 48.6377 39.4384C48.3044 39.1212 48.1063 38.6866 48.1063 38.0263C48.1063 37.2533 48.3177 36.7877 48.6213 36.4875L48.6214 36.4876L48.6271 36.4818C48.9248 36.1827 49.4162 35.9605 50.2642 35.9605C50.9576 35.9605 51.4386 36.1996 51.8128 36.6729C52.2087 37.1735 52.4608 37.9134 52.4608 39V40H53.4608H55.8324H56.8324V39C56.8324 37.0613 56.3974 35.4023 55.4108 34.1368C54.607 33.0966 53.5388 32.4155 52.2567 32.0765V30V29H51.2567H49.3362H48.3362V30V32.0453C47.0883 32.342 46.0271 32.9372 45.2014 33.8592L45.2014 33.8591L45.1979 33.863C44.1926 34.9973 43.7218 36.4265 43.7218 38.0658C43.7218 39.6897 44.2078 41.1066 45.2306 42.2368L45.2306 42.2368L45.2373 42.2441C46.244 43.3347 47.7621 44.1442 49.6705 44.7402C50.9292 45.1697 51.6832 45.6073 52.0688 45.9949Z\" fill=\"#4AF3BA\" stroke=\"#162B40\" stroke-width=\"2\"/></svg>", |
| 8 | "keywords": [ |
| 9 | "jetformbuilder", |
| 10 | "field", |
| 11 | "calculated" |
| 12 | ], |
| 13 | "textdomain": "jet-form-builder", |
| 14 | "supports": { |
| 15 | "customClassName": false, |
| 16 | "html": false |
| 17 | }, |
| 18 | "attributes": { |
| 19 | "separate_decimals": { |
| 20 | "type": "string", |
| 21 | "default": "." |
| 22 | }, |
| 23 | "separate_thousands": { |
| 24 | "type": "string", |
| 25 | "default": "" |
| 26 | }, |
| 27 | "calc_formula": { |
| 28 | "type": "string", |
| 29 | "default": "" |
| 30 | }, |
| 31 | "precision": { |
| 32 | "type": "number", |
| 33 | "default": 2 |
| 34 | }, |
| 35 | "calc_prefix": { |
| 36 | "type": "string", |
| 37 | "default": "", |
| 38 | "jfb": { |
| 39 | "shortcode": true |
| 40 | } |
| 41 | }, |
| 42 | "calc_suffix": { |
| 43 | "type": "string", |
| 44 | "default": "", |
| 45 | "jfb": { |
| 46 | "shortcode": true |
| 47 | } |
| 48 | }, |
| 49 | "calc_hidden": { |
| 50 | "type": "boolean", |
| 51 | "default": false |
| 52 | }, |
| 53 | "label": { |
| 54 | "type": "string", |
| 55 | "default": "", |
| 56 | "jfb": { |
| 57 | "shortcode": true |
| 58 | } |
| 59 | }, |
| 60 | "name": { |
| 61 | "type": "string", |
| 62 | "default": "field_name" |
| 63 | }, |
| 64 | "desc": { |
| 65 | "type": "string", |
| 66 | "default": "", |
| 67 | "jfb": { |
| 68 | "shortcode": true |
| 69 | } |
| 70 | }, |
| 71 | "default": { |
| 72 | "type": "string", |
| 73 | "default": "" |
| 74 | }, |
| 75 | "placeholder": { |
| 76 | "type": "string", |
| 77 | "default": "" |
| 78 | }, |
| 79 | "required": { |
| 80 | "type": "boolean", |
| 81 | "default": false |
| 82 | }, |
| 83 | "add_prev": { |
| 84 | "type": "boolean", |
| 85 | "default": false |
| 86 | }, |
| 87 | "prev_label": { |
| 88 | "type": "string", |
| 89 | "default": "", |
| 90 | "jfb": { |
| 91 | "shortcode": true |
| 92 | } |
| 93 | }, |
| 94 | "visibility": { |
| 95 | "type": "string", |
| 96 | "default": "" |
| 97 | }, |
| 98 | "class_name": { |
| 99 | "type": "string", |
| 100 | "default": "" |
| 101 | }, |
| 102 | "className": { |
| 103 | "type": "string", |
| 104 | "default": "" |
| 105 | } |
| 106 | }, |
| 107 | "usesContext": [ |
| 108 | "jet-forms/repeater-field--name" |
| 109 | ] |
| 110 | } |