{
  "name": "table-display",
  "version": "21.0.3",
  "jetVersion": "^21.0.3",
  "type": "composite",
  "pack": "oj-c",
  "dependencyScope": "runtime",
  "license": "https://opensource.org/licenses/UPL",
  "implements": [
    "CTableDisplayElement"
  ],
  "displayName": "TableDisplay",
  "description": "A table-display component displays data items in a tabular format.",
  "help": "oj-c.TableDisplay.html",
  "main": "oj-c/table-display",
  "status": [
    {
      "type": "production",
      "since": "21.0.0"
    }
  ],
  "requirements": [
    {
      "type": "anyOf",
      "label": "accessibility",
      "properties": [
        "aria-label",
        "aria-labelledby"
      ]
    }
  ],
  "extension": {
    "catalog": {
      "category": "Collections"
    },
    "vbdt": {
      "module": "oj-c/table-display",
      "defaultColumns": 12,
      "minColumns": 2
    },
    "oracle": {
      "uxSpecs": [
        "table"
      ],
      "icon": "oj-ux-ico-tables-basic"
    }
  },
  "propertyLayout": [
    {
      "propertyGroup": "common",
      "items": [
        "layout",
        "row.accessibleRowHeader",
        "horizontalGridVisible",
        "verticalGridVisible"
      ]
    },
    {
      "propertyGroup": "data",
      "items": [
        "data",
        "columns",
        "columnOrder",
        "columnWidths"
      ]
    }
  ],
  "since": "21.0.0",
  "properties": {
    "layout": {
      "type": "string",
      "propertyEditorValues": {
        "contents": {
          "description": "When specified, the initial column sizes are determined by the contents of the data. Does not require an overall width set on table-display. Can have performance issues when large numbers of columns and/or rows are initially rendered.",
          "displayName": "Contents"
        },
        "fixed": {
          "description": "When specified, the initial column sizes are determined by column weights. Requires an overall width set on table-display (width='100%', width='200rem', etc.) Very performant when rendering large numbers of columns and/or rows.",
          "displayName": "Fixed"
        }
      },
      "description": "The column sizing method used for table-display columns.",
      "displayName": "Layout",
      "help": "#layout",
      "enumValues": [
        "fixed",
        "contents"
      ],
      "value": "contents"
    },
    "data": {
      "type": "DataProvider",
      "description": "The data provider for table-display.",
      "displayName": "Data",
      "help": "#data"
    },
    "columns": {
      "type": "object",
      "description": "The set of columns that can be displayed in table-display.",
      "displayName": "Columns",
      "help": "#columns",
      "extension": {
        "vbdt": {
          "keyedProperties": {
            "keys": {
              "type": "string"
            },
            "values": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string|number",
                  "displayName": "Field",
                  "description": "Specifies the field attribute of the row item data that is mapped to the column."
                },
                "headerText": {
                  "type": "string",
                  "displayName": "Header Text",
                  "description": "Text to display in the header cell of the column."
                },
                "footerText": {
                  "type": "string",
                  "displayName": "Footer Text",
                  "description": "Text to display in the footer cell of the column"
                },
                "template": {
                  "type": "string",
                  "description": "The name of the slot used to specify the template for rendering data cells in the column. See the Help documentation for more information.",
                  "displayName": "Template",
                  "dynamicSlotDef": "CellTemplateContext"
                },
                "headerTemplate": {
                  "type": "string",
                  "description": "The name of the slot used to specify the template for rendering the header cell in the column. See the Help documentation for more information.",
                  "displayName": "Header Template",
                  "dynamicSlotDef": "HeaderTemplateContext"
                },
                "footerTemplate": {
                  "type": "string",
                  "description": "The name of the slot used to specify the template for rendering the footer cell in the column. See the Help documentation for more information.",
                  "displayName": "Footer Template",
                  "dynamicSlotDef": "FooterTemplateContext"
                },
                "maxWidth": {
                  "type": "number",
                  "description": "The maximum width in pixels of the column. See the Help documentation for more information.",
                  "displayName": "Max Width"
                },
                "minWidth": {
                  "type": "number",
                  "description": "The minimum width in pixels of the column. See the Help documentation for more information.",
                  "displayName": "Min Width"
                },
                "weight": {
                  "type": "number",
                  "description": "Specifies the relative sizing weight of the column. See the Help documentation for more information.",
                  "displayName": "Weight"
                },
                "padding": {
                  "type": "string|object|function",
                  "description": "Specifies padding for data cells in this column.",
                  "displayName": "Padding",
                  "propertyEditorValues": {
                    "disabled": {},
                    "enabled": {}
                  }
                },
                "headerPadding": {
                  "type": "string|object",
                  "description": "Specifies padding for the header cell in this column.",
                  "displayName": "Header Padding",
                  "propertyEditorValues": {
                    "disabled": {},
                    "enabled": {}
                  }
                },
                "footerPadding": {
                  "type": "string|object",
                  "description": "Specifies padding for the footer cell in this column.",
                  "displayName": "Footer Padding",
                  "propertyEditorValues": {
                    "disabled": {},
                    "enabled": {}
                  }
                },
                "sticky": {
                  "type": "string",
                  "description": "Whether this column should be prevented from scrolling out of view.",
                  "displayName": "Sticky",
                  "enumValues": [
                    "disabled",
                    "enabled"
                  ]
                },
                "sortable": {
                  "type": "string",
                  "description": "Enable or disable sorting along the column headers.",
                  "displayName": "Sortable",
                  "enumValues": [
                    "disabled",
                    "enabled"
                  ]
                },
                "horizontalAlignment": {
                  "type": "string",
                  "description": "The horizontal alignment of this column.",
                  "displayName": "Horizontal Alignment",
                  "enumValues": [
                    "start",
                    "right",
                    "end",
                    "left",
                    "center"
                  ]
                },
                "alignment": {
                  "type": "object",
                  "description": "The alignment specified for data cells in this column.",
                  "displayName": "Alignment",
                  "properties": {
                    "horizontal": {
                      "type": "string",
                      "enumValues": [
                        "start",
                        "right",
                        "end",
                        "left",
                        "center"
                      ]
                    },
                    "vertical": {
                      "type": "string",
                      "enumValues": [
                        "top",
                        "bottom",
                        "center"
                      ]
                    }
                  }
                },
                "headerAlignment": {
                  "type": "object",
                  "description": "The alignment specified for the header cell in this column.",
                  "displayName": "Header Alignment",
                  "properties": {
                    "horizontal": {
                      "type": "string",
                      "enumValues": [
                        "start",
                        "right",
                        "end",
                        "left",
                        "center"
                      ]
                    },
                    "vertical": {
                      "type": "string",
                      "enumValues": [
                        "top",
                        "bottom",
                        "center"
                      ]
                    }
                  }
                },
                "footerAlignment": {
                  "type": "object",
                  "description": "The alignment specified for the footer cell in this column.",
                  "displayName": "Footer Alignment",
                  "properties": {
                    "horizontal": {
                      "type": "string",
                      "enumValues": [
                        "start",
                        "right",
                        "end",
                        "left",
                        "center"
                      ]
                    },
                    "vertical": {
                      "type": "string",
                      "enumValues": [
                        "top",
                        "bottom",
                        "center"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "row": {
      "type": "object",
      "description": "A subset of attributes for controlling certain behaviors on a per row basis.",
      "displayName": "Row",
      "help": "#row",
      "properties": {
        "accessibleRowHeader": {
          "type": "string|Array<string>|function",
          "description": "The column key(s) to be used as the accessible row header(s) for assistive technologies. See the Help documentation for more information.",
          "displayName": "Accessible Row Header",
          "help": "#row.accessibleRowHeader"
        }
      }
    },
    "horizontalGridVisible": {
      "type": "string",
      "propertyEditorValues": {
        "enabled": {
          "description": "Display horizontal gridlines",
          "displayName": "Enabled"
        },
        "disabled": {
          "description": "Do not display horizontal gridlines",
          "displayName": "Disabled"
        }
      },
      "description": "Controls the display of table-display horizontal gridlines.",
      "displayName": "Horizontal Grid Visible",
      "help": "#horizontalGridVisible",
      "enumValues": [
        "disabled",
        "enabled"
      ],
      "value": "enabled"
    },
    "verticalGridVisible": {
      "type": "string",
      "propertyEditorValues": {
        "enabled": {
          "description": "Display vertical gridlines",
          "displayName": "Enabled"
        },
        "disabled": {
          "description": "Do not display vertical gridlines",
          "displayName": "Disabled"
        }
      },
      "description": "Controls the display of table-display vertical gridlines.",
      "displayName": "Vertical Grid Visible",
      "help": "#verticalGridVisible",
      "enumValues": [
        "disabled",
        "enabled"
      ],
      "value": "disabled"
    },
    "columnOrder": {
      "type": "Array<string>",
      "description": "Display and order of columns. See the Help documentation for more information.",
      "displayName": "Column Order",
      "help": "#columnOrder"
    },
    "columnWidths": {
      "type": "object",
      "description": "The desired widths of table-display columns. A record mapping column keys to numbers representing pixel widths for each column.",
      "displayName": "Column Widths",
      "help": "#columnWidths",
      "extension": {
        "vbdt": {
          "keyedProperties": {
            "keys": {
              "type": "string"
            },
            "values": {
              "type": "number"
            }
          }
        }
      }
    },
    "sortCriteria": {
      "type": "Array<object>",
      "description": "Set of sort criteria representing the sort state of this Table's columns.",
      "displayName": "Sort Criteria",
      "help": "#sortCriteria",
      "writeback": true
    }
  },
  "slots": {
    "cellTemplate": {
      "description": "Named slot for table-display's global cell template. See the Help documentation for more information.",
      "displayName": "Cell Template",
      "help": "#cellTemplate",
      "data": {
        "columnKey": {
          "type": "string"
        },
        "item": {
          "type": "object",
          "properties": {
            "data": {
              "type": "any"
            },
            "metadata": {
              "type": "object",
              "properties": {
                "indexFromParent": {
                  "type": "number"
                },
                "isLeaf": {
                  "type": "boolean"
                },
                "key": {
                  "type": "string|number"
                },
                "message": {
                  "type": "object",
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "severity": {
                      "type": "number|string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  }
                },
                "parentKey": {
                  "type": "string|number"
                },
                "suggestion": {
                  "type": "object"
                },
                "treeDepth": {
                  "type": "number"
                }
              }
            }
          }
        },
        "data": {
          "type": "any"
        }
      }
    },
    "headerTemplate": {
      "description": "Named slot for table-display's global header template. See the Help documentation for more information.",
      "displayName": "Header Template",
      "help": "#headerTemplate",
      "data": {
        "key": {
          "type": "string"
        },
        "headerText": {
          "type": "string"
        }
      }
    },
    "footerTemplate": {
      "description": "Named slot for table-display's global footer template. See the Help documentation for more information.",
      "displayName": "Footer Template",
      "help": "#footerTemplate",
      "data": {
        "key": {
          "type": "string"
        },
        "footerText": {
          "type": "string"
        }
      }
    },
    "noData": {
      "description": "The template for rendering content when table-display has an empty data set. See the Help documentation for more information.",
      "displayName": "No Data",
      "help": "#noData",
      "templateSlotAlias": "noDataTemplate",
      "data": {}
    }
  },
  "dynamicSlots": {
    "CellTemplateContext": {
      "description": "A set of dynamic templates for rendering table-display content.",
      "displayName": "Dynamic Template Slots",
      "help": "#dynamicTemplates",
      "data": {
        "columnKey": {
          "type": "string"
        },
        "item": {
          "type": "object",
          "properties": {
            "data": {
              "type": "any"
            },
            "metadata": {
              "type": "object",
              "properties": {
                "indexFromParent": {
                  "type": "number"
                },
                "isLeaf": {
                  "type": "boolean"
                },
                "key": {
                  "type": "string|number"
                },
                "message": {
                  "type": "object",
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "severity": {
                      "type": "number|string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  }
                },
                "parentKey": {
                  "type": "string|number"
                },
                "suggestion": {
                  "type": "object"
                },
                "treeDepth": {
                  "type": "number"
                }
              }
            }
          }
        },
        "data": {
          "type": "any"
        }
      }
    },
    "HeaderTemplateContext": {
      "description": "A set of dynamic templates for rendering table-display content.",
      "displayName": "Dynamic Template Slots",
      "help": "#dynamicTemplates",
      "data": {
        "key": {
          "type": "string"
        },
        "headerText": {
          "type": "string"
        }
      }
    },
    "FooterTemplateContext": {
      "description": "A set of dynamic templates for rendering table-display content.",
      "displayName": "Dynamic Template Slots",
      "help": "#dynamicTemplates",
      "data": {
        "key": {
          "type": "string"
        },
        "footerText": {
          "type": "string"
        }
      }
    }
  },
  "methods": {
    "setProperty": {
      "description": "Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.",
      "help": "#setProperty",
      "params": [
        {
          "name": "property",
          "description": "The property name to set. Supports dot notation for subproperty access.",
          "type": "string"
        },
        {
          "name": "value",
          "description": "The new value to set the property to.",
          "type": "any"
        }
      ],
      "return": "void"
    },
    "getProperty": {
      "description": "Retrieves the value of a property or a subproperty.",
      "help": "#getProperty",
      "params": [
        {
          "name": "property",
          "description": "The property name to get. Supports dot notation for subproperty access.",
          "type": "string"
        }
      ],
      "return": "any"
    },
    "setProperties": {
      "description": "Performs a batch set of properties.",
      "help": "#setProperties",
      "params": [
        {
          "name": "properties",
          "description": "An object containing the property and value pairs to set.",
          "type": "object"
        }
      ],
      "return": "void"
    }
  }
}