{
  "name": "train",
  "version": "21.0.3",
  "jetVersion": "^21.0.3",
  "type": "composite",
  "pack": "oj-c",
  "dependencyScope": "runtime",
  "license": "https://opensource.org/licenses/UPL",
  "implements": [
    "CTrainElement"
  ],
  "description": "A train allows navigation between different steps of a process.",
  "displayName": "Train",
  "help": "oj-c.Train.html",
  "main": "oj-c/train",
  "status": [
    {
      "type": "supersedes",
      "since": "21.0.0",
      "value": [
        "oj-train"
      ]
    }
  ],
  "extension": {
    "catalog": {
      "category": "Controls"
    },
    "vbdt": {
      "module": "oj-c/train"
    },
    "oracle": {
      "icon": "oj-ux-ico-train",
      "uxSpecs": [
        "train"
      ]
    }
  },
  "since": "21.0.0",
  "properties": {
    "steps": {
      "type": "Array<object>",
      "description": "An array of steps for the train",
      "displayName": "Steps",
      "help": "#steps",
      "extension": {
        "vbdt": {
          "itemProperties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "disabled": {
              "type": "boolean"
            },
            "messageType": {
              "type": "string|null",
              "enumValues": [
                "confirmation",
                "error",
                "info",
                "warning",
                "fatal"
              ]
            }
          }
        }
      },
      "value": []
    },
    "selectedStep": {
      "type": "string",
      "description": "The id of the selected step",
      "displayName": "Selected Step",
      "help": "#selectedStep",
      "writeback": true
    },
    "visited": {
      "type": "Array<string>",
      "description": "The ids of the visited steps.",
      "displayName": "Visited",
      "help": "#visited",
      "writeback": true,
      "value": []
    },
    "width": {
      "type": "number|string",
      "description": "Specifies the component style width.",
      "displayName": "Width",
      "help": "#width"
    }
  },
  "events": {
    "ojBeforeSelect": {
      "cancelable": true,
      "description": "Triggered before a step is selected. Cancel to prevent selection.",
      "displayName": "Before Select",
      "help": "#event:beforeSelect",
      "detail": {
        "accept": {
          "description": "This method can be called with an application-created Promise to cancel this event asynchronously.  The Promise should be resolved or rejected to accept or cancel the event, respectively.",
          "type": "function"
        },
        "id": {
          "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"
    }
  }
}