[
  {
    "id": "oj-c.validationUtils",
    "name": "validationUtils",
    "ojmodulecontainer": "oj-c.validationUtils",
    "memberof": "oj-c",
    "longname": "oj-c.validationUtils",
    "kind": "namespace",
    "scope": "static",
    "meta": {
      "filename": "validationUtils.ts",
      "path": "/home/jenkins/uitech/workspace/OJET_Code_21.0.3/packages/oraclejet-core-pack/web/components/oj-c/validation-utils"
    },
    "pack": "oj-c",
    "classdesc": "A collection of utility functions for checking and focusing groups of validation-aware Core Pack form components. Import named functions from <code>oj-c/validation-utils</code>, for example <code>import { checkValid, showMessagesAndFocusFirstInvalid } from 'oj-c/validation-utils';</code>. Wrap the Core Pack form components whose validation state should be tracked in a group container, and give that container an id and the data-oj-context marker attribute.",
    "ojmodule": "validation-utils"
  },
  {
    "id": "oj-c.validationUtils#checkValid",
    "name": "checkValid",
    "memberof": "oj-c.validationUtils",
    "meta": {
      "filename": "validationUtils.ts",
      "path": "/home/jenkins/uitech/workspace/OJET_Code_21.0.3/packages/oraclejet-core-pack/web/components/oj-c/validation-utils"
    },
    "kind": "function",
    "longname": "oj-c.validationUtils#checkValid",
    "scope": "instance",
    "returns": [
      {
        "type": {
          "names": [
            "Promise"
          ]
        },
        "description": "A promise resolving to the\nsettled validity state found in the group: `valid`, `invalidHidden`, or `invalidShown`."
      }
    ],
    "ojexports": true,
    "description": "Checks the current validity of validation-aware descendants in a container.\n\nA validation-aware descendant is a Core Pack custom element with a defined `valid` property.\nWrap the components whose validation state should be tracked in a group container:\n<pre class=\"prettyprint\">\n<code>\n&lt;div id=\"validationGroup\" data-oj-context>\n  &lt;oj-c-input-text required label-hint=\"Name\">&lt;/oj-c-input-text>\n&lt;/div>\n</code>\n</pre>\n\nThe method waits for the container BusyContext so component initialization and validation can\nsettle before child validity is checked.\n\nBecause asynchronous validation is settled before child validity is checked, the returned state\nis either `valid`, `invalidHidden`, or `invalidShown`. `pending` is not returned.\n\nOnly descendants that are not disabled or readonly participate in validity consolidation.\nWhen a validation-aware descendant is found, its children are not searched.\n\nIf no usable container is found for the id, the method logs a warning and resolves to\n`invalidHidden` so submit flows fail closed. The container must have the `data-oj-context`\nmarker attribute so the utility can wait on the container's scoped BusyContext.",
    "params": [
      {
        "name": "id",
        "description": "The id of the group container.",
        "type": {
          "names": [
            "string"
          ]
        }
      }
    ]
  },
  {
    "id": "oj-c.validationUtils#showMessagesAndFocusFirstInvalid",
    "name": "showMessagesAndFocusFirstInvalid",
    "memberof": "oj-c.validationUtils",
    "meta": {
      "filename": "validationUtils.ts",
      "path": "/home/jenkins/uitech/workspace/OJET_Code_21.0.3/packages/oraclejet-core-pack/web/components/oj-c/validation-utils"
    },
    "kind": "function",
    "longname": "oj-c.validationUtils#showMessagesAndFocusFirstInvalid",
    "scope": "instance",
    "returns": [
      {
        "type": {
          "names": [
            "Promise"
          ]
        },
        "description": "A promise resolving after messages are shown and focus handling is complete."
      }
    ],
    "ojexports": true,
    "description": "Shows deferred messages and focuses the first invalid component showing messages.\n\nThe method waits for the container BusyContext before finding validation-aware descendants,\nwhich are Core Pack custom elements with a defined `valid` property. It calls `showMessages()`\non validation-aware descendants that are not disabled or readonly, waits for any `valid`\nproperty updates to complete, then focuses the first `invalidShown` descendant in DOM order. If\nno usable container is found for the id, the method logs a warning and resolves without taking\naction.\n\nThe container must have the specified id and the `data-oj-context` marker attribute so the\nutility can wait on the container's scoped BusyContext.",
    "params": [
      {
        "name": "id",
        "description": "The id of the group container.",
        "type": {
          "names": [
            "string"
          ]
        }
      }
    ]
  },
  {
    "id": "oj-c.validationUtils#focusFirstEditable",
    "name": "focusFirstEditable",
    "memberof": "oj-c.validationUtils",
    "meta": {
      "filename": "validationUtils.ts",
      "path": "/home/jenkins/uitech/workspace/OJET_Code_21.0.3/packages/oraclejet-core-pack/web/components/oj-c/validation-utils"
    },
    "kind": "function",
    "longname": "oj-c.validationUtils#focusFirstEditable",
    "scope": "instance",
    "returns": [
      {
        "type": {
          "names": [
            "Promise"
          ]
        },
        "description": "A promise resolving after focus handling is complete."
      }
    ],
    "ojexports": true,
    "description": "Focuses the first editable validation-aware descendant in a container.\n\nThe method waits for the container BusyContext before looking for editable validation-aware\ndescendants, which are Core Pack custom elements with a defined `valid` property. If no usable\ncontainer is found for the id, the method logs a warning and resolves without taking action.\n\nThe container must have the specified id and the `data-oj-context` marker attribute so the\nutility can wait on the container's scoped BusyContext.",
    "params": [
      {
        "name": "id",
        "description": "The id of the group container.",
        "type": {
          "names": [
            "string"
          ]
        }
      }
    ]
  }
]