{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "advadata/block-advanced-data-table",
  "version": "0.2.0",
  "title": "Advanced Data Table Block ",
  "category": "widgets",
  "icon": "grid-view",
  "description": "Create beautiful, responsive data tables with CSV import, sorting, filtering, pagination and extensive customization options.",
  "keywords": [
    "table",
    "data",
    "csv",
    "spreadsheet",
    "responsive",
    "sortable",
    "filterable"
  ],
  "example": {
    "attributes": {
      "headers": [
        "Product",
        "Price",
        "Rating",
        "Available",
        "Category"
      ],
      "rows": [
        [
          "Laptop Pro",
          "$1,299",
          "4.8/5",
          "In Stock",
          "Electronics"
        ],
        [
          "Tablet Max",
          "$899",
          "4.6/5",
          "Limited",
          "Electronics"
        ],
        [
          "Phone Plus",
          "$799",
          "4.7/5",
          "In Stock",
          "Electronics"
        ],
        [
          "Monitor 4K",
          "$449",
          "4.5/5",
          "In Stock",
          "Electronics"
        ],
        [
          "Keyboard Pro",
          "$129",
          "4.9/5",
          "In Stock",
          "Accessories"
        ]
      ],
      "tableStyle": "modern",
      "hasSearch": true,
      "hasPagination": true,
      "pageSize": 25,
      "enableDataTable": true
    }
  },
  "attributes": {
    "tableId": {
      "type": "string",
      "default": ""
    },
    "headers": {
      "type": "array",
      "default": [
        "Column 1",
        "Column 2",
        "Column 3"
      ],
      "items": {
        "type": "string"
      },
      "maxItems": 20
    },
    "rows": {
      "type": "array",
      "default": [
        [
          "Row 1 Col 1",
          "Row 1 Col 2",
          "Row 1 Col 3"
        ],
        [
          "Row 2 Col 1",
          "Row 2 Col 2",
          "Row 2 Col 3"
        ]
      ],
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "maxItems": 1000
    },
    "columnWidths": {
      "type": "array",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "tableStyle": {
      "type": "string",
      "default": "default",
      "enum": [
        "default",
        "modern",
        "striped",
        "bordered",
        "minimal",
        "datatable",
        "cards"
      ]
    },
    "colorScheme": {
      "type": "string",
      "default": "blue",
      "enum": [
        "blue",
        "green",
        "red",
        "purple",
        "orange",
        "gray"
      ]
    },
    "hasSearch": {
      "type": "boolean",
      "default": true
    },
    "hasSorting": {
      "type": "boolean",
      "default": true
    },
    "hasPagination": {
      "type": "boolean",
      "default": true
    },
    "pageSize": {
      "type": "number",
      "default": 10,
      "minimum": 1,
      "maximum": 100
    },
    "isResponsive": {
      "type": "boolean",
      "default": true
    },
    "showExport": {
      "type": "boolean",
      "default": false
    },
    "stickyHeader": {
      "type": "boolean",
      "default": false
    },
    "enableDataTable": {
      "type": "boolean",
      "default": true
    },
    "showRowNumbers": {
      "type": "boolean",
      "default": true
    },
    "rowNumberStart": {
      "type": "number",
      "default": 1,
      "minimum": 0,
      "maximum": 1000
    },
    "enableColumnReorder": {
      "type": "boolean",
      "default": false
    },
    "enableRowSelection": {
      "type": "boolean",
      "default": false
    },
    "showFooter": {
      "type": "boolean",
      "default": false
    },
    "tableWidth": {
      "type": "string",
      "default": "100%"
    },
    "tableHeight": {
      "type": "string",
      "default": "auto"
    },
    "headerBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "headerTextColor": {
      "type": "string",
      "default": ""
    },
    "rowBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "rowTextColor": {
      "type": "string",
      "default": ""
    },
    "evenRowColor": {
      "type": "string",
      "default": ""
    },
    "oddRowColor": {
      "type": "string",
      "default": ""
    },
    "borderColor": {
      "type": "string",
      "default": ""
    },
    "hoverColor": {
      "type": "string",
      "default": ""
    },
    "csvData": {
      "type": "string",
      "default": ""
    },
    "cacheKey": {
      "type": "string",
      "default": ""
    },
    "lastModified": {
      "type": "number",
      "default": 0
    },
    "version": {
      "type": "string",
      "default": "0.2.0"
    }
  },
  "providesContext": {
    "tableId": "tableId",
    "tableData": "rows",
    "tableHeaders": "headers"
  },
  "supports": {
    "html": false,
    "align": [
      "wide",
      "full"
    ],
    "anchor": true,
    "className": true,
    "customClassName": true,
    "spacing": {
      "margin": true,
      "padding": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true
    },
    "color": {
      "background": true,
      "text": true,
      "link": false
    }
  },
  "textdomain": "advanced-data-table-block",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}