{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [
      {
        "attributes": [
          {
            "name": "aria-label",
            "value": "${this.getI18nText('dialog-label', this.defaultI18n)}"
          },
          {
            "name": "aria-modal",
            "value": "true"
          },
          {
            "name": "role",
            "value": "dialog"
          }
        ],
        "description": "Modal dialog container (`aria-modal`), labelled by `dialog-label`.",
        "part": "dialog"
      },
      {
        "attributes": [],
        "description": "Separator between the search field and the results.",
        "part": "divider"
      },
      {
        "attributes": [
          {
            "name": "aria-live",
            "value": "polite"
          },
          {
            "name": "role",
            "value": "status"
          }
        ],
        "description": "Status region announcing the empty message (`aria-live=\"polite\"`).",
        "part": "empty"
      },
      {
        "attributes": [],
        "description": "Hint bar container.",
        "part": "footer"
      },
      {
        "attributes": [
          {
            "name": "aria-label",
            "value": "${closeLabel}"
          }
        ],
        "description": "Close button labelled by `close-label`.",
        "part": "footer-close"
      },
      {
        "attributes": [],
        "description": "Navigation hint group.",
        "part": "footer-group"
      },
      {
        "attributes": [],
        "description": "Single navigation hint.",
        "part": "footer-item"
      },
      {
        "attributes": [
          {
            "name": "aria-disabled",
            "value": "${item.disabled ? 'true' : 'false'}"
          },
          {
            "name": "aria-selected",
            "value": "${isFocused ? 'true' : 'false'}"
          },
          {
            "name": "role",
            "value": "option"
          }
        ],
        "description": "Command option; `aria-selected` tracks focus and `aria-disabled` marks unavailable commands.",
        "part": "item"
      },
      {
        "attributes": [],
        "description": "Text column wrapper.",
        "part": "item-content"
      },
      {
        "attributes": [
          {
            "name": "role",
            "value": "presentation"
          }
        ],
        "description": "Group header (`role=\"presentation\"`).",
        "part": "item-header"
      },
      {
        "attributes": [],
        "description": "Command icon wrapper.",
        "part": "item-icon"
      },
      {
        "attributes": [
          {
            "name": "aria-label",
            "value": "${item.text}"
          }
        ],
        "description": "Link labelled by the command text.",
        "part": "item-link"
      },
      {
        "attributes": [],
        "description": "Keycap hint wrapper.",
        "part": "item-shortcut"
      },
      {
        "attributes": [],
        "description": "Description text.",
        "part": "item-subtitle"
      },
      {
        "attributes": [],
        "description": "Command label text.",
        "part": "item-text"
      },
      {
        "attributes": [],
        "description": "Layout wrapper for icon and text.",
        "part": "item-wrapper"
      },
      {
        "attributes": [
          {
            "name": "aria-activedescendant",
            "value": "${activeDescendant ?? ''}"
          },
          {
            "name": "aria-label",
            "value": "${this.getI18nText('list-label', this.defaultI18n)}"
          },
          {
            "name": "role",
            "value": "listbox"
          }
        ],
        "description": "Listbox of commands; the active option is announced via `aria-activedescendant`.",
        "part": "list"
      },
      {
        "attributes": [],
        "description": "Overlay wrapper.",
        "part": "overlay"
      },
      {
        "attributes": [],
        "description": "Panel wrapper.",
        "part": "panel"
      },
      {
        "attributes": [
          {
            "name": "role",
            "value": "search"
          }
        ],
        "description": "Search landmark (`role=\"search\"`).",
        "part": "search"
      },
      {
        "attributes": [],
        "description": "Search icon wrapper.",
        "part": "search-icon"
      },
      {
        "attributes": [
          {
            "name": "aria-autocomplete",
            "value": "list"
          },
          {
            "name": "aria-controls",
            "value": "${this.listboxId}"
          },
          {
            "name": "aria-expanded",
            "value": "${this.$open ? 'true' : 'false'}"
          },
          {
            "name": "aria-label",
            "value": "${searchPlaceholder}"
          },
          {
            "name": "role",
            "value": "combobox"
          }
        ],
        "description": "Combobox controlling the listbox; `aria-expanded` tracks the open state.",
        "part": "search-input"
      },
      {
        "attributes": [
          {
            "name": "role",
            "value": "separator"
          }
        ],
        "description": "Group separator (`role=\"separator\"`).",
        "part": "separator"
      }
    ],
    "notes": [
      "Disabled commands receive `aria-disabled=\"true\"` and are skipped by arrow-key navigation.",
      "Focus moves to the search input on open; the listbox tracks the active option with `aria-activedescendant`."
    ]
  },
  "attributes": [
    {
      "default": "''",
      "description": "Overrides the search field placeholder from `i18n`.",
      "from": null,
      "name": "placeholder",
      "property": "placeholder",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Global keyboard shortcut that toggles the palette, e.g. `mod+k` or `/`.",
      "from": null,
      "name": "shortcut",
      "property": "shortcut",
      "reflect": false,
      "tokens": [
        {
          "aliases": [],
          "meaning": "⌘ on macOS/iOS, Ctrl on Windows/Linux.",
          "token": "mod"
        },
        {
          "aliases": [
            "control"
          ],
          "meaning": "Ctrl modifier.",
          "token": "ctrl"
        },
        {
          "aliases": [
            "cmd",
            "command"
          ],
          "meaning": "⌘ / Windows key modifier.",
          "token": "meta"
        },
        {
          "aliases": [
            "option"
          ],
          "meaning": "Alt / Option modifier.",
          "token": "alt"
        },
        {
          "aliases": [],
          "meaning": "Shift modifier.",
          "token": "shift"
        }
      ],
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps the palette open after an item is selected.",
      "from": null,
      "name": "prevent-close",
      "property": "prevent-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Hides the keyboard-hint and close bar.",
      "from": null,
      "name": "no-footer",
      "property": "no-footer",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Icon key that replaces the default `search` icon.",
      "from": null,
      "name": "icon",
      "property": "icon",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Opens the dialog on first render and stays in sync with `show()` and `hide()`.",
      "from": "DialogMixin",
      "name": "open",
      "property": "open",
      "reflect": true,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Vertically centers the panel within the overlay.",
      "from": "DialogMixin",
      "name": "center",
      "property": "center",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Adds `z-modal-container` to the overlay for a contained presentation.",
      "from": "DialogMixin",
      "name": "container",
      "property": "container",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Adds `z-modal-full` to the overlay for a full-screen presentation.",
      "from": "DialogMixin",
      "name": "full",
      "property": "full",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps other open dialogs open; without it, showing this dialog hides them. Stacked overlays receive increasing z-index.",
      "from": "DialogMixin",
      "name": "stack",
      "property": "stack",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps the component in its original DOM position instead of teleporting it to `document.body`.",
      "from": "DialogMixin",
      "name": "inline",
      "property": "inline",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables closing when the overlay background is clicked.",
      "from": "DialogMixin",
      "name": "no-bg-close",
      "property": "no-bg-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables closing with the Esc key.",
      "from": "DialogMixin",
      "name": "no-esc-close",
      "property": "no-esc-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Removes the rendered DOM after the close transition; the next show mounts it again.",
      "from": "DialogMixin",
      "name": "unmount",
      "property": "unmount",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "'dialog'",
      "description": "ARIA role of the panel: `dialog` or `alertdialog`.",
      "from": "DialogMixin",
      "name": "dialog-role",
      "property": "dialogRole",
      "reflect": false,
      "tokens": null,
      "type": "'dialog' | 'alertdialog'",
      "values": [
        "dialog",
        "alertdialog"
      ]
    },
    {
      "default": "''",
      "description": "Accessible name for the panel when no `aria-labelledby` is set.",
      "from": "DialogMixin",
      "name": "aria-label",
      "property": "ariaLabelText",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Id of the element that names the panel; takes precedence over `aria-label`.",
      "from": "DialogMixin",
      "name": "aria-labelledby",
      "property": "ariaLabelledbyText",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Per-instance text overrides as `key: text` pairs, merged over the global `z-i18n` script and the built-in defaults.",
      "from": "Hwc",
      "name": "i18n",
      "property": "i18n",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Floating UI placement options (for example `offset` and `shiftPadding`) parsed as `key: value` pairs.",
      "from": "Hwc",
      "name": "floating",
      "property": "floating",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Skips re-rendering after the first render; an existing `data-host-inner` child is adopted as the rendered DOM.",
      "from": "Hwc",
      "name": "force-prevent-rerender",
      "property": "force-prevent-rerender",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Selector or id of an external element or `<template>` whose inner content is cloned in place of an inline `template[data-fn=\"template\"]` child.",
      "from": "Hwc",
      "name": "template",
      "property": "template",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds classes to named parts as `key: classes` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "cls",
      "property": "cls",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds inline styles to named parts as `key: styles` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "stl",
      "property": "stl",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    }
  ],
  "category": "overlays",
  "children": [
    {
      "attributes": [
        {
          "description": "Marks the script as configuration (value: `config`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "config"
          ]
        },
        {
          "description": "Re-parses the configuration when the script mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "JSON configuration script parsed by the base class (i18n, cls, stl, floating).",
      "element": "script",
      "id": "config",
      "required": false,
      "selector": "script[data-fn=\"config\"][type=\"application/json\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the select as the data source (value: `data-source`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "data-source"
          ]
        },
        {
          "description": "Re-parses the commands when the select mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Group header text; also the default group key.",
              "name": "label",
              "required": true,
              "type": "string"
            },
            {
              "description": "Makes the group non-selectable and skipped by keyboard navigation.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Overrides the group key used in the parsed data.",
              "name": "data-key",
              "required": false,
              "type": "string"
            },
            {
              "description": "Comma-separated keywords stored with the group's data.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "children": [
            {
              "attributes": [
                {
                  "description": "Command identifier emitted in `event.detail.value`.",
                  "name": "value",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Makes the command non-selectable and skipped by keyboard navigation.",
                  "name": "disabled",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Marks the command as initially selected.",
                  "name": "selected",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Extra search terms, comma-separated; searched alongside the label and value.",
                  "name": "data-keywords",
                  "required": false,
                  "type": "comma-separated string"
                },
                {
                  "description": "Secondary line shown under the label; also searched.",
                  "name": "data-description",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Icon key resolved through `$icons` for this command.",
                  "name": "data-icon",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Keycap hint: `+` joins keys (⌘+K), spaces separate them (G S).",
                  "name": "data-kbd",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Alternative keycap hint, used when `data-kbd` is absent.",
                  "name": "data-shortcut",
                  "required": false,
                  "type": "string"
                }
              ],
              "description": "One command within the group.",
              "element": "option",
              "repeatable": true
            }
          ],
          "description": "Groups commands under a header and inserts a separator before later groups.",
          "element": "optgroup",
          "repeatable": true
        },
        {
          "attributes": [
            {
              "description": "Command identifier emitted in `event.detail.value`.",
              "name": "value",
              "required": false,
              "type": "string"
            },
            {
              "description": "Makes the command non-selectable and skipped by keyboard navigation.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Marks the command as initially selected.",
              "name": "selected",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Extra search terms, comma-separated.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            },
            {
              "description": "Secondary line shown under the label; also searched.",
              "name": "data-description",
              "required": false,
              "type": "string"
            },
            {
              "description": "Icon key resolved through `$icons` for this command.",
              "name": "data-icon",
              "required": false,
              "type": "string"
            },
            {
              "description": "Keycap hint: `+` joins keys (⌘+K), spaces separate them (G S).",
              "name": "data-kbd",
              "required": false,
              "type": "string"
            },
            {
              "description": "Alternative keycap hint, used when `data-kbd` is absent.",
              "name": "data-shortcut",
              "required": false,
              "type": "string"
            }
          ],
          "description": "One ungrouped command.",
          "element": "option",
          "repeatable": true
        }
      ],
      "description": "Hidden select holding the commands; nothing renders until the palette opens.",
      "element": "select",
      "id": "data-source",
      "required": false,
      "selector": "select[data-fn=\"data-source\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template as an icon source (value: `icons`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "icons"
          ]
        },
        {
          "description": "Re-parses the icons when the template mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Icon key referenced by `data-icon` or the `icon` attribute.",
              "name": "data-key",
              "required": true,
              "type": "string"
            }
          ],
          "description": "One icon element.",
          "element": "*",
          "repeatable": true
        }
      ],
      "description": "Instance-level icon repository.",
      "element": "template",
      "id": "icons",
      "required": false,
      "selector": "template[data-fn=\"icons\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template for deferred mounting (value: `template`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "template"
          ]
        },
        {
          "description": "Re-parses the template when it mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "Deferred content template mounted by the base class.",
      "element": "template",
      "id": "template",
      "required": false,
      "selector": "template[data-fn=\"template\"]"
    }
  ],
  "cssClasses": [
    {
      "appliesTo": ".z-cmd",
      "class": ".z-active",
      "description": "State class on the focused command.",
      "role": "state"
    },
    {
      "appliesTo": "z-cmd",
      "class": ".z-cmd",
      "description": "Root palette class on the dialog.",
      "role": "root"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-empty",
      "description": "Empty-state message styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-footer",
      "description": "Footer bar layout.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-footer-close",
      "description": "Close button styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-footer-group",
      "description": "Hint group layout.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-footer-item",
      "description": "Single hint layout.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-item-content",
      "description": "Text column layout.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-item-shortcut",
      "description": "Keycap hint layout.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-item-subtitle",
      "description": "Description line styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-list",
      "description": "Results list sizing and scrolling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-cmd-panel",
      "description": "Panel surface styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-custom-select-item-icon",
      "description": "Command icon sizing.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-hr",
      "description": "Divider rule styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-kbd",
      "description": "Keycap styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-nav-divider",
      "description": "Group separator styling.",
      "role": "element"
    },
    {
      "appliesTo": ".z-cmd",
      "class": ".z-nav-header",
      "description": "Group header styling.",
      "role": "element"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "background-color"
      ],
      "default": "color-mix(in srgb, var(--z-muted) calc(var(--z-muted-o) * 0.75), var(--z-bg))",
      "description": "Background of the palette surface.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-bg",
      "scope": ".z-cmd",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-block-end",
        "box-shadow"
      ],
      "default": "var(--z-border)",
      "description": "Border and shadow color of the search divider.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-border-color",
      "scope": ".z-cmd",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-block-end",
        "box-shadow"
      ],
      "default": "var(--z-border-o)",
      "description": "Opacity applied to the divider border color.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-border-color-o",
      "scope": ".z-cmd",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "2.5rem 1rem",
      "description": "Padding of the empty-state message.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-empty-padding",
      "scope": ".z-cmd",
      "syntax": "<length>"
    },
    {
      "affects": [
        "max-height"
      ],
      "default": "18rem",
      "description": "Maximum height of the results list before it scrolls.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-list-max-height",
      "scope": ".z-cmd",
      "syntax": "<length>"
    },
    {
      "affects": [
        "margin-block-start"
      ],
      "default": "10vh",
      "description": "Top offset of the palette from the viewport edge.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-offset-top",
      "scope": ".z-cmd",
      "syntax": "<length>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-drop)",
      "description": "Background of the panel.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-panel-bg",
      "scope": ".z-cmd",
      "syntax": "<color>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-drop-f)",
      "description": "Text color of the panel.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-panel-color",
      "scope": ".z-cmd",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-end-end-radius",
        "border-end-start-radius"
      ],
      "default": "0.75rem",
      "description": "Bottom corner radius of the panel.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-panel-radius",
      "scope": ".z-cmd",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "0.875rem",
      "description": "Corner radius of the dialog.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-radius",
      "scope": ".z-cmd",
      "syntax": "<length>"
    },
    {
      "affects": [
        "box-shadow"
      ],
      "default": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
      "description": "Drop shadow of the dialog.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-shadow",
      "scope": ".z-cmd",
      "syntax": "<shadow>"
    },
    {
      "affects": [],
      "default": "34rem",
      "description": "Width of the palette dialog; feeds `--z-modal-dialog-width`.",
      "file": "src/css/kit-components/cmd.css",
      "kind": "base",
      "name": "--z-cmd-width",
      "scope": ".z-cmd",
      "syntax": "<length>"
    }
  ],
  "dataHooks": [
    {
      "appliesTo": "external-trigger",
      "attribute": "data-close",
      "description": "Closes the dialog matched by the selector, or the nearest enclosing dialog when no value is given.",
      "role": "trigger",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-host-inner",
      "description": "Marks the rendered inner wrapper so `force-prevent-rerender` can adopt server-rendered DOM without re-rendering.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-index",
      "description": "Index of the command within its group; used to resolve Enter selection.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-key",
      "description": "Group key of the command; used with `data-index` to resolve selection.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-open",
      "description": "Clicking the element opens the dialog matched by the selector without toggling.",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-part",
      "description": "Marks structural parts (overlay, dialog, list, search-input) for the component's DOM references.",
      "role": "marker",
      "values": [
        "dialog",
        "list",
        "overlay",
        "search-input"
      ]
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-reactive",
      "description": "Opts the marked child (config script, data source, icons, or template) into live re-parsing when its DOM mutates.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-toggle",
      "description": "Clicking the element toggles the dialog matched by the selector (usually `#id`).",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    }
  ],
  "events": [
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires before closing; call `preventDefault()` to abort.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:before-hide"
    },
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires before opening; call `preventDefault()` to abort.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:before-show"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the mounted DOM is removed, via `unmount` or `destroy()`.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:destroy"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires after the close transition completes and focus is restored to the opener.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:hidden"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the dialog starts closing.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:hide"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires once when the dialog DOM is first mounted.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:mount"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the search term changes; `detail.value` carries the current term.",
      "detail": {
        "fields": [
          {
            "name": "value",
            "type": "string"
          }
        ],
        "type": "{ value: string }"
      },
      "from": "BaseSelectMixin",
      "name": "z-cmd:search"
    },
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires when a command is chosen; detail carries value, text, group, the option item, and the originating event. `preventDefault()` keeps the palette open.",
      "detail": {
        "fields": [
          {
            "name": "value",
            "type": "string"
          },
          {
            "name": "text",
            "type": "string"
          },
          {
            "name": "group",
            "type": "string"
          },
          {
            "name": "item",
            "type": "OptionItem"
          },
          {
            "name": "originalEvent",
            "type": "MouseEvent | KeyboardEvent | undefined"
          }
        ],
        "type": "{ value: string; text: string; group: string; item: OptionItem; originalEvent: MouseEvent | KeyboardEvent | undefined }"
      },
      "name": "z-cmd:select"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the dialog starts opening, before the transition completes.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:show"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires after the open transition completes.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-cmd:shown"
    }
  ],
  "i18n": [
    {
      "default": "Esc",
      "description": "Keycap text on the close button.",
      "key": "close-hint",
      "placeholders": [],
      "usedIn": [
        "footer-close"
      ]
    },
    {
      "default": "Close",
      "description": "Label and aria-label of the close button.",
      "key": "close-label",
      "placeholders": [],
      "usedIn": [
        "footer-close"
      ]
    },
    {
      "default": "Command menu",
      "description": "Accessible name of the dialog.",
      "key": "dialog-label",
      "placeholders": [],
      "usedIn": [
        "dialog"
      ]
    },
    {
      "default": "No results found.",
      "description": "Text shown when no command matches the search.",
      "key": "empty-message",
      "placeholders": [],
      "usedIn": [
        "empty"
      ]
    },
    {
      "default": "Commands",
      "description": "Accessible name of the results listbox.",
      "key": "list-label",
      "placeholders": [],
      "usedIn": [
        "list"
      ]
    },
    {
      "default": "Navigate",
      "description": "Footer label for the arrow-key hint.",
      "key": "navigate-label",
      "placeholders": [],
      "usedIn": [
        "footer-item"
      ]
    },
    {
      "default": "Search for apps and commands...",
      "description": "Placeholder and aria-label of the search input.",
      "key": "search-placeholder",
      "placeholders": [],
      "usedIn": [
        "search-input"
      ]
    },
    {
      "default": "Open",
      "description": "Footer label for the Enter hint.",
      "key": "select-label",
      "placeholders": [],
      "usedIn": [
        "footer-item"
      ]
    }
  ],
  "icons": [
    {
      "builtin": true,
      "configuredBy": null,
      "description": "Down-arrow keycap in the navigate hint.",
      "key": "arrow-down",
      "usedIn": [
        "footer-item"
      ]
    },
    {
      "builtin": true,
      "configuredBy": null,
      "description": "Up-arrow keycap in the navigate hint.",
      "key": "arrow-up",
      "usedIn": [
        "footer-item"
      ]
    },
    {
      "builtin": true,
      "configuredBy": null,
      "description": "Enter keycap in the select hint.",
      "key": "corner-down-left",
      "usedIn": [
        "footer-item"
      ]
    },
    {
      "builtin": true,
      "configuredBy": "icon",
      "description": "Icon in the search field; replace it via the `icon` attribute.",
      "key": "search",
      "usedIn": [
        "search-icon"
      ]
    }
  ],
  "id": "command",
  "inherits": [
    "BaseSelectMixin",
    "DialogMixin",
    "Hwc",
    "Base"
  ],
  "keyboard": [
    {
      "action": "Move to the next / previous enabled command, wrapping at the ends.",
      "keys": [
        "ArrowDown",
        "ArrowUp"
      ],
      "when": "The palette is open"
    },
    {
      "action": "Jump to the first / last enabled command.",
      "keys": [
        "Home",
        "End"
      ],
      "when": "The palette is open"
    },
    {
      "action": "Select the focused command (`z-cmd:select`).",
      "keys": [
        "Enter"
      ],
      "when": "The palette is open"
    },
    {
      "action": "Close the palette and restore focus to the opener.",
      "keys": [
        "Escape"
      ],
      "when": "The palette is open"
    }
  ],
  "kind": "hwc",
  "methods": [
    {
      "description": "Closes and unmounts the dialog DOM; optionally removes the host element as well.",
      "from": "DialogMixin",
      "name": "destroy",
      "params": [
        {
          "default": "false",
          "name": "removeHost",
          "optional": true,
          "type": "boolean"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Closes the dialog and restores focus to the opener.",
      "from": "DialogMixin",
      "name": "hide",
      "params": [],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Opens the dialog; the trigger element receives focus back on close.",
      "from": "DialogMixin",
      "name": "show",
      "params": [
        {
          "default": null,
          "name": "trigger",
          "optional": true,
          "type": "HTMLElement | null"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Opens the dialog if closed, otherwise closes it.",
      "from": "DialogMixin",
      "name": "toggle",
      "params": [
        {
          "default": null,
          "name": "trigger",
          "optional": true,
          "type": "HTMLElement | null"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    }
  ],
  "notes": [
    "The palette renders nothing until first opened (lazy mount); `unmount` removes the DOM after close.",
    "Unmodified shortcuts are ignored while focus is in an input, textarea, select, or contenteditable element.",
    "Search matches every whitespace-separated token against the label, value, group title, description, and keywords."
  ],
  "parts": {
    "defaultClsTarget": "dialog",
    "defaultStlTarget": "dialog",
    "items": [
      {
        "defaultCls": "z-modal-dialog z-cmd",
        "description": "Dialog container; the default `cls` and `stl` target.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "dialog",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-hr",
        "description": "Horizontal rule between the search field and the results.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "divider",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-empty",
        "description": "Empty-state message shown when no command matches.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "empty",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-footer",
        "description": "Bottom hint bar.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "footer",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-footer-item z-cmd-footer-close",
        "description": "Close button with the Esc hint.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "footer-close",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-footer-group",
        "description": "Group of navigation hints.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "footer-group",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-footer-item",
        "description": "Single hint: icon keycaps plus a label.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "footer-item",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-kbd",
        "description": "Keycap inside a footer hint.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "footer-kbd",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "One command row (`role=\"option\"`).",
        "foundIn": [
          "render"
        ],
        "key": "item",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-active",
        "description": "Class on the focused command.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-active",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "z-cmd-item-content",
        "description": "Text column: label and optional description.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-content",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-disabled",
        "description": "Class on disabled commands.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-disabled",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "z-nav-header",
        "description": "Group header row.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-header",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-custom-select-item-icon",
        "description": "Wrapper for the command's icon.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-icon",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "Clickable link covering the command row.",
        "foundIn": [
          "render"
        ],
        "key": "item-link",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-item-shortcut",
        "description": "Keycap hint container on the right.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-shortcut",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-item-subtitle",
        "description": "Secondary description line.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-subtitle",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "Command label.",
        "foundIn": [
          "render"
        ],
        "key": "item-text",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-custom-select-item-wrapper",
        "description": "Layout wrapper for the icon and text column.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "item-wrapper",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "Individual keycap.",
        "foundIn": [
          "render"
        ],
        "key": "kbd",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-nav z-dropdown-nav z-overflow-auto z-cmd-list",
        "description": "Scrollable results listbox.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "list",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-modal",
        "description": "Modal overlay behind the palette.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "overlay",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-cmd-panel",
        "description": "Panel holding the search field and results list.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "panel",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-custom-select-search",
        "description": "Search field wrapper (`role=\"search\"`).",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "search",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "Wrapper for the search icon.",
        "foundIn": [
          "render"
        ],
        "key": "search-icon",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "Combobox input that drives filtering.",
        "foundIn": [
          "render"
        ],
        "key": "search-input",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-nav-divider",
        "description": "Divider inserted between groups.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "separator",
        "supportsCls": true,
        "supportsStl": true
      }
    ]
  },
  "recipes": [],
  "related": [],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/cmd.css"
    ],
    "cssSelectors": [
      ".z-cmd",
      ".z-cmd-*"
    ],
    "ts": "src/js/hwc/components/cmd.ts"
  },
  "summary": "Lazy-mounted modal command palette with live multi-token search, grouped actions, descriptions, and keycap hints.",
  "tag": "z-cmd",
  "title": "Command"
}
