block.json
97 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/number-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "field", |
| 8 | "media", |
| 9 | "image", |
| 10 | "file" |
| 11 | ], |
| 12 | "textdomain": "jet-form-builder", |
| 13 | "title": "Number Field", |
| 14 | "icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"64\" height=\"64\" fill=\"white\"/><rect x=\"1\" y=\"15\" width=\"62\" height=\"26\" rx=\"3\" stroke=\"#162B40\" fill=\"white\" stroke-width=\"2\"/><path d=\"M44 16H60C61.1046 16 62 16.8954 62 18V38C62 39.1046 61.1046 40 60 40H44V16Z\" fill=\"#4EFEC3\"/><path d=\"M53.59 20.2409C53.2263 19.8772 52.6817 19.9692 52.318 20.333C51.9542 20.6967 51.9091 21.1944 52.2728 21.5581L55.41 24.6953C55.7737 25.0591 56.3635 25.0591 56.7272 24.6953C57.0909 24.3316 57.0909 23.7419 56.7272 23.3781L53.59 20.2409Z\" fill=\"#162B40\"/><path d=\"M52.41 20.2409C52.7737 19.8772 53.2949 19.9458 53.6586 20.3095C54.0223 20.6733 54.0909 21.1944 53.7272 21.5581L50.59 24.6953C50.2263 25.0591 49.6365 25.0591 49.2728 24.6953C48.9091 24.3316 48.9091 23.7419 49.2728 23.3781L52.41 20.2409Z\" fill=\"#162B40\"/><path d=\"M53.59 35.7272C53.2263 36.091 52.7094 36.0266 52.3456 35.6628C51.9819 35.2991 51.9091 34.7738 52.2728 34.41L55.41 31.2728C55.7737 30.9091 56.3635 30.9091 56.7272 31.2728C57.0909 31.6366 57.0909 32.2263 56.7272 32.59L53.59 35.7272Z\" fill=\"#162B40\"/><path d=\"M52.41 35.7272C52.7737 36.091 53.2906 36.0266 53.6544 35.6629C54.0181 35.2991 54.0909 34.7738 53.7272 34.41L50.59 31.2728C50.2263 30.9091 49.6365 30.9091 49.2728 31.2728C48.9091 31.6366 48.9091 32.2263 49.2728 32.59L52.41 35.7272Z\" fill=\"#162B40\"/><path d=\"M13.002 29.2539H14.1299V30.8467H13.002V33H11.0264V30.8467H6.94531L6.85645 29.6025L11.0059 23.0469H13.002V29.2539ZM8.8252 29.2539H11.0264V25.7402L10.8965 25.9658L8.8252 29.2539Z\" fill=\"#162B40\"/><path d=\"M43 16V40.5\" stroke=\"#162B40\" stroke-width=\"2\"/></svg>", |
| 15 | "supports": { |
| 16 | "customClassName": false, |
| 17 | "html": false |
| 18 | }, |
| 19 | "attributes": { |
| 20 | "value": { |
| 21 | "type": "object", |
| 22 | "default": {} |
| 23 | }, |
| 24 | "validation": { |
| 25 | "type": "object", |
| 26 | "default": {} |
| 27 | }, |
| 28 | "min": { |
| 29 | "type": "number", |
| 30 | "default": "" |
| 31 | }, |
| 32 | "max": { |
| 33 | "type": "number", |
| 34 | "default": "" |
| 35 | }, |
| 36 | "step": { |
| 37 | "type": "number", |
| 38 | "default": "" |
| 39 | }, |
| 40 | "label": { |
| 41 | "type": "string", |
| 42 | "default": "", |
| 43 | "jfb": { |
| 44 | "shortcode": true |
| 45 | } |
| 46 | }, |
| 47 | "name": { |
| 48 | "type": "string", |
| 49 | "default": "field_name" |
| 50 | }, |
| 51 | "desc": { |
| 52 | "type": "string", |
| 53 | "default": "", |
| 54 | "jfb": { |
| 55 | "shortcode": true |
| 56 | } |
| 57 | }, |
| 58 | "default": { |
| 59 | "type": "string", |
| 60 | "default": "" |
| 61 | }, |
| 62 | "placeholder": { |
| 63 | "type": "string", |
| 64 | "default": "" |
| 65 | }, |
| 66 | "required": { |
| 67 | "type": "boolean", |
| 68 | "default": false |
| 69 | }, |
| 70 | "add_prev": { |
| 71 | "type": "boolean", |
| 72 | "default": false |
| 73 | }, |
| 74 | "prev_label": { |
| 75 | "type": "string", |
| 76 | "default": "", |
| 77 | "jfb": { |
| 78 | "shortcode": true |
| 79 | } |
| 80 | }, |
| 81 | "visibility": { |
| 82 | "type": "string", |
| 83 | "default": "" |
| 84 | }, |
| 85 | "class_name": { |
| 86 | "type": "string", |
| 87 | "default": "" |
| 88 | }, |
| 89 | "className": { |
| 90 | "type": "string", |
| 91 | "default": "" |
| 92 | } |
| 93 | }, |
| 94 | "usesContext": [ |
| 95 | "jet-forms/repeater-field--name" |
| 96 | ] |
| 97 | } |