{
  "name": "input-search",
  "version": "21.0.3",
  "jetVersion": "^21.0.3",
  "type": "composite",
  "pack": "oj-c",
  "dependencyScope": "runtime",
  "license": "https://opensource.org/licenses/UPL",
  "implements": [
    "CInputSearchElement"
  ],
  "displayName": "Input Search",
  "description": "An Input Search is an input field that the user can type search text into.",
  "help": "oj-c.InputSearch.html",
  "main": "oj-c/input-search",
  "since": "21.0.0",
  "status": [
    {
      "type": "supersedes",
      "since": "21.0.0",
      "value": [
        "oj-input-search"
      ]
    }
  ],
  "requirements": [
    {
      "type": "not",
      "label": "accessibility",
      "properties": [
        "aria-label",
        "aria-labelledby"
      ]
    }
  ],
  "extension": {
    "catalog": {
      "category": "Forms"
    },
    "oracle": {
      "icon": "oj-ux-ico-input-search",
      "uxSpecs": [
        "input-search"
      ]
    },
    "vbdt": {
      "defaultColumns": 6,
      "minColumns": 2,
      "module": "oj-c/input-search"
    }
  },
  "propertyLayout": [
    {
      "propertyGroup": "common",
      "items": [
        "autocomplete",
        "placeholder",
        "variant",
        "width",
        "maxWidth"
      ]
    },
    {
      "propertyGroup": "data",
      "items": [
        "suggestions",
        "suggestionItemText",
        "value"
      ]
    }
  ],
  "properties": {
    "autocomplete": {
      "type": "string",
      "displayName": "Autocomplete",
      "description": "Specifies whether suggestions can enable autocomplete typeahead preview. Prefix matches can preview the first suggestion inline. Desktop partial matches can also preview the first suggestion as floating text, but phones suppress floating autocomplete and keep non-prefix matches raw.",
      "help": "#autocomplete",
      "enumValues": [
        "on",
        "off"
      ],
      "value": "on"
    },
    "placeholder": {
      "type": "string",
      "displayName": "Placeholder",
      "description": "A short hint that can be displayed before user selects or enters a value.",
      "help": "#placeholder",
      "translatable": true
    },
    "maxWidth": {
      "type": "number|string",
      "description": "The max width of the control.",
      "displayName": "Max Width",
      "help": "#maxWidth",
      "propertyEditorValues": {
        "sm": {},
        "md": {}
      }
    },
    "suggestions": {
      "type": "DataProvider|Array<any>|null",
      "displayName": "Suggestions",
      "description": "Data for the InputSearch suggestions.",
      "help": "#suggestions",
      "minCapabilities": {
        "filter": {
          "textFilter": true
        }
      },
      "extension": {
        "webelement": {
          "exceptionStatus": [
            {
              "type": "unsupported",
              "since": "21.0.0",
              "description": "DataProvider data sets cannot be sent to WebDriverJS; use ViewModels or page variables for DataProvider-backed suggestions. Array-backed suggestions are supported."
            }
          ]
        }
      }
    },
    "suggestionItemText": {
      "type": "string|number|function",
      "displayName": "Suggestion Item Text",
      "description": "Specifies the text string to render for a suggestion.",
      "help": "#suggestionItemText"
    },
    "variant": {
      "type": "string",
      "displayName": "Variant",
      "description": "Specifies the visual display variant.",
      "help": "#variant",
      "propertyEditorValues": {
        "standard": {
          "description": "Renders the default input search presentation.",
          "displayName": "Standard"
        },
        "hero": {
          "description": "Renders the larger hero search presentation.",
          "displayName": "Hero"
        }
      },
      "enumValues": [
        "standard",
        "hero"
      ],
      "value": "standard"
    },
    "value": {
      "type": "string|null",
      "displayName": "Value",
      "description": "The current value of the element.",
      "eventGroup": "common",
      "help": "#value",
      "writeback": true,
      "value": null
    },
    "width": {
      "type": "number|string",
      "description": "The width of the control.",
      "displayName": "Width",
      "help": "#width",
      "propertyEditorValues": {
        "sm": {},
        "md": {}
      }
    },
    "rawValue": {
      "type": "string",
      "displayName": "Raw Value",
      "description": "Read-only property used for retrieving the current value from the input field in string form.",
      "help": "#rawValue",
      "readOnly": true,
      "writeback": true
    }
  },
  "slots": {
    "suggestionItemTemplate": {
      "displayName": "Suggestion Item Template",
      "description": "The suggestionItemTemplate slot is used to specify the template for rendering each suggestion in the dropdown.",
      "help": "#suggestionItemTemplate",
      "maxItems": 1,
      "data": {
        "data": {
          "type": "any",
          "description": "The data for the current suggestion."
        },
        "index": {
          "type": "number",
          "description": "The zero-based index of the current suggestion."
        },
        "key": {
          "type": "string|number",
          "description": "The key of the current suggestion."
        },
        "metadata": {
          "type": "object",
          "description": "The metadata for the current suggestion.",
          "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"
            }
          }
        },
        "searchText": {
          "type": "string",
          "description": "The search text entered by the user."
        }
      }
    },
    "collectionTemplate": {
      "description": "The collectionTemplate slot is used to specify the template for rendering suggestions in collection mode.",
      "displayName": "Collection Template",
      "help": "#collectionTemplate",
      "maxItems": 1,
      "preferredContent": [
        "CTableElement",
        "CListViewElement"
      ],
      "data": {
        "data": {
          "type": "DataProvider|null"
        },
        "searchText": {
          "type": "string"
        },
        "currentRowOverride": {
          "type": "object",
          "properties": {
            "rowKey": {
              "type": "string|number"
            }
          }
        },
        "onCurrentRowChanged": {
          "type": "function"
        },
        "selected": {
          "type": "object"
        },
        "onRowAction": {
          "type": "function"
        }
      }
    }
  },
  "events": {
    "ojValueAction": {
      "description": "Triggered when search text is explicitly submitted by the user.",
      "help": "#event:valueAction",
      "detail": {
        "value": {
          "type": "string|null",
          "description": "The submitted search text."
        },
        "itemContext": {
          "type": "object",
          "description": "The data provider context for the search text, if available.",
          "properties": {
            "data": {
              "type": "any"
            },
            "key": {
              "type": "string|number"
            },
            "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"
                }
              }
            }
          }
        },
        "previousValue": {
          "type": "string|null",
          "description": "The previous submitted search text."
        }
      }
    }
  },
  "methods": {
    "blur": {
      "description": "Blurs the input search field.",
      "return": "void"
    },
    "focus": {
      "description": "Focuses the input search field.",
      "return": "void"
    },
    "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"
    }
  }
}