{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "SchematicsAngularComponent",
  "title": "Angular Primitives Component Options Schema",
  "type": "object",
  "description": "Create a reusable Angular Primitives component.",
  "additionalProperties": false,
  "properties": {
    "primitive": {
      "type": "string",
      "description": "The name of the primitive to generate.",
      "enum": [
        "accordion",
        "avatar",
        "button",
        "checkbox",
        "combobox",
        "date-picker",
        "dialog",
        "file-upload",
        "form-field",
        "input",
        "input-otp",
        "listbox",
        "menu",
        "meter",
        "native-select",
        "pagination",
        "popover",
        "preview-card",
        "progress",
        "radio",
        "rating",
        "search",
        "select",
        "separator",
        "slider",
        "switch",
        "tabs",
        "textarea",
        "toast",
        "toggle",
        "toggle-group",
        "toolbar",
        "tooltip"
      ],
      "x-prompt": "What primitive would you like to generate?",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "path": {
      "type": "string",
      "format": "path",
      "description": "The path where the component files should be created, relative to the current workspace.",
      "x-prompt": "What is the path to create the component?"
    },
    "prefix": {
      "type": "string",
      "description": "A prefix to be added to the component's selector. For example, if the prefix is `app` and the component name is `button`, the selector will be `app-button`.",
      "alias": "p",
      "oneOf": [
        {
          "maxLength": 0
        },
        {
          "minLength": 1,
          "format": "html-selector"
        }
      ]
    },
    "componentSuffix": {
      "type": "string",
      "description": "Append the specified suffix to the component name. If the component name is `Button` and the suffix is `Component`, the generated component will be named `ButtonComponent`.",
      "default": "Component"
    },
    "fileSuffix": {
      "type": "string",
      "default": "component",
      "description": "Generate component template files with the specified suffix."
    },
    "styles": {
      "type": "string",
      "description": "How component styles should be generated. `css` includes the full example styles; `unstyled` omits them entirely so you can style the component yourself.",
      "enum": ["css", "unstyled"]
    },
    "exampleStyles": {
      "type": "boolean",
      "description": "Whether example styles should be generated.",
      "x-deprecated": "Use `styles` instead: `true` maps to `--styles css`, `false` to `--styles unstyled`."
    },
    "changeDetection": {
      "description": "The change detection strategy to use in the new component. Defaults to OnPush.",
      "enum": ["Default", "OnPush"],
      "type": "string"
    }
  },
  "required": ["primitive", "path"]
}
