block.json
95 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/date-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "field", |
| 8 | "date" |
| 9 | ], |
| 10 | "textdomain": "jet-form-builder", |
| 11 | "supports": { |
| 12 | "customClassName": false, |
| 13 | "html": false |
| 14 | }, |
| 15 | "title": "Date Field", |
| 16 | "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\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"31\" y=\"32.2\" width=\"26\" height=\"28.8\" rx=\"3\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><path d=\"M31 35.2C31 33.5431 32.3431 32.2 34 32.2H54C55.6569 32.2 57 33.5431 57 35.2V43.4H31V35.2Z\" fill=\"#4AF3BA\" stroke=\"#162B40\" stroke-width=\"2\"/><path d=\"M36.4615 30C36.4615 29.4477 36.9092 29 37.4615 29H37.6154C38.1676 29 38.6154 29.4477 38.6154 30V34.6C38.6154 35.1523 38.1676 35.6 37.6154 35.6H37.4615C36.9092 35.6 36.4615 35.1523 36.4615 34.6V30Z\" fill=\"#162B40\"/><path d=\"M49.3846 30C49.3846 29.4477 49.8323 29 50.3846 29H50.5384C51.0907 29 51.5384 29.4477 51.5384 30V34.6C51.5384 35.1523 51.0907 35.6 50.5384 35.6H50.3846C49.8323 35.6 49.3846 35.1523 49.3846 34.6V30Z\" fill=\"#162B40\"/></svg>", |
| 17 | "attributes": { |
| 18 | "value": { |
| 19 | "type": "object", |
| 20 | "default": {} |
| 21 | }, |
| 22 | "validation": { |
| 23 | "type": "object", |
| 24 | "default": {} |
| 25 | }, |
| 26 | "min": { |
| 27 | "type": "string", |
| 28 | "default": "", |
| 29 | "jfb": { |
| 30 | "macro": true, |
| 31 | "dynamic": true |
| 32 | } |
| 33 | }, |
| 34 | "max": { |
| 35 | "type": "string", |
| 36 | "default": "" |
| 37 | }, |
| 38 | "is_timestamp": { |
| 39 | "type": "boolean", |
| 40 | "default": false |
| 41 | }, |
| 42 | "label": { |
| 43 | "type": "string", |
| 44 | "default": "", |
| 45 | "jfb": { |
| 46 | "shortcode": true |
| 47 | } |
| 48 | }, |
| 49 | "name": { |
| 50 | "type": "string", |
| 51 | "default": "field_name" |
| 52 | }, |
| 53 | "desc": { |
| 54 | "type": "string", |
| 55 | "default": "", |
| 56 | "jfb": { |
| 57 | "shortcode": true |
| 58 | } |
| 59 | }, |
| 60 | "default": { |
| 61 | "type": "string", |
| 62 | "default": "" |
| 63 | }, |
| 64 | "required": { |
| 65 | "type": "boolean", |
| 66 | "default": false |
| 67 | }, |
| 68 | "add_prev": { |
| 69 | "type": "boolean", |
| 70 | "default": false |
| 71 | }, |
| 72 | "prev_label": { |
| 73 | "type": "string", |
| 74 | "default": "", |
| 75 | "jfb": { |
| 76 | "shortcode": true |
| 77 | } |
| 78 | }, |
| 79 | "visibility": { |
| 80 | "type": "string", |
| 81 | "default": "" |
| 82 | }, |
| 83 | "class_name": { |
| 84 | "type": "string", |
| 85 | "default": "" |
| 86 | }, |
| 87 | "className": { |
| 88 | "type": "string", |
| 89 | "default": "" |
| 90 | } |
| 91 | }, |
| 92 | "usesContext": [ |
| 93 | "jet-forms/repeater-field--name" |
| 94 | ] |
| 95 | } |