[
  {
    "name": "getting-started.md",
    "title": "Getting started",
    "category": "",
    "alias": [],
    "sections": [
      {
        "heading": "getting started",
        "level": 1,
        "content": "With ng-aquila we are providing an Angular powered user interface (UI) library.\n"
      },
      {
        "heading": "prerequisite",
        "level": 3,
        "content": "You should have Node.js and the Angular CLI installed.\n"
      },
      {
        "heading": "automatic setup with ng add",
        "level": 3,
        "content": "1. **Create your project with [Angular CLI](https://cli.angular.io/):**\n\n    ```console\n    npm install -g @angular/cli\n    ng new my-allianz-project\n    ```\n\n2. **Add ng-aquila:**\n\n    ```console\n    ng add @allianz/ng-aquila\n    ```\n\n    Add the background color of the default theme to your styles file:\n\n    ```scss\n    body {\n        background: #0f2a3d;\n    }\n    ```\n\nCongratulations you're done 💪\n\nNow you can include components and start building your application.\n"
      },
      {
        "heading": "manual setup",
        "level": 3,
        "content": "You can also install ng-aquila manually.\n\n1. **Create your project with [Angular CLI](https://cli.angular.io/):**\n\n    ```\n    npm install -g @angular/cli\n    ng new my-allianz-project\n    ```\n\n2. **Install ng-aquila and dependencies**\n\n    ```\n    cd my-allianz-project\n    npm install @allianz/ng-aquila\n    npm install @angular/cdk\n    ```\n\n    Depending on your needs, you may also install\n\n    - [iban.js](https://github.com/arhs/iban.js/) if you want to use the [iban mask](./documentation/mask/overview#iban-mask) (`npm install iban`)\n\n    - [moment.js](https://github.com/moment/moment) if you want to use it as the adapter for the [datefield](./documentation/datefield/overview) (`npm install moment`)\n\n    You can check the supported versions of peer dependencies [here](https://github.com/allianz/ng-aquila/blob/main/projects/ng-aquila/src/package.json).\n\n3. **Add base styles**\n\n    Add the styles to the `angular.json`. You need the base styles ('normalize.css') and a theme file ('aquila.css' or 'expert.css'):\n\n    ```json\n    \"architect\": {\n      \"build\": {\n        \"builder\": \"@angular-devkit/build-angular:browser\",\n        \"options\": {\n          // ...\n          \"styles\": [\n            // ...\n            \"node_modules/@allianz/ng-aquila/css/normalize.css\",\n            \"node_modules/@allianz/ng-aquila/themes/aquila.css\"\n          ]\n        }\n      }\n    }\n    ```\n\n    Add the background color of the default theme to your styles file:\n\n    ```css\n    body {\n        background: #0f2a3d;\n    }\n    ```\n\n4. **Add NxExpertModule (optional)**\n\n    In an expert/b2b application you also need the `NxExpertModule` to your `app.module.ts`. More information can be found on the [documentation page about the expert module](./documentation/config/overview).\n\n    ```ts\n    // ...\n    import { NxExpertModule } from '@allianz/ng-aquila/config';\n\n    @NgModule({\n        imports: [\n            // ...\n            NxExpertModule,\n        ],\n        // ...\n    })\n    export class AppModule {}\n    ```\n"
      },
      {
        "heading": "device and browser support",
        "level": 3,
        "content": "We fully support the following browsers:\n\n-   Chrome: 2 most recent major versions\n-   Firefox: latest and extended support release (ESR)\n-   MS Edge: 2 most recent major versions\n-   Safari: most recent major version\n\nWe do not support IE11 since version 13 and recommend to use modern browsers instead.\n"
      },
      {
        "heading": "contributing",
        "level": 3,
        "content": "We do not support external contributions yet, but hope we can in future.\n"
      }
    ]
  },
  {
    "name": "releases.md",
    "title": "Releases and updating",
    "category": "",
    "alias": [],
    "sections": [
      {
        "heading": "release plan",
        "level": 2,
        "content": "Our release strategy is naturally synchronized with [Angular's](https://angular.io/guide/releases). The main reason for this is to minimize the frequency of breaking changes. The Angular team releases a major version every six months, whenever we update to this version we expect breaking changes. Thus, we will release any breaking change along with the major release of Angular. Consequently, you can expect breaking changes (major update) about every six months.\n\nAs the Angular team now provides release dates down to a week, we are able to prepare in advance and provide more specific release terms. Our ambition is release a major version during a 6-week period after any major Angular release.\n\nWe trigger minor or bug fix releases if they provide a meaningful delivery (fix or feature). This is usually decided in our weekly refinement meeting.\n\n| Date          | Angular version | Angular Brand Kit version | LTS end       |\n| ------------- | --------------- | ------------------------- | ------------- |\n| July 2026     | 22              | 22                        | December 2027 |\n| December 2025 | 21              | 21                        | May 2027      |\n| July 2025     | 20              | 20                        | November 2026 |\n\nVersions 19 and older are no longer supported.\n\nDuring Long-Term Support (LTS) only critical fixes and security patches will be released. LTS of a major version starts as soon as the successor is released. If your applications are running of the LTS, you may (at your own discretion) fork your respective version and support it within your organization.\n"
      },
      {
        "heading": "updating to version 22",
        "level": 2,
        "content": "For updating Angular to version 22, in most cases the following command should do the update for you:\n\n`ng update @angular/cli @angular/core @angular/cdk --force`\n\nThen update the ng-aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n\nMake sure to run `ng update` for automatic migrations. Key changes:\n\n- **Naming consistency:** `attention` → `prominence`, `appearance` → `colorScheme`, `colorScheme` → `accentColor` across badge, avatar, selection indicator, and text components.\n- **Date range:** `minDate`/`maxDate` inputs and `NxDateRangeValidators.min()`/`.max()` renamed to `minStart`/`maxEnd` variants.\n- **Context menu:** `selectable` now returns `NxContextMenuItemSelectable` (`'single' | 'multi' | boolean`) instead of plain `boolean`.\n\nSee the [CHANGELOG](guides/CHANGELOG) for full details and manual migration notes.\n\n"
      },
      {
        "heading": "updating to version 21",
        "level": 2,
        "content": "For updating Angular to version 21, in most cases the following command should do the update for you:\n\n`ng update @angular/cli @angular/core @angular/cdk --force`\n\nThen update the ng-aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n"
      },
      {
        "heading": "updating to version 20",
        "level": 2,
        "content": "With version 20 we are moving ng-aquila from the @aposin organization to the @allianz organization.\n\n- **Migration of ng-aquila from `@aposin` to `@allianz`:**\n    - The `ng-aquila` library is now published under the `@allianz` scope.\n    - The update will be handled automatically by the `ng update` command.\n\nFor updating Angular to version 20, in most cases the following command should do the update for you:\n\n`ng update @angular/cli @angular/core @angular/cdk --force`\n\nThen update the ng-aquila with the following command:\n\n`ng update @aposin/ng-aquila --force`\n\n**Note:** The ng update command will handle the following tasks automatically:\n\n- Updates the package name in the package.json.\n- Update all imports in your codebase from `@aposin/ng-aquila` to `@allianz/ng-aquila`.\n- Update changed names:\n    - `aposin.css` was renamed to `aquila.css`.\n    - the `aposin` theme was renamed to `aquila`.\n"
      },
      {
        "heading": "updating to version 19",
        "level": 2,
        "content": "With Aquila 19, we are upgrading to Angular 19. This update brings exciting new features and improvements to the framework. This update includes advancements in server-side rendering, stabilization of some reactivity APIs, and new support for hot module replacement. Additionally, standalone components are now the default. For a comprehensive overview of all the changes and enhancements in Angular 19, check out the details on [Angular 19](https://blog.angular.dev/meet-angular-v19-7b29dfd05b84).\n\nFor updating Angular to version 19, in most cases the following command should do the update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n"
      },
      {
        "heading": "updating to version 18",
        "level": 2,
        "content": "With Aquila 18, we are upgrading to Angular 18. This update marks control flow and deferrable views as stable. In addition, experimental support for zoneless change detection, Server-side rendering improvements and signal APIs in developer preview are shipped. Check out all the details of [Angular 18](https://blog.angular.dev/angular-v18-is-now-available-e79d5ac0affe).\n\nFor updating Aquila to version 18, in most cases the following command should do the update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n"
      },
      {
        "heading": "updating to version 17",
        "level": 2,
        "content": "With Aquila 17, we are upgrading to Angular 17. This Angular update has several features & improvements, such as control flow, new lifecycle hooks, faster builds, check out all the details of [Angular 17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b).\n\nFor updating Aquila to version 17, in most cases the following command should do the update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n"
      },
      {
        "heading": "updating to version 16",
        "level": 2,
        "content": "With v16, we are upgrading to [Angular 16](https://blog.angular.io/angular-v16-is-here-4d7a28ec680d). This Angular update has been named the biggest release since the initial rollout of Angular, making large leaps in reactivity, server-side rendering, and tooling. In order to make sure you leverage the new Angular features in your application, we encourage you to check [the official documentation](https://angular.io/guide/update-to-version-16).\n\nUpdating Aquila to version 16 should be simple, though. In most cases the following command should do the Angular update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n"
      },
      {
        "heading": "removal of `nx` prefixes for inputs and outputs",
        "level": 4,
        "content": "We cleaned up some inconsistencies in our input and output namings and removed `nx` prefixes, e.g. `nxDisabled` on the dropdown is now `disabled`. These changes will be migrated automatically for you and applied in your application when you run `ng update`.\nIn the `Breaking Changes` section of [the Changelog](./guides/CHANGELOG) you can find commits with affected components. If after the migrations you get errors please check the API pages of the respective components. The angular compiler should also guide you pretty well and often suggest the correct names.\n"
      },
      {
        "heading": "formfield visual change",
        "level": 4,
        "content": "The formfield formerly reserved space at the bottom for a possible hint. This space also served as the spacing between formfields and the hint would render in this reserved space. This leads to situations where you don't have sufficient space between the hint and the next row.\nFrom now on if a hint is present there will be additional space after the hint.\n\nIf this somehow affects your application in a negative way you can temporarily use a compatibility CSS file which provides the previous styles. For that import the file `@allianz/ng-aquila/css/compatibility/formfield-padding.css` in the angular.json\n"
      },
      {
        "heading": "`nxmask` validation prevented optional controls",
        "level": 4,
        "content": "The `nxMask` internal validator always validated empty strings, resulting in a `nxMaskLengthError`. This makes it impossible to have a control as optional. We fixed this bug which is technically a breaking change. If you relied on getting the `nxMaskLengthError` for empty strings as a replacement for a required validator please add the `required` validator now.\n\n\n"
      },
      {
        "heading": "updating to version 15",
        "level": 2,
        "content": "With v15, we are upgrading to [Angular 15](https://blog.angular.io/angular-v15-is-now-available-df7be7f2f4c8). In most cases the following command should do the Angular update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n\n**Important:**\n\n- ⚠️ (nx-input-phone) wrapper class name within component has been changed to avoid interfering with global stylesheets.\n"
      },
      {
        "heading": "breaking changes",
        "level": 4,
        "content": "-   **rating:** visual layout and component API have been updated to align with the current NDBX guidelines\n\n**We are not providing automatic updates for these breaking changes.**\n\n\n"
      },
      {
        "heading": "updating to version 14",
        "level": 2,
        "content": "With v14, we are upgrading to [Angular 14](https://blog.angular.io/angular-v14-is-now-available-391a6db736af). In most cases the following command should do the Angular update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n"
      },
      {
        "heading": "breaking changes",
        "level": 4,
        "content": "-   added readonly keyword to public properties which are not meant to be changed.\n\n**We are not providing automatic updates for these breaking changes.**\n"
      },
      {
        "heading": "updating to version 13",
        "level": 2,
        "content": "With v13, we are upgrading to [Angular 13](https://blog.angular.io/angular-v13-is-now-available-cce66f7bc296). In most cases the following command should do the Angular update for you:\n\n`ng update @angular/cli @angular/core`\n\nThen it should be easy to update Aquila with the following command:\n\n`ng update @allianz/ng-aquila --force`\n\n**Important:**\n\n-   With this release we are dropping support of Internet Explorer and removing all the code that was meant to support IE-only functionality and fix its issues. Make sure your project doesn't need IE support before migrating to v13. In case you still need to support IE, consider using LTS v12.\n-   Following Angular development, the library is now distributed in ivy partial compilation mode.\n"
      },
      {
        "heading": "breaking changes",
        "level": 4,
        "content": "-   **footer:** spacing - to restore previous values, override the following new variables:\n    -   `footer-padding-top: 24px` (retail only)\n    -   `footer-padding-bottom: 72px`\n    -   `footer-mobile-padding-top: 40px` (retail only)\n    -   `footer-mobile-padding-bottom: 72px`\n\n**We are not providing automatic updates for these breaking changes.**\n"
      },
      {
        "heading": "updating to version 12",
        "level": 2,
        "content": "With v12, we are upgrading to [Angular 12](https://blog.angular.io/angular-v12-is-now-available-32ed51fbfd49). To update your Angular installation please check the respective [update guide](https://angular.io/guide/updating-to-version-12). In most cases the following command should do the update:\n\n`ng update @angular/cli @angular/core`\n\nThings to consider for the Angular version 12 update:\n\n-   Angular12 generates new applications in strict mode by default. This introduces much more strict type-checking within templates, see more details [here](https://angular.io/guide/strict-mode). It also enables Typescript [strict mode](https://www.typescriptlang.org/tsconfig#strict) that enforces much stricter type-checking in code, as well.\n-   TypeScript is updated to version [4.2](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html).\n\nIt should be easy to update with the following command:\n\n`ng update @allianz/ng-aquila --force`\n\n**Important:** The visual padding of the Accordion component changes with this update in accordance with the design guidelines. **We are not providing an automatic update for this breaking change.**\n"
      },
      {
        "heading": "breaking changes",
        "level": 4,
        "content": "With v11 there are some breaking changes:\n\n-   **Removal of outer margins of components**\n\n    When ng-aquila was started, the first components were implemented with default outer margins. But since the number of projects using ng-aquila is growing, this is not suitable anymore for a lot of use cases and projects. This is why we decided to remove them with v11.\n\n    <p class=\"docs-danger-text nx-font-weight-bold\">Please be aware that this change might affect the styling and layout of your application and it should be checked for visual differences.</p>\n\n    For an easier upgrade path we provide a compatibility css file that restores the margins prior to this change. To use this file add it to your `angular.json`:\n\n    ```\n    \"architect\": {\n      \"build\": {\n        \"builder\": \"@angular-devkit/build-angular:browser\",\n        \"options\": {\n          // ...\n          \"styles\": [\n            // ...\n            \"node_modules/@allianz/ng-aquila/css/compatibility.css\",\n          ]\n        }\n      }\n    }\n    ```\n\n    For the exact changes please check `compatibility.css` or\n\n    <details>\n      <summary>Expand here to show a summary of the changes</summary>\n\n    | **Component** | **Changes** |\n    | --- | --- |\n    | **expansion-panel/accordion** | Removed `margin-top: 16px` before the first expansion-panel inside an accordion. |\n    | **button** | Removed `margin: 0 0 24px 0` . |\n    | **cards** | Removed `margin-bottom: 24px` from the `nx-card` component and `margin-bottom: 8px` from the `nx-selectable-card` component. |\n    | **checkbox** | Removed `margin-bottom: 16px` . |\n    | **copytext** | Removed `margin: 0 0 32px 0` . The copytext now has a default `margin: 0` . |\n    | **dynamic-table** | Removed `margin: 32px 0` . |\n    | **headlines** | Removed `margin-bottom` from each headline size. The headlines now have a default `margin: 0` . |\n    | **lists** | Removed `margin-bottom: 32px` from the list and `margin-bottom: 16px` from the last list item. |\n    | **notifications and errors** | Removed `margin: 12px 0` from `nx-message` , `nx-message-banner` and `nx-error` (of type `message` ). For the Message Toast the margin is still used. |\n    | **number-stepper** | Removed `margin-top: 12px` if there is no label set. |\n    | **pagination** | Removed `margin: 8px 0` from the Advanced Pagination (+ smaller screens: `margin: 8px 0 40px 0` ) and `margin: 16px 0` from the Simple Pagination (smaller screens: `margin: 40px 0). |\n    | **taglist** | Removed `margin-bottom: 32px` on the list. On the single tag items, there is still used a `margin-bottom` . |\n\n    </details>\n\n    <br>\n\n-   **card**: Removal of the selecting functionality for the `nx-card` component in favor of `nx-selectable-card`\n\n    The deprecated `selectable`, `selected`, `disabled` and `selectedChange` properties were removed from the `nx-card` component. Please update to the `nx-selectable-card` component that covers all this functionality.\n\n-   **comparison-table**: The deprecated `label` input of `nxComparisonTableRowGroup` was removed. Use `labelCollapsed` instead.\n\n-   **datefield**:\n\n    -   The deprecated `format()` function was removed, which is not needed to be called anymore.\n    -   The deprecated `getPopupConnectionElementRef()` method was removed. Use `getConnectedOverlayOrigin()` instead.\n    -   The deprecated `calendarHeader` property was removed from `NxDatepickerIntl`. Use `switchToMultiYearViewLabel` instead.\n\n-   **dropdown**: The deprecated `nxAriaLabel` input input was removed. Accessibility for dropdown is now achieved with `aria-labelledby` that is set automatically.\n\n-   **icon-registry**: The deprecated `getSvgIcon()` method was removed. Please use `getIcon()` instead.\n\n-   **margin-classes**: corrected `nx-margin-x-{size}` and `nx-margin-y-{size}` classes\n\n    Previously when using a `nx-margin-x-{size}` or `nx-margin-y-{size}` class, all four margins (top, right, bottom, left) were affected. When using `nx-margin-x-{size}` classes, the **vertical margins are no longer set to 0**. When using `nx-margin-y-{size}` classes, the **horizontal margins are no longer set to 0**.\n\n-   **progress-indicator**: The deprecated `title` input was removed. Use a `nx-label` element as content to the indicator instead.\n\n-   **radio-toggle**: Removal of the deprecated `selection` setter.\n\n-   **small-stage**: Rewrite to support retail\n\n    -   The `contentNarrow` input of `nx-small-stage` was renamed to `narrow` and moved to the `nx-small-stage-content` directive.\n    -   The `offsetEnd` input of `nx-small-stage` was moved to the `nx-small-stage-end-image` directive.\n    -   The `inputUrl` input of `nx-small-stage` was renamed to `src` and moved to the `nx-small-stage-end-image` directive.\n    -   The `small-stage-image-container-padding-start` theming token was renamed to `small-stage-image-container-padding-to-content`.\n    -   The `small-stage-background-color` theming token was removed. Please set the background-color directly with css.\n"
      },
      {
        "heading": "automatic update (`ng update`)",
        "level": 2,
        "content": "We want to make the update as seamless as possible for you with the use of Angular schematics. By using `ng update` from the Angular CLI this will automatically migrate your project to the new setup. You can update with the following commands:\n\n```\nng update @angular/cli @angular/core --force\nng update @angular/cdk --force\nng update @allianz/ng-aquila --force\n```\n\nYou can use the Angular CLI's `--allowDirty` flag if you don't want to commit between these steps.\n"
      }
    ]
  },
  {
    "name": "schematics.md",
    "title": "Schematics",
    "category": "",
    "alias": [],
    "sections": [
      {
        "heading": "schematics",
        "level": 1,
        "content": "Besides `ng add` and the migrations that run during `ng update`, ng-aquila and ngx-brand-kit ship `ng generate` schematics. They are **opt-in**: they never run on their own, so you decide when your project changes.\n\n| Schematic | What it does |\n| --- | --- |\n| [`@allianz/ngx-brand-kit:apply-a1-theme`](./guides/schematics#apply-a1-theme) | Switches your app from the NDBX theme to the A1 theme. |\n| [`@allianz/ng-aquila:migrate-button-api`](./guides/schematics#migrate-button-api) | Moves the modifiers in the `nxButton` string into their own inputs. |\n"
      },
      {
        "heading": "before you run a schematic",
        "level": 2,
        "content": "- Run it from your workspace root, where `angular.json` lives.\n- Commit your work first, so you can review the changes with `git diff`.\n- Add `--dry-run` to see which files would change without writing them.\n- If your workspace has several projects, pass `--project=<name>`.\n"
      },
      {
        "heading": "apply-a1-theme",
        "level": 2,
        "content": "Applies the [A1 Design System](https://ngx-ndbx.frameworks.allianz.io/guides/a1) theme to your app. It is part of `@allianz/ngx-brand-kit`, so your app needs that package installed.\n\n```sh\nnpx ng g @allianz/ngx-brand-kit:apply-a1-theme\n```\n\nIt does the two steps from [Manually applying A1 Theme](https://ngx-ndbx.frameworks.allianz.io/guides/a1#manually-applying-a1-theme) for you:\n\n1. In the `styles` of your build target in `angular.json`, it replaces the NDBX theme CSS with the A1 theme CSS for the density you pick.\n2. It adds `provideA1Theme()` to your `main.ts`, or `NxA1ThemeModule` to your `AppModule` in a module-based app.\n\nIf your app uses the NDBX Expert theme, it also sets `gridType: 'functional'`.\n\n| Option | Values | Description |\n| --- | --- | --- |\n| `--type` | `spacious`, `dense`, `compact` | Density of the theme. You are asked if you leave it out. `spacious` is for end-customer apps, `dense` for end-customer portals, `compact` for expert and internal apps. |\n"
      },
      {
        "heading": "migrate-button-api",
        "level": 2,
        "content": "`nxButton` and `nxIconButton` now take size, danger, negative and block as their own inputs. The old space-separated string still works, but the separate inputs are the documented API and can each be bound on their own. This schematic rewrites the string for you.\n\n```sh\nnpx ng g @allianz/ng-aquila:migrate-button-api\n```\n\n```html\n<!-- before -->\n<button nxButton=\"secondary small danger negative block\">Delete</button>\n<button nxPlainButton=\"danger\">Delete</button>\n\n<!-- after -->\n<button nxButton=\"secondary\" size=\"small\" critical inverse block>Delete</button>\n<button nxPlainButton critical>Delete</button>\n```\n\n| In `nxButton=\"…\"` / `nxIconButton=\"…\"`                        | Becomes                       |\n| ------------------------------------------------------------- | ----------------------------- |\n| `primary` `secondary` `tertiary` `cta` `emphasis` `attention` | stays: `nxButton=\"secondary\"` |\n| `small` `small-medium` `medium` `large`                       | `size=\"…\"`                    |\n| `danger`                                                      | `critical`                    |\n| `negative`                                                    | `inverse`                     |\n| `block`                                                       | `block`                       |\n\nOn `nxPlainButton`, `danger` has no effect any more, so it becomes `critical`. If a modifier is already set through its input, for example `[size]=\"s\"`, the schematic drops the modifier from the string and keeps the input.\n\nIt changes `.html` files and inline `template`s of your components.\n\n| Option | Values | Description |\n| --- | --- | --- |\n| `--path` | folder, from workspace root | Folder to migrate. Defaults to the source root of the project. Fails if the folder doesn't exist. |\n"
      },
      {
        "heading": "what you migrate by hand",
        "level": 3,
        "content": "The schematic logs a warning with `file:line:col` for every button it can't migrate. Go through the list once it finishes:\n\n- **Bound value**, such as `[nxButton]=\"variant\"` or `nxButton=\"primary {{ size }}\"`: split it into the separate inputs, for example `nxButton=\"secondary\" [inverse]=\"isInverse\"`.\n- **Unknown modifier**, such as `nxButton=\"secondary smal\"`: check for a typo. The button ignores unknown modifiers.\n- **Template that is not a plain string**, such as a template literal with `${…}` or a constant: change its buttons by hand.\n\nA template that is imported from another file is not detected at all, so search those files for `nxButton` yourself.\n"
      }
    ]
  },
  {
    "name": "trusted-types.md",
    "title": "Trusted Types",
    "category": "",
    "alias": [],
    "sections": [
      {
        "heading": "trusted types",
        "level": 1,
        "content": "[Trusted Types](https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API) is a browser security feature that blocks assigning plain strings to DOM sinks like `innerHTML`, which helps prevent DOM-based cross-site scripting (XSS). You turn it on with a Content Security Policy (CSP).\n\nAquila supports Trusted Types. Wherever the library has to write HTML to the DOM, it does so through its own Trusted Types policy named `ng-aquila`.\n"
      },
      {
        "heading": "configuring your csp",
        "level": 2,
        "content": "Allow the `ng-aquila` policy next to the policies of Angular and the Angular CDK:\n\n```\nContent-Security-Policy: trusted-types angular angular#components ng-aquila; require-trusted-types-for 'script';\n```\n\n| Policy               | Registered by    | Needed for                                                                    |\n| -------------------- | ---------------- | ----------------------------------------------------------------------------- |\n| `angular`            | `@angular/core`  | Angular itself, e.g. sanitized `[innerHTML]` bindings                         |\n| `angular#components` | `@angular/cdk`   | CDK and Angular Material features that write HTML                             |\n| `ng-aquila`          | Aquila           | Parsing SVG icons registered in `NxIconRegistry` (built-in and custom icons)  |\n"
      },
      {
        "heading": "`angular#unsafe-bypass`",
        "level": 3,
        "content": "Angular needs the `angular#unsafe-bypass` policy whenever a value created with a `DomSanitizer` bypass method such as `bypassSecurityTrustHtml` or `bypassSecurityTrustResourceUrl` is used in a template binding. This applies to:\n\n- **`nx-video`**, which builds the YouTube embed URL with `bypassSecurityTrustResourceUrl` and binds it to the iframe `src`. See the [video documentation](./documentation/video/overview).\n- Your own bindings that use a bypass method.\n\nWithout the policy, the browser logs `Creating a TrustedTypePolicy named 'angular#unsafe-bypass' violates the following Content Security policy directive` when the video starts. The video still plays, because an iframe `src` is not a Trusted Types sink. To avoid the error, add the policy to your CSP:\n\n```\nContent-Security-Policy: trusted-types angular angular#components angular#unsafe-bypass ng-aquila; require-trusted-types-for 'script';\n```\n\nOnly add it if you need it: it allows every bypassed value in your application, not just the ones from Aquila. See the [Angular security guide](https://angular.dev/best-practices/security#enforcing-trusted-types) for details.\n\nIf `ng-aquila` is missing from the CSP, the browser refuses to create the policy and logs an error, and icons fail to render with `This document requires 'TrustedHTML' assignment`.\n"
      },
      {
        "heading": "what the policy trusts",
        "level": 2,
        "content": "The `ng-aquila` policy only wraps markup the library has already decided to trust:\n\n- **Icon literals** (`addSvgIconLiteral`) must be marked as trusted with `bypassSecurityTrustHtml` and are parsed as-is, so only register markup you control.\n- **Icons loaded by URL** (`addSvgIcon`) are parsed as-is, the same way the Angular Material icon registry handles them. The URL itself has to be marked as a trusted resource URL, so only register URLs that serve SVGs you control."
      }
    ]
  },
  {
    "name": "accordion.md",
    "title": "Accordion",
    "category": "components",
    "alias": [
      "expansion panel",
      "collapse"
    ],
    "sections": [
      {
        "heading": "standalone expansion panel",
        "level": 3,
        "content": "You can use a single expansion panel as a standalone item in different states as shown in the following examples.\n\n\n```ts\nimport {\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standalone Expansion Panel Example\n */\n@Component({\n  selector: 'accordion-standalone-example',\n  templateUrl: './accordion-standalone-example.html',\n  styleUrls: ['./accordion-standalone-example.css'],\n  imports: [\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionStandaloneExampleComponent {}\n\n```\n```html\n<nx-expansion-panel>\n  <nx-expansion-panel-header>\n    <nx-expansion-panel-title>Insurance details</nx-expansion-panel-title>\n  </nx-expansion-panel-header>\n  <h2 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">General</h2>\n  <p nxCopytext=\"normal\" class=\"nx-margin-bottom-2m\">Lorem ipsum</p>\n  <h2 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">\n    What's included\n  </h2>\n  <p nxCopytext=\"normal\">Lorem ipsum</p>\n</nx-expansion-panel>\n\n<nx-expansion-panel [disabled]=\"true\">\n  <nx-expansion-panel-header>\n    <nx-expansion-panel-title\n      >Insurance details (disabled)</nx-expansion-panel-title\n    >\n  </nx-expansion-panel-header>\n  <h2 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">General</h2>\n  <p nxCopytext=\"normal\" class=\"nx-margin-bottom-2m\">Lorem ipsum</p>\n  <h2 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">\n    What's included\n  </h2>\n  <p nxCopytext=\"normal\">Lorem ipsum</p>\n</nx-expansion-panel>\n\n```\n\n"
      },
      {
        "heading": "accordion",
        "level": 3,
        "content": "By default only one item can be expanded.\n\n\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic Accordion Example\n */\n@Component({\n  selector: 'accordion-example',\n  templateUrl: './accordion-example.html',\n  styleUrls: ['./accordion-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionExampleComponent {}\n\n```\n```html\n<nx-accordion>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>General information</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <h2 nxHeadline=\"subsection-medium\" class=\"nx-margin-bottom-2m\">\n      What's important\n    </h2>\n    <p nxCopytext=\"normal\">Lorem ipsum</p>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Payment details</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <h2 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">\n      What's included\n    </h2>\n    <p nxCopytext=\"normal\">Lorem ipsum</p>\n  </nx-expansion-panel>\n</nx-accordion>\n\n```\n\n"
      },
      {
        "heading": "multi accordion",
        "level": 3,
        "content": "If you want the user to be able to expand multiple items simultaneously you can use `multi`.\n\n\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multi Accordion Example\n */\n@Component({\n  selector: 'accordion-multi-example',\n  templateUrl: './accordion-multi-example.html',\n  styleUrls: ['./accordion-multi-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n    NxButtonComponent,\n  ],\n})\nexport class AccordionMultiExampleComponent {\n  multi = true;\n\n  toggleMulti() {\n    this.multi = !this.multi;\n  }\n}\n\n```\n```html\n<nx-accordion [multi]=\"multi\">\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>About us</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\">Lorem ipsum</p>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\">Lorem ipsum</p>\n  </nx-expansion-panel>\n</nx-accordion>\n\n<p>Is [multi] active? {{ multi }}</p>\n<button nxButton (click)=\"toggleMulti()\" type=\"button\">Toggle Multi</button>\n\n```\n\n"
      },
      {
        "heading": "styling options",
        "level": 3,
        "content": "The appearance of an accordion can be changed by setting according properties `size`, `inverse`, `flushAlignment` on `nx-accordion` or by giving each of the expansion panels their own configuration. Panels will always prefer their own configuration if given for `size` and `inverse`.\n\n`size` accepts `l` (default), and `m`. It supersedes `variant` (`regular`, `light`, `extra-light`), which keeps working: `l` renders like `regular`, `m` like `light`. If both are set on the same element, `size` wins. `extra-light` and other legacy size still accept through `variant` input.\n\n`inverse` applies the styles for a dark background. It supersedes `negative`, which keeps working as an alias.\n"
      },
      {
        "heading": "inverse",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse Styling Example\n */\n@Component({\n  selector: 'accordion-inverse-example',\n  templateUrl: './accordion-inverse-example.html',\n  styleUrls: ['./accordion-inverse-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-accordion inverse=\"true\">\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>About us</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </nx-expansion-panel>\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </nx-expansion-panel>\n  </nx-accordion>\n</div>\n\n```\n\n"
      },
      {
        "heading": "size m",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Light Styling Example\n */\n@Component({\n  selector: 'accordion-light-example',\n  templateUrl: './accordion-light-example.html',\n  styleUrls: ['./accordion-light-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionLightExampleComponent {}\n\n```\n```html\n<nx-accordion size=\"m\">\n  <nx-expansion-panel disabled>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>About us (disabled)</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>More information</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n</nx-accordion>\n\n```\n\n"
      },
      {
        "heading": "size m inverse",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Light Inverse Styling Example\n */\n@Component({\n  selector: 'accordion-light-inverse-example',\n  templateUrl: './accordion-light-inverse-example.html',\n  styleUrls: ['./accordion-light-inverse-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionLightInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-accordion size=\"m\" inverse=\"true\">\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>About us</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </nx-expansion-panel>\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </nx-expansion-panel>\n    <nx-expansion-panel disabled=\"true\">\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title\n          >More information (disabled)</nx-expansion-panel-title\n        >\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </nx-expansion-panel>\n  </nx-accordion>\n</div>\n\n```\n\n"
      },
      {
        "heading": "size extra-light",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Accordion Extra Light Example\n */\n@Component({\n  selector: 'accordion-extra-light-example',\n  templateUrl: './accordion-extra-light-example.html',\n  styleUrls: ['./accordion-extra-light-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionExtraLightExampleComponent {}\n\n```\n```html\n<nx-accordion variant=\"extra-light\">\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Insurance details</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\" class=\"nx-margin-0\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n  <nx-expansion-panel [disabled]=\"true\">\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title\n        >Insurance details (disabled)</nx-expansion-panel-title\n      >\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\" class=\"nx-margin-0\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Insurance details</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\" class=\"nx-margin-0\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Insurance details</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <p nxCopytext=\"normal\" class=\"nx-margin-0\">\n      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit. Rem\n      tempora corporis illum aut fugit quidem dicta! Excepturi consequuntur\n      mollitia quibusdam sequi deserunt beatae labore expedita dolorum omnis\n      incidunt!\n    </p>\n  </nx-expansion-panel>\n</nx-accordion>\n\n```\n\n"
      },
      {
        "heading": "size extra-light inverse",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Extra Light Inverse Styling Example\n */\n@Component({\n  selector: 'accordion-extra-light-inverse-example',\n  templateUrl: './accordion-extra-light-inverse-example.html',\n  styleUrls: ['./accordion-extra-light-inverse-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionExtraLightInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-accordion variant=\"extra-light\" inverse=\"true\">\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>About us</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\" class=\"nx-margin-0\">Lorem ipsum</p>\n    </nx-expansion-panel>\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\" class=\"nx-margin-0\">Lorem ipsum</p>\n    </nx-expansion-panel>\n    <nx-expansion-panel>\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title>More information</nx-expansion-panel-title>\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\" class=\"nx-margin-0\">Lorem ipsum</p>\n    </nx-expansion-panel>\n    <nx-expansion-panel disabled=\"true\">\n      <nx-expansion-panel-header>\n        <nx-expansion-panel-title\n          >Insurance details (disabled)</nx-expansion-panel-title\n        >\n      </nx-expansion-panel-header>\n      <p nxCopytext=\"normal\" class=\"nx-margin-0\">\n        Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam, fugit.\n        Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n        consequuntur mollitia quibusdam sequi deserunt beatae labore expedita\n        dolorum omnis incidunt!\n      </p>\n    </nx-expansion-panel>\n  </nx-accordion>\n</div>\n\n```\n\n"
      },
      {
        "heading": "flush alignment",
        "level": 4,
        "content": "Flush aligned accordions or expansion panels will have no left/right padding in the header and body. This is useful when the accordion is used inside other components that already bring padding, such as cards to align headings and other content with the accordion content. Has no effect on [extra light accordions](documentation/accordion/overview#size-extra-light).\n\n\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxGridModule } from '@allianz/ng-aquila/grid';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Light Styling Example\n */\n@Component({\n  selector: 'accordion-flush-example',\n  templateUrl: './accordion-flush-example.html',\n  styleUrls: ['./accordion-flush-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxCopytextComponent,\n    NxGridModule,\n    NxSwitcherComponent,\n    FormsModule,\n  ],\n})\nexport class AccordionFlushExampleComponent {\n  flushAligned = true;\n}\n\n```\n```html\n<nx-switcher [(ngModel)]=\"flushAligned\"> Flush Alignment </nx-switcher>\n<div nxGrid class=\"content\">\n  <div nxRow>\n    <div nxCol=\"12,6\">\n      <h3>Regular</h3>\n\n      <nx-accordion size=\"l\" [flushAlignment]=\"flushAligned\">\n        <nx-expansion-panel disabled>\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title\n              >About us (disabled)</nx-expansion-panel-title\n            >\n          </nx-expansion-panel-header>\n          <p nxCopytext=\"normal\">\n            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam,\n            fugit. Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n            consequuntur mollitia quibusdam sequi deserunt beatae labore\n            expedita dolorum omnis incidunt!\n          </p>\n        </nx-expansion-panel>\n        <nx-expansion-panel>\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n          </nx-expansion-panel-header>\n          <p nxCopytext=\"normal\">\n            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam,\n            fugit. Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n            consequuntur mollitia quibusdam sequi deserunt beatae labore\n            expedita dolorum omnis incidunt!\n          </p>\n        </nx-expansion-panel>\n        <nx-expansion-panel>\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title\n              >More information</nx-expansion-panel-title\n            >\n          </nx-expansion-panel-header>\n          <p nxCopytext=\"normal\">\n            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam,\n            fugit. Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n            consequuntur mollitia quibusdam sequi deserunt beatae labore\n            expedita dolorum omnis incidunt!\n          </p>\n        </nx-expansion-panel>\n      </nx-accordion>\n    </div>\n    <div nxCol=\"12,6\">\n      <h3>Light</h3>\n      <nx-accordion size=\"m\">\n        <nx-expansion-panel disabled [flushAlignment]=\"flushAligned\">\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title\n              >About us (disabled)</nx-expansion-panel-title\n            >\n          </nx-expansion-panel-header>\n          <p nxCopytext=\"normal\">\n            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam,\n            fugit. Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n            consequuntur mollitia quibusdam sequi deserunt beatae labore\n            expedita dolorum omnis incidunt!\n          </p>\n        </nx-expansion-panel>\n        <nx-expansion-panel [flushAlignment]=\"flushAligned\">\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title>Contact us</nx-expansion-panel-title>\n          </nx-expansion-panel-header>\n          <p nxCopytext=\"normal\">\n            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam,\n            fugit. Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n            consequuntur mollitia quibusdam sequi deserunt beatae labore\n            expedita dolorum omnis incidunt!\n          </p>\n        </nx-expansion-panel>\n        <nx-expansion-panel [flushAlignment]=\"flushAligned\">\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title\n              >More information</nx-expansion-panel-title\n            >\n          </nx-expansion-panel-header>\n          <p nxCopytext=\"normal\">\n            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam,\n            fugit. Rem tempora corporis illum aut fugit quidem dicta! Excepturi\n            consequuntur mollitia quibusdam sequi deserunt beatae labore\n            expedita dolorum omnis incidunt!\n          </p>\n        </nx-expansion-panel>\n      </nx-accordion>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "lazy loading",
        "level": 3,
        "content": "By default the content of the accordion items will be loaded eagerly even when the item is closed. You can choose to provide the content as an `ng-template` instead to defer the initialization until the accordion item is loaded.\n\n\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelBodyDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Lazy Loading Example\n */\n@Component({\n  selector: 'accordion-lazy-example',\n  templateUrl: './accordion-lazy-example.html',\n  styleUrls: ['./accordion-lazy-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxExpansionPanelBodyDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionLazyExampleComponent {}\n\n```\n```html\n<nx-accordion>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>General information</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <ng-template nxExpansionPanelBody>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </ng-template>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Payment Details</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <ng-template nxExpansionPanelBody>\n      <p nxCopytext=\"normal\">Lorem ipsum</p>\n    </ng-template>\n  </nx-expansion-panel>\n</nx-accordion>\n\n```\n\n"
      },
      {
        "heading": "accordion with error state",
        "level": 3,
        "content": "Example error behaviour with accessible error messages using dynamic `aria-invalid` and `aria-describedby`:\n\n\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Accordion Error Example\n */\n@Component({\n  selector: 'accordion-error-example',\n  templateUrl: './accordion-error-example.html',\n  styleUrls: ['./accordion-error-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxIconComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxMessageComponent,\n  ],\n})\nexport class AccordionErrorExampleComponent {\n  readonly formGroupInfo = this.fb.group({\n    surname: ['Mustermann', Validators.required],\n  });\n\n  readonly formGroupPayment = this.fb.group({\n    input: ['', Validators.required],\n  });\n\n  showErrorPayment = true;\n  showErrorInfo = false;\n\n  constructor(private readonly fb: FormBuilder) {\n    this.formGroupPayment.markAllAsTouched();\n  }\n\n  get infoHasError() {\n    return this.formGroupInfo.get('surname')?.hasError('required');\n  }\n\n  get paymentHasError() {\n    return this.formGroupPayment.get('input')?.hasError('required');\n  }\n}\n\n```\n```html\n<nx-accordion>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header\n      [attr.aria-invalid]=\"infoHasError\"\n      [attr.aria-describedby]=\"infoHasError ? 'error_example' : ''\"\n    >\n      <nx-expansion-panel-title>\n        <div class=\"expansion-title-with-icon\">\n          @if (infoHasError) {\n            <nx-icon\n              class=\"nx-error__icon\"\n              [name]=\"'exclamation-triangle'\"\n              aria-hidden=\"true\"\n            ></nx-icon>\n          }\n          <span>General Information</span>\n        </div>\n      </nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <form [formGroup]=\"formGroupInfo\">\n      <div nxLayout=\"grid nogutters\">\n        <div nxRow>\n          <div nxCol=\"12,12,12,6,6\">\n            <nx-formfield label=\"Surname\">\n              <input\n                required\n                nxInput\n                formControlName=\"surname\"\n                autocomplete=\"family-name\"\n              />\n              <nx-error nxFormfieldError>\n                <strong> Please note: </strong> you have to fill out this field\n                to continue.\n              </nx-error>\n            </nx-formfield>\n          </div>\n        </div>\n      </div>\n    </form>\n  </nx-expansion-panel>\n  <nx-expansion-panel>\n    <nx-expansion-panel-header\n      [attr.aria-invalid]=\"paymentHasError\"\n      [attr.aria-describedby]=\"paymentHasError ? 'error_example' : ''\"\n    >\n      <nx-expansion-panel-title>\n        <div class=\"expansion-title-with-icon\">\n          @if (paymentHasError) {\n            <nx-icon\n              aria-hidden=\"true\"\n              class=\"nx-error__icon\"\n              [name]=\"'exclamation-triangle'\"\n            ></nx-icon>\n          }\n          <span>Payment details</span>\n        </div>\n      </nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <form [formGroup]=\"formGroupPayment\">\n      <div nxLayout=\"grid nogutters\">\n        <div nxRow>\n          <div nxCol=\"12,12,12,6,6\">\n            <nx-formfield label=\"Label\">\n              <input required nxInput formControlName=\"input\" />\n              <nx-error nxFormfieldError>\n                <strong> Please note: </strong> you have to fill out this field\n                to continue.\n              </nx-error>\n            </nx-formfield>\n          </div>\n        </div>\n      </div>\n    </form>\n  </nx-expansion-panel>\n</nx-accordion>\n@if (infoHasError || paymentHasError) {\n  <nx-message id=\"error_example\" context=\"critical\" class=\"nx-margin-top-xs\">\n    <strong> Error: </strong> Please check the section containing an error\n    marked with a red triangle with an exclamation mark.\n  </nx-message>\n}\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "To enable and configure scroll behavior you can use the EXPANSION_PANEL_DEFAULT_OPTIONS injection token as shown in the code snippet below:\n\n```ts\n@NgModule({\n    providers: [\n        {\n            provide: EXPANSION_PANEL_DEFAULT_OPTIONS,\n            useValue: {\n                scrollIntoViewActive: true,\n                scrollIntoViewOptions: {\n                    behavior: 'smooth'\n                }\n            }\n        }\n    ]\n```\n\nor configure the scrollIntoViewActive- and scrollIntoViewOptions-Input-decorators as shown in this example:\n\n\n```ts\nimport {\n  NxAccordionDirective,\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Smooth Scrolling Example\n */\n@Component({\n  selector: 'accordion-scroll-smooth-example',\n  templateUrl: './accordion-scroll-smooth-example.html',\n  styleUrls: ['./accordion-scroll-smooth-example.css'],\n  imports: [\n    NxAccordionDirective,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class AccordionScrollSmoothExampleComponent {\n  scrollIntoViewActive = true;\n\n  scrollIntoViewOptions: ScrollIntoViewOptions = {\n    behavior: 'smooth',\n  };\n}\n\n```\n```html\n<nx-accordion>\n  <nx-expansion-panel\n    [scrollIntoViewActive]=\"scrollIntoViewActive\"\n    [scrollIntoViewOptions]=\"scrollIntoViewOptions\"\n  >\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>General information</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <h2 nxHeadline=\"subsection-medium\" class=\"nx-margin-bottom-2m\">\n      What's important\n    </h2>\n    <p nxCopytext=\"normal\">Lorem ipsum</p>\n  </nx-expansion-panel>\n  <nx-expansion-panel\n    [scrollIntoViewActive]=\"scrollIntoViewActive\"\n    [scrollIntoViewOptions]=\"scrollIntoViewOptions\"\n  >\n    <nx-expansion-panel-header>\n      <nx-expansion-panel-title>Payment details</nx-expansion-panel-title>\n    </nx-expansion-panel-header>\n    <h2 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">\n      What's included\n    </h2>\n    <p nxCopytext=\"normal\">Lorem ipsum</p>\n  </nx-expansion-panel>\n</nx-accordion>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "action.md",
    "title": "Action",
    "category": "components",
    "alias": [
      "menu"
    ],
    "sections": [
      {
        "heading": "usage with router",
        "level": 3,
        "content": "The action is fully compatible with the angular router. When using the `routerLink` and you can add the `routerLinkActive=\"is-selected\"` directive to highlight the current active route.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Action with Router Example\n */\n@Component({\n  selector: 'action-with-router-example',\n  styleUrls: ['action-with-router-example.css'],\n  templateUrl: './action-with-router-example.html',\n  imports: [\n    NxActionComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n  ],\n})\nexport class ActionWithRouterExampleComponent {\n  actions = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      query: { a: 4 },\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n      query: { a: 5 },\n    },\n  ];\n}\n\n```\n```html\n<nav aria-label=\"menu\">\n  @for (action of actions; track action) {\n    <a\n      nxAction\n      routerLink=\"./\"\n      [queryParams]=\"action.query\"\n      routerLinkActive=\"is-selected\"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      {{ action.label }}\n    </a>\n  }\n</nav>\n\n```\n\n"
      },
      {
        "heading": "indicators",
        "level": 3,
        "content": "Inside the `nxAction` item there can be used a [`<nx-indicator>`](./documentation/indicator/overview):\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\ninterface Action {\n  icon: string;\n  label: string;\n  notification?: boolean;\n  notificationCount?: number;\n}\n\n/**\n * @title Indicator Example\n */\n@Component({\n  selector: 'action-indicator-example',\n  styleUrls: ['./action-indicator-example.css'],\n  templateUrl: './action-indicator-example.html',\n  imports: [\n    NxActionComponent,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxIndicatorComponent,\n  ],\n})\nexport class ActionIndicatorExampleComponent {\n  actions: Action[] = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      notification: false,\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      notification: true,\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      notification: true,\n      notificationCount: 105,\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      notification: true,\n      notificationCount: 4,\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n    },\n  ];\n\n  selectedAction: Action = this.actions[0];\n\n  onSelect(action: Action) {\n    this.selectedAction = action;\n  }\n\n  getIndicatorText(notificationCount: number) {\n    if (!notificationCount) {\n      return '';\n    }\n    return notificationCount > 99 ? '99+' : notificationCount;\n  }\n\n  getAriaLabel(\n    label: string,\n    notificationCount = '',\n    hasNotification?: boolean,\n  ) {\n    if (hasNotification) {\n      return `${label} ${notificationCount} new notifications available`;\n    }\n\n    return `${label}`;\n  }\n}\n\n```\n```html\n<nav aria-label=\"menu\">\n  @for (action of actions; track action) {\n    <button\n      nxAction\n      (click)=\"onSelect(action)\"\n      [selected]=\"action === selectedAction\"\n      [attr.aria-label]=\"\n        getAriaLabel(\n          action.label,\n          $any(action.notificationCount),\n          action.notification\n        )\n      \"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      <span class=\"label-content\">\n        {{ action.label }}\n        @if (action.notification) {\n          <nx-indicator position=\"top-end\">{{\n            getIndicatorText($any(action.notificationCount))\n          }}</nx-indicator>\n        }\n      </span>\n    </button>\n  }\n</nav>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If you use this Component for navigation consider enclosing your list within a `<nav>` element or applying the `role=\"navigation\"` attribute for improved accessibility in your application.\n"
      }
    ]
  },
  {
    "name": "ag-grid.md",
    "title": "Ag-grid",
    "category": "Third-party",
    "alias": [],
    "sections": [
      {
        "heading": "how to use theming api in v33+",
        "level": 3,
        "content": "If you're new to AG Grid or already using version 33+, you can skip to the **Necessary CSS Imports** section and follow the steps to apply our custom themes.\n\nIf you're upgrading from a version older than v33, see the next section: **Migrate from Pre-v33** for important migration details.\n\n"
      },
      {
        "heading": "migrate from pre-v33",
        "level": 4,
        "content": "You can refer to the official migration guide here: [Migrating to the Theming API](https://www.ag-grid.com/archive/33.1.1/angular-data-grid/theming-migration/) \n\nTo avoid styling conflicts between legacy CSS themes and the Theming API, make sure to remove globally imported legacy style.\n\nRemove this:\n```json\n\"styles\": [\n    \"node_modules/ag-grid-community/styles/ag-grid.css\"\n]\n```\n"
      },
      {
        "heading": "necessary css imports",
        "level": 4,
        "content": "Import the provided file from `@allianz/ng-aquila/themes/theming-api-aquila.css`.\nYou can choose any of the typical ways in an angular application, e.g. in the angular.json file or in your main styles file.\n\nAngular.json example:\n```json\n\"styles\": [\n    \"node_modules/@allianz/ng-aquila/themes/theming-api-aquila.css\",\n]\n```\n"
      },
      {
        "heading": "import and apply our theme",
        "level": 4,
        "content": "- Use the `themeAquila` by importing and applying it to `[theme]` input, along with our custom class `theming-api-aquila`. \n\nIn .ts file:\n```ts \nimport { themeAquila } from '@allianz/ng-aquila/ag-grid';\n```\nIn .html file\n```html\n<ag-grid-angular\n    class=\"theming-api-aquila\"\n    [theme]=\"themeAquila\"\n></ag-grid-angular>\n```\n\n- **Allianz internal projects**: use `themeAllianz`, which builds on Alpine and applies the Allianz icon set via the Theming API.\n\nIn .ts file:\n```ts\nimport { themeAllianz } from '@allianz/ng-aquila/ag-grid';\n```\nIn .html file\n```html\n<ag-grid-angular\n    class=\"theming-api-aquila\"\n    [theme]=\"themeAllianz\"\n></ag-grid-angular>\n```\n"
      },
      {
        "heading": "optional: add modifiers",
        "level": 4,
        "content": "Add one or multiple of the modifier params `themeAquilaDense` or `themeAquilaZebra` to the ag-grid-angular element as well. You can combine them and add or remove them dynamically with ag-grid function `withParams`.\n\nApply a single modifier:\n```ts\nthis.theme = themeAquila.withParams(themeAquilaDenseParams);\nthis.theme = themeAquila.withParams(themeAquilaZebraParams);\n```\nApply both:\n```ts\nthis.theme = themeAquila.withParams({\n    ...themeAquilaDenseParams,\n    ...themeAquilaZebraParams,\n});\n```\n\n"
      },
      {
        "heading": "theming api example",
        "level": 4,
        "content": "<div class=\"docs-public\">\n\n```ts\nimport {\n  themeAquila,\n  themeAquilaDenseParams,\n  themeAquilaZebraParams,\n} from '@allianz/ng-aquila/ag-grid';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { AsyncPipe } from '@angular/common';\nimport { HttpClient } from '@angular/common/http';\nimport {\n  ChangeDetectorRef,\n  Component,\n  ElementRef,\n  ViewChild,\n} from '@angular/core';\nimport { AgGridAngular, AgGridModule } from 'ag-grid-angular';\nimport {\n  AllCommunityModule,\n  CellClickedEvent,\n  ClientSideRowModelModule,\n  ColDef,\n  ColGroupDef,\n  GridApi,\n  GridReadyEvent,\n  ModuleRegistry,\n  RowSelectionOptions,\n} from 'ag-grid-community';\nimport { Observable } from 'rxjs';\n\nModuleRegistry.registerModules([ClientSideRowModelModule, AllCommunityModule]);\n\n/**\n * @title Ag-grid Theming API example\n */\n@Component({\n  selector: 'ag-grid-opensource-theming-api-example',\n  templateUrl: './ag-grid-opensource-theming-api-example.html',\n  styleUrls: ['./ag-grid-opensource-theming-api-example.css'],\n  imports: [NxButtonComponent, AgGridModule, AsyncPipe],\n})\nexport class AgGridOpensourceThemingApiExampleComponent {\n  theme = themeAquila;\n  rowSelection: RowSelectionOptions = {\n    mode: 'multiRow',\n    headerCheckbox: true,\n    checkboxes: true,\n  };\n  columnsNoGroup: ColDef[] = [\n    {\n      colId: 'make',\n      field: 'make',\n      filter: 'agTextColumnFilter',\n      floatingFilter: true,\n      resizable: true,\n    },\n    {\n      field: 'model',\n      floatingFilter: true,\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n    {\n      field: 'price',\n      floatingFilter: true,\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n  ];\n\n  showGroup = true;\n  // Each Column Definition results in one Column.\n  columnsWithGroup: (ColDef | ColGroupDef)[] = [\n    {\n      colId: 'make',\n      field: 'make',\n      filter: 'agTextColumnFilter',\n      floatingFilter: true,\n      resizable: true,\n    },\n    {\n      headerName: 'Group 1',\n      resizable: true,\n      initialHide: true,\n      showRowGroup: false,\n\n      children: [\n        {\n          field: 'model',\n          filter: 'agTextColumnFilter',\n          cellEditorPopup: true,\n          resizable: true,\n        },\n        {\n          field: 'price',\n          filter: 'agTextColumnFilter',\n          resizable: true,\n        },\n      ],\n    },\n    {\n      field: 'model',\n      floatingFilter: true,\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n    {\n      field: 'price',\n      floatingFilter: true,\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n  ];\n\n  // DefaultColDef sets props common to all Columns\n  defaultColDef: ColDef = {\n    editable: true,\n    sortable: true,\n    filter: true,\n    resizable: true,\n  };\n\n  // Data that gets displayed in the grid\n  rowData$!: Observable<any[]>;\n\n  @ViewChild(AgGridAngular, { read: ElementRef }) agGridElement!: ElementRef;\n  // For accessing the Grid's API\n  @ViewChild(AgGridAngular) agGrid!: AgGridAngular;\n  private gridApi!: GridApi;\n\n  constructor(\n    private readonly http: HttpClient,\n    private readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  // Example load data from server\n  onGridReady(params: GridReadyEvent) {\n    this.gridApi = params.api;\n    this.rowData$ = this.http.get<any[]>(\n      'https://www.ag-grid.com/example-assets/row-data.json',\n    );\n    this.gridApi.sizeColumnsToFit();\n  }\n\n  // Example of consuming Grid Event\n  onCellClicked(e: CellClickedEvent): void {\n    console.log('cellClicked', e);\n  }\n\n  // Example using Grid's API\n  clearSelection(): void {\n    this.agGrid.api.deselectAll();\n  }\n\n  isDense = false;\n  toggleDense() {\n    this.isDense = !this.isDense;\n    this.updateTheme();\n  }\n\n  isZebra = false;\n  toggleZebra() {\n    this.isZebra = !this.isZebra;\n    this.updateTheme();\n  }\n\n  updateTheme() {\n    const newTheme = {\n      ...(this.isDense ? themeAquilaDenseParams : {}),\n      ...(this.isZebra ? themeAquilaZebraParams : {}),\n    };\n\n    this.theme = themeAquila.withParams(newTheme);\n    this._cdr.detectChanges();\n  }\n\n  toggleCheckboxSelection() {\n    const columnDefs = this.gridApi.getColumnDefs();\n    if (!columnDefs) {\n      return;\n    }\n    const currentSelection = this.gridApi.getGridOption(\n      'rowSelection',\n    ) as RowSelectionOptions;\n    const currentCheckboxes = currentSelection?.checkboxes ?? false;\n    this.gridApi.setGridOption('rowSelection', {\n      ...this.rowSelection,\n      mode: 'multiRow',\n      headerCheckbox: !currentCheckboxes,\n      checkboxes: !currentCheckboxes,\n    });\n    this.gridApi.setGridOption('columnDefs', []);\n    this.gridApi.setGridOption('columnDefs', columnDefs);\n    this.gridApi.sizeColumnsToFit();\n  }\n\n  toggleGroup() {\n    this.showGroup = !this.showGroup;\n    this.gridApi.setGridOption(\n      'columnDefs',\n      this.showGroup ? this.columnsWithGroup : this.columnsNoGroup,\n    );\n    this.gridApi.sizeColumnsToFit();\n  }\n}\n\n```\n```html\n<!-- Buttons to play with features -->\n<div class=\"buttons\">\n  <button nxButton=\"small\" (click)=\"clearSelection()\">Clear Selection</button>\n  <button nxButton=\"small\" (click)=\"toggleDense()\">\n    Toggle dense ({{ isDense ? 'on' : 'off' }})\n  </button>\n  <button nxButton=\"small\" (click)=\"toggleZebra()\">\n    Toggle zebra ({{ isZebra ? 'on' : 'off' }})\n  </button>\n  <button nxButton=\"small\" (click)=\"toggleCheckboxSelection()\">\n    Checkbox selection\n  </button>\n  <button nxButton=\"small\" (click)=\"toggleGroup()\">Toggle group header</button>\n</div>\n<!-- AG Grid Angular Component -->\n<ag-grid-angular\n  style=\"width: 100%; height: 100%\"\n  class=\"theming-api-aquila\"\n  [columnDefs]=\"columnsWithGroup\"\n  [defaultColDef]=\"defaultColDef\"\n  [rowData]=\"rowData$ | async\"\n  (gridReady)=\"onGridReady($event)\"\n  [pagination]=\"true\"\n  [rowSelection]=\"rowSelection\"\n  [theme]=\"theme\"\n></ag-grid-angular>\n\n```\n\n</div>\n\n<div class=\"docs-private\">\n\n```ts\nimport {\n  themeAllianz,\n  themeAquilaDenseParams,\n  themeAquilaZebraParams,\n} from '@allianz/ng-aquila/ag-grid';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { AsyncPipe } from '@angular/common';\nimport { HttpClient } from '@angular/common/http';\nimport {\n  ChangeDetectorRef,\n  Component,\n  ElementRef,\n  ViewChild,\n} from '@angular/core';\nimport { AgGridAngular, AgGridModule } from 'ag-grid-angular';\nimport {\n  AllCommunityModule,\n  CellClickedEvent,\n  ClientSideRowModelModule,\n  ColDef,\n  ColGroupDef,\n  GridApi,\n  GridReadyEvent,\n  ModuleRegistry,\n  RowSelectionOptions,\n} from 'ag-grid-community';\nimport { Observable } from 'rxjs';\n\nModuleRegistry.registerModules([ClientSideRowModelModule, AllCommunityModule]);\n/**\n * @title Ag-grid Theming API example\n */\n@Component({\n  selector: 'ag-grid-theming-api-example',\n  templateUrl: './ag-grid-theming-api-example.html',\n  styleUrls: ['./ag-grid-theming-api-example.css'],\n  imports: [NxButtonComponent, AgGridModule, AsyncPipe],\n})\nexport class AgGridThemingAPIExampleComponent {\n  theme = themeAllianz;\n  rowSelection: RowSelectionOptions = {\n    mode: 'multiRow',\n    headerCheckbox: true,\n    checkboxes: true,\n  };\n  floatingFilter = true;\n  columnsNoGroup: ColDef[] = [\n    {\n      colId: 'make',\n      field: 'make',\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n    {\n      field: 'model',\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n    {\n      field: 'price',\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n  ];\n\n  showGroup = true;\n  // Each Column Definition results in one Column.\n  columnsWithGroup: (ColDef | ColGroupDef)[] = [\n    {\n      colId: 'make',\n      field: 'make',\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n    {\n      headerName: 'Group 1',\n      resizable: true,\n      initialHide: true,\n      showRowGroup: false,\n      children: [\n        {\n          field: 'model',\n          filter: 'agTextColumnFilter',\n          resizable: true,\n        },\n        {\n          field: 'price',\n          filter: 'agTextColumnFilter',\n          resizable: true,\n        },\n      ],\n    },\n    {\n      field: 'model',\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n    {\n      field: 'price',\n      filter: 'agTextColumnFilter',\n      resizable: true,\n    },\n  ];\n\n  // DefaultColDef sets props common to all Columns\n  defaultColDef: ColDef = {\n    editable: true,\n    sortable: true,\n    filter: true,\n    resizable: true,\n    floatingFilter: this.floatingFilter,\n  };\n\n  // Data that gets displayed in the grid\n  rowData$!: Observable<any[]>;\n\n  @ViewChild(AgGridAngular, { read: ElementRef }) agGridElement!: ElementRef;\n  // For accessing the Grid's API\n  @ViewChild(AgGridAngular) agGrid!: AgGridAngular;\n  private gridApi!: GridApi;\n\n  constructor(\n    private readonly http: HttpClient,\n    private readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  // Example load data from server\n  onGridReady(params: GridReadyEvent) {\n    this.gridApi = params.api;\n    this.rowData$ = this.http.get<any[]>(\n      'https://www.ag-grid.com/example-assets/row-data.json',\n    );\n    this.gridApi.sizeColumnsToFit();\n  }\n\n  // Example of consuming Grid Event\n  onCellClicked(e: CellClickedEvent): void {\n    console.log('cellClicked', e);\n  }\n\n  // Example using Grid's API\n  clearSelection(): void {\n    this.agGrid.api.deselectAll();\n  }\n\n  isDense = false;\n  toggleDense() {\n    this.isDense = !this.isDense;\n    this.updateTheme();\n  }\n\n  isZebra = false;\n  toggleZebra() {\n    this.isZebra = !this.isZebra;\n    this.updateTheme();\n  }\n\n  updateTheme() {\n    const newTheme = {\n      ...(this.isDense ? themeAquilaDenseParams : {}),\n      ...(this.isZebra ? themeAquilaZebraParams : {}),\n    };\n\n    this.theme = themeAllianz.withParams(newTheme);\n    this._cdr.detectChanges();\n  }\n\n  toggleCheckboxSelection() {\n    const columnDefs = this.gridApi.getColumnDefs();\n    if (!columnDefs) {\n      return;\n    }\n    const currentSelection = this.gridApi.getGridOption(\n      'rowSelection',\n    ) as RowSelectionOptions;\n    const currentCheckboxes = currentSelection?.checkboxes ?? false;\n    this.gridApi.setGridOption('rowSelection', {\n      ...this.rowSelection,\n      mode: 'multiRow',\n      headerCheckbox: !currentCheckboxes,\n      checkboxes: !currentCheckboxes,\n    });\n    this.gridApi.setGridOption('columnDefs', []);\n    this.gridApi.setGridOption('columnDefs', columnDefs);\n    this.gridApi.sizeColumnsToFit();\n  }\n\n  toggleGroup() {\n    this.showGroup = !this.showGroup;\n    this.gridApi.setGridOption(\n      'columnDefs',\n      this.showGroup ? this.columnsWithGroup : this.columnsNoGroup,\n    );\n    this.gridApi.sizeColumnsToFit();\n  }\n\n  toggleFloatingFilter() {\n    this.floatingFilter = !this.floatingFilter;\n    this.defaultColDef = {\n      ...this.defaultColDef,\n      floatingFilter: this.floatingFilter,\n    };\n  }\n}\n\n```\n```html\n<!-- Buttons to play with features -->\n<div class=\"buttons\">\n  <button nxButton=\"small\" (click)=\"clearSelection()\">Clear Selection</button>\n  <button nxButton=\"small\" (click)=\"toggleDense()\">\n    Toggle dense ({{ isDense ? 'on' : 'off' }})\n  </button>\n  <button nxButton=\"small\" (click)=\"toggleZebra()\">\n    Toggle zebra ({{ isZebra ? 'on' : 'off' }})\n  </button>\n  <button nxButton=\"small\" (click)=\"toggleCheckboxSelection()\">\n    Checkbox selection\n  </button>\n  <button nxButton=\"small\" (click)=\"toggleGroup()\">Toggle group header</button>\n  <button nxButton=\"small\" (click)=\"toggleFloatingFilter()\">\n    Toggle floating filter\n  </button>\n</div>\n<!-- AG Grid Angular Component -->\n<ag-grid-angular\n  style=\"width: 100%; height: 100%\"\n  class=\"theming-api-aquila\"\n  [columnDefs]=\"columnsWithGroup\"\n  [defaultColDef]=\"defaultColDef\"\n  [rowData]=\"rowData$ | async\"\n  (gridReady)=\"onGridReady($event)\"\n  [pagination]=\"true\"\n  [rowSelection]=\"rowSelection\"\n  [theme]=\"theme\"\n></ag-grid-angular>\n\n```\n\n</div>\n"
      },
      {
        "heading": "legacy compatibility in v33+",
        "level": 3,
        "content": "If you're upgrading to AG Grid v33+ but want to continue using the legacy CSS-based themes, you can do so by setting `[theme]=\"'legacy'\"`. Then follow the steps outlined in the **Deprecated** section below.\n```html\n<ag-grid-angular\n    class=\"ag-theme-alpine ag-theme-aquila\"\n    [theme]=\"'legacy'\"\n></ag-grid-angular>\n```\nYou can find code examples for the legacy version here:\n- [Open-source example](https://github.com/allianz/ng-aquila/tree/main/projects/ng-aquila/documentation/examples/ag-grid/ag-grid-opensource) \n- [Allianz internal projects example](https://github.com/allianz/ng-aquila/tree/main/projects/ng-aquila/documentation/examples/ag-grid/ag-grid) \n\n"
      },
      {
        "heading": "deprecated: legacy theme setup (pre-v33)",
        "level": 3,
        "content": "If you're using ag-grid-angular prior to v33, or have not yet migrated to the Theming API, we continue to provide an `ag-theme-aquila` theme for the ag-grid-angular component which is based on the Alpine theme from ag-grid. You can still use it by following this legacy setup.\n\n<div class=\"docs-deprecation-warning\">\n  <strong>Deprecation Warning:</strong>\n  Legacy themes (ag-grid.css, SCSS, and theme classnames) are deprecated and will be removed in a future AG Grid major release. We recommend migrating to the Theming API by switching to the [theme] input and removing legacy CSS imports.\n</div>\n"
      },
      {
        "heading": "compatibility",
        "level": 4,
        "content": "The theme was initially built with ag-grid-angular version `30.0.0`. In general it should continue to work in later minor versions, but ag-grid does not give any guarantee that things do not change between minor versions. They try to keep their CSS classes as stable as possible, but we cannot test every update of ag-grid. So please let us know if you encounter any issues.\n\nPlease also note that for some design features the theme makes use of the `:has` css selector which is currently still in development in Firefox, as such we are not supporting Firefox at the moment. Firefox 121 will ship the `:has` selector and the theme will look the same as on other browsers then.\n"
      },
      {
        "heading": "how to use legacy theme",
        "level": 4,
        "content": "The ag-grid theme assumes that one of the library themes is already imported to use css variables from there.\n"
      },
      {
        "heading": "necessary css imports",
        "level": 4,
        "content": "- Import the base ag-grid styles and the Alpine theme\n- Import the provided file from `@allianz/ng-aquila/themes/ag-theme-aquila.css`\n\nYou can choose any of the typical ways in an angular application, e.g. in the angular.json file or in your main styles.(s)css file.\nAngular.json example:\n```json\n\"styles\": [\n    \"node_modules/ag-grid-community/styles/ag-grid.css\",\n    \"node_modules/ag-grid-community/styles/ag-theme-alpine.css\",\n    \"node_modules/@allianz/ng-aquila/themes/ag-theme-aquila.css\",\n]\n```\n"
      },
      {
        "heading": "add theme to the ag-grid element",
        "level": 4,
        "content": "- Add the classes `ag-theme-alpine` and `ag-theme-aquila` to the ag-grid-angular element.\n```html\n<ag-grid-angular class=\"ag-theme-alpine ag-theme-aquila\"></ag-grid-angular>\n```\n\n- **Allianz internal projects**: add the class `ag-theme-allianz-icons` to the ag-grid-angular element to overwrite the default ag-grid alpine icons with the Allianz icons.\n```html\n<ag-grid-angular class=\"ag-theme-alpine ag-theme-aquila ag-theme-allianz-icons\"></ag-grid-angular>\n```\n"
      },
      {
        "heading": "optional: add modifiers",
        "level": 4,
        "content": "Add one or multiple of the modifier classes `ag-theme-aquila-dense` or `ag-theme-aquila-zebra` to the ag-grid-angular element as well. You can combine them and add or remove them dynamically.\n```html\n<ag-grid-angular class=\"ag-theme-aquila ag-theme-aquila ag-theme-aquila-dense\"></ag-grid-angular>\n```"
      }
    ]
  },
  {
    "name": "autocomplete.md",
    "title": "Autocomplete",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "module",
        "level": 3,
        "content": "Autocomplete requires Angular CDK.\n\n```ts\nimport { OverlayModule } from '@angular/cdk/overlay';`\n```\n\nAutocomplete can be used with input only, but usually you'll wan't to use it within formfield or natural language form. For this you'll need these additional imports.\n\n```ts\nimport { NxFormfieldModule } from '@allianz/ng-aquila/formfield';\nimport { NxNaturalLanguageFormModule } from '@allianz/ng-aquila/natural-language-form';\n```\n"
      },
      {
        "heading": "examples",
        "level": 3,
        "content": "To use autocomplete, create a `nx-autocomplete` element with `nx-autocomplete-option` elements. Set the `[value]` of the `nx-autocomplete-option` to the one you wish to fill the input with. Export the Autocomplete component to the template variable. Use nxAutocompleteTrigger directive (`[nxAutocomplete]`) on the input element with it's value set to the template variable of the Autocomplete component to bind input to the autocomplete.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport { Component } from '@angular/core';\n\n/**\n * @title Autocomplete example\n */\n@Component({\n  selector: 'autocomplete-basic-example',\n  templateUrl: './autocomplete-basic-example.html',\n  styleUrls: ['./autocomplete-basic-example.css'],\n  imports: [\n    NxAutocompleteTriggerDirective,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n  ],\n})\nexport class AutocompleteBasicExampleComponent {\n  options = `Chimpanzee,Chinchilla,Chipmunk,Coati,Cicada,Clam,\n    Clownfish,Cobra,Cockroach,Cod,Condor,Constrictor,Coral,Cougar,Cow,\n    Coyote,Coypu,Crab,Crane,Crane fly,Crawdad,Crayfish,Cricket,Crocodile,Crow`.split(\n    ',',\n  );\n}\n\n```\n```html\n<input type=\"text\" [nxAutocomplete]=\"auto1\" />\n<nx-autocomplete #auto1=\"nxAutocomplete\">\n  @for (option of options; track option) {\n    <nx-autocomplete-option [value]=\"option\">\n      {{ option }}\n    </nx-autocomplete-option>\n  }\n</nx-autocomplete>\n\n```\n\n"
      },
      {
        "heading": "autocomplete with filtering",
        "level": 4,
        "content": "You can also filter the content of the list based on the value of the input field. The list will be dynamically updated given text input.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport { Component } from '@angular/core';\n\n/**\n * @title Autocomplete filtering example\n */\n@Component({\n  selector: 'autocomplete-filtering-example',\n  templateUrl: './autocomplete-filtering-example.html',\n  styleUrls: ['./autocomplete-filtering-example.css'],\n  imports: [\n    NxAutocompleteTriggerDirective,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n  ],\n})\nexport class AutocompleteFilteringExampleComponent {\n  filteredOptions: string[];\n  options = [\n    'Chimpanzee',\n    'Chinchilla',\n    'Chipmunk',\n    'Coati',\n    'Cicada',\n    'Clam',\n    'Clownfish',\n    'Cobra',\n    'Cockroach',\n    'Cod',\n    'Condor',\n    'Constrictor',\n    'Coral',\n    'Cougar',\n    'Cow',\n    'Coyote',\n    'Coypu',\n    'Crab',\n    'Crane',\n    'Crane fly',\n    'Crawdad',\n    'Crayfish',\n    'Cricket',\n    'Crocodile',\n    'Crow',\n  ];\n\n  constructor() {\n    this.filteredOptions = this.options.slice();\n  }\n\n  filter(value: any) {\n    this.filteredOptions = this.options.filter((s) =>\n      new RegExp(value, 'gi').test(s),\n    );\n  }\n}\n\n```\n```html\n<input\n  type=\"text\"\n  #animalInput\n  [nxAutocomplete]=\"auto1\"\n  (input)=\"filter(animalInput.value)\"\n/>\n<nx-autocomplete #auto1=\"nxAutocomplete\">\n  @for (option of filteredOptions; track option) {\n    <nx-autocomplete-option [value]=\"option\">\n      {{ option }}\n    </nx-autocomplete-option>\n  }\n</nx-autocomplete>\n\n```\n\n"
      },
      {
        "heading": "default item rendering",
        "level": 4,
        "content": "The autocomplete trigger can provide a default autocomplete options rendering. To use this feature, provide a search callback function via `[nxAutocompleteItems]` attribute. The callback signature has to be `(val: string) => Observable<Array<string>>`.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n  providedIn: 'root',\n})\nexport class WikipediaService {\n  private readonly WIKIPEDIA_URL = 'https://en.wikipedia.org/w/api.php';\n\n  constructor(private readonly client: HttpClient) {}\n\n  search(term: string): Observable<any[]> {\n    const url = searchUrl(term, this.WIKIPEDIA_URL);\n    return this.client\n      .jsonp(url, 'callback')\n      .pipe(\n        map((response: any) =>\n          response[1].map((item: any) => ({ value: item })),\n        ),\n      );\n\n    function searchUrl(searchTeam: string, base: string) {\n      const params = new HttpParams()\n        .append('action', 'opensearch')\n        .append('search', encodeURIComponent(searchTeam))\n        .append('format', 'json');\n      return `${base}?${params.toString()}`;\n    }\n  }\n}\n\n/**\n * @title Default item rendering example\n */\n@Component({\n  selector: 'autocomplete-default-rendering-example',\n  templateUrl: './autocomplete-default-rendering-example.html',\n  styleUrls: ['./autocomplete-default-rendering-example.css'],\n  providers: [WikipediaService],\n  imports: [NxAutocompleteTriggerDirective, NxAutocompleteComponent],\n})\nexport class AutocompleteDefaultRenderingExampleComponent {\n  dynamicBackendOptions: (term: string) => Observable<string[]>;\n\n  constructor(readonly wikipediaService: WikipediaService) {\n    this.dynamicBackendOptions = (term: string) =>\n      wikipediaService\n        .search(term)\n        .pipe(map((items: any) => items.map((item: any) => item.value)));\n  }\n}\n\n```\n```html\n<input\n  type=\"text\"\n  [nxAutocomplete]=\"auto2\"\n  [nxAutocompleteItems]=\"dynamicBackendOptions\"\n/>\n<nx-autocomplete #auto2=\"nxAutocomplete\"></nx-autocomplete>\n\n```\n\n"
      },
      {
        "heading": "data binding",
        "level": 4,
        "content": "All options that apply to the data binding can be used. For details look at the examples with different bindings and different options generation below and also `nxInput`, `nxFormField` and `nxNaturalLanguageForm`.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxNaturalLanguageFormComponent,\n  NxWordComponent,\n} from '@allianz/ng-aquila/natural-language-form';\nimport { LowerCasePipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, Injectable } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n  providedIn: 'root',\n})\nexport class WikipediaService {\n  private readonly WIKIPEDIA_URL = 'https://en.wikipedia.org/w/api.php';\n\n  constructor(private readonly client: HttpClient) {}\n\n  search(term: string): Observable<any[]> {\n    const url = searchUrl(term, this.WIKIPEDIA_URL);\n    return this.client\n      .jsonp(url, 'callback')\n      .pipe(\n        map((response: any) =>\n          response[1].map((item: any) => ({ value: item })),\n        ),\n      );\n\n    function searchUrl(searchTeam: string, base: string) {\n      const params = new HttpParams()\n        .append('action', 'opensearch')\n        .append('search', encodeURIComponent(searchTeam))\n        .append('format', 'json');\n      return `${base}?${params.toString()}`;\n    }\n  }\n}\n\n/**\n * @title Data binding examples\n */\n@Component({\n  selector: 'autocomplete-data-binding-example',\n  templateUrl: './autocomplete-data-binding-example.html',\n  styleUrls: ['./autocomplete-data-binding-example.css'],\n  providers: [WikipediaService],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxAutocompleteTriggerDirective,\n    FormsModule,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n    ReactiveFormsModule,\n    NxNaturalLanguageFormComponent,\n    NxWordComponent,\n    NxFormfieldErrorDirective,\n    LowerCasePipe,\n  ],\n})\nexport class AutocompleteDataBindingExampleComponent {\n  modelBoundData = 'asdf';\n\n  testForm = new FormBuilder().group({\n    autocomplete: [null, Validators.required],\n  });\n\n  dynamicBackendOptions: (term: string) => Observable<string[]>;\n\n  constructor(readonly wikipediaService: WikipediaService) {\n    this.dynamicBackendOptions = (term: string) =>\n      wikipediaService\n        .search(term)\n        .pipe(map((items: any) => items.map((item: any) => item.value)));\n  }\n\n  simpleFilteredOptions(value: string): string[] {\n    if (!value) {\n      return [];\n    }\n    const data = (\n      'Chimpanzee,Chinchilla,Chipmunk,Coati,Cicada,Clam,' +\n      'Clownfish,Cobra,Cockroach,Cod,Condor,Constrictor,Coral,Cougar,Cow,' +\n      'Coyote,Coypu,Crab,Crane,Crane fly,Crawdad,Crayfish,Cricket,Crocodile,Crow'\n    ).split(',');\n    return data.filter((d) => d.toLowerCase().includes(value.toLowerCase()));\n  }\n}\n\n```\n```html\n<nx-formfield label=\"Template bound\">\n  <input\n    nxInput\n    type=\"text\"\n    [nxAutocomplete]=\"auto3\"\n    nxAutocompleteDebounce=\"0\"\n    [(ngModel)]=\"modelBoundData\"\n  />\n</nx-formfield>\n<nx-autocomplete #auto3=\"nxAutocomplete\">\n  @for (item of simpleFilteredOptions(modelBoundData); track item) {\n    <nx-autocomplete-option [value]=\"item\">\n      {{ item | lowercase }}\n    </nx-autocomplete-option>\n  }\n</nx-autocomplete>\nTemplate bound: {{ modelBoundData }}\n\n<form [formGroup]=\"testForm\">\n  <nx-formfield label=\"Reactive bound\">\n    <input\n      nxInput\n      type=\"text\"\n      [nxAutocomplete]=\"auto4\"\n      [nxAutocompleteItems]=\"dynamicBackendOptions\"\n      formControlName=\"autocomplete\"\n    />\n    <nx-autocomplete #auto4></nx-autocomplete>\n  </nx-formfield>\n</form>\nReactive form: {{ testForm.controls.autocomplete.value }}\n\n<nx-natural-language-form>\n  Here is a word\n  <nx-word label=\"Provide this required field\">\n    <input\n      nxInput\n      ngModel\n      required\n      [nxAutocomplete]=\"auto5\"\n      [nxAutocompleteItems]=\"dynamicBackendOptions\"\n    />\n    <div nxError>This field is required.</div>\n    <nx-autocomplete #auto5=\"nxAutocomplete\"></nx-autocomplete>\n  </nx-word>\n  with some following copy.\n</nx-natural-language-form>\n\n```\n\n"
      },
      {
        "heading": "panelgrow and panelmaxwidth",
        "level": 3,
        "content": "With `panelGrow` set to `true` the overlay can grow larger than the trigger and grows with the longest label. \n\nWith `panelGrow` set to `false` the overlay won't grow larger than trigger.(this is default value)\n\nWith `panelMaxWidth` a max-width can be set, `panelMaxWidth` accepts a number for pixel values or a string for any css value.\n( Note that: `panelMaxWidth` have more priority than `panelGrow`)\n\nNote: minimum overlay width will be size of trigger.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { LowerCasePipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Panel grow and Panel max width examples\n */\n@Component({\n  selector: 'autocomplete-panel-grow-example',\n  templateUrl: './autocomplete-panel-grow-example.html',\n  styleUrls: ['./autocomplete-panel-grow-example.css'],\n  standalone: true,\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxAutocompleteTriggerDirective,\n    FormsModule,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n    ReactiveFormsModule,\n    LowerCasePipe,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n  ],\n})\nexport class AutocompletePanelGrowExampleComponent {\n  modelBoundData = 'a';\n  modelBoundData2 = 'c';\n  modelPanelGrow = true;\n  modelPanelMaxWidth = 400;\n\n  testForm = new FormBuilder().group({\n    autocomplete: [null, Validators.required],\n  });\n\n  constructor() {}\n\n  simpleFilteredOptions(value: string): string[] {\n    if (!value) {\n      return [];\n    }\n    const data = [\n      'apple banana cherry grape strawberry watermelon pineapple mango',\n      'audi bmw mercedes chevrolet ford toyota honda nissan volkswagen',\n      'cat dog bear elephant fish bee hippo kangaroo lion tiger',\n    ];\n\n    return data.filter((d) => d.toLowerCase().includes(value.toLowerCase()));\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"3\">\n      <nx-formfield label=\"Default Panel grow Example\">\n        <input\n          nxInput\n          type=\"text\"\n          [nxAutocomplete]=\"auto0\"\n          [(ngModel)]=\"modelBoundData\"\n        />\n      </nx-formfield>\n      <nx-autocomplete #auto0=\"nxAutocomplete\">\n        @for (item of simpleFilteredOptions(modelBoundData); track item) {\n          <nx-autocomplete-option [value]=\"item\">\n            {{ item | lowercase }}\n          </nx-autocomplete-option>\n        }\n      </nx-autocomplete>\n    </div>\n    <div nxCol=\"9\">Default ( panelGrow = false )</div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"3\">\n      <nx-formfield label=\"Panel Grow Example\">\n        <input\n          nxInput\n          type=\"text\"\n          [nxAutocomplete]=\"auto1\"\n          [panelGrow]=\"true\"\n          [(ngModel)]=\"modelBoundData\"\n        />\n      </nx-formfield>\n      <nx-autocomplete #auto1=\"nxAutocomplete\">\n        @for (item of simpleFilteredOptions(modelBoundData); track item) {\n          <nx-autocomplete-option [value]=\"item\">\n            {{ item | lowercase }}\n          </nx-autocomplete-option>\n        }\n      </nx-autocomplete>\n    </div>\n    <div nxCol=\"9\">Panel Grow: {{ modelPanelGrow }}</div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"3\">\n      <nx-formfield label=\"Panel Max Width Example\">\n        <input\n          nxInput\n          type=\"text\"\n          [nxAutocomplete]=\"auto2\"\n          [panelMaxWidth]=\"modelPanelMaxWidth\"\n          [panelGrow]=\"true\"\n          [(ngModel)]=\"modelBoundData2\"\n        />\n      </nx-formfield>\n      <nx-autocomplete #auto2=\"nxAutocomplete\">\n        @for (item of simpleFilteredOptions(modelBoundData2); track item) {\n          <nx-autocomplete-option [value]=\"item\">\n            {{ item | lowercase }}\n          </nx-autocomplete-option>\n        }\n      </nx-autocomplete>\n    </div>\n    <div nxCol=\"9\">\n      Pabel Grow = true, Panel Max Width: {{ modelPanelMaxWidth }}\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: autocomplete with outline",
        "level": 4,
        "content": "In a formfield with an outline the styling of the autocomplete will adjust accordingly.\n\nPlease note that this is an **Expert styling option**. This means that the outline appearance is only intended for internal applications and not for applications that are client facing.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Autocomplete with formfield example\n */\n@Component({\n  selector: 'autocomplete-outline-example',\n  templateUrl: './autocomplete-outline-example.html',\n  styleUrls: ['./autocomplete-outline-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxAutocompleteTriggerDirective,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n  ],\n})\nexport class AutocompleteOutlineExampleComponent {\n  filteredOptions: string[];\n  options = [\n    'Chimpanzee',\n    'Chinchilla',\n    'Chipmunk',\n    'Coati',\n    'Cicada',\n    'Clam',\n    'Clownfish',\n    'Cobra',\n    'Cockroach',\n    'Cod',\n    'Condor',\n    'Constrictor',\n    'Coral',\n    'Cougar',\n    'Cow',\n    'Coyote',\n    'Coypu',\n    'Crab',\n    'Crane',\n    'Crane fly',\n    'Crawdad',\n    'Crayfish',\n    'Cricket',\n    'Crocodile',\n    'Crow',\n  ];\n\n  constructor() {\n    this.filteredOptions = this.options.slice();\n  }\n\n  filter(value: any) {\n    this.filteredOptions = this.options.filter((s) =>\n      new RegExp(value, 'gi').test(s),\n    );\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\">\n      <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n        Autocomplete with appearance outline\n      </h4>\n      <nx-formfield label=\"Animals\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          nxInput\n          type=\"text\"\n          #animalInput\n          [nxAutocomplete]=\"animal1\"\n          (input)=\"filter(animalInput.value)\"\n        />\n        <nx-autocomplete #animal1=\"nxAutocomplete\">\n          @for (option of filteredOptions; track option) {\n            <nx-autocomplete-option [value]=\"option\">\n              {{ option }}\n            </nx-autocomplete-option>\n          }\n        </nx-autocomplete>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "If you want to use a custom scroll strategy, you can use the `NX_AUTOCOMPLETE_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport {\n  NX_AUTOCOMPLETE_SCROLL_STRATEGY,\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\n\nconst words = `Chimpanzee,Chinchilla,Chipmunk,Coati,Cicada,Clam,Clownfish,Cobra,Cockroach,Cod,Condor,Constrictor,Coral,Cougar,Cow,Coyote,Coypu,Crab,Crane,Crane fly,Crawdad,Crayfish,Cricket,Crocodile,Crow`;\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'autocomplete-scroll-strategy-provider-example',\n  templateUrl: './autocomplete-scroll-strategy-provider-example.html',\n  styleUrls: ['./autocomplete-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_AUTOCOMPLETE_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [\n    NxAutocompleteTriggerDirective,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n  ],\n})\nexport class AutocompleteScrollStrategyProviderExampleComponent {\n  options = words.split(',');\n}\n\n```\n```html\n<input type=\"text\" [nxAutocomplete]=\"auto\" />\n<nx-autocomplete #auto=\"nxAutocomplete\">\n  @for (option of options; track option) {\n    <nx-autocomplete-option [value]=\"option\">\n      {{ option }}\n    </nx-autocomplete-option>\n  }\n</nx-autocomplete>\n\n```\n\n\nAlternatively, the `NX_AUTOCOMPLETE_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The autocomplete can be accessed via keyboard. You can trigger the search by simply start typing in the input. After the overlay popped up, you can use ARROW_UP and ARROW_DOWN to focus on the desired element. Hitting SPACE or ENTER selects the value however ESC or TAB closes the autocomplete.\n"
      }
    ]
  },
  {
    "name": "avatar.md",
    "title": "Avatar",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "non-clickable avatar",
        "level": 3,
        "content": "\n```ts\nimport { NxAvatarComponent } from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { Component } from '@angular/core';\n/**\n * @title Avatar example\n */\n@Component({\n  selector: 'avatar-example',\n  templateUrl: './avatar-example.html',\n  styleUrls: ['./avatar-example.css'],\n  imports: [NxAvatarComponent, NxIconComponent, NxFigureComponent],\n})\nexport class AvatarExampleComponent {}\n\n```\n```html\n<div\n  nxAvatar\n  class=\"nx-margin-right-s\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n\n<div nxAvatar aria-label=\"Logged in\" class=\"nx-margin-right-s\" role=\"img\">\n  <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n</div>\n\n<div\n  nxAvatar\n  aria-label=\"Logged in as Samantha Owl\"\n  class=\"nx-margin-right-s\"\n  role=\"img\"\n>\n  <figure nxFigure=\"rounded\">\n    <img\n      src=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n      alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n    />\n  </figure>\n</div>\n\n```\n\n"
      },
      {
        "heading": "usage as a button",
        "level": 3,
        "content": "\n```ts\nimport { NxAvatarComponent } from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { Component } from '@angular/core';\n/**\n * @title Button example\n */\n@Component({\n  selector: 'avatar-button-example',\n  templateUrl: './avatar-button-example.html',\n  styleUrls: ['./avatar-button-example.css'],\n  imports: [NxAvatarComponent, NxIconComponent, NxFigureComponent],\n})\nexport class AvatarButtonExampleComponent {}\n\n```\n```html\n<button nxAvatar aria-label=\"show user details\" class=\"nx-margin-right-s\">\n  MD\n</button>\n\n<button nxAvatar aria-label=\"show user details\" class=\"nx-margin-right-s\">\n  <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<button nxAvatar aria-label=\"show user details\" class=\"nx-margin-right-s\">\n  <figure nxFigure=\"rounded\">\n    <img\n      src=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n      alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n    />\n  </figure>\n</button>\n\n<button\n  nxAvatar\n  aria-label=\"show user details\"\n  disabled\n  class=\"nx-margin-right-s\"\n>\n  <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<button nxAvatar aria-label=\"show user details\" disabled>\n  <figure nxFigure=\"rounded\">\n    <img\n      src=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n      alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n    />\n  </figure>\n</button>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "\n```ts\nimport { NxAvatarComponent } from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { Component } from '@angular/core';\n/**\n * @title Disabled example\n */\n@Component({\n  selector: 'avatar-disabled-example',\n  templateUrl: './avatar-disabled-example.html',\n  styleUrls: ['./avatar-disabled-example.css'],\n  imports: [NxAvatarComponent, NxIconComponent, NxFigureComponent],\n})\nexport class AvatarDisabledExampleComponent {}\n\n```\n```html\n<div\n  nxAvatar\n  class=\"nx-margin-right-s\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n  disabled\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n\n<div\n  nxAvatar\n  aria-label=\"Logged in\"\n  class=\"nx-margin-right-s\"\n  role=\"img\"\n  disabled\n>\n  <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n</div>\n\n<div nxAvatar aria-label=\"Logged in as Samantha Owl\" role=\"img\" disabled>\n  <figure nxFigure=\"rounded\">\n    <img\n      src=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n      alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n    />\n  </figure>\n</div>\n\n```\n\n\n"
      },
      {
        "heading": "size",
        "level": 3,
        "content": "The size of the avatar can be chosen with the `[size]` property.\n\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxAvatarComponent } from '@allianz/ng-aquila/avatar';\nimport { Component } from '@angular/core';\n/**\n * @title Size example\n */\n@Component({\n  selector: 'avatar-colors-example',\n  templateUrl: './avatar-size-example.html',\n  styleUrls: ['./avatar-size-example.css'],\n  imports: [NxAvatarComponent],\n})\nexport class AvatarSizeExampleComponent {}\n\n```\n```html\n<div\n  nxAvatar\n  size=\"xsmall\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div\n  nxAvatar\n  size=\"small\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div\n  nxAvatar\n  size=\"small-medium\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div\n  nxAvatar\n  size=\"medium\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div\n  nxAvatar\n  size=\"large\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div nxAvatar size=\"xlarge\" aria-label=\"Mercedes Deutsch\" role=\"img\">\n  <span aria-hidden=\"true\">MD</span>\n</div>\n\n```\n\n\n</div>\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxAvatarComponent } from '@allianz/ng-aquila/avatar';\nimport { Component } from '@angular/core';\n/**\n * @title Size example\n */\n@Component({\n  selector: 'avatar-size-a1-example',\n  templateUrl: './avatar-size-a1-example.html',\n  styleUrls: ['./avatar-size-a1-example.css'],\n  imports: [NxAvatarComponent],\n})\nexport class AvatarSizeA1ExampleComponent {}\n\n```\n```html\n<div\n  nxAvatar\n  size=\"s\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div\n  nxAvatar\n  size=\"m\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div\n  nxAvatar\n  size=\"l\"\n  class=\"nx-margin-right-xs\"\n  aria-label=\"Mercedes Deutsch\"\n  role=\"img\"\n>\n  <span aria-hidden=\"true\">MD</span>\n</div>\n<div nxAvatar size=\"xl\" aria-label=\"Mercedes Deutsch\" role=\"img\">\n  <span aria-hidden=\"true\">MD</span>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "using different colors",
        "level": 3,
        "content": "You can change the color of the avatar by overwriting the default background and text color as shown in the example below.\n\n<div class=\"docs-private\">\n\n**Please make sure that your colors all belong to the same color group (e.g. rich/soft/vibrant).**\n\n</div>\n\n\n```ts\nimport { NxAvatarComponent } from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n/**\n * @title Colors example\n */\n@Component({\n  selector: 'avatar-colors-example',\n  templateUrl: './avatar-colors-example.html',\n  styleUrls: ['./avatar-colors-example.css'],\n  imports: [NxAvatarComponent, NxIconComponent],\n})\nexport class AvatarColorsExampleComponent {}\n\n```\n```html\n<div class=\"container nx-margin-bottom-m\">\n  <div\n    nxAvatar\n    class=\"color-1 nx-margin-right-s\"\n    aria-label=\"Mercedes Deutsch\"\n    role=\"img\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n  </div>\n  <div\n    nxAvatar\n    class=\"color-2 nx-margin-right-s\"\n    aria-label=\"Mercedes Deutsch\"\n    role=\"img\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n  </div>\n  <div nxAvatar aria-label=\"Logged in\" class=\"color-3\" role=\"img\">\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n  </div>\n</div>\n\n<div class=\"container\">\n  <div\n    nxAvatar\n    class=\"color-4 nx-margin-right-s\"\n    aria-label=\"Mercedes Deutsch\"\n    role=\"img\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n  </div>\n  <div\n    nxAvatar\n    class=\"color-5 nx-margin-right-s\"\n    aria-label=\"Mercedes Deutsch\"\n    role=\"img\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n  </div>\n  <div nxAvatar aria-label=\"Logged in\" class=\"color-6\" role=\"img\">\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "color variants",
        "level": 3,
        "content": "The avatar component now supports a range of new color variants for both attention and subtle states. You can choose from the following colors:\n\n- `yellow`\n- `orange`\n- `red`\n- `purple`\n- `teal`\n- `aqua`\n- `blue`\n- `green`\n- `gray`\n\nTo use an accent color variant, apply the `[accentColor]` property; to control its emphasis, apply the `[prominence]` property (`subtle` by default, or `attention` for the emphasized variant).\n\n\n```ts\nimport {\n  NxAvatarAccentColor,\n  NxAvatarComponent,\n} from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Colors example\n */\n@Component({\n  selector: 'avatar-accent-colors-example',\n  templateUrl: './avatar-accent-colors-example.html',\n  styleUrls: ['./avatar-accent-colors-example.css'],\n  imports: [NxAvatarComponent, NxIconComponent],\n})\nexport class AvatarAccentColorsExampleComponent {\n  readonly accentColors: NxAvatarAccentColor[] = [\n    'yellow',\n    'orange',\n    'red',\n    'purple',\n    'teal',\n    'aqua',\n    'blue',\n    'green',\n    'gray',\n  ];\n}\n\n```\n```html\n<div class=\"container nx-margin-bottom-m\">\n  @for (accentColor of accentColors; track accentColor) {\n    <button\n      nxAvatar\n      size=\"medium\"\n      [accentColor]=\"accentColor\"\n      class=\"nx-margin-right-s\"\n      aria-label=\"Mercedes Deutsch\"\n    >\n      <span aria-hidden=\"true\">MD</span>\n    </button>\n  }\n  <button\n    nxAvatar\n    size=\"medium\"\n    accentColor=\"yellow\"\n    class=\"nx-margin-right-s\"\n    aria-label=\"Mercedes Deutsch\"\n    disabled\n  >\n    <span aria-hidden=\"true\">MD</span>\n  </button>\n</div>\n\n<div class=\"container nx-margin-bottom-m\">\n  @for (accentColor of accentColors; track accentColor) {\n    <button\n      nxAvatar\n      size=\"medium\"\n      [accentColor]=\"accentColor\"\n      prominence=\"attention\"\n      class=\"nx-margin-right-s\"\n      aria-label=\"Logged in\"\n    >\n      <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n  }\n  <button\n    nxAvatar\n    size=\"medium\"\n    accentColor=\"purple\"\n    prominence=\"attention\"\n    aria-label=\"Logged in\"\n    disabled\n  >\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "For use on dark backgrounds, add the `inverse` input to use inverse colors.\n\n**Usage:** `<button nxAvatar inverse>MD</button>`\n\n\n```ts\nimport {\n  NxAvatarAccentColor,\n  NxAvatarComponent,\n} from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse example\n */\n@Component({\n  selector: 'avatar-inverse-example',\n  templateUrl: './avatar-inverse-example.html',\n  styleUrls: ['./avatar-inverse-example.css'],\n  imports: [NxAvatarComponent, NxIconComponent, NxFigureComponent],\n})\nexport class AvatarInverseExampleComponent {\n  readonly accentColors: NxAvatarAccentColor[] = [\n    'yellow',\n    'orange',\n    'red',\n    'purple',\n    'teal',\n    'aqua',\n    'blue',\n    'green',\n    'gray',\n  ];\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <div class=\"container nx-margin-bottom-m\">\n    <button\n      nxAvatar\n      class=\"nx-margin-right-s\"\n      aria-label=\"Mercedes Deutsch\"\n      inverse\n    >\n      <span aria-hidden=\"true\">MD</span>\n    </button>\n\n    <div\n      nxAvatar\n      inverse\n      aria-label=\"Logged in\"\n      class=\"nx-margin-right-s\"\n      role=\"img\"\n    >\n      <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    </div>\n\n    <div\n      nxAvatar\n      inverse\n      aria-label=\"Logged in as Samantha Owl\"\n      class=\"nx-margin-right-s\"\n      role=\"img\"\n    >\n      <figure nxFigure=\"rounded\">\n        <img\n          src=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n          alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n        />\n      </figure>\n    </div>\n  </div>\n  <div class=\"container nx-margin-bottom-m\">\n    @for (accentColor of accentColors; track accentColor) {\n      <button\n        nxAvatar\n        size=\"medium\"\n        [accentColor]=\"accentColor\"\n        class=\"nx-margin-right-s\"\n        aria-label=\"Mercedes Deutsch\"\n        inverse\n      >\n        <span aria-hidden=\"true\">MD</span>\n      </button>\n    }\n    <button\n      nxAvatar\n      size=\"medium\"\n      accentColor=\"yellow\"\n      aria-label=\"Mercedes Deutsch\"\n      inverse\n      disabled\n    >\n      <span aria-hidden=\"true\">MD</span>\n    </button>\n  </div>\n\n  <div class=\"container nx-margin-bottom-m\">\n    @for (accentColor of accentColors; track accentColor) {\n      <button\n        nxAvatar\n        size=\"medium\"\n        [accentColor]=\"accentColor\"\n        prominence=\"attention\"\n        class=\"nx-margin-right-s\"\n        aria-label=\"Logged in\"\n        inverse\n      >\n        <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n      </button>\n    }\n    <button\n      nxAvatar\n      size=\"medium\"\n      accentColor=\"purple\"\n      prominence=\"attention\"\n      aria-label=\"Logged in\"\n      inverse\n      disabled\n    >\n      <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n  </div>\n</div>\n\n```\n\n\n\n</div>\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "indicator",
        "level": 3,
        "content": "An [`nx-indicator`](/documentation/indicator/overview) can be projected into the avatar to show status, e.g. an\nonline state or unread count. Add the `nxAvatarIndicator` directive to it; it is always\npositioned in the bottom right corner, regardless of the `position` and `overlap` input.\n\nThe avatar also set the indicator size: `s` avatars get an `800` indicator, `m` a `1200`, `l` a\n`1600` and `xl` a `2000`. This wins over the indicator's own `size` input, so there is no\nneed to set it.\n\n<div class=\"docs-deprecation-warning\">\n\n**Accessibility:** One indicator type used consistently is fine — the meaning comes from the indicator being present or absent. Mixing types (`positive`, `warning`, `critical`, `info`) or mixing indicator content (e.g. different icons, or icons next to counts) conveys meaning through color alone, which fails [WCAG 1.4.1 Use of Color](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html). An `aria-label` does not fix this, since it only reaches screen reader users — add a non-color cue such as accompanying text, a tooltip, or a popover instead. See the [indicator accessibility docs](/documentation/indicator/overview#accessibility) for more details.\n\n</div>\n\n\n```ts\nimport {\n  NxAvatarComponent,\n  NxAvatarIndicatorDirective,\n} from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Indicator example\n */\n@Component({\n  selector: 'avatar-indicator-example',\n  templateUrl: './avatar-indicator-example.html',\n  styleUrls: ['./avatar-indicator-example.css'],\n  imports: [\n    NxAvatarComponent,\n    NxAvatarIndicatorDirective,\n    NxIconComponent,\n    NxIndicatorComponent,\n  ],\n})\nexport class AvatarIndicatorExampleComponent {}\n\n```\n```html\n<div class=\"container\">\n  <button\n    nxAvatar\n    size=\"s\"\n    aria-label=\"Mercedes Deutsch\"\n    class=\"nx-margin-right-s\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n    <nx-indicator nxAvatarIndicator>\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n    </nx-indicator>\n  </button>\n\n  <button\n    nxAvatar\n    size=\"m\"\n    aria-label=\"Mercedes Deutsch\"\n    class=\"nx-margin-right-s\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n    <nx-indicator nxAvatarIndicator type=\"positive\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n    </nx-indicator>\n  </button>\n\n  <button nxAvatar size=\"l\" aria-label=\"user\" class=\"nx-margin-right-s\">\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    <nx-indicator nxAvatarIndicator type=\"warning\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon\n    ></nx-indicator>\n  </button>\n\n  <button nxAvatar size=\"xl\" aria-label=\"user\">\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    <nx-indicator nxAvatarIndicator type=\"info\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon\n    ></nx-indicator>\n  </button>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "When using `nxAvatar` on a native button, please set a suitable `aria-label` for it.\n\nDepending on the context, a non-clickable avatar that contains an icon or an image should use an `aria-label` to also provide the visible information for screenreaders. If the information of the avatar is already contained somewhere else (e.g. a text label besides the avatar) it can also be hidden with `aria-hidden=\"true\"`.\n"
      }
    ]
  },
  {
    "name": "badge.md",
    "title": "Badge",
    "category": "components",
    "alias": [
      "chip"
    ],
    "sections": [
      {
        "heading": "type",
        "level": 3,
        "content": "The `type` input defines what the badge communicates. There are two kinds of types:\n\n- `accent` is the default. It is not a status and takes its color from the `accentColor` input.\n- `info | warning | critical | positive` are the signal types. They communicate a status and have their own signal colors. If both a signal `type` and `accentColor` are set, `type` wins.\n"
      },
      {
        "heading": "accent colors",
        "level": 4,
        "content": "You can customize the badge appearance using different accent colors. Available accent colors are:\n\n`yellow | orange | red | purple | aqua | blue | teal | green | gray` which will show the default as `yellow` accentColor.\n\n**Usage:** `<nx-badge accentColor=\"blue\">Badge</nx-badge>`\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge accent colors\n */\n@Component({\n  selector: 'badge-accent-color-example',\n  templateUrl: './badge-accent-color-example.html',\n  styleUrls: ['./badge-accent-color-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeAccentColorExampleComponent {}\n\n```\n```html\n<div class=\"color-group\">\n  <nx-badge accentColor=\"yellow\">Yellow</nx-badge>\n  <nx-badge accentColor=\"orange\">Orange</nx-badge>\n  <nx-badge accentColor=\"red\">Red</nx-badge>\n  <nx-badge accentColor=\"purple\">Purple</nx-badge>\n  <nx-badge accentColor=\"aqua\">Aqua</nx-badge>\n  <nx-badge accentColor=\"blue\">Blue</nx-badge>\n  <nx-badge accentColor=\"teal\">Teal</nx-badge>\n  <nx-badge accentColor=\"green\">Green</nx-badge>\n  <nx-badge accentColor=\"gray\">Gray</nx-badge>\n</div>\n\n```\n\n"
      },
      {
        "heading": "brand accent color",
        "level": 4,
        "content": "The `brand` accent color is unlike other options, as it is not affected by the `prominence` input.\n\n**Usage:** `<nx-badge accentColor=\"brand\">Brand</nx-badge>`\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge brand color\n */\n@Component({\n  selector: 'badge-brand-example',\n  templateUrl: './badge-brand-example.html',\n  styleUrls: ['./badge-brand-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeBrandExampleComponent {}\n\n```\n```html\n<div class=\"color-group\">\n  <nx-badge accentColor=\"brand\">Brand</nx-badge>\n</div>\n\n```\n\n"
      },
      {
        "heading": "signal types",
        "level": 4,
        "content": "Signal types support `prominence`, `inverse` and `disabled` like accent colors.\n\n**Usage:** `<nx-badge type=\"critical\" prominence=\"attention\">Badge</nx-badge>`\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge signal type example\n */\n@Component({\n  selector: 'badge-signal-example',\n  templateUrl: './badge-signal-example.html',\n  styleUrls: ['./badge-signal-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeSignalExampleComponent {}\n\n```\n```html\n<h3>Subtle prominence</h3>\n<div class=\"color-group nx-margin-bottom-m\">\n  <nx-badge type=\"info\">Info</nx-badge>\n  <nx-badge type=\"warning\">Warning</nx-badge>\n  <nx-badge type=\"critical\">Critical</nx-badge>\n  <nx-badge type=\"positive\">Positive</nx-badge>\n</div>\n\n<h3>Attention prominence</h3>\n<div class=\"color-group nx-margin-bottom-m\">\n  <nx-badge type=\"info\" prominence=\"attention\">Info</nx-badge>\n  <nx-badge type=\"warning\" prominence=\"attention\">Warning</nx-badge>\n  <nx-badge type=\"critical\" prominence=\"attention\">Critical</nx-badge>\n  <nx-badge type=\"positive\" prominence=\"attention\">Positive</nx-badge>\n</div>\n\n```\n\n"
      },
      {
        "heading": "prominence",
        "level": 3,
        "content": "The `prominence` input allows you to control the visual emphasis of the badge. It applies to accent colors and signal types. Available options are:\n\n`subtle | attention` which default value is `subtle`\n\n**Usage:** `<nx-badge accentColor=\"blue\" prominence=\"subtle\">Badge</nx-badge>`\n\nNote: The `prominence` input does not apply to the `brand` accent color.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge prominence example\n */\n@Component({\n  selector: 'badge-prominence-example',\n  templateUrl: './badge-prominence-example.html',\n  styleUrls: ['./badge-prominence-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeProminenceExampleComponent {}\n\n```\n```html\n<h3>Subtle prominence</h3>\n<div class=\"color-group nx-margin-bottom-m\">\n  <nx-badge accentColor=\"yellow\" prominence=\"subtle\">Yellow</nx-badge>\n  <nx-badge accentColor=\"orange\" prominence=\"subtle\">Orange</nx-badge>\n  <nx-badge accentColor=\"red\" prominence=\"subtle\">Red</nx-badge>\n  <nx-badge accentColor=\"purple\" prominence=\"subtle\">Purple</nx-badge>\n  <nx-badge accentColor=\"aqua\" prominence=\"subtle\">Aqua</nx-badge>\n  <nx-badge accentColor=\"blue\" prominence=\"subtle\">Blue</nx-badge>\n  <nx-badge accentColor=\"teal\" prominence=\"subtle\">Teal</nx-badge>\n  <nx-badge accentColor=\"green\" prominence=\"subtle\">Green</nx-badge>\n  <nx-badge accentColor=\"gray\" prominence=\"subtle\">Gray</nx-badge>\n</div>\n\n<h3>Attention prominence</h3>\n<div class=\"color-group\">\n  <nx-badge accentColor=\"yellow\" prominence=\"attention\">Yellow</nx-badge>\n  <nx-badge accentColor=\"orange\" prominence=\"attention\">Orange</nx-badge>\n  <nx-badge accentColor=\"red\" prominence=\"attention\">Red</nx-badge>\n  <nx-badge accentColor=\"purple\" prominence=\"attention\">Purple</nx-badge>\n  <nx-badge accentColor=\"aqua\" prominence=\"attention\">Aqua</nx-badge>\n  <nx-badge accentColor=\"blue\" prominence=\"attention\">Blue</nx-badge>\n  <nx-badge accentColor=\"teal\" prominence=\"attention\">Teal</nx-badge>\n  <nx-badge accentColor=\"green\" prominence=\"attention\">Green</nx-badge>\n  <nx-badge accentColor=\"gray\" prominence=\"attention\">Gray</nx-badge>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabled state",
        "level": 3,
        "content": "Badges can be disabled using the `disabled` input. A disabled badge is shown in neutral colors, regardless of its accent color or signal type.\n\n**Usage:** `<nx-badge disabled>Badge</nx-badge>`\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge disabled example\n */\n@Component({\n  selector: 'badge-disabled-example',\n  templateUrl: './badge-disabled-example.html',\n  styleUrls: ['./badge-disabled-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeDisabledExampleComponent {}\n\n```\n```html\n<h3>Disabled badges</h3>\n<div class=\"color-group\">\n  <nx-badge accentColor=\"yellow\" prominence=\"subtle\" disabled\n    >Disabled - Subtle</nx-badge\n  >\n  <nx-badge accentColor=\"yellow\" prominence=\"attention\" disabled\n    >Disabled - Attention</nx-badge\n  >\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "For use on dark backgrounds, add `inverse` input to use inverse colors.\n\n**Usage:** `<nx-badge inverse>Badge</nx-badge>`\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge inverse example\n */\n@Component({\n  selector: 'badge-inverse-example',\n  templateUrl: './badge-inverse-example.html',\n  styleUrls: ['./badge-inverse-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h3>Inverse brand</h3>\n  <div class=\"color-group nx-margin-bottom-m\">\n    <nx-badge accentColor=\"brand\" inverse>Brand</nx-badge>\n  </div>\n\n  <h3>Inverse subtle</h3>\n  <div class=\"color-group nx-margin-bottom-m\">\n    <nx-badge accentColor=\"yellow\" prominence=\"subtle\" inverse>Yellow</nx-badge>\n    <nx-badge accentColor=\"orange\" prominence=\"subtle\" inverse>Orange</nx-badge>\n    <nx-badge accentColor=\"red\" prominence=\"subtle\" inverse>Red</nx-badge>\n    <nx-badge accentColor=\"purple\" prominence=\"subtle\" inverse>Purple</nx-badge>\n    <nx-badge accentColor=\"aqua\" prominence=\"subtle\" inverse>Aqua</nx-badge>\n    <nx-badge accentColor=\"blue\" prominence=\"subtle\" inverse>Blue</nx-badge>\n    <nx-badge accentColor=\"teal\" prominence=\"subtle\" inverse>Teal</nx-badge>\n    <nx-badge accentColor=\"green\" prominence=\"subtle\" inverse>Green</nx-badge>\n    <nx-badge accentColor=\"gray\" prominence=\"subtle\" inverse>Gray</nx-badge>\n  </div>\n\n  <h3>Inverse attention</h3>\n  <div class=\"color-group nx-margin-bottom-m\">\n    <nx-badge accentColor=\"yellow\" prominence=\"attention\" inverse\n      >Yellow</nx-badge\n    >\n    <nx-badge accentColor=\"orange\" prominence=\"attention\" inverse\n      >Orange</nx-badge\n    >\n    <nx-badge accentColor=\"red\" prominence=\"attention\" inverse>Red</nx-badge>\n    <nx-badge accentColor=\"purple\" prominence=\"attention\" inverse\n      >Purple</nx-badge\n    >\n    <nx-badge accentColor=\"aqua\" prominence=\"attention\" inverse>Aqua</nx-badge>\n    <nx-badge accentColor=\"blue\" prominence=\"attention\" inverse>Blue</nx-badge>\n    <nx-badge accentColor=\"teal\" prominence=\"attention\" inverse>Teal</nx-badge>\n    <nx-badge accentColor=\"green\" prominence=\"attention\" inverse\n      >Green</nx-badge\n    >\n    <nx-badge accentColor=\"gray\" prominence=\"attention\" inverse>Gray</nx-badge>\n  </div>\n\n  <h3>Inverse signal subtle</h3>\n  <div class=\"color-group nx-margin-bottom-m\">\n    <nx-badge type=\"info\" inverse>Info</nx-badge>\n    <nx-badge type=\"warning\" inverse>Warning</nx-badge>\n    <nx-badge type=\"critical\" inverse>Critical</nx-badge>\n    <nx-badge type=\"positive\" inverse>Positive</nx-badge>\n  </div>\n\n  <h3>Inverse signal attention</h3>\n  <div class=\"color-group nx-margin-bottom-m\">\n    <nx-badge type=\"info\" prominence=\"attention\" inverse>Info</nx-badge>\n    <nx-badge type=\"warning\" prominence=\"attention\" inverse>Warning</nx-badge>\n    <nx-badge type=\"critical\" prominence=\"attention\" inverse>Critical</nx-badge>\n    <nx-badge type=\"positive\" prominence=\"attention\" inverse>Positive</nx-badge>\n  </div>\n\n  <h3>Inverse disabled</h3>\n  <div class=\"color-group\">\n    <nx-badge accentColor=\"yellow\" prominence=\"subtle\" disabled inverse\n      >Disabled - Subtle</nx-badge\n    >\n    <nx-badge accentColor=\"yellow\" prominence=\"attention\" disabled inverse\n      >Disabled - Attention</nx-badge\n    >\n    <nx-badge type=\"critical\" disabled inverse>Disabled - Signal</nx-badge>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "character badge",
        "level": 3,
        "content": "If the text contains only one character, the badge will be displayed as a circle.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge character example\n */\n@Component({\n  selector: 'badge-character-example',\n  templateUrl: './badge-character-example.html',\n  styleUrls: ['./badge-character-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeCharacterExampleComponent {}\n\n```\n```html\n<nx-badge>A</nx-badge>\n<nx-badge accentColor=\"green\">B</nx-badge>\n<nx-badge accentColor=\"red\">C</nx-badge>\n<nx-badge accentColor=\"red\" prominence=\"attention\">1</nx-badge>\n<nx-badge accentColor=\"purple\" prominence=\"attention\">2</nx-badge>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "ndbx approach",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  The <code>type</code> and <code>vibrant</code> inputs are the NDBX theme approach and should be used together if needed. They cannot be mixed with the new inputs (<code>accentColor</code>, <code>prominence</code>, <code>disabled</code>, <code>inverse</code>).\n</div>\n"
      },
      {
        "heading": "type",
        "level": 4,
        "content": "You can change the color of the badge by setting the `type` to either `info`, `positive`, `critical` or `warning`. Without a `type`, the badge is shown in gray.\n\n<div class=\"docs-deprecation-warning\">\n  The <code>active</code> and <code>negative</code> types are legacy names for <code>info</code> and <code>warning</code>. They are deprecated. Please use <code>info</code> and <code>warning</code> instead.\n</div>\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Basic badge example\n */\n@Component({\n  selector: 'badge-example',\n  templateUrl: './badge-example.html',\n  styleUrls: ['./badge-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeExampleComponent {}\n\n```\n```html\n<nx-badge>Default</nx-badge>\n<nx-badge type=\"info\">Info</nx-badge>\n<nx-badge type=\"positive\">Approved</nx-badge>\n<nx-badge type=\"critical\">Declined</nx-badge>\n<nx-badge type=\"warning\">Delayed</nx-badge>\n\n```\n\n"
      },
      {
        "heading": "vibrant",
        "level": 4,
        "content": "In order to use the vibrant styling of the badge, you can simply apply the `vibrant` input to the badge.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Vibrant badge example\n */\n@Component({\n  selector: 'badge-vibrant-example',\n  templateUrl: './badge-vibrant-example.html',\n  styleUrls: ['./badge-vibrant-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeVibrantExampleComponent {}\n\n```\n```html\n<nx-badge vibrant>Default</nx-badge>\n<nx-badge vibrant type=\"info\">Info</nx-badge>\n<nx-badge vibrant type=\"positive\">Approved</nx-badge>\n<nx-badge vibrant type=\"critical\">Declined</nx-badge>\n<nx-badge vibrant type=\"warning\">Delayed</nx-badge>\n\n```\n\n"
      },
      {
        "heading": "character badge",
        "level": 4,
        "content": "If the text contains only one character, the badge will be displayed as a circle.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { Component } from '@angular/core';\n/**\n * @title Badge character example\n */\n@Component({\n  selector: 'badge-character-ndbx-example',\n  templateUrl: './badge-character-ndbx-example.html',\n  styleUrls: ['./badge-character-ndbx-example.css'],\n  imports: [NxBadgeComponent],\n})\nexport class BadgeCharacterNdbxExampleComponent {}\n\n```\n```html\n<nx-badge>A</nx-badge>\n<nx-badge type=\"positive\">B</nx-badge>\n<nx-badge type=\"critical\">C</nx-badge>\n<nx-badge type=\"critical\" vibrant>1</nx-badge>\n<nx-badge type=\"info\" vibrant>2</nx-badge>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "base.md",
    "title": "Base Components",
    "category": "components",
    "alias": [
      "label",
      "error"
    ],
    "sections": [
      {
        "heading": "error",
        "level": 3,
        "content": "The `<nx-error>` is a base component to display error messages.\n\nImport it with\n\n<p class=\"docs-api-module-import\">\n  <code style=\"white-space: normal\">\n    <span class=\"docs-api-module-import__import-span\">import</span>\n    { NxErrorModule }\n    <span class=\"docs-api-module-import__from-span\">from</span>\n    <span class=\"docs-api-module-import__path-span\">'@allianz/ng-aquila/base'</span>;\n  </code>\n</p>\n\nThe module is auto-imported when you use the [formfield](./documentation/formfield), [checkbox](./documentation/checkbox) or [radio-button](./documentation/radio-button) module.\n\n<div class=\"docs-a1\">\n\nThe current Design System enforces `appearance=\"text\"`\n\n</div>\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { Component } from '@angular/core';\n\n/** @title Error example */\n@Component({\n  selector: 'error-example',\n  templateUrl: './error-example.html',\n  styleUrls: ['./error-example.css'],\n  imports: [NxErrorComponent],\n})\nexport class ErrorExampleComponent {}\n\n```\n```html\n<nx-error> This is an error message. </nx-error>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 4,
        "content": "The inverse version of the error can be used on a dark background. Set it via the `inverse` property. When\nyou leave it unset, the error follows the surface it is placed on (see `nxSurface`), so an error inside a\ndark surface inverts on its own.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { Component } from '@angular/core';\n\n/** @title Error Inverse */\n@Component({\n  selector: 'error-inverse-example',\n  templateUrl: './error-inverse-example.html',\n  styleUrls: ['./error-inverse-example.css'],\n  imports: [NxErrorComponent],\n})\nexport class ErrorInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-error inverse>\n    This is an inverse error message for use on a dark background.\n  </nx-error>\n</div>\n\n```\n\n\nIf you want to use a custom HTML element for error messages and have it picked up by a component's content projection (e.g. number stepper), you can add `ngProjectAs=\"nx-error\"` to your element. This allows the component to recognize and project your custom error element as if it were an `<nx-error>`.\n"
      },
      {
        "heading": "label",
        "level": 3,
        "content": "The `<nx-label>` is a base component to display a styled label.\n\nImport it with\n\n<p class=\"docs-api-module-import\">\n  <code style=\"white-space: normal\">\n    <span class=\"docs-api-module-import__import-span\">import</span>\n    { NxLabelModule }\n    <span class=\"docs-api-module-import__from-span\">from</span>\n    <span class=\"docs-api-module-import__path-span\">'@allianz/ng-aquila/base'</span>;\n  </code>\n</p>\n\nThe module is auto-imported when you use the [formfield](./documentation/formfield), [checkbox](./documentation/checkbox) or [radio-button](./documentation/radio-button) module.\n\nThe inverse version of the label can be used on a dark background. Set it via the `inverse` property. When\nyou leave it unset, the label and its hint follow the surface they are placed on (see `nxSurface`), the same\nway the error does.\n\n<div class=\"docs-deprecation-warning\">\n  <strong>Deprecated: </strong>\n  The <code>negative</code> property is deprecated. Use <code>inverse</code> instead; setting either one still applies the inverse styles, so existing usages keep working.\n</div>\n\nSet `optionalLabel` to indicate that the associated form control is not mandatory. The text is always rendered wrapped in parentheses.\n\nSet `hint` to show a supplementary line of text below the label. It automatically adjusts to the `inverse` and `disabled` states.\n\nThe label describes a control it does not own, so it cannot wire the hint up itself. It exposes the rendered hint's id as the `hintId` signal (`null` when there is no hint), which the control merges into its own `aria-describedby`. `nx-checkbox-group`, `nx-radio-group`, `nx-tile-group`, `nx-toggle-button-group` and `nx-file-uploader` already do this; when you place a label next to a control yourself, read `hintId` and set `aria-describedby` on that control.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport { Component } from '@angular/core';\n\n/** @title Label example */\n@Component({\n  selector: 'label-example',\n  templateUrl: './label-example.html',\n  styleUrls: ['./label-example.css'],\n  imports: [NxLabelComponent, NxSurface],\n})\nexport class LabelExampleComponent {}\n\n```\n```html\n<nx-label>This is a label</nx-label><br />\n\n<nx-label hint=\"This is a hint\" optionalLabel=\"optional\"\n  >This is a label</nx-label\n>\n\n<br />\n<nx-label [disabled]=\"true\">Disabled label for disabled form controls</nx-label>\n<br />\n<nx-label hint=\"This is a hint\" optionalLabel=\"optional\" [disabled]=\"true\"\n  >Disabled label for disabled form controls</nx-label\n>\n<br />\n<div class=\"docs-inverse-container\">\n  <nx-label inverse>Inverse label on a dark background</nx-label>\n  <br />\n  <nx-label inverse hint=\"This is a hint\" optionalLabel=\"optional\"\n    >Inverse label on a dark background</nx-label\n  >\n  <br />\n  <nx-label inverse [disabled]=\"true\"\n    >Disabled inverse label for disabled form controls</nx-label\n  >\n  <br />\n  <nx-label\n    inverse\n    hint=\"This is a hint\"\n    optionalLabel=\"optional\"\n    [disabled]=\"true\"\n    >Disabled inverse label for disabled form controls</nx-label\n  >\n</div>\n\n<br />\n\n<div nxSurface=\"attention\" class=\"container\">\n  <nx-label hint=\"The label and this hint stay dark\"\n    >Label without [inverse] on an attention surface</nx-label\n  >\n</div>\n\n```\n\n"
      },
      {
        "heading": "info icon",
        "level": 4,
        "content": "A label can show an info icon next to its text. Project an info-icon component into the label and mark it with the `nxLabelInfo` directive. Use the standard `nx-info-icon` (from `@allianz/ng-aquila/info-icon`) for the common case, or project your own implementation — the projected component keeps full control over its own API (popover direction, width, modal behaviour, etc.). The icon is rendered as a sibling of the `<label>` element (never nested inside it) so it stays accessible.\n\n\n```ts\nimport {\n  NxLabelComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { Component } from '@angular/core';\n\n/** @title Label with info icon */\n@Component({\n  selector: 'label-info-icon-example',\n  templateUrl: './label-info-icon-example.html',\n  styleUrls: ['./label-info-icon-example.css'],\n  imports: [NxLabelComponent, NxLabelInfoDirective, NxInfoIconComponent],\n})\nexport class LabelInfoIconExampleComponent {}\n\n```\n```html\n<!-- Simple string content -->\n<nx-label>\n  First name\n  <nx-info-icon nxLabelInfo\n    >We use this to personalise your policy documents.</nx-info-icon\n  >\n</nx-label>\n\n<br />\n\n<!-- Structured content projected directly into the info icon -->\n<nx-label>\n  Contribution\n  <nx-info-icon nxLabelInfo>\n    <p>Your monthly contribution is calculated from:</p>\n    <ul>\n      <li>your selected coverage</li>\n      <li>your age at contract start</li>\n    </ul>\n  </nx-info-icon>\n</nx-label>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "breadcrumb.md",
    "title": "Breadcrumb",
    "category": "components",
    "alias": [
      "location"
    ],
    "sections": [
      {
        "heading": "basic usage",
        "level": 3,
        "content": "You can see the basic behaviour of the breadcrumb component in the example below.\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Basic usage\n */\n@Component({\n  selector: 'breadcrumb-example',\n  templateUrl: './breadcrumb-example.html',\n  styleUrls: ['./breadcrumb-example.css'],\n  imports: [NxBreadcrumbComponent, NxBreadcrumbItemComponent, RouterLink],\n})\nexport class BreadcrumbExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n}\n\n```\n```html\n<nav aria-label=\"Breadcrumb\">\n  <ol nxBreadcrumb>\n    @for (item of items; track item; let i = $index; let isLast = $last) {\n      <li>\n        <a nxBreadcrumbItem [routerLink]=\"isLast ? null : '#'\"> {{ item }} </a>\n      </li>\n    }\n  </ol>\n</nav>\n\n```\n\n"
      },
      {
        "heading": "link appearance",
        "level": 3,
        "content": "You can select the style of the breadcrumb via the `appearance` input.\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Appearance link\n */\n@Component({\n  selector: 'breadcrumb-link-example',\n  templateUrl: './breadcrumb-link-example.html',\n  styleUrls: ['./breadcrumb-link-example.css'],\n  imports: [NxBreadcrumbComponent, NxBreadcrumbItemComponent, RouterLink],\n})\nexport class BreadcrumbLinkExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n}\n\n```\n```html\n<nav aria-label=\"Breadcrumb\">\n  <ol nxBreadcrumb appearance=\"link\">\n    @for (item of items; track item; let i = $index; let isLast = $last) {\n      <li>\n        <a nxBreadcrumbItem [routerLink]=\"isLast ? null : '#'\"> {{ item }} </a>\n      </li>\n    }\n  </ol>\n</nav>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "type",
        "level": 3,
        "content": "You can set the type of the breadcrumb via the `type` input, either `'secondary'` or `'primary'`. By default, the breadcrumb uses the `'secondary'` type.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n  NxBreadcrumbType,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Types\n */\n@Component({\n  selector: 'breadcrumb-type-example',\n  templateUrl: './breadcrumb-type-example.html',\n  styleUrls: ['./breadcrumb-type-example.css'],\n  imports: [\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxLabelComponent,\n    RouterLink,\n  ],\n})\nexport class BreadcrumbTypeExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n  readonly schemes: readonly {\n    readonly type: NxBreadcrumbType;\n    readonly label: string;\n  }[] = [\n    { type: 'secondary', label: 'Secondary (default)' },\n    { type: 'primary', label: 'Primary' },\n  ];\n}\n\n```\n```html\n@for (scheme of schemes; track scheme.type; let isLastScheme = $last) {\n  <nx-label #label class=\"nx-margin-bottom-xs\">{{ scheme.label }}</nx-label>\n  <nav\n    [attr.aria-labelledby]=\"label.id\"\n    [class.nx-margin-bottom-m]=\"!isLastScheme\"\n  >\n    <ol nxBreadcrumb [type]=\"scheme.type\">\n      @for (item of items; track item; let isLast = $last) {\n        <li>\n          <a nxBreadcrumbItem [routerLink]=\"isLast ? null : '#'\">\n            {{ item }}\n          </a>\n        </li>\n      }\n    </ol>\n  </nav>\n}\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "with context menu",
        "level": 3,
        "content": "This example uses the `nxBreadcrumbItem` on a `button` to open a context menu.\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Context menu example\n */\n@Component({\n  selector: 'breadcrumb-context-menu-example',\n  templateUrl: './breadcrumb-context-menu-example.html',\n  styleUrls: ['./breadcrumb-context-menu-example.css'],\n  imports: [\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    RouterLink,\n    NxContextMenuComponent,\n    NxContextMenuTriggerDirective,\n    NxContextMenuItemComponent,\n  ],\n})\nexport class BreadcrumbContextMenuExampleComponent {}\n\n```\n```html\n<nav aria-label=\"Breadcrumb\">\n  <ol nxBreadcrumb>\n    <li>\n      <button\n        nxBreadcrumbItem\n        [nxContextMenuTriggerFor]=\"menu\"\n        aria-label=\"Show hidden breadcrumbs\"\n      >\n        ...\n      </button>\n    </li>\n    <li>\n      <a nxBreadcrumbItem [routerLink]=\"'#'\"> Subpage 3 </a>\n    </li>\n    <li>\n      <a nxBreadcrumbItem [routerLink]=\"null\"> Current </a>\n    </li>\n  </ol>\n</nav>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Home</button>\n  <button nxContextMenuItem type=\"button\" class=\"nx-margin-left-s\">\n    Subpage 1\n  </button>\n  <button nxContextMenuItem type=\"button\" class=\"nx-margin-left-2m\">\n    Subpage 2\n  </button>\n</nx-context-menu>\n\n```\n\n"
      },
      {
        "heading": "responsive",
        "level": 3,
        "content": "The breadcrumb component itself does not collapse items. This example measures the available width with a `ResizeObserver` and collapses the items before the current page, starting with the closest one, into a \"...\" item once the trail no longer fits. Activating \"...\" opens a native `<select>` listing the hidden links, so the platform's own picker is used on mobile devices. Resize the container to try it.\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport {\n  afterNextRender,\n  ChangeDetectorRef,\n  Component,\n  computed,\n  DestroyRef,\n  ElementRef,\n  inject,\n  signal,\n  viewChild,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\ninterface BreadcrumbLink {\n  readonly label: string;\n  readonly link: string;\n}\n\n/**\n * @title Responsive breadcrumb\n */\n@Component({\n  selector: 'breadcrumb-responsive-example',\n  templateUrl: './breadcrumb-responsive-example.html',\n  styleUrls: ['./breadcrumb-responsive-example.css'],\n  imports: [\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxIconModule,\n    RouterLink,\n  ],\n})\nexport class BreadcrumbResponsiveExampleComponent {\n  readonly items: readonly BreadcrumbLink[] = [\n    { label: 'Home', link: '#' },\n    { label: 'Insurance', link: '#' },\n    { label: 'Health Insurance', link: '#' },\n    { label: 'Supplementary Insurance', link: '#' },\n    { label: 'Dental Treatment', link: '#' },\n    { label: 'Tariff Overview', link: '#' },\n  ];\n\n  private readonly _cdr = inject(ChangeDetectorRef);\n  private readonly _container =\n    viewChild.required<ElementRef<HTMLElement>>('container');\n  private readonly _list = viewChild.required<\n    NxBreadcrumbComponent,\n    ElementRef<HTMLOListElement>\n  >('list', { read: ElementRef });\n\n  private readonly _lastIndex = this.items.length - 1;\n  private readonly _maxCollapsed = Math.max(this.items.length - 2, 0);\n  readonly collapsedCount = signal(0);\n\n  readonly lastItem = this.items[this._lastIndex];\n  readonly leadingItems = computed(() =>\n    this.items.slice(0, this._lastIndex - this.collapsedCount()),\n  );\n  readonly hiddenItems = computed(() =>\n    this.items.slice(this._lastIndex - this.collapsedCount(), this._lastIndex),\n  );\n\n  constructor() {\n    const destroyRef = inject(DestroyRef);\n\n    afterNextRender(() => {\n      const observer = new ResizeObserver(() => this._fit());\n      observer.observe(this._container().nativeElement);\n      destroyRef.onDestroy(() => observer.disconnect());\n    });\n  }\n\n  private _fit(): void {\n    const list = this._list().nativeElement;\n    this.collapsedCount.set(0);\n    this._cdr.detectChanges();\n    while (\n      list.scrollWidth > list.clientWidth &&\n      this.collapsedCount() < this._maxCollapsed\n    ) {\n      this.collapsedCount.update((count) => count + 1);\n      this._cdr.detectChanges();\n    }\n  }\n}\n\n```\n```html\n<div class=\"breadcrumb-resizable\">\n  <nav #container aria-label=\"Breadcrumb\">\n    <ol #list nxBreadcrumb class=\"breadcrumb-list\">\n      @for (item of leadingItems(); track item.label) {\n        <li>\n          <a nxBreadcrumbItem [routerLink]=\"item.link\">{{ item.label }}</a>\n        </li>\n      }\n      @if (hiddenItems().length) {\n        <li>\n          <span nxBreadcrumbItem>\n            <span class=\"breadcrumb-overflow\">\n              <nx-icon name=\"ellipsis-v\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n              <select\n                class=\"breadcrumb-overflow__select\"\n                aria-label=\"Show hidden breadcrumbs\"\n              >\n                <option value=\"\" disabled selected hidden>...</option>\n                @for (item of hiddenItems(); track item.label; let i = $index) {\n                  <option [value]=\"i\">{{ item.label }}</option>\n                }\n              </select>\n            </span>\n          </span>\n        </li>\n      }\n      <li>\n        <a nxBreadcrumbItem [routerLink]=\"null\">{{ lastItem.label }}</a>\n      </li>\n    </ol>\n  </nav>\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverse styling",
        "level": 3,
        "content": "Set the `inverse` input to use the breadcrumb on a dark background. It supersedes `negative`, which keeps working as an alias. `inverse` can be combined with the `'primary'` type.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'breadcrumb-negative-example',\n  templateUrl: './breadcrumb-negative-example.html',\n  styleUrls: ['./breadcrumb-negative-example.css'],\n  imports: [\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxLabelComponent,\n    RouterLink,\n  ],\n})\nexport class BreadcrumbNegativeExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-label #defaultLabel class=\"nx-margin-bottom-xs\" [inverse]=\"true\"\n    >Default</nx-label\n  >\n  <nav [attr.aria-labelledby]=\"defaultLabel.id\" class=\"nx-margin-bottom-m\">\n    <ol nxBreadcrumb inverse>\n      @for (item of items; track item; let isLast = $last) {\n        <li>\n          <a nxBreadcrumbItem [routerLink]=\"isLast ? null : '#'\">\n            {{ item }}\n          </a>\n        </li>\n      }\n    </ol>\n  </nav>\n  <nx-label #primaryLabel class=\"nx-margin-bottom-xs\" [inverse]=\"true\"\n    >Primary</nx-label\n  >\n  <nav [attr.aria-labelledby]=\"primaryLabel.id\">\n    <ol nxBreadcrumb inverse type=\"primary\">\n      @for (item of items; track item; let i = $index; let isLast = $last) {\n        <li>\n          <a nxBreadcrumbItem [routerLink]=\"isLast ? null : '#'\">\n            {{ item }}\n          </a>\n        </li>\n      }\n    </ol>\n  </nav>\n</div>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "Note that the breadcrumb component should be always applied on a `<ol>` tag and wrapped in a `<nav>` with `aria-label='Breadcrumb'`. The breadcrumb items should wrapped in `<li>`. The currently active item is automatically marked with `aria-current='page'`. These best practices for breadcrumbs are already applied in the basic example above. You can find further information on the breadcrumb a11y practices [here](https://www.w3.org/TR/wai-aria-practices/examples/breadcrumb/index.html).\n"
      }
    ]
  },
  {
    "name": "button.md",
    "title": "Button",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic button",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic Buttons Example\n */\n@Component({\n  selector: 'button-example',\n  templateUrl: './button-example.html',\n  styleUrls: ['./button-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" type=\"button\">Primary</button>\n<button nxButton=\"secondary\" type=\"button\">Secondary</button>\n<button nxButton=\"tertiary\" type=\"button\">Tertiary</button>\n<button nxButton=\"emphasis\" type=\"button\">Emphasis</button>\n<button nxButton=\"attention\" type=\"button\">Attention</button>\n<button nxButton=\"cta\" type=\"button\">CTA</button><br />\n<button nxButton=\"primary\" type=\"button\" disabled>Disabled</button>\n<button nxButton=\"secondary\" type=\"button\" disabled>Disabled</button>\n<button nxButton=\"tertiary\" type=\"button\" disabled>Disabled</button>\n<button nxButton=\"attention\" type=\"button\" disabled>Disabled</button>\n<button nxButton=\"cta\" type=\"button\" disabled>Disabled</button>\n\n```\n\n"
      },
      {
        "heading": "small",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small Size Example\n */\n@Component({\n  selector: 'button-small-example',\n  templateUrl: './button-small-example.html',\n  styleUrls: ['./button-small-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonSmallExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" size=\"small\" type=\"button\">Primary</button>\n<button nxButton=\"secondary\" size=\"small\" type=\"button\">Secondary</button>\n<button nxButton=\"tertiary\" size=\"small\" type=\"button\">Tertiary</button>\n<button nxButton=\"emphasis\" size=\"small\" type=\"button\">Emphasis</button>\n<button nxButton=\"attention\" size=\"small\" type=\"button\">Attention</button>\n<button nxButton=\"cta\" size=\"small\" type=\"button\">CTA</button>\n<button nxButton=\"primary\" size=\"small\" type=\"button\" disabled>Disabled</button>\n\n```\n\n"
      },
      {
        "heading": "small medium",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small Medium Size Example\n */\n@Component({\n  selector: 'button-small-medium-example',\n  templateUrl: './button-small-medium-example.html',\n  styleUrls: ['./button-small-medium-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonSmallMediumExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" size=\"small-medium\" type=\"button\">Primary</button>\n<button nxButton=\"secondary\" size=\"small-medium\" type=\"button\">\n  Secondary\n</button>\n<button nxButton=\"tertiary\" size=\"small-medium\" type=\"button\">Tertiary</button>\n<button nxButton=\"emphasis\" size=\"small-medium\" type=\"button\">Emphasis</button>\n<button nxButton=\"attention\" size=\"small-medium\" type=\"button\">\n  Attention\n</button>\n<button nxButton=\"cta\" size=\"small-medium\" type=\"button\">CTA</button>\n<button nxButton=\"primary\" size=\"small-medium\" type=\"button\" disabled>\n  Disabled\n</button>\n\n```\n\n"
      },
      {
        "heading": "medium",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Medium Size Example\n */\n@Component({\n  selector: 'button-medium-example',\n  templateUrl: './button-medium-example.html',\n  styleUrls: ['./button-medium-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonMediumExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" size=\"medium\" type=\"button\">Primary</button>\n<button nxButton=\"secondary\" size=\"medium\" type=\"button\">Secondary</button>\n<button nxButton=\"tertiary\" size=\"medium\" type=\"button\">Tertiary</button>\n<button nxButton=\"emphasis\" size=\"medium\" type=\"button\">Emphasis</button>\n<button nxButton=\"attention\" size=\"medium\" type=\"button\">Attention</button>\n<button nxButton=\"cta\" size=\"medium\" type=\"button\">CTA</button>\n<button nxButton=\"primary\" size=\"medium\" type=\"button\" disabled>\n  Disabled\n</button>\n\n```\n\n"
      },
      {
        "heading": "large",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Large Size Example\n */\n@Component({\n  selector: 'button-large-example',\n  templateUrl: './button-large-example.html',\n  styleUrls: ['./button-large-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonLargeExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" size=\"large\" type=\"button\">Primary</button>\n<button nxButton=\"secondary\" size=\"large\" type=\"button\">Secondary</button>\n<button nxButton=\"tertiary\" size=\"large\" type=\"button\">Tertiary</button>\n<button nxButton=\"emphasis\" size=\"large\" type=\"button\">Emphasis</button>\n<button nxButton=\"attention\" size=\"large\" type=\"button\">Attention</button>\n<button nxButton=\"cta\" size=\"large\" type=\"button\">CTA</button>\n<button nxButton=\"primary\" size=\"large\" type=\"button\" disabled>Disabled</button>\n\n```\n\n"
      },
      {
        "heading": "critical",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Critical Buttons Example\n */\n@Component({\n  selector: 'button-critical-example',\n  templateUrl: './button-critical-example.html',\n  styleUrls: ['./button-critical-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonCriticalExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" critical type=\"button\">Primary</button>\n<button nxButton=\"secondary\" critical type=\"button\">Secondary</button>\n<button nxButton=\"tertiary\" critical type=\"button\">Tertiary</button>\n\n<button nxButton=\"primary\" critical type=\"button\" disabled>Disabled</button>\n<button nxButton=\"secondary\" critical type=\"button\" disabled>Disabled</button>\n<button nxButton=\"tertiary\" critical type=\"button\" disabled>Disabled</button>\n\n```\n\n"
      },
      {
        "heading": "block",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Block Example\n */\n@Component({\n  selector: 'button-block-example',\n  templateUrl: './button-block-example.html',\n  styleUrls: ['./button-block-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonBlockExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" block type=\"button\">Primary</button>\n<button nxButton=\"secondary\" block type=\"button\">Secondary</button>\n<button nxButton=\"tertiary\" block type=\"button\">Tertiary</button>\n<button nxButton block type=\"button\" disabled>Disabled</button>\n\n```\n\n"
      },
      {
        "heading": "negative",
        "level": 3,
        "content": "<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative Example\n */\n@Component({\n  selector: 'button-negative-example',\n  templateUrl: './button-negative-example.html',\n  styleUrls: ['./button-negative-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <button nxButton=\"primary\" negative type=\"button\">Primary</button>\n  <button nxButton=\"secondary\" negative type=\"button\">Secondary</button>\n  <button nxButton=\"tertiary\" negative type=\"button\">Tertiary</button>\n  <button nxButton=\"primary\" negative type=\"button\" disabled>Disabled</button>\n  <button nxButton=\"secondary\" negative type=\"button\" disabled>Disabled</button>\n  <button nxButton=\"tertiary\" negative type=\"button\" disabled>Disabled</button>\n</div>\n\n```\n\n\n</div>\n\n<div class=\"docs-a1\">\n\nFor A1 the `inverse` input is the preferred name for `negative`; the two\nare interchangeable. Color schemes also work together with `inverse`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative Example\n */\n@Component({\n  selector: 'button-negative-a1-example',\n  templateUrl: './button-negative-a1-example.html',\n  styleUrls: ['./button-negative-a1-example.css'],\n  imports: [NxButtonComponent],\n})\nexport class ButtonNegativeA1ExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <button nxButton=\"primary\" negative type=\"button\">Primary</button>\n  <button nxButton=\"primary\" critical negative type=\"button\">\n    Primary Critical\n  </button>\n  <button nxButton=\"secondary\" negative type=\"button\">Secondary</button>\n  <button nxButton=\"secondary\" critical negative type=\"button\">\n    Secondary Critical\n  </button>\n  <button nxButton=\"primary\" negative type=\"button\" disabled>Disabled</button>\n  <button nxButton=\"secondary\" negative type=\"button\" disabled>Disabled</button>\n</div>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "color schemes",
        "level": 3,
        "content": "The contained button supports the `colorScheme` input, which\ntakes `default`, `accent-attention` or `on-accent-attention`. When an accent\ncolor scheme is active, use the `accentColor` input to choose the color\n(`yellow`, `orange`, `red`, `purple`, `aqua`, `blue`, `teal`, `green` or\n`gray`). Color schemes also work together with `inverse` input.\n\nPlease note: in aquila theme the color schemes are\nnot completely finished. The inputs are available, but the underlying color\ntokens are only fully defined in the A1 theme, so the\nrendering in this documentation can be incomplete or fall back to the\ndefault colors.\n\n\n```ts\nimport {\n  NxButtonAccentColor,\n  NxButtonColorScheme,\n  NxButtonComponent,\n  NxButtonType,\n  NxIconButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component, computed, signal } from '@angular/core';\n\n/**\n * @title Contained Button color schemes\n */\n@Component({\n  selector: 'button-color-scheme-a1-example',\n  templateUrl: './button-color-scheme-a1-example.html',\n  styleUrls: ['./button-color-scheme-a1-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxIconButtonComponent,\n    NxIconComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxFormfieldComponent,\n    NxFormfieldHintDirective,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n  ],\n})\nexport class ButtonColorSchemeA1ExampleComponent {\n  /** The prominences shown in the preview. */\n  readonly prominences: NxButtonType[] = ['primary', 'secondary', 'tertiary'];\n\n  readonly colorSchemes: NxButtonColorScheme[] = [\n    'default',\n    'accent-attention',\n    'on-accent-attention',\n  ];\n\n  readonly accentColors: NxButtonAccentColor[] = [\n    'yellow',\n    'orange',\n    'red',\n    'purple',\n    'aqua',\n    'blue',\n    'teal',\n    'green',\n    'gray',\n  ];\n\n  readonly colorScheme = signal<NxButtonColorScheme>('accent-attention');\n  readonly accentColor = signal<NxButtonAccentColor>('green');\n\n  /** The accent color only applies to the accent color schemes. */\n  readonly accentColorDisabled = computed(\n    () => this.colorScheme() === 'default',\n  );\n\n  /** on-accent-attention buttons are meant to sit on an accent surface. */\n  readonly onAccentSurface = computed(\n    () => this.colorScheme() === 'on-accent-attention',\n  );\n\n  /** The matching accent surface color for the on-accent-attention preview. */\n  readonly accentSurface = computed(\n    () =>\n      `var(--semantic-color-accent-attention-${this.accentColor()}-resting)`,\n  );\n}\n\n```\n```html\n<div nxLayout=\"grid nopadding\">\n  <div nxRow>\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"Color scheme\">\n        <nx-dropdown [(value)]=\"colorScheme\">\n          @for (item of colorSchemes; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"Accent color\">\n        <nx-dropdown [(value)]=\"accentColor\" [disabled]=\"accentColorDisabled()\">\n          @for (item of accentColors; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n        @if (accentColorDisabled()) {\n          <span nxFormfieldHint>Not used by the default color scheme</span>\n        }\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n<div\n  class=\"docs-preview\"\n  [style.background-color]=\"onAccentSurface() ? accentSurface() : null\"\n>\n  <button\n    nxIconButton=\"primary\"\n    [colorScheme]=\"colorScheme()\"\n    [accentColor]=\"accentColor()\"\n    type=\"button\"\n    aria-label=\"email\"\n  >\n    <nx-icon name=\"mail-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  @for (prominence of prominences; track prominence) {\n    <button\n      [nxButton]=\"prominence\"\n      [colorScheme]=\"colorScheme()\"\n      [accentColor]=\"accentColor()\"\n      type=\"button\"\n    >\n      {{ prominence }}\n    </button>\n  }\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "with icons",
        "level": 3,
        "content": "Use the `nxIconPositionStart` or `nxIconPositionEnd` attributes to position the icons. Please also don't set any size on the icon, the button component will handle the correct size for you.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icon Example\n */\n@Component({\n  selector: 'button-with-icon-example',\n  templateUrl: './button-with-icon-example.html',\n  styleUrls: ['./button-with-icon-example.css'],\n  imports: [NxButtonComponent, NxIconComponent],\n})\nexport class ButtonWithIconExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary\" type=\"button\">\n  <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Download\n</button>\n<button nxButton=\"secondary\" type=\"button\">\n  <nx-icon name=\"arrow-right\" nxIconPositionEnd aria-hidden=\"true\"></nx-icon>\n  next\n</button>\n<button nxButton=\"tertiary\" type=\"button\">\n  <nx-icon name=\"arrow-right\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Details\n</button>\n\n<button nxButton=\"primary small\" type=\"button\">\n  <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Download\n</button>\n<button nxButton=\"secondary small\" type=\"button\">\n  <nx-icon name=\"arrow-right\" nxIconPositionEnd aria-hidden=\"true\"></nx-icon>\n  next\n</button>\n<button nxButton=\"tertiary small\" type=\"button\">\n  <nx-icon name=\"arrow-right\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Details\n</button>\n\n```\n\n"
      },
      {
        "heading": "icon button",
        "level": 3,
        "content": "Use the `nxIconButton` component if your button contains only an icon and no text. Please be aware that icons are not accessible, and you need to provide an additional description. This can be done using an `aria-label` or a tooltip.\n\n\n```ts\nimport { NxButtonSize, NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Icon Button Example\n */\n@Component({\n  selector: 'button-icon-example',\n  templateUrl: './button-icon-example.html',\n  styleUrls: ['./button-icon-example.css'],\n  imports: [\n    NxIconButtonComponent,\n    NxIconComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    FormsModule,\n  ],\n})\nexport class ButtonIconExampleComponent {\n  size = model<NxButtonSize>('medium');\n}\n\n```\n```html\n<nx-formfield label=\"Icon button size\">\n  <nx-dropdown [(ngModel)]=\"size\">\n    <nx-dropdown-item value=\"small\">Small</nx-dropdown-item>\n    <nx-dropdown-item value=\"small-medium\">Small-Medium</nx-dropdown-item>\n    <nx-dropdown-item value=\"medium\">Medium</nx-dropdown-item>\n    <nx-dropdown-item value=\"large\">Large</nx-dropdown-item>\n  </nx-dropdown>\n</nx-formfield>\n\n<div class=\"buttons\">\n  <button\n    nxIconButton=\"primary\"\n    [size]=\"size()\"\n    aria-label=\"send mail\"\n    type=\"button\"\n  >\n    <nx-icon name=\"mail-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"secondary\"\n    [size]=\"size()\"\n    aria-label=\"like on facebook\"\n    type=\"button\"\n  >\n    <nx-icon name=\"facebook\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"tertiary\"\n    [size]=\"size()\"\n    aria-label=\"tweet\"\n    type=\"button\"\n  >\n    <nx-icon name=\"twitter\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"cta\"\n    [size]=\"size()\"\n    aria-label=\"send mail\"\n    type=\"button\"\n  >\n    <nx-icon name=\"mail\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"emphasis\"\n    [size]=\"size()\"\n    aria-label=\"send mail\"\n    type=\"button\"\n  >\n    <nx-icon name=\"mail-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"attention\"\n    [size]=\"size()\"\n    disabled\n    aria-label=\"send mail\"\n    type=\"button\"\n  >\n    <nx-icon name=\"mail-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n</div>\n\n```\n\n"
      },
      {
        "heading": "indicators",
        "level": 4,
        "content": "Inside the icon button you can add the [`<nx-indicator>`](./documentation/indicator/overview) component:\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icon button with indicators\n */\n@Component({\n  selector: 'button-icon-indicator-example',\n  templateUrl: './button-icon-indicator-example.html',\n  styleUrls: ['./button-icon-indicator-example.css'],\n  imports: [NxIconButtonComponent, NxIconComponent, NxIndicatorComponent],\n})\nexport class ButtonIconIndicatorExampleComponent {}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary small-medium\"\n  aria-label=\"notifications, new notifications available\"\n  type=\"button\"\n  class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n  <nx-indicator position=\"over-icon\"></nx-indicator>\n</button>\n\n<button\n  nxIconButton=\"tertiary small-medium\"\n  aria-label=\"notifications, 1 new notification available\"\n  type=\"button\"\n  class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n  <nx-indicator position=\"over-icon\">1</nx-indicator>\n</button>\n\n<button\n  nxIconButton=\"tertiary small-medium\"\n  aria-label=\"notifications, more than 99 notifications available\"\n  type=\"button\"\n  class=\"nx-margin-bottom-0\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n  <nx-indicator position=\"over-icon\">99+</nx-indicator>\n</button>\n\n```\n\n"
      },
      {
        "heading": "plain button",
        "level": 3,
        "content": "The `nxPlainButton` does not need a lot of space. If only icons are used, they need to be made accessible, e.g. by using an `aria-label` or a tooltip.\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Plain Buttons Example\n */\n@Component({\n  selector: 'button-plain-example',\n  templateUrl: './button-plain-example.html',\n  styleUrls: ['./button-plain-example.css'],\n  imports: [NxPlainButtonComponent, NxIconComponent],\n})\nexport class ButtonPlainExampleComponent {}\n\n```\n```html\n<button nxPlainButton type=\"button\" class=\"nx-margin-right-m\">\n  Plain Button\n</button>\n<button nxPlainButton type=\"button\" class=\"nx-margin-right-m\">\n  <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Download\n</button>\n<button nxPlainButton type=\"button\" aria-label=\"add item\">\n  <nx-icon name=\"plus\" aria-hidden=\"true\"></nx-icon>\n</button>\n<br />\n<button nxPlainButton critical type=\"button\">Danger</button>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\nThe plain button supports The `colorScheme` it takes `default`, `on-accent-attention` or\n`on-brand` (the plain button has no accent colors).\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Plain Button A1 additions\n */\n@Component({\n  selector: 'button-plain-a1-example',\n  templateUrl: './button-plain-a1-example.html',\n  styleUrls: ['./button-plain-a1-example.css'],\n  imports: [NxHeadlineComponent, NxPlainButtonComponent, NxIconComponent],\n})\nexport class ButtonPlainA1ExampleComponent {}\n\n```\n```html\n<h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n  New variant secondary\n</h4>\n\n<button\n  nxPlainButton\n  variant=\"secondary\"\n  type=\"button\"\n  class=\"nx-margin-right-m\"\n>\n  Secondary\n</button>\n<button\n  nxPlainButton\n  variant=\"secondary\"\n  type=\"button\"\n  class=\"nx-margin-right-m\"\n>\n  <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Download\n</button>\n<button nxPlainButton variant=\"secondary\" type=\"button\" aria-label=\"add item\">\n  <nx-icon name=\"plus\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s nx-margin-top-l\">\n  Small size\n</h4>\n<button\n  nxPlainButton\n  variant=\"primary\"\n  size=\"small\"\n  type=\"button\"\n  class=\"nx-margin-right-m\"\n>\n  Primary Small\n</button>\n<button\n  nxPlainButton\n  variant=\"secondary\"\n  size=\"small\"\n  type=\"button\"\n  class=\"nx-margin-right-m\"\n>\n  <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n  >Secondary small\n</button>\n<button nxPlainButton size=\"small\" type=\"button\" aria-label=\"add item\">\n  <nx-icon name=\"plus\" aria-hidden=\"true\"></nx-icon>\n</button>\n<br />\n<button nxPlainButton size=\"small\" critical type=\"button\">Danger</button>\n\n<h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s nx-margin-top-l\">\n  Color schemes\n</h4>\n<div class=\"docs-plain-on-brand nx-margin-bottom-s\">\n  <button nxPlainButton colorScheme=\"on-brand\" type=\"button\">On brand</button>\n</div>\n<div class=\"docs-plain-on-accent\">\n  <button nxPlainButton colorScheme=\"on-accent-attention\" type=\"button\">\n    On accent attention\n  </button>\n</div>\n\n```\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "inverse",
        "level": 4,
        "content": "Use the `inverse` input to display the plain button on dark or colored backgrounds.\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Plain Button Inverse\n */\n@Component({\n  selector: 'button-plain-inverse-example',\n  templateUrl: './button-plain-inverse-example.html',\n  styleUrls: ['./button-plain-inverse-example.css'],\n  imports: [NxPlainButtonComponent, NxIconComponent],\n})\nexport class ButtonPlainInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h4 nxHeadline=\"subsection-xsmall\">Primary</h4>\n  <button nxPlainButton inverse type=\"button\" class=\"nx-margin-right-m\">\n    Default\n  </button>\n  <button\n    nxPlainButton\n    inverse\n    size=\"small\"\n    type=\"button\"\n    aria-label=\"add item\"\n    class=\"nx-margin-right-m\"\n  >\n    <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n    >Download\n  </button>\n\n  <button\n    nxPlainButton\n    inverse\n    type=\"button\"\n    aria-label=\"add item\"\n    class=\"nx-margin-right-m\"\n  >\n    <nx-icon name=\"calendar\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <button\n    nxPlainButton\n    inverse\n    critical\n    type=\"button\"\n    class=\"nx-margin-right-m\"\n  >\n    Danger\n  </button>\n\n  <button\n    nxPlainButton\n    inverse\n    disabled\n    type=\"button\"\n    class=\"nx-margin-right-m\"\n  >\n    Disabled\n  </button>\n\n  <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-top-m\">Secondary</h4>\n\n  <button\n    nxPlainButton\n    inverse\n    variant=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-right-m\"\n  >\n    Default\n  </button>\n  <button\n    nxPlainButton\n    inverse\n    size=\"small\"\n    variant=\"secondary\"\n    type=\"button\"\n    aria-label=\"add item\"\n    class=\"nx-margin-right-m\"\n  >\n    <nx-icon name=\"download\" nxIconPositionStart aria-hidden=\"true\"></nx-icon>\n    Download\n  </button>\n\n  <button\n    nxPlainButton\n    variant=\"secondary\"\n    inverse\n    type=\"button\"\n    aria-label=\"add item\"\n    class=\"nx-margin-right-m\"\n  >\n    <nx-icon name=\"calendar\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <button\n    nxPlainButton\n    inverse\n    critical\n    variant=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-right-m\"\n  >\n    Danger\n  </button>\n\n  <button\n    nxPlainButton\n    inverse\n    variant=\"secondary\"\n    disabled\n    type=\"button\"\n    class=\"nx-margin-right-m\"\n  >\n    Disabled\n  </button>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "anchor button",
        "level": 3,
        "content": "You can use an `<a>` instead of a `<button>` element, in case you want to have an anchor styled like a button.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Anchor Button Example\n */\n@Component({\n  selector: 'anchor-button-example',\n  templateUrl: './anchor-button-example.html',\n  styleUrls: ['./anchor-button-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxIconButtonComponent,\n    NxPlainButtonComponent,\n    NxIconComponent,\n  ],\n})\nexport class AnchorButtonExampleComponent {}\n\n```\n```html\n<a nxButton=\"primary\" href=\"#\">Primary</a>\n<a nxButton=\"primary small\" href=\"#\" disabled>Small</a>\n\n<a nxButton=\"primary\" href=\"#\">\n  <nx-icon\n    name=\"download\"\n    class=\"nx-margin-right-2xs\"\n    aria-hidden=\"true\"\n  ></nx-icon\n  >Download\n</a>\n\n<a nxPlainButton>\n  <nx-icon nxIconPositionStart name=\"mail-o\" aria-hidden=\"true\"></nx-icon>\n  Plain\n</a>\n\n<a nxIconButton=\"primary\" aria-label=\"send mail\" href=\"#\">\n  <nx-icon name=\"mail-o\" aria-hidden=\"true\"></nx-icon>\n</a>\n\n<a nxButton=\"primary\" href=\"#\" disabled>Disabled</a>\n\n```\n\n"
      },
      {
        "heading": "loading button",
        "level": 3,
        "content": "You can use the input `loading` to show a loading spinner inside the button.\nThe spinner will be shown instead of the button label, and the button will not trigger click events while `loading` is `true`.\n\nTo reduce layout shifts, the label is visibly hidden but still present in the DOM.\nFor accessibility, adding an aria-label describing the loading state is recommended.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxButtonSize,\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxDropdownComponent } from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Loading Example\n */\n@Component({\n  selector: 'button-loading-example',\n  templateUrl: './button-loading-example.html',\n  styleUrls: ['./button-loading-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxIconButtonComponent,\n    NxIconComponent,\n    NxPlainButtonComponent,\n    NxSwitcherComponent,\n    FormsModule,\n    NxDropdownComponent,\n    NxFormfieldComponent,\n  ],\n})\nexport class ButtonLoadingExampleComponent {\n  loading = signal(true);\n  readonly size = signal<NxButtonSize>('medium');\n  readonly inverse = signal(false);\n\n  sizeOptions: { value: NxButtonSize; label: string }[] = [\n    {\n      label: 'Small',\n      value: 'small',\n    },\n    {\n      label: 'Small Medium',\n      value: 'small-medium',\n    },\n    {\n      label: 'Medium',\n      value: 'medium',\n    },\n    {\n      label: 'Large',\n      value: 'large',\n    },\n  ];\n}\n\n```\n```html\n<div class=\"button-container\">\n  <nx-switcher [(ngModel)]=\"loading\"\n    >{{ loading() ? 'Unset loading' : 'Set loading' }}\n  </nx-switcher>\n  <nx-switcher [(ngModel)]=\"inverse\"\n    >{{ inverse() ? 'Unset inverse' : 'Set inverse' }}\n  </nx-switcher>\n  <nx-formfield label=\"Size\">\n    <nx-dropdown [(ngModel)]=\"size\" [options]=\"sizeOptions\"></nx-dropdown>\n  </nx-formfield>\n</div>\n\n@let loadingLabel = 'Saving Form';\n<div class=\"button-container\" [class.docs-inverse-container]=\"inverse()\">\n  <button\n    [nxButton]=\"`primary ${size()}`\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Primary\n  </button>\n  <button\n    [nxButton]=\"`secondary ${size()}`\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Secondary\n  </button>\n  <button\n    [nxButton]=\"`tertiary ${size()}`\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Tertiary\n  </button>\n  <button\n    [nxButton]=\"`emphasis ${size()}`\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Emphasis\n  </button>\n  <button\n    [nxButton]=\"`attention ${size()}`\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Attention\n  </button>\n  <button\n    [nxButton]=\"`cta ${size()}`\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Call To Action\n  </button>\n\n  <button\n    [nxIconButton]=\"size()\"\n    [inverse]=\"inverse()\"\n    type=\"button\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : 'Icon Button'\"\n  >\n    <nx-icon name=\"plus\"></nx-icon>\n  </button>\n\n  <button\n    nxPlainButton\n    [inverse]=\"inverse()\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Plain\n  </button>\n\n  <button\n    type=\"button\"\n    [nxButton]=\"`primary danger ${size()}`\"\n    [inverse]=\"inverse()\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Primary Danger\n  </button>\n  <button\n    type=\"button\"\n    [nxButton]=\"`secondary danger ${size()}`\"\n    [inverse]=\"inverse()\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Secondary Danger\n  </button>\n  <button\n    type=\"button\"\n    [nxButton]=\"`tertiary danger ${size()}`\"\n    [inverse]=\"inverse()\"\n    [loading]=\"loading()\"\n    [attr.aria-label]=\"loading() ? loadingLabel : null\"\n  >\n    Tertiary Danger\n  </button>\n</div>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "card.md",
    "title": "Cards",
    "category": "components",
    "alias": [
      "card",
      "selectable card"
    ],
    "sections": [
      {
        "heading": "default",
        "level": 3,
        "content": "\n```ts\nimport {\n  NxCardComponent,\n  NxCardHeaderComponent,\n} from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Default Card Example\n */\n@Component({\n  selector: 'card-example',\n  templateUrl: './card-example.html',\n  styleUrls: ['./card-example.css'],\n  imports: [\n    NxCardComponent,\n    NxCardHeaderComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class CardExampleComponent {}\n\n```\n```html\n<nx-card>\n  <nx-card-header>\n    <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">\n      Card headline\n    </h3>\n  </nx-card-header>\n  <p nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">2,99€</p>\n  <p nxCopytext=\"normal\">\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero voluptate\n    explicabo ad iste, ratione cupiditate eaque sapiente odit, accusamus placeat\n    ipsam dolor sint voluptatibus nam? Recusandae accusamus iste sapiente\n    necessitatibus?\n  </p>\n</nx-card>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "elevated card",
        "level": 3,
        "content": "With `elevated` the card is displayed with a drop shadow instead of a border.\n\n\n```ts\nimport { NxCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Elevated Card Example\n */\n@Component({\n  selector: 'elevated-card-example',\n  templateUrl: './elevated-card-example.html',\n  styleUrls: ['./elevated-card-example.css'],\n  imports: [NxCardComponent, NxHeadlineComponent, NxCopytextComponent],\n})\nexport class ElevatedCardExampleComponent {}\n\n```\n```html\n<nx-card elevated>\n  <h3 nxHeadline=\"subsection-medium\" class=\"card-headline\">Card headline</h3>\n  <p nxHeadline=\"subsection-xsmall\">2,99€</p>\n  <p nxCopytext=\"normal\">\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero voluptate\n    explicabo ad iste, ratione cupiditate eaque sapiente odit, accusamus placeat\n    ipsam dolor sint voluptatibus nam? Recusandae accusamus iste sapiente\n    necessitatibus?\n  </p>\n</nx-card>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "highlight card",
        "level": 3,
        "content": "With `highlight` you can allow a highlight header to be shown on the card.\n\n\n```ts\nimport {\n  NxCardComponent,\n  NxCardHeaderComponent,\n} from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Highlight Card Example\n */\n@Component({\n  selector: 'highlight-card-example',\n  templateUrl: './highlight-card-example.html',\n  styleUrls: ['./highlight-card-example.css'],\n  imports: [\n    NxCardComponent,\n    NxCardHeaderComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class HighlightCardExampleComponent {}\n\n```\n```html\n<nx-card highlight>\n  <div nxHighlightHeader>Highlight</div>\n  <nx-card-header>\n    <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2m\">\n      Card headline\n    </h3>\n  </nx-card-header>\n  <p nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">2,99€</p>\n  <p nxCopytext=\"normal\">\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero voluptate\n    explicabo ad iste, ratione cupiditate eaque sapiente odit, accusamus placeat\n    ipsam dolor sint voluptatibus nam? Recusandae accusamus iste sapiente\n    necessitatibus?\n  </p>\n</nx-card>\n\n```\n\n"
      },
      {
        "heading": "checkbox behavior",
        "level": 4,
        "content": "\n```ts\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selectable cards checkbox example\n */\n@Component({\n  selector: 'selectable-card-basic-example',\n  templateUrl: './selectable-card-basic-example.html',\n  styleUrls: ['./selectable-card-basic-example.css'],\n  imports: [NxSelectableCardComponent],\n})\nexport class SelectableCardBasicExampleComponent {}\n\n```\n```html\n<nx-selectable-card class=\"nx-margin-bottom-2m\">\n  <div class=\"content\"></div>\n</nx-selectable-card>\n\n<nx-selectable-card checked>\n  <div class=\"content\"></div>\n</nx-selectable-card>\n\n```\n\n"
      },
      {
        "heading": "radio button behavior",
        "level": 4,
        "content": "in case you want selectable cards with radio selection,\nyou can use `nx-selectable-card-group` to group the cards, and they will automatically function as radio buttons.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxSelectableCardComponent,\n  NxSelectableCardGroupComponent,\n} from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { JsonPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Selectable cards radio example\n */\n@Component({\n  selector: 'selectable-card-radio-example',\n  templateUrl: './selectable-card-radio-example.html',\n  styleUrls: ['./selectable-card-radio-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxSelectableCardGroupComponent,\n    NxSelectableCardComponent,\n    NxCopytextComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class SelectableCardRadioExampleComponent {\n  cards = [\n    {\n      value: 'a',\n      disabled: false,\n      title: 'Selectable radio card',\n    },\n    {\n      value: 'b',\n      disabled: false,\n      title: 'Selectable radio card',\n    },\n    {\n      value: 'c',\n      disabled: true,\n      title: 'Disabled selected radio card',\n    },\n    {\n      value: 'd',\n      disabled: true,\n      title: 'Disabled radio card',\n    },\n  ];\n  readonly formGroup = this.fb.group({\n    radio: ['c', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  addNewCard() {\n    this.cards.push({\n      value: (this.cards.length + 1).toString(),\n      disabled: false,\n      title: 'New radio card',\n    });\n  }\n\n  removeFirstCard() {\n    this.cards.pop();\n  }\n}\n\n```\n```html\n<form [formGroup]=\"formGroup\">\n  <nx-selectable-card-group formControlName=\"radio\" name=\"radio-group\">\n    @for (card of cards; track card; let i = $index) {\n      <div>\n        <nx-selectable-card\n          class=\"nx-margin-bottom-xs\"\n          [value]=\"card.value\"\n          [disabled]=\"card.disabled\"\n        >\n          <h3 nxCopytext class=\"nx-margin-bottom-2m\">{{ card.title }}</h3>\n        </nx-selectable-card>\n      </div>\n    }\n    <nx-error> This card must be selected. </nx-error>\n  </nx-selectable-card-group>\n</form>\n<button\n  (click)=\"addNewCard()\"\n  nxButton=\"primary small\"\n  type=\"button\"\n  class=\"nx-margin-top-m\"\n>\n  Add new card\n</button>\n<p>Form value: {{ formGroup.value | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "product card",
        "level": 4,
        "content": "\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selectable cards product example\n */\n@Component({\n  selector: 'selectable-card-product-example',\n  templateUrl: './selectable-card-product-example.html',\n  styleUrls: ['./selectable-card-product-example.css'],\n  imports: [\n    NxSelectableCardComponent,\n    NxCopytextComponent,\n    NxPlainButtonComponent,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n  ],\n})\nexport class SelectableCardProductExampleComponent {}\n\n```\n```html\n<nx-selectable-card>\n  <div class=\"card\">\n    <img\n      height=\"56\"\n      src=\"/assets/images/selectable-card.svg\"\n      alt=\"product image\"\n    />\n    <div class=\"content\">\n      <div>\n        <h3 nxCopytext class=\"nx-font-weight-semibold nx-margin-bottom-2xs\">\n          Card headline\n        </h3>\n        <p nxCopytext=\"medium\" class=\"nx-margin-bottom-2xs\">\n          Neque porro quisquam est qui dolorem ipsum quia dolor sit amet,<br />\n          consectetur, adipisci velit\n        </p>\n        <span nxCopytext>$ 10 /monthly</span>\n      </div>\n      <button\n        nxPlainButton\n        class=\"nx-margin-left-xs\"\n        [nxPopoverTriggerFor]=\"popover\"\n        nxPopoverTrigger=\"click\"\n        aria-label=\"More information\"\n      >\n        <nx-icon size=\"s\" name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n      </button>\n    </div>\n  </div>\n</nx-selectable-card>\n\n<nx-popover #popover>\n  <span nxCopytext>Trigger by click</span>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "selectable card states",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport {\n  AbstractControl,\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Selectable cards states example\n */\n@Component({\n  selector: 'selectable-card-states-example',\n  templateUrl: './selectable-card-states-example.html',\n  styleUrls: ['./selectable-card-states-example.css'],\n  imports: [\n    FormsModule,\n    NxLayoutComponent,\n    ReactiveFormsModule,\n    NxRowComponent,\n    NxColComponent,\n    NxSelectableCardComponent,\n    NxCopytextComponent,\n    NxErrorComponent,\n  ],\n})\nexport class SelectableCardStatesExampleComponent {\n  readonly formGroup = this.fb.group({\n    errorCard: [false, Validators.requiredTrue],\n    errorCard2: [true, validateSecondCard],\n  });\n\n  constructor(private readonly fb: FormBuilder) {\n    this.formGroup.markAllAsTouched();\n  }\n}\n\nfunction validateSecondCard(control: AbstractControl) {\n  return control.value ? { invalid: true } : null;\n}\n\n```\n```html\n<form [formGroup]=\"formGroup\" nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6\">\n      <nx-selectable-card class=\"nx-margin-bottom-2m\">\n        <h3 nxCopytext class=\"content\">Default selectable card</h3>\n      </nx-selectable-card>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-selectable-card checked class=\"nx-margin-bottom-2m\">\n        <h3 nxCopytext class=\"content\">Checked selectable card</h3>\n      </nx-selectable-card>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-selectable-card disabled class=\"nx-margin-bottom-2m\">\n        <h3 nxCopytext class=\"content\">Disabled selectable card</h3>\n      </nx-selectable-card>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-selectable-card disabled checked class=\"nx-margin-bottom-2m\">\n        <h3 nxCopytext class=\"content\">Disabled and checked selectable card</h3>\n      </nx-selectable-card>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-selectable-card\n        formControlName=\"errorCard\"\n        class=\"nx-margin-bottom-2m\"\n      >\n        <h3 nxCopytext class=\"content\">Selectable card with error</h3>\n        <nx-error> This card must be selected. </nx-error>\n      </nx-selectable-card>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-selectable-card formControlName=\"errorCard2\">\n        <h3 nxCopytext class=\"content\">This card must not be selected.</h3>\n        <nx-error> This card must not be selected. </nx-error>\n      </nx-selectable-card>\n    </div>\n  </div>\n</form>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "elevated selectable card",
        "level": 4,
        "content": "With `elevated` the selectable card is displayed with a drop shadow instead of a border.\n\n\n```ts\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Elevated selectable card example\n */\n@Component({\n  selector: 'elevated-selectable-card-example',\n  templateUrl: './elevated-selectable-card-example.html',\n  styleUrls: ['./elevated-selectable-card-example.css'],\n  imports: [NxSelectableCardComponent, NxCopytextComponent],\n})\nexport class ElevatedSelectableCardExampleComponent {}\n\n```\n```html\n<nx-selectable-card elevated>\n  <h3 nxHeadline=\"subsection-medium\" class=\"card-headline\">Card headline</h3>\n  <p nxCopytext=\"medium\">\n    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur,\n    adipisci velit\n  </p>\n</nx-selectable-card>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "highlight selectable card",
        "level": 4,
        "content": "With `highlight` you can allow a highlight header to be shown on the card.\n\n\n```ts\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selectable cards states example\n */\n@Component({\n  selector: 'highlight-selectable-card-example',\n  templateUrl: './highlight-selectable-card-example.html',\n  styleUrls: ['./highlight-selectable-card-example.css'],\n  imports: [NxSelectableCardComponent, NxCopytextComponent],\n})\nexport class HighlightSelectableCardExampleComponent {}\n\n```\n```html\n<nx-selectable-card class=\"nx-margin-bottom-2m\" highlight>\n  <div nxHighlightHeader>Highlight</div>\n  <h3 nxCopytext class=\"content\">Default selectable card</h3>\n</nx-selectable-card>\n\n```\n\n"
      },
      {
        "heading": "reactive forms",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Selectable cards reactive example\n */\n@Component({\n  selector: 'selectable-card-reactive-example',\n  templateUrl: './selectable-card-reactive-example.html',\n  styleUrls: ['./selectable-card-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxSelectableCardComponent,\n    NxErrorComponent,\n    JsonPipe,\n  ],\n})\nexport class SelectableCardReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    selectableCardTestReactive: [false, Validators.requiredTrue],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-selectable-card formControlName=\"selectableCardTestReactive\">\n    <div class=\"content\"></div>\n    <nx-error> This card must be selected. </nx-error>\n  </nx-selectable-card>\n\n  <p>Form value: {{ testForm.value | json }}</p>\n  <p>Form status: {{ testForm.status | json }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "dynamically adding and removing cards",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormArray,\n  FormBuilder,\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n} from '@angular/forms';\n\n/**\n * @title Selectable cards dynamic example\n */\n@Component({\n  selector: 'selectable-card-dynamic-example',\n  templateUrl: './selectable-card-dynamic-example.html',\n  styleUrls: ['./selectable-card-dynamic-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxButtonComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxSelectableCardComponent,\n    NxCopytextComponent,\n    JsonPipe,\n  ],\n})\nexport class SelectableCardDynamicExampleComponent {\n  readonly cardArray = new FormArray([\n    new FormControl(false),\n    new FormControl(false),\n    new FormControl(false),\n  ]);\n\n  readonly myFormGroup = this.fb.group({\n    cards: this.cardArray,\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  addNewCard() {\n    this.cardArray.push(new FormControl(false));\n  }\n\n  removeFirstCard() {\n    this.cardArray.removeAt(0);\n  }\n\n  get cards(): FormArray {\n    return this.myFormGroup.get('cards') as FormArray;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow class=\"nx-margin-bottom-s\">\n    <div nxCol=\"12,12,3\">\n      <button (click)=\"addNewCard()\" nxButton=\"primary small\" type=\"button\">\n        Add new card\n      </button>\n    </div>\n    <div nxCol=\"12,12,3\">\n      <button\n        (click)=\"removeFirstCard()\"\n        nxButton=\"secondary small\"\n        type=\"button\"\n      >\n        Remove first card\n      </button>\n    </div>\n  </div>\n  <form [formGroup]=\"myFormGroup\">\n    <div nxRow formArrayName=\"cards\">\n      @for (card of cards.controls; track card; let i = $index) {\n        <div nxCol=\"12,12,12,4\">\n          <nx-selectable-card [formControlName]=\"i\" class=\"nx-margin-bottom-xs\">\n            <h3 nxCopytext class=\"nx-margin-bottom-2m\">Card headline</h3>\n          </nx-selectable-card>\n        </div>\n      }\n    </div>\n    <p>Form value: {{ myFormGroup.value | json }}</p>\n  </form>\n</div>\n\n```\n\n"
      },
      {
        "heading": "clickable card",
        "level": 3,
        "content": " With `clickable=\"true\"` and `nxCardMainLink` you can make the whole card clickable.\n Use `nxCardMainLink` on an `<a>` element as the main clickable action of the card.\n Use `nxCardSecondaryInfo` to add other selectable elements like optional links or raise text.\n\n The usage of a headline around the link is optional depending on your project's needs.\n\n \n```ts\nimport { NxCardModule } from '@allianz/ng-aquila/card';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { NxLinkModule } from '@allianz/ng-aquila/link';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Clickable Card Example\n */\n@Component({\n  selector: 'clickable-card-example',\n  templateUrl: './clickable-card-example.html',\n  styleUrl: './clickable-card-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxCardModule, NxLinkModule, NxIconModule],\n})\nexport class ClickableCardExampleComponent {\n  edit() {\n    alert('clicked on edit button');\n  }\n}\n\n```\n```html\n<nx-card clickable class=\"nx-margin-2xs\">\n  <h3 nxHeadline size=\"l\">\n    <a nxCardMainLink href=\"/\">Card title</a>\n  </h3>\n  <p nxCardSecondaryInfo>This is some text of the card</p>\n  <nx-link size=\"small\"\n    ><a nxCardSecondaryInfo href=\"/guides/getting-started\"\n      >Some optional link</a\n    ></nx-link\n  >\n</nx-card>\n\n<nx-card clickable class=\"nx-margin-2xs\">\n  <div style=\"display: flex; justify-content: space-between\">\n    <h3 nxHeadline size=\"l\">\n      <a nxCardMainLink href=\"/\">Card title</a>\n    </h3>\n    <button\n      nxPlainButton\n      nxCardSecondaryInfo\n      (click)=\"edit()\"\n      aria-label=\"edit\"\n    >\n      <nx-icon name=\"pen\" aria-hidden=\"true\" />\n    </button>\n  </div>\n\n  <p nxCardSecondaryInfo>This is some text of the card</p>\n  <nx-link size=\"small\"\n    ><a nxCardSecondaryInfo href=\"/guides/getting-started\"\n      >Some optional link</a\n    ></nx-link\n  >\n</nx-card>\n\n```\n\n"
      },
      {
        "heading": "disabling clickable card",
        "level": 4,
        "content": "Use `disabled` on the `nx-card` component to provide a visual representation of a disabled card. In addition, the `nxCardMainLink` item will add `aria-disabled=\"true\"` automatically. Please make sure that you that you do not set the `href` attribute on the `nxCardMainLink` element.\nSee the example how to do that with and without the Angular router.\n\n\n```ts\nimport { NxCardModule } from '@allianz/ng-aquila/card';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n/**\n * @title Disabled clickable card\n */\n@Component({\n  selector: 'clickable-card-disabled-example',\n  templateUrl: './clickable-card-disabled-example.html',\n  styleUrl: './clickable-card-disabled-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxCardModule, RouterModule],\n})\nexport class ClickableCardDisabledExampleComponent {\n  disabled = true;\n}\n\n```\n```html\n<nx-card clickable class=\"nx-margin-2xs\" disabled>\n  <h3 nxHeadline size=\"l\">\n    <a [attr.href]=\"disabled ? null : '/'\" nxCardMainLink>Disabled card</a>\n  </h3>\n  <p nxCardSecondaryInfo>This is some text of the card</p>\n</nx-card>\n\n<nx-card clickable class=\"nx-margin-2xs\" disabled>\n  <h3 nxHeadline size=\"l\">\n    <a nxCardMainLink [routerLink]=\"disabled ? null : '/'\"\n      >Disabled card with Router</a\n    >\n  </h3>\n  <p nxCardSecondaryInfo>This is some text of the card</p>\n</nx-card>\n\n```\n\n\n"
      },
      {
        "heading": "raising content",
        "level": 4,
        "content": "To make the whole card area clickable the so called \"pseudo content trick\" is used, which spans the pseudo element of the main link over the whole card element.\nThis means that even text inside the card is behind that pseudo element and is not selectable.\n\nYou can raise content like texts but also other interactive elements via the `nxCardSecondaryInfo`. Please note that this content will be create a gap in the clickable area of the card.\n\n\n```ts\nimport { NxCardModule } from '@allianz/ng-aquila/card';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { NxLinkModule } from '@allianz/ng-aquila/link';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Raising content in a clickable card\n */\n@Component({\n  selector: 'clickable-card-raised-content-example',\n  templateUrl: './clickable-card-raised-content-example.html',\n  styleUrl: './clickable-card-raised-content-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxCardModule, NxLinkModule, NxIconModule],\n})\nexport class ClickableCardRaisedContentExampleComponent {}\n\n```\n```html\n<nx-card clickable class=\"nx-margin-2xs\">\n  <h3 nxHeadline size=\"l\">\n    <a nxCardMainLink href=\"/\">Card with extra link</a>\n  </h3>\n  <p>This is some text of the card</p>\n  <nx-link size=\"small\"\n    ><a nxCardSecondaryInfo href=\"/guides/getting-started\"\n      >Some optional link</a\n    ></nx-link\n  >\n</nx-card>\n\n<nx-card clickable class=\"nx-margin-2xs\">\n  <div style=\"display: flex; justify-content: space-between\">\n    <h3 nxHeadline size=\"l\">\n      <a nxCardMainLink href=\"/\">Card with extra link and button</a>\n    </h3>\n    <button nxPlainButton nxCardSecondaryInfo aria-label=\"edit\">\n      <nx-icon name=\"pen\" aria-hidden=\"true\" />\n    </button>\n  </div>\n\n  <p>This is some text of the card</p>\n  <nx-link size=\"small\"\n    ><a nxCardSecondaryInfo href=\"/guides/getting-started\"\n      >Some optional link</a\n    ></nx-link\n  >\n</nx-card>\n\n<nx-card clickable class=\"nx-margin-2xs\">\n  <h3 nxHeadline size=\"l\">\n    <a nxCardMainLink href=\"/\">Card with raised text</a>\n  </h3>\n  <p nxCardSecondaryInfo>\n    This text is raised above the pseudo element of the main link. You can\n    select it but you cannot use the area to click the card.\n  </p>\n</nx-card>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: appearance",
        "level": 3,
        "content": "With `appearance` you can change the styling of the card to expert. Using the `NxExpertModule` will automatically set that option and you don't have to set it in the template manually.\nWorks for both checkbox and radio style cards.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxSelectableCardComponent } from '@allianz/ng-aquila/card';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Selectable cards expert example\n */\n@Component({\n  selector: 'selectable-card-expert-example',\n  templateUrl: './selectable-card-expert-example.html',\n  styleUrls: ['./selectable-card-expert-example.css'],\n  imports: [\n    NxSelectableCardComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxErrorComponent,\n  ],\n})\nexport class SelectableCardExpertExampleComponent {\n  readonly formGroup = this.fb.group({\n    card: [false, Validators.requiredTrue],\n  });\n\n  constructor(private readonly fb: FormBuilder) {\n    this.formGroup.markAllAsTouched();\n  }\n}\n\n```\n```html\n<nx-selectable-card class=\"nx-margin-bottom-2m\" appearance=\"expert\">\n  <h3 nxHeadline=\"subsection-small\">Card headline</h3>\n  <hr />\n  <p nxCopytext>Default selectable card</p>\n</nx-selectable-card>\n\n<nx-selectable-card class=\"nx-margin-bottom-2m\" appearance=\"expert\" highlight>\n  <div nxHighlightHeader>Highlight</div>\n  <h3 nxHeadline=\"subsection-small\">Card headline</h3>\n  <hr />\n  <p nxCopytext>Highlight selectable card</p>\n</nx-selectable-card>\n\n<nx-selectable-card class=\"nx-margin-bottom-2m\" checked appearance=\"expert\">\n  <h3 nxHeadline=\"subsection-small\">Card headline</h3>\n  <hr />\n  <p nxCopytext>Checked selectable card</p>\n</nx-selectable-card>\n\n<nx-selectable-card class=\"nx-margin-bottom-2m\" appearance=\"expert\" disabled>\n  <h3 nxHeadline=\"subsection-small\">Card headline</h3>\n  <hr />\n  <p nxCopytext>Disabled selectable card</p>\n</nx-selectable-card>\n\n<nx-selectable-card\n  class=\"nx-margin-bottom-2m\"\n  checked\n  appearance=\"expert\"\n  disabled\n>\n  <h3 nxHeadline=\"subsection-small\">Card headline</h3>\n  <hr />\n  <p nxCopytext>Disabled checked selectable card</p>\n</nx-selectable-card>\n\n<form [formGroup]=\"formGroup\">\n  <nx-selectable-card formControlName=\"card\" appearance=\"expert\">\n    <h3 nxHeadline=\"subsection-small\">Card headline</h3>\n    <hr />\n    <p nxCopytext>Required selectable card</p>\n    <nx-error appearance=\"text\"> This card must be selected. </nx-error>\n  </nx-selectable-card>\n</form>\n\n```\n\n</div>\n"
      }
    ]
  },
  {
    "name": "checkbox.md",
    "title": "Checkbox",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic states",
        "level": 4,
        "content": "The following six checkbox states are supported:\n\n\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Checkbox States\n */\n@Component({\n  selector: 'checkbox-states-example',\n  templateUrl: './checkbox-states-example.html',\n  styleUrls: ['./checkbox-states-example.css'],\n  imports: [NxCheckboxComponent],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxStatesExampleComponent {}\n\n```\n```html\n<nx-checkbox class=\"nx-margin-bottom-s\">\n  Default<br />\n  The box is left unchecked.\n</nx-checkbox>\n\n<nx-checkbox [checked]=\"true\" class=\"nx-margin-bottom-s\">\n  Checked<br />\n  An action or item is selected.\n</nx-checkbox>\n\n<nx-checkbox [disabled]=\"true\" class=\"nx-margin-bottom-s\">\n  Disabled<br />\n  The checkbox is inactive due to previously checked or unchecked boxes.\n</nx-checkbox>\n\n<nx-checkbox [checked]=\"true\" [disabled]=\"true\" class=\"nx-margin-bottom-s\">\n  Checked & disabled<br />\n  An action or item has been pre-selected due to previously checked or unchecked\n  boxes.\n</nx-checkbox>\n\n<nx-checkbox [indeterminate]=\"true\" class=\"nx-margin-bottom-s\">\n  Indeterminate<br />\n  If all subordinate boxes are checked, the \"mother checkbox\" may be as well.\n  But if only _some_ of them are, it's state is indeterminate, i.e. partially\n  checked. This may come in handy if you work with nested checkboxes.\n</nx-checkbox>\n\n<nx-checkbox\n  [indeterminate]=\"true\"\n  [disabled]=\"true\"\n  class=\"nx-margin-bottom-s\"\n>\n  Indeterminate & disabled<br />\n  The box is indeterminate and can not be interacted with directly, but only via\n  checking all of the subordinate boxes nested below.\n</nx-checkbox>\n\n```\n\n"
      },
      {
        "heading": "simple binding",
        "level": 4,
        "content": "\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Simple binding example\n */\n@Component({\n  selector: 'checkbox-simple-binding-example',\n  templateUrl: './checkbox-simple-binding-example.html',\n  styleUrls: ['./checkbox-simple-binding-example.css'],\n  imports: [FormsModule, NxCheckboxComponent],\n})\nexport class CheckboxSimpleBindingExampleComponent {\n  checkedRaw = false;\n}\n\n```\n```html\n<form>\n  <nx-checkbox class=\"nx-margin-bottom-s\" [(checked)]=\"checkedRaw\"\n    >Check me.</nx-checkbox\n  >\n  Current Value: {{ checkedRaw }}\n</form>\n\n```\n\n"
      },
      {
        "heading": "label size",
        "level": 4,
        "content": "The font size of the label can be set to two different sizes with the `[labelSize]` property.\n\n\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Label size example\n */\n@Component({\n  selector: 'checkbox-label-size-example',\n  templateUrl: './checkbox-label-size-example.html',\n  styleUrls: ['./checkbox-label-size-example.css'],\n  imports: [FormsModule, NxCheckboxComponent],\n})\nexport class CheckboxLabelSizeExampleComponent {}\n\n```\n```html\n<form>\n  <nx-checkbox class=\"nx-margin-bottom-s\">Check me.</nx-checkbox>\n  <nx-checkbox labelSize=\"large\">Check me.</nx-checkbox>\n</form>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 4,
        "content": "You can apply the negative styling to the checkboxes by using the `negative` input on either the checkbox group or a single checkbox.\n\nIf used both on a checkbox and its containing checkbox group, the group setting overrides the single checkbox.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'checkbox-negative-example',\n  templateUrl: './checkbox-negative-example.html',\n  styleUrls: ['./checkbox-negative-example.css'],\n  imports: [\n    NxCheckboxComponent,\n    NxCheckboxGroupComponent,\n    FormsModule,\n    NxLabelComponent,\n  ],\n})\nexport class CheckboxNegativeExampleComponent {\n  checkboxes = ['checkbox 1'];\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-checkbox negative=\"true\" checked=\"true\"\n    >I'm a single checkbox</nx-checkbox\n  >\n  <br />\n\n  <nx-checkbox-group [(ngModel)]=\"checkboxes\" negative=\"true\">\n    <nx-label>This is a nx-checkbox-group</nx-label>\n    <nx-checkbox value=\"checkbox 1\" class=\"nx-margin-bottom-s\"\n      >Checkbox 1</nx-checkbox\n    >\n    <nx-checkbox value=\"checkbox 2\" class=\"nx-margin-bottom-s\"\n      >Checkbox 2</nx-checkbox\n    >\n    <nx-checkbox value=\"checkbox 3\" disabled=\"true\">Checkbox 3</nx-checkbox>\n  </nx-checkbox-group>\n</div>\n\n```\n\n"
      },
      {
        "heading": "template-driven with ngmodel",
        "level": 4,
        "content": "\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template-driven example with ngModel\n */\n@Component({\n  selector: 'checkbox-template-driven-example',\n  templateUrl: './checkbox-template-driven-example.html',\n  styleUrls: ['./checkbox-template-driven-example.css'],\n  imports: [FormsModule, NxCheckboxComponent],\n})\nexport class CheckboxTemplateDrivenExampleComponent {\n  checked = false;\n}\n\n```\n```html\n<form>\n  <nx-checkbox\n    [(ngModel)]=\"checked\"\n    class=\"nx-margin-bottom-s\"\n    name=\"checkboxTestTemplate\"\n    >Check me.</nx-checkbox\n  >\n  Current Value: {{ checked }}\n</form>\n\n```\n\n"
      },
      {
        "heading": "reactive",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { CommonModule, JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive example\n */\n@Component({\n  selector: 'checkbox-reactive-example',\n  templateUrl: './checkbox-reactive-example.html',\n  styleUrls: ['./checkbox-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCheckboxComponent,\n    JsonPipe,\n    NxErrorComponent,\n    CommonModule,\n  ],\n})\nexport class CheckboxReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    checkboxTestReactive: [false, Validators.requiredTrue],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-checkbox formControlName=\"checkboxTestReactive\">\n    Check me.\n    <nx-error>This field is required.</nx-error>\n  </nx-checkbox>\n  <p>Form value: {{ testForm.value | json }}</p>\n  <p>Form status: {{ testForm.status | json }}</p>\n  <p>Form touched: {{ testForm.touched | json }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "outputs",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { Component } from '@angular/core';\n\n/**\n * @title Outputs example\n */\n@Component({\n  selector: 'checkbox-outputs-example',\n  templateUrl: './checkbox-outputs-example.html',\n  styleUrls: ['./checkbox-outputs-example.css'],\n  imports: [NxCheckboxComponent, NxButtonComponent],\n})\nexport class CheckboxOutputsExampleComponent {\n  logMessage = '';\n  messages: string[] = [];\n\n  log(value: string) {\n    this.messages.push(value);\n    this.logMessage = this.messages.join('\\n');\n  }\n}\n\n```\n```html\n<nx-checkbox\n  #checkboxTest\n  class=\"nx-margin-bottom-s\"\n  (checkboxChange)=\"log('checkbox change occurred')\"\n  (checkedChange)=\"log('checked change occurred')\"\n  (indeterminateChange)=\"log('indeterminate change occurred')\"\n  >Check me.</nx-checkbox\n>\n<button\n  nxButton=\"small\"\n  (click)=\"checkboxTest.indeterminate = !checkboxTest.indeterminate\"\n  type=\"button\"\n>\n  Toggle Indeterminate\n</button>\n<br />\n@if (logMessage) {\n  <pre>{{ logMessage }}</pre>\n}\n\n```\n\n"
      },
      {
        "heading": "checkbox group",
        "level": 3,
        "content": "Checkboxes can be grouped under one label and validated together. The checkbox group is used when you want to add a label or include an error message.\n\n**Please note:** When wrapping the `<nx-checkbox>` inside a `<nx-checkbox-group>`, the `nx-checkbox-group` takes control.\n"
      },
      {
        "heading": "basic usage",
        "level": 4,
        "content": "\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Checkbox group basic example\n */\n@Component({\n  selector: 'checkbox-group-basic-example',\n  templateUrl: './checkbox-group-basic-example.html',\n  styleUrls: ['./checkbox-group-basic-example.css'],\n  imports: [\n    NxCheckboxGroupComponent,\n    FormsModule,\n    NxLabelComponent,\n    NxCheckboxComponent,\n    JsonPipe,\n  ],\n})\nexport class CheckboxGroupBasicExampleComponent {\n  checkboxes = ['checkbox 1'];\n}\n\n```\n```html\n<nx-checkbox-group [(ngModel)]=\"checkboxes\">\n  <nx-label>This is a nx-checkbox-group</nx-label>\n  <nx-checkbox value=\"checkbox 1\" class=\"nx-margin-bottom-s\"\n    >Checkbox 1</nx-checkbox\n  >\n  <nx-checkbox value=\"checkbox 2\" class=\"nx-margin-bottom-s\"\n    >Checkbox 2</nx-checkbox\n  >\n  <nx-checkbox value=\"checkbox 3\">Checkbox 3</nx-checkbox>\n</nx-checkbox-group>\n\n<p>Value: {{ checkboxes | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 4,
        "content": "\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Checkbox group reactive example\n */\n@Component({\n  selector: 'checkbox-group-reactive-example',\n  templateUrl: './checkbox-group-reactive-example.html',\n  styleUrls: ['./checkbox-group-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCheckboxGroupComponent,\n    NxLabelComponent,\n    NxCheckboxComponent,\n    JsonPipe,\n  ],\n})\nexport class CheckboxGroupReactiveExampleComponent {\n  readonly myFormGroup = this.fb.group({\n    terms: [],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"myFormGroup\">\n  <nx-checkbox-group name=\"terms\" formControlName=\"terms\">\n    <nx-label>Select your choices</nx-label>\n    <nx-checkbox value=\"Term 1\" class=\"nx-margin-bottom-s\"\n      >Checkbox 1</nx-checkbox\n    >\n    <nx-checkbox value=\"Term 2\" class=\"nx-margin-bottom-s\"\n      >Checkbox 2</nx-checkbox\n    >\n    <nx-checkbox value=\"Term 3\">Checkbox 3</nx-checkbox>\n  </nx-checkbox-group>\n  <p>Form value: {{ myFormGroup.value | json }}</p>\n  <p>Form status: {{ myFormGroup.status | json }}</p>\n  <p>Form touched: {{ myFormGroup.touched | json }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "layouting",
        "level": 3,
        "content": "You are free to choose how you want to layout the checkboxes inside the group. You can for example use the grid component, your own css grid or css flexbox around it.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { NxGridModule } from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Checkbox Group horizontal layout  */\n@Component({\n  selector: 'checkbox-group-layout-example',\n  templateUrl: './checkbox-group-layout-example.html',\n  styleUrls: ['./checkbox-group-layout-example.css'],\n  imports: [\n    NxCheckboxGroupComponent,\n    FormsModule,\n    NxLabelComponent,\n    NxCheckboxComponent,\n    NxGridModule,\n  ],\n})\nexport class CheckboxGroupLayoutExampleComponent {\n  checkboxes = [\n    'Espresso',\n    'Americano',\n    'Iced Caramel Macchiato',\n    'Latte',\n    'Nitro Cold Brew',\n    'Iced Hazelnut Coffee',\n    'Mocha',\n  ];\n}\n\n```\n```html\n<nx-checkbox-group>\n  <nx-label>With nx grid component</nx-label>\n  <div nxLayout=\"nopadding\">\n    <div nxRow>\n      @for (item of checkboxes; track item) {\n        <div nxCol=\"12,12,6,4\" class=\"nx-margin-bottom-s\">\n          <nx-checkbox [value]=\"item\">{{ item }}</nx-checkbox>\n        </div>\n      }\n    </div>\n  </div>\n</nx-checkbox-group>\n<br />\n<nx-checkbox-group>\n  <nx-label>With CSS Grid</nx-label>\n  <div class=\"grid-wrapper\">\n    @for (item of checkboxes; track item) {\n      <nx-checkbox [value]=\"item\">{{ item }}</nx-checkbox>\n    }\n  </div>\n</nx-checkbox-group>\n<br />\n<br />\n<nx-checkbox-group>\n  <nx-label>With CSS Flexbox</nx-label>\n  <div class=\"flex-wrapper\">\n    @for (item of checkboxes; track item) {\n      <nx-checkbox\n        [value]=\"item\"\n        class=\"nx-margin-right-m nx-margin-bottom-s\"\n        >{{ item }}</nx-checkbox\n      >\n    }\n  </div>\n</nx-checkbox-group>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: checkbox group label",
        "level": 3,
        "content": "With `size` you can change the styling of the checkbox-group's label. The label of the checkbox group is by default for B2C. The appearance of the label can be changed setting the `size` property to `small`.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { Component } from '@angular/core';\n\n/**\n * @title Checkbox group label size example\n */\n@Component({\n  selector: 'checkbox-group-label-size-example',\n  templateUrl: './checkbox-group-label-size-example.html',\n  styleUrls: ['./checkbox-group-label-size-example.css'],\n  imports: [NxCheckboxGroupComponent, NxLabelComponent, NxCheckboxComponent],\n})\nexport class CheckboxGroupLabelSizeExampleComponent {}\n\n```\n```html\n<nx-checkbox-group>\n  <nx-label [size]=\"'small'\"\n    >This is an expert label for the checkbox group</nx-label\n  >\n  <nx-checkbox value=\"checkbox 1\" class=\"nx-margin-bottom-s\"\n    >Checkbox 1</nx-checkbox\n  >\n  <nx-checkbox value=\"checkbox 2\" class=\"nx-margin-bottom-s\"\n    >Checkbox 2</nx-checkbox\n  >\n  <nx-checkbox value=\"checkbox 3\">Checkbox 3</nx-checkbox>\n</nx-checkbox-group>\n\n```\n\n"
      },
      {
        "heading": "expert: readonly",
        "level": 4,
        "content": "<div class=\"docs-deprecation-warning\">\n<strong>Expert only: </strong>\n  Please note that the readonly option is only for expert/internal applications because of accessibility restrictions. There is currently no solution for readonly states that is accepted for retail applications.\n</div>\n\n\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Readonly checkbox\n */\n@Component({\n  selector: 'checkbox-readonly-example',\n  templateUrl: './checkbox-readonly-example.html',\n  styleUrls: ['./checkbox-readonly-example.css'],\n  imports: [NxCheckboxComponent],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxReadonlyExampleComponent {\n  readonly = true;\n}\n\n```\n```html\n<nx-checkbox [readonly]=\"readonly\" class=\"nx-margin-bottom-s\">\n  Readonly\n</nx-checkbox>\n\n<nx-checkbox [readonly]=\"readonly\" checked class=\"nx-margin-bottom-s\">\n  Readonly & checked\n</nx-checkbox>\n\n<nx-checkbox [readonly]=\"readonly\" indeterminate>\n  Readonly & indeterminate\n</nx-checkbox>\n\n```\n\n"
      },
      {
        "heading": "validation",
        "level": 3,
        "content": "**Important**: Please note that the `nx-error` is only for **Expert**.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  AbstractControl,\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Checkbox group validation example\n */\n@Component({\n  selector: 'checkbox-group-validation-example',\n  templateUrl: './checkbox-group-validation-example.html',\n  styleUrls: ['./checkbox-group-validation-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCheckboxGroupComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n    NxCheckboxComponent,\n    JsonPipe,\n  ],\n})\nexport class CheckboxGroupValidationExampleComponent {\n  readonly myFormGroup = this.fb.group({\n    terms: [[], [Validators.required, this.validateCheckboxes]],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  private validateCheckboxes(control: AbstractControl) {\n    if (control.value.length <= 2) {\n      return { min: false };\n    }\n    return null;\n  }\n}\n\n```\n```html\n<form [formGroup]=\"myFormGroup\">\n  <nx-checkbox-group name=\"terms\" formControlName=\"terms\" required>\n    <nx-label [size]=\"'small'\">Select your choices</nx-label>\n    <nx-checkbox value=\"Term 1\" class=\"nx-margin-bottom-s\"\n      >Checkbox 1</nx-checkbox\n    >\n    <nx-checkbox value=\"Term 2\" class=\"nx-margin-bottom-s\"\n      >Checkbox 2</nx-checkbox\n    >\n    <nx-checkbox value=\"Term 3\" class=\"nx-margin-bottom-s\"\n      >Checkbox 3</nx-checkbox\n    >\n    <nx-checkbox value=\"Term 4\" class=\"nx-margin-bottom-s\"\n      >Checkbox 4</nx-checkbox\n    >\n    <nx-checkbox value=\"Term 5\">Checkbox 5</nx-checkbox>\n    <nx-error appearance=\"text\">\n      Please select at least 3 checkboxes.\n    </nx-error>\n  </nx-checkbox-group>\n  <p>Form value: {{ myFormGroup.value | json }}</p>\n  <p>Form status: {{ myFormGroup.status | json }}</p>\n</form>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "dynamic",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Checkbox group dynamic checkboxes example\n */\n@Component({\n  selector: 'checkbox-group-dynamic-example',\n  templateUrl: './checkbox-group-dynamic-example.html',\n  styleUrls: ['./checkbox-group-dynamic-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCheckboxGroupComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n    NxCheckboxComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class CheckboxGroupDynamicExampleComponent {\n  readonly myFormGroup = this.fb.group({\n    terms: [[], Validators.required],\n  });\n\n  readonly data = ['one', 'two', 'three'];\n\n  i = 1;\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  addNewCb() {\n    this.data.push('Checkbox ' + this.i);\n    this.i++;\n  }\n\n  removeCB() {\n    this.data.shift();\n  }\n}\n\n```\n```html\n<form [formGroup]=\"myFormGroup\">\n  @if (data) {\n    <nx-checkbox-group name=\"terms\" formControlName=\"terms\" required>\n      <nx-label [size]=\"'small'\">Select your choices</nx-label>\n      <nx-error appearance=\"text\">\n        Please select at least one checkbox.\n      </nx-error>\n      @for (key of data; track key) {\n        <nx-checkbox [value]=\"key\" checked class=\"nx-margin-bottom-s\">{{\n          key\n        }}</nx-checkbox>\n      }\n    </nx-checkbox-group>\n  }\n  <p>Form value: {{ myFormGroup.value | json }}</p>\n  <p>Form status: {{ myFormGroup.status | json }}</p>\n</form>\n\n<button\n  (click)=\"addNewCb()\"\n  nxButton=\"primary small\"\n  type=\"button\"\n  class=\"nx-margin-right-3xs\"\n>\n  Add new checkbox\n</button>\n<button (click)=\"removeCB()\" nxButton=\"primary small\" type=\"button\">\n  Remove first checkbox\n</button>\n\n```\n\n"
      },
      {
        "heading": "inheritance",
        "level": 3,
        "content": "The properties can be inherited from the checkbox group to the checkboxes inside it. In this example you can toggle them and check the result.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { JsonPipe, NgClass } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Checkbox group inheritance example\n */\n@Component({\n  selector: 'checkbox-group-inheritance-example',\n  templateUrl: './checkbox-group-inheritance-example.html',\n  styleUrls: ['./checkbox-group-inheritance-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCheckboxComponent,\n    NgClass,\n    NxCheckboxGroupComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n    JsonPipe,\n  ],\n})\nexport class CheckboxGroupInheritanceExampleComponent {\n  readonly optionsForm = this.fb.group({\n    isNegative: [false, null],\n    isRequired: [false, null],\n    isDisabled: [false, null],\n    isLarge: [false, null],\n    isLabelExpert: [false, null],\n  });\n\n  readonly myFormGroup = this.fb.group({\n    terms: [[]],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  toggleDisabled() {\n    const checkboxGroup = this.myFormGroup.get('terms');\n    if (checkboxGroup?.disabled) {\n      this.myFormGroup.get('terms')?.enable();\n    } else {\n      this.myFormGroup.get('terms')?.disable();\n    }\n  }\n\n  toggleRequired() {\n    const checkboxGroup = this.myFormGroup.get('terms');\n    if (checkboxGroup?.validator === Validators.required) {\n      checkboxGroup.clearValidators();\n    } else {\n      checkboxGroup?.setValidators(Validators.required);\n    }\n  }\n}\n\n```\n```html\n<h4>Properties</h4>\n<form [formGroup]=\"optionsForm\">\n  <nx-checkbox formControlName=\"isNegative\" class=\"nx-margin-bottom-s\"\n    >Toggle negative</nx-checkbox\n  >\n  <nx-checkbox\n    formControlName=\"isRequired\"\n    (checkedChange)=\"toggleRequired()\"\n    class=\"nx-margin-bottom-s\"\n    >Toggle required</nx-checkbox\n  >\n  <nx-checkbox\n    formControlName=\"isDisabled\"\n    (checkedChange)=\"toggleDisabled()\"\n    class=\"nx-margin-bottom-s\"\n    >Toggle disabled</nx-checkbox\n  >\n  <nx-checkbox formControlName=\"isLarge\" class=\"nx-margin-bottom-s\"\n    >Toggle checkbox label size</nx-checkbox\n  >\n  <nx-checkbox formControlName=\"isLabelExpert\"\n    >Toggle checkbox group label size (Expert)</nx-checkbox\n  >\n</form>\n<hr />\n<h4>Result</h4>\n<form [formGroup]=\"myFormGroup\">\n  <div [ngClass]=\"{ 'docs-inverse-container': optionsForm.value.isNegative }\">\n    <nx-checkbox-group\n      name=\"terms\"\n      formControlName=\"terms\"\n      [negative]=\"optionsForm.value.isNegative\"\n      [labelSize]=\"optionsForm.value.isLarge ? 'large' : 'small'\"\n    >\n      <nx-label [size]=\"optionsForm.value.isLabelExpert ? 'small' : 'large'\"\n        >Select your choices</nx-label\n      >\n      <nx-error appearance=\"text\">\n        Please select at least one checkbox.\n      </nx-error>\n      <nx-checkbox value=\"Term 1\" class=\"nx-margin-bottom-s\"\n        >Checkbox 1</nx-checkbox\n      >\n      <nx-checkbox value=\"Term 2\" class=\"nx-margin-bottom-s\"\n        >Checkbox 2</nx-checkbox\n      >\n      <nx-checkbox value=\"Term 3\" class=\"nx-margin-bottom-s\"\n        >Checkbox 3</nx-checkbox\n      >\n      <nx-checkbox value=\"Term 4\" class=\"nx-margin-bottom-s\"\n        >Checkbox 4</nx-checkbox\n      >\n      <nx-checkbox value=\"Term 5\">Checkbox 5</nx-checkbox>\n    </nx-checkbox-group>\n  </div>\n  <p>Form value: {{ optionsForm.value | json }}</p>\n  <p>Form status: {{ myFormGroup.status | json }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If your checkbox doesn't have any accompanying label text,\nit's recommended to use `ariaLabel` or `ariaLabelledBy`\ninputs to provide helpful information for users relying on screen readers or other assistive technologies.\"\n"
      }
    ]
  },
  {
    "name": "circle-toggle.md",
    "title": "Circle Toggle",
    "category": "components",
    "alias": [
      "button",
      "radio",
      "toggle",
      "checkbox"
    ],
    "sections": [
      {
        "heading": "standalone circle toggle (checkbox role)",
        "level": 3,
        "content": "The component can be used as a standalone component with a checkbox role where you can select multiple checkboxes at the same time as shown below.\n\n\n```ts\nimport { NxCircleToggleComponent } from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standalone example\n */\n@Component({\n  selector: 'circle-toggle-standalone-example',\n  templateUrl: './circle-toggle-standalone-example.html',\n  styleUrls: ['./circle-toggle-standalone-example.css'],\n  imports: [NxCircleToggleComponent],\n})\nexport class CircleToggleStandaloneExampleComponent {}\n\n```\n```html\n<nx-circle-toggle\n  checked=\"true\"\n  icon=\"product-search\"\n  label=\"With Icon\"\n  value=\"A\"\n>\n</nx-circle-toggle>\n\n<nx-circle-toggle\n  value=\"E\"\n  label=\"Custom SVG\"\n  svg=\"assets/images/circle_toggle_example_icon.svg\"\n  svgChecked=\"assets/images/circle_toggle_example_icon-selected.svg\"\n>\n</nx-circle-toggle>\n\n<nx-circle-toggle\n  disabled=\"true\"\n  checked=\"true\"\n  icon=\"product-search\"\n  label=\"Disabled\"\n  value=\"C\"\n>\n</nx-circle-toggle>\n\n```\n\n"
      },
      {
        "heading": "basic usage",
        "level": 4,
        "content": "The Circle Toggle component can also be wrapped in a circle toggle group, which gives the buttons in the group the behaviour of a radio group, where only one button can be selected at a time.\n\n\n```ts\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Circle Toggle group example\n */\n@Component({\n  selector: 'circle-toggle-group-example',\n  templateUrl: './circle-toggle-group-example.html',\n  styleUrls: ['./circle-toggle-group-example.css'],\n  imports: [NxCircleToggleGroupComponent, NxCircleToggleComponent],\n})\nexport class CircleToggleGroupExampleComponent {\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n}\n\n```\n```html\n<nx-circle-toggle-group>\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n      [checked]=\"item.selected\"\n    >\n    </nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n<p nxCopytext=\"large\" class=\"nx-margin-y-m\">You can disable the whole group:</p>\n\n<nx-circle-toggle-group disabled>\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n      [checked]=\"item.selected\"\n    >\n    </nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n<p nxCopytext=\"large\" class=\"nx-margin-y-m\">\n  And you can disable individual circle toggles in a group:\n</p>\n\n<nx-circle-toggle-group>\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n      [checked]=\"item.selected\"\n      [disabled]=\"item.value === 'A'\"\n    >\n    </nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n```\n\n"
      },
      {
        "heading": "different responsive behaviors",
        "level": 4,
        "content": "The default responsive behavior of the Circle Toggle is to become toggle buttons as can be seen above.\n\nTo disable that behavior and have the Circle Toggle stay in the same design as on desktop, you can use the `[responsive]` property and set it to false on the `nx-circle-toggle-group` element itself:\n\n\n```ts\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Disable responsive example\n */\n@Component({\n  selector: 'circle-toggle-responsive-example',\n  templateUrl: './circle-toggle-responsive-example.html',\n  styleUrls: ['./circle-toggle-responsive-example.css'],\n  imports: [NxCircleToggleGroupComponent, NxCircleToggleComponent],\n})\nexport class CircleToggleResponsiveExampleComponent {\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  logMessage(event: Event) {\n    console.log(`toggle-circle changed to value: ` + event);\n  }\n}\n\n```\n```html\n<nx-circle-toggle-group (valueChange)=\"logMessage($event)\" responsive=\"false\">\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n    ></nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n```\n\n"
      },
      {
        "heading": "use textual content instead of icons",
        "level": 4,
        "content": "Instead of icons it is also possible to display text with `[circleText]`. This option is not meant for displaying long texts, so the text size will not adapt.\n\nPlease note that if no label is provided, on mobile the circleText will be displayed instead inside the toggle button.\n\n\n```ts\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/** @title Circle text example */\n@Component({\n  selector: 'circle-toggle-text-example',\n  templateUrl: './circle-toggle-text-example.html',\n  styleUrls: ['./circle-toggle-text-example.css'],\n  imports: [NxCircleToggleGroupComponent, NxCircleToggleComponent],\n})\nexport class CircleToggleTextExampleComponent {\n  sampleValues = [\n    { value: 'A', circleText: 'Yes', selected: true },\n    { value: 'B', circleText: 'No', selected: false },\n  ];\n}\n\n```\n```html\n<nx-circle-toggle-group>\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [circleText]=\"item.circleText\"\n      [checked]=\"item.selected\"\n    >\n    </nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n```\n\n"
      },
      {
        "heading": "negative styles",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'circle-toggle-negative-example',\n  templateUrl: './circle-toggle-negative-example.html',\n  styleUrls: ['./circle-toggle-negative-example.css'],\n  imports: [\n    NxCircleToggleGroupComponent,\n    NxCircleToggleComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CircleToggleNegativeExampleComponent {\n  negative = true;\n\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  changeStyle() {\n    this.negative = !this.negative;\n  }\n}\n\n```\n```html\n<div class=\"container\" [class.docs-inverse-container]=\"negative\">\n  <nx-circle-toggle-group [negative]=\"negative\">\n    @for (item of sampleValues; track item) {\n      <nx-circle-toggle\n        [value]=\"item.value\"\n        [icon]=\"item.icon\"\n        [hint]=\"item.hint\"\n        [label]=\"item.label\"\n      >\n      </nx-circle-toggle>\n    }\n  </nx-circle-toggle-group>\n</div>\n<br />\n<button nxButton=\"primary small\" (click)=\"changeStyle()\" type=\"button\">\n  Invert styles\n</button>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: appearance",
        "level": 4,
        "content": "With `appearance=\"expert\"` you can change the styling of the circle toggle to expert. This will be automatically set if you use the `NxExpertModule`.\n\nPlease note that this is an **Expert option**. This means that it is only intended for internal applications and not for applications that are client facing.\n\n\n```ts\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Circle toggle group expert default example\n */\n@Component({\n  selector: 'circle-toggle-group-expert-example',\n  templateUrl: './circle-toggle-group-expert-example.html',\n  styleUrls: ['./circle-toggle-group-expert-example.css'],\n  imports: [NxCircleToggleGroupComponent, NxCircleToggleComponent],\n})\nexport class CircleToggleGroupExpertExampleComponent {\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n}\n\n```\n```html\n<nx-circle-toggle-group class=\"nx-margin-bottom-m\" appearance=\"expert\">\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n      [checked]=\"item.selected\"\n    >\n    </nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n```\n\n\n\n```ts\nimport { NxCircleToggleComponent } from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Circle toggle expert default example\n */\n@Component({\n  selector: 'circle-toggle-expert-example',\n  templateUrl: './circle-toggle-expert-example.html',\n  styleUrls: ['./circle-toggle-expert-example.css'],\n  standalone: true,\n  imports: [NxCircleToggleComponent],\n})\nexport class CircleToggleExpertExampleComponent {\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n}\n\n```\n```html\n@for (item of sampleValues; track item) {\n  <nx-circle-toggle\n    appearance=\"expert\"\n    [value]=\"item.value\"\n    [icon]=\"item.icon\"\n    [hint]=\"item.hint\"\n    [label]=\"item.label\"\n    [checked]=\"item.selected\"\n  >\n  </nx-circle-toggle>\n}\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "layouting",
        "level": 3,
        "content": "You have the flexibility to structure the circle toggle within the group however you prefer.\n\n\n```ts\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { NxGridModule } from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/** @title Circle Toggle Group responsive layout Example */\n@Component({\n  selector: 'circle-toggle-layout-example',\n  templateUrl: './circle-toggle-layout-example.html',\n  styleUrl: './circle-toggle-layout-example.css',\n  imports: [\n    NxCircleToggleComponent,\n    NxCircleToggleGroupComponent,\n    NxGridModule,\n  ],\n})\nexport class CircleToggleLayoutExampleComponent {\n  sampleValues = [\n    {\n      value: 'A',\n      circleText: 'A',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      circleText: 'B',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      circleText: 'C',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n    {\n      value: 'D',\n      circleText: 'D',\n      hint: 'Hint D',\n      label: 'Label D',\n      selected: false,\n    },\n    {\n      value: 'E',\n      circleText: 'E',\n      hint: 'Hint E',\n      label: 'Label E',\n      selected: false,\n    },\n    {\n      value: 'F',\n      circleText: 'F',\n      hint: 'Hint F',\n      label: 'Label F',\n      selected: false,\n    },\n  ];\n}\n\n```\n```html\n<p nxCopytext=\"large\" class=\"nx-margin-y-m\">\n  The circle toggle group uses CSS Flexbox as its default layout and is\n  inherently responsive, adjusting automatically for mobile screens. Resize the\n  screen to see its behavior.\n</p>\n<nx-circle-toggle-group>\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [circleText]=\"item.circleText\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n      [checked]=\"item.selected\"\n    >\n    </nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n<br />\n<p nxCopytext=\"large\" class=\"nx-margin-y-m\">\n  You can customize the layout using the nx grid component. However, with this\n  approach, you need to disable the responsive setting to prevent layout issues\n  on mobile screens.\n</p>\n<nx-circle-toggle-group responsive=\"false\">\n  <div nxLayout=\"maxwidth\">\n    <div nxRow>\n      @for (item of sampleValues; track item) {\n        <div nxCol=\"12,6,4,4\" class=\"toggle-item\">\n          <nx-circle-toggle\n            [value]=\"item.value\"\n            [circleText]=\"item.circleText\"\n            [hint]=\"item.hint\"\n            [label]=\"item.label\"\n            [checked]=\"item.selected\"\n          >\n          </nx-circle-toggle>\n        </div>\n      }\n    </div>\n  </div>\n</nx-circle-toggle-group>\n<br />\n<p nxCopytext=\"large\" class=\"nx-margin-y-m\">\n  You can also customize the layout using CSS Grid, allowing you to set custom\n  gaps between each item for better spacing control.\n</p>\n<nx-circle-toggle-group responsive=\"false\">\n  <div class=\"grid-wrapper\">\n    @for (item of sampleValues; track item) {\n      <nx-circle-toggle\n        [value]=\"item.value\"\n        [circleText]=\"item.circleText\"\n        [hint]=\"item.hint\"\n        [label]=\"item.label\"\n        [checked]=\"item.selected\"\n      >\n      </nx-circle-toggle>\n    }\n  </div>\n</nx-circle-toggle-group>\n\n```\n\n"
      },
      {
        "heading": "simple binding",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Simple binding example\n */\n@Component({\n  selector: 'circle-toggle-simple-binding-example',\n  templateUrl: './circle-toggle-simple-binding-example.html',\n  styleUrls: ['./circle-toggle-simple-binding-example.css'],\n  imports: [\n    NxCircleToggleGroupComponent,\n    NxCircleToggleComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CircleToggleSimpleBindingExampleComponent {\n  simpleBinding!: string;\n  currentChar = 'D';\n\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  addBtn() {\n    this.sampleValues.push({\n      value: this.currentChar,\n      icon: 'product-bike',\n      hint: `Hint ${this.currentChar}`,\n      label: `Label ${this.currentChar}`,\n      selected: false,\n    });\n\n    let nextCharCode = this.currentChar.charCodeAt(0) + 1;\n\n    if (nextCharCode >= 90) {\n      nextCharCode = 65;\n    }\n\n    this.currentChar = String.fromCharCode(nextCharCode);\n  }\n}\n\n```\n```html\n<nx-circle-toggle-group [(value)]=\"simpleBinding\">\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n    ></nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n<br />\n<button nxButton=\"primary small\" (click)=\"addBtn()\" type=\"button\">\n  Add button\n</button>\n\n<p>Try to set the value to A, B or C</p>\n<div class=\"patch-container\">\n  <input #inputSimpleBinding type=\"text\" />\n  <button\n    nxButton=\"primary small\"\n    (click)=\"simpleBinding = inputSimpleBinding.value\"\n    type=\"button\"\n  >\n    Patch\n  </button>\n</div>\n\n<p>Selected value: {{ simpleBinding }}</p>\n\n```\n\n"
      },
      {
        "heading": "template driven form with ngmodel",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template driven example with ngModel\n */\n@Component({\n  selector: 'circle-toggle-template-driven-example',\n  templateUrl: './circle-toggle-template-driven-example.html',\n  styleUrls: ['./circle-toggle-template-driven-example.css'],\n  imports: [\n    NxCircleToggleGroupComponent,\n    FormsModule,\n    NxCircleToggleComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CircleToggleTemplateDrivenExampleComponent {\n  toggleGroupModel!: string;\n\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n}\n\n```\n```html\n<nx-circle-toggle-group [(ngModel)]=\"toggleGroupModel\">\n  @for (item of sampleValues; track item) {\n    <nx-circle-toggle\n      [value]=\"item.value\"\n      [icon]=\"item.icon\"\n      [hint]=\"item.hint\"\n      [label]=\"item.label\"\n    ></nx-circle-toggle>\n  }\n</nx-circle-toggle-group>\n\n<p>Try to set the value to A, B or C</p>\n<div class=\"patch-container\">\n  <input #inputNgModel type=\"text\" />\n  <button\n    nxButton=\"primary small\"\n    (click)=\"toggleGroupModel = inputNgModel.value\"\n    type=\"button\"\n  >\n    Patch\n  </button>\n</div>\n\n<p>Selected value: {{ toggleGroupModel }}</p>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive example\n */\n@Component({\n  selector: 'circle-toggle-reactive-example',\n  templateUrl: './circle-toggle-reactive-example.html',\n  styleUrls: ['./circle-toggle-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCircleToggleGroupComponent,\n    NxCircleToggleComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class CircleToggleReactiveExampleComponent {\n  formBuilder = new FormBuilder();\n\n  testForm = this.formBuilder.group({\n    reactiveToggle: ['', Validators.required],\n  });\n\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  patch(value: string): void {\n    this.testForm.patchValue({ reactiveToggle: value });\n  }\n}\n\n```\n```html\n<form novalidate [formGroup]=\"testForm\">\n  <nx-circle-toggle-group formControlName=\"reactiveToggle\" responsive=\"false\">\n    @for (item of sampleValues; track item) {\n      <nx-circle-toggle\n        [value]=\"item.value\"\n        [icon]=\"item.icon\"\n        [hint]=\"item.hint\"\n        [label]=\"item.label\"\n      ></nx-circle-toggle>\n    }\n  </nx-circle-toggle-group>\n</form>\n\n<p>Form value: {{ testForm.value | json }}</p>\n<p>Form status: {{ testForm.status | json }}</p>\n\n<p>Try to set the value to A, B or C</p>\n<div class=\"patch-container\">\n  <input #inputReactive type=\"text\" />\n  <button\n    nxButton=\"primary small\"\n    (click)=\"patch(inputReactive.value)\"\n    type=\"button\"\n  >\n    Patch\n  </button>\n</div>\n\n```\n\n"
      },
      {
        "heading": "reactive form disabled",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive disabled example\n */\n@Component({\n  selector: 'circle-toggle-reactive-disabled-example',\n  templateUrl: './circle-toggle-reactive-disabled-example.html',\n  styleUrls: ['./circle-toggle-reactive-disabled-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCircleToggleGroupComponent,\n    NxCircleToggleComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class CircleToggleReactiveDisabledExampleComponent {\n  readonly testForm = this.fb.group({\n    reactiveToggle: ['', Validators.required],\n  });\n\n  readonly sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  constructor(private readonly fb: FormBuilder) {\n    this.testForm.disable();\n  }\n\n  switchStatusClick() {\n    if (this.testForm.disabled) {\n      this.testForm.enable();\n    } else {\n      this.testForm.disable();\n    }\n  }\n}\n\n```\n```html\n<form novalidate [formGroup]=\"testForm\">\n  <nx-circle-toggle-group formControlName=\"reactiveToggle\">\n    @for (item of sampleValues; track item) {\n      <nx-circle-toggle\n        [value]=\"item.value\"\n        [icon]=\"item.icon\"\n        [hint]=\"item.hint\"\n        [label]=\"item.label\"\n      ></nx-circle-toggle>\n    }\n  </nx-circle-toggle-group>\n</form>\n\n<p>Form value: {{ testForm.value | json }}</p>\n<p>Form status: {{ testForm.status | json }}</p>\n\n<button nxButton=\"primary small\" (click)=\"switchStatusClick()\" type=\"button\">\n  Switch Status\n</button>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: readonly",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n<strong>Expert only: </strong>\n  Please note that the readonly option is only for expert/internal applications because of accessibility restrictions. There is currently no solution for readonly states that is accepted for retail applications.\n</div>\n\n\n```ts\nimport {\n  CIRCLE_TOGGLE_DEFAULT_OPTIONS,\n  CIRCLE_TOGGLE_GROUP_DEFAULT_OPTIONS,\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive disabled example\n */\n@Component({\n  selector: 'circle-toggle-readonly-example',\n  templateUrl: './circle-toggle-readonly-example.html',\n  styleUrls: ['./circle-toggle-readonly-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCircleToggleGroupComponent,\n    NxCircleToggleComponent,\n  ],\n  providers: [\n    {\n      // This is usually coming from the NxExpertModule or other providers.\n      // We use this here just for the demo purposes.\n      provide: CIRCLE_TOGGLE_GROUP_DEFAULT_OPTIONS,\n      useValue: { appearance: 'expert' },\n    },\n    {\n      // This is usually coming from the NxExpertModule or other providers.\n      // We use this here just for the demo purposes.\n      provide: CIRCLE_TOGGLE_DEFAULT_OPTIONS,\n      useValue: { appearance: 'expert' },\n    },\n  ],\n})\nexport class CircleToggleReadonlyExampleComponent {\n  readonly testForm = this.fb.group({\n    reactiveToggle: ['B', Validators.required],\n  });\n\n  readonly sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<p>How to set a group to readonly:</p>\n\n<form novalidate [formGroup]=\"testForm\">\n  <nx-circle-toggle-group readonly formControlName=\"reactiveToggle\">\n    @for (item of sampleValues; track item) {\n      <nx-circle-toggle\n        [value]=\"item.value\"\n        [icon]=\"item.icon\"\n        [hint]=\"item.hint\"\n        [label]=\"item.label\"\n      ></nx-circle-toggle>\n    }\n  </nx-circle-toggle-group>\n</form>\n\n<p>How to set an individual circle toggle to readonly:</p>\n\n<div class=\"nx-margin-bottom-m toggle-wrapper\">\n  <nx-circle-toggle\n    icon=\"product-heart\"\n    label=\"Label\"\n    readonly\n  ></nx-circle-toggle>\n  <nx-circle-toggle\n    icon=\"product-heart\"\n    label=\"Label\"\n    readonly\n    checked\n  ></nx-circle-toggle>\n  <div></div>\n</div>\n<div class=\"nx-margin-bottom-m toggle-wrapper\">\n  <nx-circle-toggle circleText=\"Yes\" label=\"Label\" readonly></nx-circle-toggle>\n  <nx-circle-toggle\n    circleText=\"Yes\"\n    label=\"Label\"\n    readonly\n    checked\n  ></nx-circle-toggle>\n  <div></div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "validation",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCircleToggleComponent,\n  NxCircleToggleGroupComponent,\n} from '@allianz/ng-aquila/circle-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  AbstractControl,\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  ValidatorFn,\n  Validators,\n} from '@angular/forms';\n\nconst selectBothValidator: ValidatorFn = (ctrl: AbstractControl) => {\n  const heart = ctrl.get('heart')?.value;\n  const car = ctrl.get('car')?.value;\n  const isSelectBoth = heart && car;\n  return isSelectBoth ? null : { selectBoth: heart && car };\n};\n\n/**\n * @title Validation example\n */\n@Component({\n  selector: 'circle-toggle-validation-example',\n  templateUrl: './circle-toggle-validation-example.html',\n  styleUrls: ['./circle-toggle-validation-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCircleToggleGroupComponent,\n    NxCircleToggleComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class CircleToggleValidationExampleComponent {\n  formBuilder = new FormBuilder();\n\n  testForm = this.formBuilder.group({\n    reactiveToggle: ['', Validators.required],\n  });\n\n  testForm2 = this.formBuilder.group({\n    heart: [false, Validators.requiredTrue],\n  });\n\n  testForm3 = this.formBuilder.group(\n    {\n      heart: [false, Validators.requiredTrue],\n      car: [false, Validators.requiredTrue],\n    },\n    { validators: [selectBothValidator] },\n  );\n\n  single = false;\n\n  sampleValues = [\n    {\n      value: 'A',\n      icon: 'product-heart',\n      hint: 'Hint A',\n      label: 'Label A',\n      selected: false,\n    },\n    {\n      value: 'B',\n      icon: 'product-car',\n      hint: 'Hint B',\n      label: 'Label B',\n      selected: true,\n    },\n    {\n      value: 'C',\n      icon: 'product-plane',\n      hint: 'Hint C',\n      label: 'Label C',\n      selected: false,\n    },\n  ];\n\n  patch(value: string): void {\n    this.testForm.patchValue({ reactiveToggle: value });\n  }\n}\n\n```\n```html\n<h3>Radio group</h3>\n<div class=\"container\">\n  <form novalidate [formGroup]=\"testForm\">\n    <nx-circle-toggle-group formControlName=\"reactiveToggle\" responsive=\"false\">\n      @for (item of sampleValues; track item) {\n        <div>\n          <nx-circle-toggle\n            [value]=\"item.value\"\n            [icon]=\"item.icon\"\n            [hint]=\"item.hint\"\n            [label]=\"item.label\"\n          ></nx-circle-toggle>\n        </div>\n      }\n      <nx-error appearance=\"message\" class=\"nx-margin-top-xs\">\n        Please make a choice.\n      </nx-error>\n    </nx-circle-toggle-group>\n    <button nxButton=\"small-medium\" type=\"submit\" class=\"nx-margin-top-xs\">\n      Submit\n    </button>\n  </form>\n</div>\n<p>Form value: {{ testForm.value | json }}</p>\n<p>Form status: {{ testForm.status | json }}</p>\n<p>Form touched: {{ testForm.touched | json }}</p>\n\n<hr />\n<h3>Checkbox</h3>\n<form novalidate [formGroup]=\"testForm2\">\n  <nx-circle-toggle\n    formControlName=\"heart\"\n    icon=\"product-heart\"\n    label=\"Heart\"\n    #heart\n  >\n    <nx-error class=\"nx-margin-y-xs\"> This is required. </nx-error>\n  </nx-circle-toggle>\n</form>\n\n<hr />\n<h3>Cross field validation Checkbox</h3>\n\n<form novalidate [formGroup]=\"testForm3\">\n  <nx-circle-toggle\n    formControlName=\"heart\"\n    icon=\"product-heart\"\n    label=\"Heart\"\n    [class.has-error]=\"testForm3.invalid\"\n    ariaDescribedby=\"customError\"\n    #heart\n  >\n  </nx-circle-toggle>\n  <nx-circle-toggle\n    formControlName=\"car\"\n    icon=\"product-car\"\n    label=\"Car\"\n    [class.has-error]=\"testForm3.invalid\"\n    ariaDescribedby=\"customError\"\n  >\n  </nx-circle-toggle>\n  @if (testForm3.invalid) {\n    <div>\n      <nx-error class=\"nx-margin-y-xs\" id=\"customError\">\n        Need to select 2 options\n      </nx-error>\n    </div>\n  }\n</form>\n<p>Form value: {{ testForm3.value | json }}</p>\n<p>Form status: {{ testForm3.status | json }}</p>\n<p>heart status: {{ testForm3.get('heart')?.status | json }}</p>\n<p>car status: {{ testForm3.get('car')?.status | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The component can be accessed via keyboard. To do that, use the TAB-key to focus the component. The standalone circle toggle component has the type checkbox and can be checked and unchecked through clicking SPACE after being focused. If there is a wrapper circle toggle group (radio group) around the toggle items than you can change the chosen item by using the arrow keys.\n"
      }
    ]
  },
  {
    "name": "code-input.md",
    "title": "Code Input",
    "category": "components",
    "alias": [
      "otp",
      "pin input"
    ],
    "sections": [
      {
        "heading": "4 character code input",
        "level": 3,
        "content": "This is a 4 character code input where only uppercase letters are permitted with auto uppercase enabled. This form will validate on submit.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Four character code input example\n */\n@Component({\n  selector: 'code-input-four-char-example',\n  templateUrl: 'code-input-four-char-example.html',\n  styleUrls: ['code-input-four-char-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CodeInputFourCharExampleComponent implements OnInit {\n  inputValue = '';\n  codeForm!: FormGroup;\n\n  ngOnInit() {\n    this.codeForm = new FormGroup({\n      keyCode: new FormControl(this.inputValue, {\n        validators: [\n          Validators.required,\n          Validators.pattern('[A-Z]+'),\n          Validators.minLength(4),\n        ],\n        updateOn: 'submit',\n      }),\n    });\n  }\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-code-input\n    #codeInput\n    [length]=\"4\"\n    convertTo=\"upper\"\n    formControlName=\"keyCode\"\n  >\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('pattern')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry must match pattern. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <br />\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "6 character code input",
        "level": 3,
        "content": "This is a 6 character code input where any character is permitted. This code input will validate on blur.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Six character code input example\n */\n@Component({\n  selector: 'code-input-six-char-example',\n  templateUrl: 'code-input-six-char-example.html',\n  styleUrls: ['code-input-six-char-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CodeInputSixCharExampleComponent implements OnInit {\n  inputValue = '';\n  codeForm!: FormGroup;\n\n  ngOnInit() {\n    this.codeForm = new FormGroup({\n      keyCode: new FormControl(this.inputValue, {\n        validators: [Validators.required, Validators.minLength(6)],\n        updateOn: 'blur',\n      }),\n    });\n  }\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-code-input #codeInput formControlName=\"keyCode\">\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <br />\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "7 character code input",
        "level": 3,
        "content": "This is an 7 character code input where only lower case letters and numbers are permitted with auto lowercase enabled and input required.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Seven character code input example\n */\n@Component({\n  selector: 'code-input-seven-char-example',\n  templateUrl: 'code-input-seven-char-example.html',\n  styleUrls: ['code-input-seven-char-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CodeInputSevenCharExampleComponent implements OnInit {\n  inputValue = '';\n  codeForm!: FormGroup;\n\n  ngOnInit() {\n    this.codeForm = new FormGroup({\n      keyCode: new FormControl(this.inputValue, {\n        validators: [Validators.required, Validators.minLength(7)],\n        updateOn: 'submit',\n      }),\n    });\n  }\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-code-input\n    #codeInput\n    [length]=\"7\"\n    convertTo=\"lower\"\n    formControlName=\"keyCode\"\n  >\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('pattern')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry must match pattern. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <br />\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "With `[disabled]` the code input can be disabled. When using reactive forms you can also set the disabled state in the FormControl:\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Disabled example\n */\n@Component({\n  selector: 'code-input-disabled-example',\n  templateUrl: 'code-input-disabled-example.html',\n  styleUrls: ['code-input-disabled-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CodeInputDisabledExampleComponent implements OnInit {\n  inputValue = '';\n  codeForm!: FormGroup;\n\n  ngOnInit() {\n    this.codeForm = new FormGroup({\n      keyCode: new FormControl(\n        { value: this.inputValue, disabled: true },\n        {\n          validators: [\n            Validators.required,\n            Validators.pattern('[A-Z]+'),\n            Validators.minLength(4),\n          ],\n          updateOn: 'submit',\n        },\n      ),\n    });\n  }\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n\n  toggleDisabled() {\n    if (this.keyCode?.disabled) {\n      this.keyCode.enable();\n    } else {\n      this.keyCode?.disable();\n    }\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-code-input\n    #codeInput\n    [length]=\"4\"\n    convertTo=\"upper\"\n    formControlName=\"keyCode\"\n  >\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('pattern')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry must match pattern. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <p>Disabled: {{ this.keyCode?.disabled }}</p>\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n  <button nxButton=\"primary small\" (click)=\"toggleDisabled()\" type=\"button\">\n    Toggle disabled\n  </button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "input mode and digits only",
        "level": 3,
        "content": "To control which mobile keyboard is shown, set the `inputMode` input (e.g. `numeric`). To restrict the entry to digits, set the `digitsOnly` input. For example, a PIN code that accepts only four digits.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Code input inputMode and digitsOnly example\n */\n@Component({\n  selector: 'code-input-type-example',\n  templateUrl: './code-input-type-example.html',\n  styleUrls: ['./code-input-type-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class CodeInputTypeExampleComponent implements OnInit {\n  inputValue = '';\n  codeForm!: FormGroup;\n\n  ngOnInit() {\n    this.codeForm = new FormGroup({\n      keyCode: new FormControl(this.inputValue, {\n        validators: [\n          Validators.required,\n          Validators.pattern(/^\\d*$/),\n          Validators.minLength(4),\n        ],\n        updateOn: 'submit',\n      }),\n    });\n  }\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-label>Enter PIN code</nx-label>\n  <nx-code-input\n    #codeInput\n    [length]=\"4\"\n    formControlName=\"keyCode\"\n    inputMode=\"numeric\"\n    digitsOnly\n  >\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('pattern')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry must match pattern. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <br />\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n</form>\n\n```\n\n\n<div class=\"docs-deprecation-warning\">\nPlease note that setting the HTML input type via the `type` input (e.g. <code>type=\"number\"</code>) still works but is <strong>deprecated</strong>, since it comes with limitations (e.g. text selection is not possible on <code>input[\"type=number\"]</code>, see the <a href=\"https://html.spec.whatwg.org/multipage/input.html#concept-input-apply\">WHATWG forms spec</a>). Use <code>inputMode</code> and <code>digitsOnly</code> instead.\n</div>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "For use on dark backgrounds, add `inverse` input.\n\n\n```ts\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse styling example\n */\n@Component({\n  selector: 'code-input-inverse-example',\n  templateUrl: 'code-input-inverse-example.html',\n  styleUrls: ['./code-input-inverse-example.css'],\n  imports: [NxCodeInputComponent],\n})\nexport class CodeInputInverseExampleComponent {\n  inputValue = '';\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-code-input inverse [length]=\"4\"></nx-code-input>\n</div>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "You can apply the negative styling to the code input by using the `[negative]` input.\n\n\n```ts\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'code-input-negative-example',\n  templateUrl: 'code-input-negative-example.html',\n  styleUrls: ['./code-input-negative-example.css'],\n  imports: [NxCodeInputComponent],\n})\nexport class CodeInputNegativeExampleComponent {\n  inputValue = '';\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-code-input negative=\"true\" [length]=\"4\"></nx-code-input>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "limitations",
        "level": 4,
        "content": "The value of the model is a truncated string with no spaces between characters. This means that when the user enters a value and skips one or more inputs, these skipped inputs are not reflected as spaces in the model string and therefore the control is invalid.\n\nIt is suggested to only change the programmatic model once the control is valid. Otherwise you can end up in unexpected behavior.\n\nIn this example the value is reflected on change. If you try to enter a string like `AB C` the value will be `ABC` and the form will be invalid. In this example, we manipulate the model to `1234` when it is valid.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCodeInputComponent } from '@allianz/ng-aquila/code-input';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * @title Manipulating model example\n */\n@Component({\n  selector: 'code-input-model-example',\n  templateUrl: 'code-input-model-example.html',\n  styleUrls: ['code-input-model-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CodeInputModelExampleComponent implements OnInit, OnDestroy {\n  inputValue = '';\n\n  codeForm = new FormGroup({\n    keyCode: new FormControl(this.inputValue, {\n      validators: [Validators.required, Validators.minLength(4)],\n      updateOn: 'change',\n    }),\n  });\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n\n  private readonly _destroyed = new Subject<void>();\n\n  ngOnInit(): void {\n    this.keyCode?.valueChanges\n      .pipe(takeUntil(this._destroyed))\n      .subscribe(() => {\n        if (this.keyCode?.valid && this.keyCode.value !== '1234') {\n          this.codeForm.setValue({ keyCode: '1234' });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-code-input\n    #codeInput\n    [length]=\"4\"\n    convertTo=\"upper\"\n    formControlName=\"keyCode\"\n  >\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <br />\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n\n  <p>Code input value: '{{ keyCode?.value }}'</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 4,
        "content": "The input fields need to have an aria-label for a11y support. By default they have english aria-labels, to translate them you can subclass the `NxCodeInputIntl` and provide it in your module. The default aria-label is 'Enter Key X of Y'. Thereby you can provide your own translations for 'Enter Key' and 'of' as shown in the example below.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCodeInputComponent,\n  NxCodeInputIntl,\n} from '@allianz/ng-aquila/code-input';\nimport { Component, Injectable, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n@Injectable()\nexport class MyIntl extends NxCodeInputIntl {\n  inputFieldAriaLabel = 'Geben Sie den OTP-Code ein';\n  ofLabel = 'von';\n}\n\n/**\n * @title Aria labelling example\n */\n@Component({\n  selector: 'code-input-localize-example',\n  templateUrl: 'code-input-localize-example.html',\n  styleUrls: ['code-input-localize-example.css'],\n  providers: [{ provide: NxCodeInputIntl, useClass: MyIntl }],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxCodeInputComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class CodeInputLocalizeExampleComponent implements OnInit {\n  inputValue = '';\n  codeForm!: FormGroup;\n\n  ngOnInit() {\n    this.codeForm = new FormGroup({\n      keyCode: new FormControl(this.inputValue, {\n        validators: [\n          Validators.required,\n          Validators.pattern('[A-Z]+'),\n          Validators.minLength(5),\n        ],\n        updateOn: 'submit',\n      }),\n    });\n  }\n\n  get keyCode() {\n    return this.codeForm.get('keyCode');\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"codeForm\">\n  <nx-code-input\n    #codeInput\n    [length]=\"5\"\n    convertTo=\"upper\"\n    formControlName=\"keyCode\"\n  >\n    @if (keyCode?.hasError('required')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is required. </nx-error>\n    }\n    @if (keyCode?.hasError('pattern')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry must match pattern. </nx-error>\n    }\n    @if (keyCode?.hasError('minlength')) {\n      <nx-error class=\"nx-margin-y-xs\"> Entry is too short. </nx-error>\n    }\n  </nx-code-input>\n\n  <br />\n  <button nxButton=\"primary small\" type=\"submit\">Submit</button>\n  <button nxButton=\"secondary small\" (click)=\"form.resetForm()\" type=\"button\">\n    Clear\n  </button>\n</form>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "comparison-table.md",
    "title": "Comparison Table",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "usage guidelines",
        "level": 3,
        "content": "- Use a **maximum of 5 products**. Beyond that the columns get too narrow to compare.\n- Footer cells are **not displayed on mobile** — do not put any important content there.\n- On mobile, place the table in a horizontally scrollable container, or let A1's [container based responsive layout](#responsive-layout-and-overflow) turn it into a carousel.\n- Icon-only cells need an `aria-label` on the `nx-icon`. See [usage of aria-label](./documentation/accessibility/overview#usage-of-aria-label).\n- Content that arrives after the first render (prices, availability) should sit in a fixed-height container so it does not shift the layout. See [dynamically filled content](#dynamically-filled-content).\n"
      },
      {
        "heading": "header slots",
        "level": 4,
        "content": "A comparison table has a header row of product cells (`nx-comparison-table-cell[type=\"header\"]`) and content rows (`nxComparisonTableRow`) of cells (`nx-comparison-table-cell`) and description cells (`nx-comparison-table-description-cell`).\n\nWrap your markup inside a header cell in these slot elements to get consistent order, spacing and sizing:\n\n- `nx-comparison-table-header-top` — freeform, e.g. a country-specific badge\n- `nx-comparison-table-header-eyebrow` — hidden while a sticky header is pinned (see [sticky header](./documentation/comparison-table#sticky-header))\n- `nx-comparison-table-header-title` — wrap an `[nxHeadline]` (no `size`); size is set via the table's `headlineSize` input (`'l' | 'xl'`, default `'xl'`)\n- `nx-comparison-table-header-price` — wrap an `nx-price`; size is imposed by the table (`2xl`, `l` while stuck)\n\nEach slot is a directive of the same name in PascalCase — import the ones you use, or `NxComparisonTableModule`.\n\nThe named slots render in the order above regardless of markup order, then `nxComparisonTableSelectButton`, then any unslotted content.\n\nThe imposed sizes are provided by the title and price slots, so they stop at the slot boundary. If you skip the slots and write your own header markup, the table leaves your headlines and prices alone — you own their sizes, and you no longer pick up our design updates to them automatically.\n\nSelect a product with `nxComparisonTableSelectButton` (`selectedLabel` / `unselectedLabel`); the initial selection comes from the table's `[selectedIndex]`. Highlight a column with `nx-comparison-table-popular-cell forColumn=\"…\"` in the header row.\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderEyebrow,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTablePopularCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { ChangeDetectionStrategy, Component, signal } from '@angular/core';\n\n/** @title Basic example */\n@Component({\n  selector: 'comparison-table-example',\n  templateUrl: './comparison-table-example.html',\n  styleUrls: ['./comparison-table-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTablePopularCell,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderEyebrow,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxEyebrowComponent,\n    NxHeadlineComponent,\n    NxPriceComponent,\n    NxIconComponent,\n    NxPlainButtonComponent,\n    NxPopoverComponent,\n    NxPopoverTriggerDirective,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class ComparisonTableExampleComponent {\n  readonly headlineSize = signal<'l' | 'xl'>('xl');\n  readonly headlineSizeOptions: ('l' | 'xl')[] = ['l', 'xl'];\n}\n\n```\n```html\n<div class=\"container\">\n  <div class=\"controls\">\n    <nx-formfield label=\"Headline size\">\n      <nx-dropdown\n        [value]=\"headlineSize()\"\n        (valueChange)=\"headlineSize.set($event)\"\n      >\n        @for (option of headlineSizeOptions; track option) {\n          <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n        }\n      </nx-dropdown>\n    </nx-formfield>\n  </div>\n\n  <nx-comparison-table selectedIndex=\"1\" [headlineSize]=\"headlineSize()\">\n    <ng-container nxComparisonTableRow type=\"header\">\n      <nx-comparison-table-popular-cell forColumn=\"2\">\n        <div class=\"popular-cell__content-wrapper\">\n          <p class=\"popular-cell__title\">Most popular</p>\n          <button\n            nxPlainButton\n            class=\"popular-info-icon\"\n            [nxPopoverTriggerFor]=\"popularPopover\"\n            nxPopoverTrigger=\"click\"\n            aria-label=\"More information\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popularPopover>\n            <span>This product was chosen by most of the users</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-popular-cell>\n\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-eyebrow>\n          <nx-eyebrow size=\"s\">Basic</nx-eyebrow>\n        </nx-comparison-table-header-eyebrow>\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product One</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price prefix=\"from\" [value]=\"105.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-eyebrow>\n          <nx-eyebrow size=\"s\">Recommended</nx-eyebrow>\n        </nx-comparison-table-header-eyebrow>\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Two</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price prefix=\"from\" [value]=\"110.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-eyebrow>\n          <nx-eyebrow size=\"s\">Premium</nx-eyebrow>\n        </nx-comparison-table-header-eyebrow>\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Three</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell>\n        <div class=\"has-popover\">\n          <span>Service headline</span>\n          <button\n            nxPlainButton\n            class=\"info-icon\"\n            aria-label=\"More information\"\n            [nxPopoverTriggerFor]=\"servicePopover\"\n            nxPopoverTrigger=\"click\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #servicePopover>\n            <span>Service headline popover content</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Additional coverage</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow type=\"footer\">\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "responsive layout and overflow",
        "level": 4,
        "content": "With `responsiveMode=\"container\"` (the default for A1, not supported in NDBX) the table measures its container instead of the viewport: it switches between the tablet and desktop view as the container resizes, and turns into a carousel when there is not enough space for all products.\n\nWhich view applies at which width is controlled by breakpoints. A `NxComparisonTableBreakpoint` is `{ minWidth, columns?, viewType? }`: `minWidth` is the container width in pixels from which it applies, `columns` the number of visible product columns (in carousel mode, fewer when they would be narrower than the `comparison-table-min-column-width` token) and `viewType` the look (`tablet` or `desktop`; `mobile` exists for legacy tables and is not meant to be combined with `responsiveBreakpoints`). `columns` and `viewType` are optional and carry over from the previous matching breakpoint.\n\nSet them per table via the `responsiveBreakpoints` input, or globally through the `COMPARISON_TABLE_DEFAULT_OPTIONS` provider token. The defaults are exported as `DEFAULT_BREAKPOINTS`. The `viewTypeChange` output emits whenever the resulting view changes.\n\nThe example below keeps the defaults below `BREAKPOINT_LARGE` and replaces the largest one with a `tablet` view showing 3 columns, so the table stays in the tablet look on wide containers instead of switching to desktop.\n\n\n```ts\nimport {\n  DEFAULT_BREAKPOINTS,\n  NxComparisonTableBreakpoint,\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableIntersectionCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableRowGroupDirective,\n  NxComparisonTableSelectButton,\n  NxToggleSectionDirective,\n  NxToggleSectionHeaderComponent,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NxBreakpoints } from '@allianz/ng-aquila/utils';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Overflow example */\n@Component({\n  selector: 'comparison-table-overflow-example',\n  templateUrl: './comparison-table-overflow-example.html',\n  styleUrls: ['./comparison-table-overflow-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxPriceComponent,\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableRowGroupDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableDescriptionCell,\n    NxComparisonTableIntersectionCell,\n    NxComparisonTableSelectButton,\n    NxToggleSectionDirective,\n    NxToggleSectionHeaderComponent,\n    NxHeadlineComponent,\n    FormsModule,\n  ],\n})\nexport class ComparisonTableOverflowExampleComponent {\n  // filter out the default desktop setting and replace it to only show tablet view\n  comparisonTableBreakpoints: NxComparisonTableBreakpoint[] = [\n    ...DEFAULT_BREAKPOINTS.filter(\n      (breakpoint) => breakpoint.minWidth < NxBreakpoints.BREAKPOINT_LARGE,\n    ),\n    {\n      minWidth: NxBreakpoints.BREAKPOINT_LARGE,\n      viewType: 'tablet',\n      columns: 3,\n    },\n  ];\n}\n\n```\n```html\n<nx-comparison-table\n  selectedIndex=\"1\"\n  [responsiveBreakpoints]=\"comparisonTableBreakpoints\"\n>\n  <ng-container nxComparisonTableRow type=\"header\">\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product One</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Two</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Three</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Four</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"120.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Five</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"125.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Coverage amount</nx-comparison-table-description-cell\n    >\n    <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>250 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>300 Mio. Euro</nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Liability protection</nx-comparison-table-description-cell\n    >\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Good to know</nx-comparison-table-description-cell\n    >\n    <nx-comparison-table-intersection-cell>\n      All plans include 24/7 claims support and a 14-day cancellation window.\n      This row spans every product column and stays in view while you scroll the\n      columns horizontally.\n    </nx-comparison-table-intersection-cell>\n  </ng-container>\n\n  <ng-container\n    nxComparisonTableRowGroup\n    [visibleRows]=\"1\"\n    labelCollapsed=\"More features\"\n    labelExpanded=\"Less features\"\n  >\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Extended warranty</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Premium support</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </ng-container>\n\n  <ng-container nxComparisonTableToggleSection>\n    <nx-comparison-table-toggle-section-header\n      >Additional Services</nx-comparison-table-toggle-section-header\n    >\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Roadside assistance</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Travel insurance</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Legal protection</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow type=\"footer\">\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n  </ng-container>\n</nx-comparison-table>\n\n```\n\n\n`columns` and `viewType` are independent: 3 columns in the `tablet` look is not the same as 3 columns in the `desktop` look. The playground below wires both fields of a single breakpoint at `minWidth: 0` — which always matches — to dropdowns, so the layout is driven purely by the two values and not by the container size.\n\n\n```ts\nimport {\n  NxComparisonTableBreakpoint,\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableIntersectionCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableRowGroupDirective,\n  NxComparisonTableSelectButton,\n  NxComparisonTableViewType,\n  NxToggleSectionDirective,\n  NxToggleSectionHeaderComponent,\n} from '@allianz/ng-aquila/comparison-table';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  computed,\n  signal,\n} from '@angular/core';\n\n/** @title Breakpoint playground example */\n@Component({\n  selector: 'comparison-table-breakpoint-playground-example',\n  templateUrl: './comparison-table-breakpoint-playground-example.html',\n  styleUrls: ['./comparison-table-breakpoint-playground-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxPriceComponent,\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableRowGroupDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableDescriptionCell,\n    NxComparisonTableIntersectionCell,\n    NxComparisonTableSelectButton,\n    NxToggleSectionDirective,\n    NxToggleSectionHeaderComponent,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class ComparisonTableBreakpointPlaygroundExampleComponent {\n  readonly columns = signal(3);\n  readonly viewType = signal<NxComparisonTableViewType>('tablet');\n\n  readonly columnsOptions = [1, 2, 3, 4, 5];\n  readonly viewTypeOptions: NxComparisonTableViewType[] = ['tablet', 'desktop'];\n\n  // A single breakpoint at minWidth: 0 always wins regardless of the container\n  // width, so the table layout is driven purely by the dropdowns below instead\n  // of the container size. This isolates the columns and viewType settings so\n  // you can see exactly how each one affects the layout.\n  readonly comparisonTableBreakpoints = computed<NxComparisonTableBreakpoint[]>(\n    () => [{ minWidth: 0, viewType: this.viewType(), columns: this.columns() }],\n  );\n}\n\n```\n```html\n<div class=\"controls\">\n  <nx-formfield label=\"Columns\">\n    <nx-dropdown [value]=\"columns()\" (valueChange)=\"columns.set($event)\">\n      @for (option of columnsOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n  <nx-formfield label=\"View type\">\n    <nx-dropdown [value]=\"viewType()\" (valueChange)=\"viewType.set($event)\">\n      @for (option of viewTypeOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n</div>\n\n<nx-comparison-table\n  selectedIndex=\"1\"\n  [responsiveBreakpoints]=\"comparisonTableBreakpoints()\"\n>\n  <ng-container nxComparisonTableRow type=\"header\">\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product One</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Two</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Three</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Four</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"120.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Five</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"125.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Coverage amount</nx-comparison-table-description-cell\n    >\n    <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>250 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>300 Mio. Euro</nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Liability protection</nx-comparison-table-description-cell\n    >\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Good to know</nx-comparison-table-description-cell\n    >\n    <nx-comparison-table-intersection-cell>\n      All plans include 24/7 claims support and a 14-day cancellation window.\n      This row spans every product column and stays in view while you scroll the\n      columns horizontally.\n    </nx-comparison-table-intersection-cell>\n  </ng-container>\n\n  <ng-container\n    nxComparisonTableRowGroup\n    [visibleRows]=\"1\"\n    labelCollapsed=\"More features\"\n    labelExpanded=\"Less features\"\n  >\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Extended warranty</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Premium support</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </ng-container>\n\n  <ng-container nxComparisonTableToggleSection>\n    <nx-comparison-table-toggle-section-header\n      >Additional Services</nx-comparison-table-toggle-section-header\n    >\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Roadside assistance</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Travel insurance</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Legal protection</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow type=\"footer\">\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n  </ng-container>\n</nx-comparison-table>\n\n```\n\n"
      },
      {
        "heading": "sticky header",
        "level": 4,
        "content": "On desktop the header row sticks to the top of the page while the user scrolls the table. When it is pinned, the header cells shrink their content to keep the docked header compact: an `nx-comparison-table-header-eyebrow` collapses away, `nx-price` steps down from `2xl` to `l`, and the cell padding plus the slot spacing tighten (via the `…-sticky` theming tokens). These changes ease in via the `comparison-table-header-stuck-transition-duration`/`-easing` tokens (skipped under `prefers-reduced-motion: reduce`).\n\nOpt out by adding `[mayStick]=\"false\"` to your header row. The eyebrows and price sizes in this example stay put, because its header never docks.\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderEyebrow,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTablePopularCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/** @title Non-sticky Header example */\n@Component({\n  selector: 'comparison-table-example-non-sticky-header',\n  templateUrl: './comparison-table-non-sticky-header-example.html',\n  styleUrls: ['./comparison-table-non-sticky-header-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxPriceComponent,\n    NxEyebrowComponent,\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTablePopularCell,\n    NxPlainButtonComponent,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderEyebrow,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxHeadlineComponent,\n  ],\n})\nexport class ComparisonTableNonStickyHeaderExampleComponent {}\n\n```\n```html\n<div class=\"container\">\n  <nx-comparison-table selectedIndex=\"1\">\n    <ng-container nxComparisonTableRow type=\"header\" [mayStick]=\"false\">\n      <nx-comparison-table-popular-cell forColumn=\"2\">\n        <div class=\"popular-cell__content-wrapper\">\n          <p class=\"popular-cell__title\">Most popular</p>\n          <button\n            nxPlainButton\n            class=\"popular-info-icon\"\n            #popoverTrigger=\"nxPopoverTrigger\"\n            [nxPopoverTriggerFor]=\"popover\"\n            nxPopoverTrigger=\"click\"\n            aria-label=\"More information\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popover>\n            <span>This product was chosen by most of the users</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-popular-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-eyebrow>\n          <nx-eyebrow size=\"s\">Basic</nx-eyebrow>\n        </nx-comparison-table-header-eyebrow>\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product One</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-eyebrow>\n          <nx-eyebrow size=\"s\">Recommended</nx-eyebrow>\n        </nx-comparison-table-header-eyebrow>\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Two with a very long name</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-eyebrow>\n          <nx-eyebrow size=\"s\">Premium</nx-eyebrow>\n        </nx-comparison-table-header-eyebrow>\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Three</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell>\n        <div class=\"has-popover\">\n          <span>Service headline</span>\n          <button\n            nxPlainButton\n            class=\"info-icon\"\n            aria-label=\"More information\"\n            [nxPopoverTriggerFor]=\"popoverContent1\"\n            nxPopoverTrigger=\"click\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popoverContent1>\n            <span>Service headline popover content</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell>\n        <div class=\"has-popover\">\n          <span>Service headline</span>\n          <button\n            nxPlainButton\n            class=\"info-icon\"\n            aria-label=\"More information\"\n            [nxPopoverTriggerFor]=\"popoverContent2\"\n            nxPopoverTrigger=\"click\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popoverContent2>\n            <span>Service headline popover content</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow type=\"footer\">\n      <nx-comparison-table-cell>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        ></button>\n        <p class=\"product-underline\">Some short information</p>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        ></button>\n        <p class=\"product-underline\">Some short information</p>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        ></button>\n        <p class=\"product-underline\">Some short information</p>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "header and footer colour scheme",
        "level": 4,
        "content": "A1 only. `colorScheme` gives the header and footer rows a coloured background — the Allianz brand\ncolour with `attention`, the emphasis tint with `emphasis`, or one of the accent hues with\n`accent-attention` plus `accentColor`. Default is `default`.\n\n```html\n<nx-comparison-table colorScheme=\"attention\">…</nx-comparison-table>\n<nx-comparison-table colorScheme=\"accent-attention\" accentColor=\"teal\">…</nx-comparison-table>\n```\n\nThe expected components like headline, price automatically react to the color scheme through the surface utility, see [`nxSurface`](./documentation/surface).\n\nThe popular cell has its own `accentColor`, independent of the header's — it is always an accent\nsurface, never `attention` or `emphasis`:\n\n```html\n<nx-comparison-table-popular-cell [forColumn]=\"2\" accentColor=\"purple\">\n  Most popular\n</nx-comparison-table-popular-cell>\n```\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableColorScheme,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderEyebrow,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTablePopularCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NxSurfaceAccentColor } from '@allianz/ng-aquila/surface';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  computed,\n  signal,\n} from '@angular/core';\n\n/** @title Header and footer colour scheme */\n@Component({\n  selector: 'comparison-table-color-scheme-example',\n  templateUrl: './comparison-table-color-scheme-example.html',\n  styleUrls: ['./comparison-table-color-scheme-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableDescriptionCell,\n    NxComparisonTablePopularCell,\n    NxComparisonTableSelectButton,\n    NxComparisonTableHeaderEyebrow,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxEyebrowComponent,\n    NxHeadlineComponent,\n    NxPriceComponent,\n    NxPlainButtonComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class ComparisonTableColorSchemeExampleComponent {\n  readonly colorScheme = signal<NxComparisonTableColorScheme>('attention');\n  readonly accentColor = signal<NxSurfaceAccentColor>('purple');\n  readonly popularAccentColor = signal<NxSurfaceAccentColor>('purple');\n  readonly selectedIndex = signal(1);\n\n  readonly colorSchemeOptions: NxComparisonTableColorScheme[] = [\n    'default',\n    'attention',\n    'emphasis',\n    'accent-attention',\n  ];\n\n  readonly accentColorOptions: NxSurfaceAccentColor[] = [\n    'yellow',\n    'orange',\n    'red',\n    'purple',\n    'aqua',\n    'blue',\n    'teal',\n    'green',\n    'gray',\n  ];\n\n  /** The accent hue only takes effect with an `accent-attention` colour scheme. */\n  readonly accentColorApplies = computed(\n    () => this.colorScheme() === 'accent-attention',\n  );\n}\n\n```\n```html\n<div class=\"controls\">\n  <nx-formfield label=\"Colour scheme\">\n    <nx-dropdown\n      [value]=\"colorScheme()\"\n      (valueChange)=\"colorScheme.set($event)\"\n    >\n      @for (option of colorSchemeOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n  <nx-formfield label=\"Header accent hue\">\n    <nx-dropdown\n      [value]=\"accentColor()\"\n      [disabled]=\"!accentColorApplies()\"\n      (valueChange)=\"accentColor.set($event)\"\n    >\n      @for (option of accentColorOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n  <nx-formfield label=\"Popular cell accent hue\">\n    <nx-dropdown\n      [value]=\"popularAccentColor()\"\n      (valueChange)=\"popularAccentColor.set($event)\"\n    >\n      @for (option of accentColorOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n</div>\n\n<nx-comparison-table\n  [colorScheme]=\"colorScheme()\"\n  [accentColor]=\"accentColor()\"\n  [selectedIndex]=\"selectedIndex()\"\n  (selectedIndexChange)=\"selectedIndex.set($event)\"\n>\n  <ng-container nxComparisonTableRow type=\"header\">\n    <nx-comparison-table-popular-cell\n      forColumn=\"2\"\n      [accentColor]=\"popularAccentColor()\"\n    >\n      Most popular\n    </nx-comparison-table-popular-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-eyebrow>\n        <nx-eyebrow size=\"s\">Basic</nx-eyebrow>\n      </nx-comparison-table-header-eyebrow>\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product One</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price prefix=\"from\" [value]=\"105.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-eyebrow>\n        <nx-eyebrow size=\"s\">Comfort</nx-eyebrow>\n      </nx-comparison-table-header-eyebrow>\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Two</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price prefix=\"from\" [value]=\"110.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-eyebrow>\n        <nx-eyebrow size=\"s\">Premium</nx-eyebrow>\n      </nx-comparison-table-header-eyebrow>\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Three</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price prefix=\"from\" [value]=\"115.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell>\n      Coverage\n    </nx-comparison-table-description-cell>\n    <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n    <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell>\n      Roadside assistance\n    </nx-comparison-table-description-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow type=\"footer\">\n    <nx-comparison-table-cell type=\"footer\">\n      <button nxPlainButton type=\"button\">Details</button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"footer\">\n      <button nxPlainButton type=\"button\">Details</button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"footer\">\n      <button nxPlainButton type=\"button\">Details</button>\n    </nx-comparison-table-cell>\n  </ng-container>\n</nx-comparison-table>\n\n```\n\n"
      },
      {
        "heading": "feature cell content",
        "level": 4,
        "content": "`nx-comparison-table-feature` shows whether a product includes a feature. Set `type` to `check` for an included feature. For a feature that is not included, use `minus` for a neutral look that keeps the focus on the included features, or `cross` to call out the missing coverage. Add `contained` for the tinted round background. Leave out `type` for a text-only cell. The projected text is optional.\n\nWith the default `layout=\"horizontal\"` the text starts next to the icon and continues under it when it runs out of space. Use `layout=\"vertical\"` to always place the text below the icon.\n\nThe icon has a screen reader label (\"Included\" or \"Not included\") that can be localised through `NxComparisonTableIntl` for the whole app. Or override it per instance with `iconAriaLabel`, or set `iconAriaLabel=\"\"` when the text already conveys the meaning.\n\n\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport {\n  NxComparisonTableFeature,\n  NxComparisonTableFeatureLayout,\n  NxComparisonTableFeatureType,\n} from '@allianz/ng-aquila/comparison-table';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  computed,\n  signal,\n} from '@angular/core';\n\n/** @title Feature cell content */\n@Component({\n  selector: 'comparison-table-feature-example',\n  templateUrl: './comparison-table-feature-example.html',\n  styleUrls: ['./comparison-table-feature-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxComparisonTableFeature,\n    NxCheckboxComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n  ],\n})\nexport class ComparisonTableFeatureExampleComponent {\n  readonly typeOptions: {\n    value: NxComparisonTableFeatureType | 'none';\n    label: string;\n  }[] = [\n    { value: 'check', label: 'check' },\n    { value: 'minus', label: 'minus' },\n    { value: 'cross', label: 'cross' },\n    { value: 'none', label: 'none (text only)' },\n  ];\n  readonly layoutOptions: NxComparisonTableFeatureLayout[] = [\n    'horizontal',\n    'vertical',\n  ];\n  readonly widthOptions = [96, 160, 320];\n\n  readonly type = signal<NxComparisonTableFeatureType | 'none'>('check');\n  readonly featureType = computed(() => {\n    const type = this.type();\n    return type === 'none' ? null : type;\n  });\n  readonly contained = signal(true);\n  readonly layout = signal<NxComparisonTableFeatureLayout>('horizontal');\n  readonly text = signal('Up to 10,000 km per year');\n  readonly width = signal(160);\n\n  setText(event: Event): void {\n    this.text.set((event.target as HTMLInputElement).value);\n  }\n}\n\n```\n```html\n<div class=\"controls\">\n  <nx-formfield label=\"Type\">\n    <nx-dropdown [value]=\"type()\" (valueChange)=\"type.set($event)\">\n      @for (option of typeOptions; track option.value) {\n        <nx-dropdown-item [value]=\"option.value\">{{\n          option.label\n        }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n  <nx-formfield label=\"Layout\">\n    <nx-dropdown [value]=\"layout()\" (valueChange)=\"layout.set($event)\">\n      @for (option of layoutOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n  <nx-formfield label=\"Cell width\">\n    <nx-dropdown [value]=\"width()\" (valueChange)=\"width.set($event)\">\n      @for (option of widthOptions; track option) {\n        <nx-dropdown-item [value]=\"option\">{{ option }}px</nx-dropdown-item>\n      }\n    </nx-dropdown>\n  </nx-formfield>\n  <nx-formfield label=\"Text\">\n    <input nxInput [value]=\"text()\" (input)=\"setText($event)\" />\n  </nx-formfield>\n  <nx-checkbox\n    [checked]=\"contained()\"\n    (checkedChange)=\"contained.set($event)\"\n    [disabled]=\"type() === 'none'\"\n    >Contained</nx-checkbox\n  >\n</div>\n\n<div class=\"preview\" [style.width.px]=\"width()\">\n  <nx-comparison-table-feature\n    [type]=\"featureType()\"\n    [contained]=\"contained()\"\n    [layout]=\"layout()\"\n    >{{ text() }}</nx-comparison-table-feature\n  >\n</div>\n\n```\n\n"
      },
      {
        "heading": "structuring rows",
        "level": 4,
        "content": "The example below combines the three ways to structure the rows of a table. They are independent — leave out the blocks you do not need.\n\n`nx-comparison-table-intersection-cell` replaces all product cells of a row with one cell spanning the full width, for content that applies to every product. On mobile the table is transposed to a single column, so put long intersection content in an accordion above the table instead.\n\n`nxComparisonTableToggleSection` with a `nx-comparison-table-toggle-section-header` groups rows under a collapsible category heading.\n\n`nxComparisonTableRowGroup` shows only the first `[visibleRows]` rows (5 by default) and hides the rest behind a toggle. Customize its labels with `[labelCollapsed]` and `[labelExpanded]`, and read or bind the open state through `isExpanded`.\n\n\n```ts\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableIntersectionCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableRowGroupDirective,\n  NxComparisonTableSelectButton,\n  NxToggleSectionDirective,\n  NxToggleSectionHeaderComponent,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/** @title Structuring rows example */\n@Component({\n  selector: 'comparison-table-rows-example',\n  templateUrl: './comparison-table-rows-example.html',\n  styleUrls: ['./comparison-table-rows-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxComparisonTableIntersectionCell,\n    NxComparisonTableRowGroupDirective,\n    NxToggleSectionDirective,\n    NxToggleSectionHeaderComponent,\n    NxHeadlineComponent,\n    NxPriceComponent,\n    NxListComponent,\n    NxListIconComponent,\n  ],\n})\nexport class ComparisonTableRowsExampleComponent {}\n\n```\n```html\n<div class=\"container\">\n  <nx-comparison-table selectedIndex=\"1\">\n    <ng-container nxComparisonTableRow type=\"header\">\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product One</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Two</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Three</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <!-- An intersection cell merges all product columns into one. -->\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Overview of product benefits</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-intersection-cell>\n        <ul nxList size=\"s\" class=\"benefits-list nx-margin-bottom-0\">\n          <li nxListIcon=\"check\" class=\"nx-margin-bottom-2xs\">\n            Space for offered services, advantages\n          </li>\n          <li nxListIcon=\"check\" class=\"nx-margin-bottom-2xs\">\n            Third party damages\n          </li>\n          <li nxListIcon=\"check\">Burglary, theft, robbery and vandalism</li>\n        </ul>\n      </nx-comparison-table-intersection-cell>\n    </ng-container>\n\n    <!-- A toggle section groups rows under a collapsible category header. -->\n    <ng-container nxComparisonTableToggleSection>\n      <nx-comparison-table-toggle-section-header\n        >Service category</nx-comparison-table-toggle-section-header\n      >\n\n      <ng-container nxComparisonTableRow>\n        <nx-comparison-table-description-cell\n          >Coverage amount</nx-comparison-table-description-cell\n        >\n        <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n        <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n        <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n      </ng-container>\n\n      <ng-container nxComparisonTableRow>\n        <nx-comparison-table-description-cell\n          >Worldwide protection</nx-comparison-table-description-cell\n        >\n        <nx-comparison-table-cell>\n          <nx-comparison-table-feature\n            type=\"minus\"\n            contained\n          ></nx-comparison-table-feature>\n        </nx-comparison-table-cell>\n        <nx-comparison-table-cell>\n          <nx-comparison-table-feature\n            type=\"check\"\n            contained\n          ></nx-comparison-table-feature>\n        </nx-comparison-table-cell>\n        <nx-comparison-table-cell>\n          <nx-comparison-table-feature\n            type=\"check\"\n            contained\n          ></nx-comparison-table-feature>\n        </nx-comparison-table-cell>\n      </ng-container>\n    </ng-container>\n\n    <!-- A row group shows `visibleRows` rows and hides the rest behind a toggle. -->\n    <ng-container\n      nxComparisonTableRowGroup\n      [visibleRows]=\"1\"\n      labelCollapsed=\"Show all services\"\n      labelExpanded=\"Show fewer services\"\n    >\n      <ng-container nxComparisonTableRow>\n        <nx-comparison-table-description-cell\n          >Legal advice</nx-comparison-table-description-cell\n        >\n        <nx-comparison-table-cell>\n          <nx-comparison-table-feature\n            type=\"minus\"\n            contained\n          ></nx-comparison-table-feature>\n        </nx-comparison-table-cell>\n        <nx-comparison-table-cell>\n          <nx-comparison-table-feature\n            type=\"check\"\n            contained\n          ></nx-comparison-table-feature>\n        </nx-comparison-table-cell>\n        <nx-comparison-table-cell>\n          <nx-comparison-table-feature\n            type=\"check\"\n            contained\n          ></nx-comparison-table-feature>\n        </nx-comparison-table-cell>\n      </ng-container>\n\n      <ng-container nxComparisonTableRow>\n        <nx-comparison-table-description-cell\n          >Deductible</nx-comparison-table-description-cell\n        >\n        <nx-comparison-table-cell>500 Euro</nx-comparison-table-cell>\n        <nx-comparison-table-cell>250 Euro</nx-comparison-table-cell>\n        <nx-comparison-table-cell>0 Euro</nx-comparison-table-cell>\n      </ng-container>\n\n      <ng-container nxComparisonTableRow>\n        <nx-comparison-table-description-cell\n          >Replacement value</nx-comparison-table-description-cell\n        >\n        <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n        <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n        <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n      </ng-container>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow type=\"footer\">\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n\n<div class=\"docs-expert-container\">\n\nSetting `useFullRowForExpandableArea=\"true\"` on the row group makes the expandable area span the full table width. The `NxExpertModule` does this by default. Please **switch the theme to \"EXPERT\" at the top of the page** to see the correct expert comparison table.\n\n\n```ts\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableRowDirective,\n  NxComparisonTableRowGroupDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/** @title Expert: Use full row for Expandable area */\n@Component({\n  selector: 'comparison-table-expandable-area-example',\n  templateUrl: './comparison-table-expandable-area-example.html',\n  styleUrls: ['./comparison-table-expandable-area-example.css'],\n  imports: [\n    NxPriceComponent,\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableRowGroupDirective,\n    NxComparisonTableDescriptionCell,\n    NxHeadlineComponent,\n  ],\n})\nexport class ComparisonTableExpandableAreaExampleComponent {}\n\n```\n```html\n<nx-comparison-table selectedIndex=\"1\">\n  <ng-container nxComparisonTableRow type=\"header\">\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product One</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Two</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Three</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container\n    nxComparisonTableRowGroup\n    visibleRows=\"2\"\n    useFullRowForExpandableArea=\"true\"\n  >\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Service headline\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Service headline\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Service headline\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>100 Mio. Euro </nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro </nx-comparison-table-cell>\n      <nx-comparison-table-cell>200 Mio. Euro </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Service headline\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>100 Mio. Euro </nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro </nx-comparison-table-cell>\n      <nx-comparison-table-cell>200 Mio. Euro </nx-comparison-table-cell>\n    </ng-container>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow type=\"footer\">\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        class=\"nx-margin-bottom-s\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        class=\"nx-margin-bottom-s\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        class=\"nx-margin-bottom-s\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n  </ng-container>\n</nx-comparison-table>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "disabled and hidden columns",
        "level": 4,
        "content": "`disabledColumn` on a header `nx-comparison-table-cell` greys out that product's whole column. It can only be set on header cells, and it does **not** reach form controls inside the column — disable dropdowns, inputs and checkboxes yourself.\n\n`hiddenIndexes` on `nx-comparison-table` removes columns from the table entirely. It hides selected columns too, so make sure the currently selected column cannot be hidden — otherwise you submit a selection the user can no longer see.\n\nPlease note that **this example is using the `nx-context-menu` component which is an Expert component**. This means that this combination is currently only intended for internal and not for client-facing applications.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/** @title Disabled and hidden columns example */\n@Component({\n  selector: 'comparison-table-columns-example',\n  templateUrl: './comparison-table-columns-example.html',\n  styleUrls: ['./comparison-table-columns-example.css'],\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxHeadlineComponent,\n    NxPriceComponent,\n    NxCheckboxComponent,\n    NxIconButtonComponent,\n    NxIconComponent,\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxContextMenuTriggerDirective,\n  ],\n})\nexport class ComparisonTableColumnsExampleComponent {\n  readonly productTitles = ['Product One', 'Product Two', 'Product Three'];\n\n  selectedColumnIndex = 1;\n\n  hiddenIndexes: number[] = [];\n\n  isHidden = (index: number) => this.hiddenIndexes.includes(index);\n\n  toggleHiddenIndex(index: number) {\n    // Hiding the selected column would submit a selection the user cannot see.\n    if (index === this.selectedColumnIndex) {\n      return;\n    }\n\n    this.hiddenIndexes = this.isHidden(index)\n      ? this.hiddenIndexes.filter((value) => value !== index)\n      : [...this.hiddenIndexes, index];\n  }\n}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Show or hide products\"\n  type=\"button\"\n  class=\"nx-margin-bottom-s\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  @for (title of productTitles; track title; let i = $index) {\n    @if (i !== selectedColumnIndex) {\n      <button nxContextMenuItem type=\"button\" (click)=\"toggleHiddenIndex(i)\">\n        <nx-icon\n          aria-hidden=\"true\"\n          [name]=\"isHidden(i) ? 'password-hide-o' : 'password-show-o'\"\n        ></nx-icon>\n        {{ title }}\n      </button>\n    }\n  }\n</nx-context-menu>\n\n<div class=\"container\">\n  <nx-comparison-table\n    [selectedIndex]=\"selectedColumnIndex\"\n    (selectedIndexChange)=\"selectedColumnIndex = $event\"\n    [hiddenIndexes]=\"hiddenIndexes\"\n  >\n    <ng-container nxComparisonTableRow type=\"header\">\n      <nx-comparison-table-cell type=\"header\" [disabledColumn]=\"true\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product One</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Sold out\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Two</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Three</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Coverage amount</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Roadside assistance</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"cross\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Add-on</nx-comparison-table-description-cell\n      >\n      <!-- disabledColumn does not reach form controls — disable them yourself. -->\n      <nx-comparison-table-cell>\n        <nx-checkbox [disabled]=\"true\">Include</nx-checkbox>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-checkbox>Include</nx-checkbox>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-checkbox>Include</nx-checkbox>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "error state",
        "level": 4,
        "content": "The `isError` attribute displays an error state for the header and footer of the table.\n\nTo enhance accessibility, please ensure that an explanation of any error messages is included above the table, if applicable.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTablePopularCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n  selector: 'comparison-table-error-example',\n  templateUrl: './comparison-table-error-example.html',\n  styleUrls: ['./comparison-table-error-example.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxPriceComponent,\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTablePopularCell,\n    NxPlainButtonComponent,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n    NxHeadlineComponent,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxErrorComponent,\n  ],\n})\nexport class ComparisonTableErrorExampleComponent {\n  constructor() {}\n  control = new FormControl(null);\n\n  select(v: any) {\n    this.control.setValue(v);\n  }\n}\n\n```\n```html\n@if (control.value === null) {\n  <nx-error>\n    <p id=\"error-message\">Please choose a product from the table.</p>\n  </nx-error>\n}\n<div class=\"container\">\n  <nx-comparison-table\n    (selectedIndexChange)=\"select($event)\"\n    [isError]=\"control.value === null\"\n  >\n    <ng-container nxComparisonTableRow type=\"header\">\n      <nx-comparison-table-popular-cell forColumn=\"2\">\n        <div class=\"popular-cell__content-wrapper\">\n          <p class=\"popular-cell__title\">Most popular</p>\n          <button\n            nxPlainButton\n            class=\"popular-info-icon\"\n            #popoverTrigger=\"nxPopoverTrigger\"\n            [nxPopoverTriggerFor]=\"popover\"\n            nxPopoverTrigger=\"click\"\n            aria-label=\"More information\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popover>\n            <span>This product was chosen by most of the users</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-popular-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product One</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          aria-describedby=\"error-message\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Two with a very long name</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          aria-describedby=\"error-message\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Three</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          aria-describedby=\"error-message\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell>\n        <div class=\"has-popover\">\n          <span>Service headline</span>\n          <button\n            nxPlainButton\n            class=\"info-icon\"\n            aria-label=\"More information\"\n            [nxPopoverTriggerFor]=\"popoverContent1\"\n            nxPopoverTrigger=\"click\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popoverContent1>\n            <span>Service headline popover content</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>200 Mio. Euro</nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell>\n        <div class=\"has-popover\">\n          <span>Service headline</span>\n          <button\n            nxPlainButton\n            class=\"info-icon\"\n            aria-label=\"More information\"\n            [nxPopoverTriggerFor]=\"popoverContent2\"\n            nxPopoverTrigger=\"click\"\n            type=\"button\"\n          >\n            <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n          </button>\n          <nx-popover #popoverContent2>\n            <span>Service headline popover content</span>\n          </nx-popover>\n        </div>\n      </nx-comparison-table-description-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"check\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow type=\"footer\">\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n          aria-describedby=\"error-message\"\n        ></button>\n        <p class=\"product-underline\">Some short information</p>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n          aria-describedby=\"error-message\"\n        ></button>\n        <p class=\"product-underline\">Some short information</p>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"footer\">\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n          aria-describedby=\"error-message\"\n        ></button>\n        <p class=\"product-underline\">Some short information</p>\n      </nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "dynamically filled content",
        "level": 4,
        "content": "The table can be built from data instead of static markup. When values arrive after the first render, reserve their space with a fixed-height container — otherwise the late content shifts the page and hurts your [Cumulative Layout Shift](https://web.dev/cls/) score. The example below keeps the price slot at a fixed height and shows a spinner while loading; see [optimize CLS](https://web.dev/optimize-cls/#dynamic-content) for the general technique.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableFeatureType,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableRowDirective,\n  NxComparisonTableRowType,\n  NxComparisonTableSelectButton,\n  NxToggleSectionDirective,\n  NxToggleSectionHeaderComponent,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NxSpinnerComponent } from '@allianz/ng-aquila/spinner';\nimport { ChangeDetectorRef, Component, inject, OnInit } from '@angular/core';\n\ninterface ContentCell {\n  type: NxComparisonTableRowType;\n  description?: string;\n  cells: string[];\n  features?: NxComparisonTableFeatureType[];\n}\ninterface ToggleSection {\n  type: 'toggleSection';\n  header: string;\n  content: ContentCell[];\n}\ntype TableData = (ContentCell | ToggleSection)[];\n\n/** @title Dynamically filled table */\n@Component({\n  selector: 'comparison-table-dynamic-example',\n  templateUrl: './comparison-table-dynamic-example.html',\n  styleUrls: ['./comparison-table-dynamic-example.css'],\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxHeadlineComponent,\n    NxPlainButtonComponent,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n    NxToggleSectionDirective,\n    NxToggleSectionHeaderComponent,\n    NxPriceComponent,\n    NxSpinnerComponent,\n    NxButtonComponent,\n  ],\n})\nexport class ComparisonTableDynamicExampleComponent implements OnInit {\n  loading = true;\n\n  prices = [105.99, 110.99];\n\n  data: TableData = [\n    {\n      type: 'header',\n      cells: ['This is a header cell', 'This is a header cell'],\n    },\n    {\n      type: 'content',\n      description: 'This is a description cell',\n      cells: ['This is a cell', 'This is a cell'],\n    },\n    {\n      type: 'toggleSection',\n      header: 'Toggle Section',\n      content: [\n        {\n          type: 'content',\n          description: 'This is a description cell',\n          cells: ['This is a cell', 'This is a cell'],\n        },\n        {\n          type: 'content',\n          description: 'This is a description cell',\n          cells: ['This is a cell', 'This is a cell'],\n        },\n        {\n          type: 'content',\n          description: 'This is a feature row',\n          cells: ['', 'This is a feature'],\n          features: ['minus', 'check'],\n        },\n      ],\n    },\n    {\n      type: 'footer',\n      cells: ['This is a footer cell', 'This is a footer cell'],\n    },\n  ];\n\n  private readonly _cdr = inject(ChangeDetectorRef);\n\n  ngOnInit(): void {\n    this.reload();\n  }\n\n  reload() {\n    this.loading = true;\n\n    setTimeout(() => {\n      this.loading = false;\n      this._cdr.markForCheck();\n    }, 2000);\n  }\n}\n\n```\n```html\n<div class=\"container\">\n  <nx-comparison-table>\n    @for (element of data; track element) {\n      <!-- header row -->\n      @if (element['type'] === 'header') {\n        <ng-container nxComparisonTableRow type=\"header\">\n          @for (cell of element['cells']; track $index; let i = $index) {\n            <nx-comparison-table-cell type=\"header\">\n              <nx-comparison-table-header-title>\n                <h3 nxHeadline>{{ cell }}</h3>\n              </nx-comparison-table-header-title>\n              <!-- Fixed height reserves the price's space so late data causes no layout shift. -->\n              <nx-comparison-table-header-price>\n                <div class=\"price-slot\">\n                  @if (loading) {\n                    <nx-spinner size=\"small\"></nx-spinner>\n                  } @else {\n                    <nx-price [value]=\"prices[i]\" currency=\"EUR\"></nx-price>\n                  }\n                </div>\n              </nx-comparison-table-header-price>\n              <button nxComparisonTableSelectButton type=\"button\"></button>\n            </nx-comparison-table-cell>\n          }\n        </ng-container>\n      }\n      <!-- content rows -->\n      @if (element['type'] === 'content') {\n        <ng-container nxComparisonTableRow>\n          @if (element['description']) {\n            <nx-comparison-table-description-cell>\n              <div class=\"has-popover\">\n                <span>{{ element['description'] }}</span>\n                <button\n                  nxPlainButton\n                  class=\"info-icon\"\n                  [attr.aria-label]=\"element['description']\"\n                  [nxPopoverTriggerFor]=\"popoverContent\"\n                  nxPopoverTrigger=\"click\"\n                  type=\"button\"\n                >\n                  <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n                </button>\n                <nx-popover #popoverContent>\n                  <span>{{ element['description'] }}</span>\n                </nx-popover>\n              </div>\n            </nx-comparison-table-description-cell>\n          }\n          @for (cell of element['cells']; track $index) {\n            <nx-comparison-table-cell>\n              @if (element.features?.[$index]; as feature) {\n                <nx-comparison-table-feature [type]=\"feature\" contained>{{\n                  cell\n                }}</nx-comparison-table-feature>\n              } @else {\n                {{ cell }}\n              }\n            </nx-comparison-table-cell>\n          }\n        </ng-container>\n      }\n      <!-- footer row -->\n      @if (element['type'] === 'footer') {\n        <ng-container nxComparisonTableRow type=\"footer\">\n          @for (cell of element['cells']; track $index) {\n            <nx-comparison-table-cell type=\"footer\">\n              <button\n                nxComparisonTableSelectButton\n                type=\"button\"\n                class=\"nx-margin-bottom-s\"\n              ></button\n              ><br />\n              {{ cell }}\n            </nx-comparison-table-cell>\n          }\n        </ng-container>\n      }\n      <!-- toggle section -->\n      @if (element['type'] === 'toggleSection') {\n        <ng-container nxComparisonTableToggleSection>\n          <nx-comparison-table-toggle-section-header>{{\n            element['header']\n          }}</nx-comparison-table-toggle-section-header>\n          @for (row of element['content']; track row) {\n            <ng-container nxComparisonTableRow>\n              @if (row['description']) {\n                <nx-comparison-table-description-cell>\n                  <div class=\"has-popover\">\n                    <span>{{ row['description'] }}</span>\n                    <button\n                      nxPlainButton\n                      class=\"info-icon\"\n                      [attr.aria-label]=\"row['description']\"\n                      [nxPopoverTriggerFor]=\"popoverContent\"\n                      nxPopoverTrigger=\"click\"\n                      type=\"button\"\n                    >\n                      <nx-icon\n                        name=\"info-circle-o\"\n                        aria-hidden=\"true\"\n                      ></nx-icon>\n                    </button>\n                    <nx-popover #popoverContent>\n                      <span>{{ row['description'] }}</span>\n                    </nx-popover>\n                  </div>\n                </nx-comparison-table-description-cell>\n              }\n              >\n              @for (cell of row['cells']; track $index) {\n                <nx-comparison-table-cell>\n                  @if (row.features?.[$index]; as feature) {\n                    <nx-comparison-table-feature [type]=\"feature\" contained>{{\n                      cell\n                    }}</nx-comparison-table-feature>\n                  } @else {\n                    {{ cell }}\n                  }\n                </nx-comparison-table-cell>\n              }\n            </ng-container>\n          }\n        </ng-container>\n      }\n    }\n  </nx-comparison-table>\n</div>\n\n<button\n  (click)=\"reload()\"\n  [disabled]=\"loading\"\n  nxButton=\"secondary small\"\n  class=\"nx-margin-top-2m\"\n  type=\"button\"\n>\n  Reload prices\n</button>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: form controls in a comparison table",
        "level": 4,
        "content": "You can place other components like a dropdown in the comparison table.\n\nPlease note that **this is an option for Expert**. This means that form controls inside the comparison table are currently only intended for internal and not for client-facing applications. Switch the theme to \"EXPERT\" at the top of the page to see the correct expert comparison table.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxPopoverMainContentDirective,\n  NxPopoverTitleDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport { Component } from '@angular/core';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/** @title Add custom form elements to the table */\n@Component({\n  selector: 'comparison-table-form-elements-example',\n  templateUrl: './comparison-table-form-elements-example.html',\n  styleUrls: ['./comparison-table-form-elements-example.css'],\n  imports: [\n    NxPriceComponent,\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxFormfieldComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldErrorDirective,\n    NxErrorComponent,\n    NxSignalButtonComponent,\n    NxPopoverTitleDirective,\n    NxPopoverMainContentDirective,\n    NxHeadlineComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    ReactiveFormsModule,\n  ],\n})\nexport class ComparisonTableFormElementsExampleComponent {\n  coverageAmountControl = new FormControl<string | null>(\n    null,\n    Validators.required,\n  );\n\n  constructor() {\n    // Mark as touched so the inline error state is visible on load.\n    this.coverageAmountControl.markAsTouched();\n  }\n}\n\n```\n```html\n<nx-comparison-table selectedIndex=\"1\">\n  <ng-container nxComparisonTableRow type=\"header\">\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product One</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product Two</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell type=\"header\">\n      <nx-comparison-table-header-title>\n        <h3 nxHeadline>Product 3</h3>\n      </nx-comparison-table-header-title>\n      <nx-comparison-table-header-price>\n        <nx-price [value]=\"115.99\" currency=\"EUR\"></nx-price>\n      </nx-comparison-table-header-price>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        type=\"button\"\n      ></button>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell\n      >Service headline\n    </nx-comparison-table-description-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"minus\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"check\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow>\n    <nx-comparison-table-description-cell id=\"coverage-amount\"\n      >Coverage amount\n    </nx-comparison-table-description-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"minus\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-comparison-table-feature\n        type=\"minus\"\n        contained\n      ></nx-comparison-table-feature>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <nx-formfield appearance=\"outline\" floatLabel=\"always\" inline>\n        @if (coverageAmountControl.invalid && coverageAmountControl.touched) {\n          <nx-signal-button\n            nxFormfieldSuffix\n            context=\"critical\"\n            popoverDirection=\"bottom\"\n            aria-label=\"Show validation errors for Coverage amount\"\n          >\n            <div nxPopoverTitle>\n              <h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-2xs\">\n                Please review this field\n              </h3>\n            </div>\n            <ul nxPopoverMainContent class=\"error-list\">\n              @if (coverageAmountControl.hasError('required')) {\n                <li>Please select a coverage amount.</li>\n              }\n            </ul>\n          </nx-signal-button>\n        }\n        <nx-dropdown\n          [formControl]=\"coverageAmountControl\"\n          ariaLabelledBy=\"coverage-amount\"\n        >\n          <nx-dropdown-item value=\"200 Mio Euro\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"300 Mio Euro\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"500 Mio Euro\"></nx-dropdown-item>\n        </nx-dropdown>\n        <nx-error nxFormfieldError> Please select a coverage amount. </nx-error>\n      </nx-formfield>\n    </nx-comparison-table-cell>\n  </ng-container>\n\n  <ng-container nxComparisonTableRow type=\"footer\">\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        class=\"nx-margin-bottom-s\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        class=\"nx-margin-bottom-s\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n    <nx-comparison-table-cell>\n      <button\n        nxComparisonTableSelectButton\n        unselectedLabel=\"Select\"\n        selectedLabel=\"Selected\"\n        class=\"nx-margin-bottom-s\"\n        type=\"button\"\n      ></button>\n      <p class=\"product-underline\">Some short information</p>\n    </nx-comparison-table-cell>\n  </ng-container>\n</nx-comparison-table>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "premium breakdown and recommendation tables",
        "level": 4,
        "content": "Two further layouts build on the comparison table: a premium breakdown table for displaying how a price is composed, and a recommendation table for summarizing a single offer.\n\n\n```ts\nimport {\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxDataDisplayComponent } from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { CurrencyPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Breakdown table example\n */\n@Component({\n  selector: 'breakdown-table-example',\n  templateUrl: './breakdown-table-example.html',\n  styleUrls: ['./breakdown-table-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxCopytextComponent,\n    NxHeadlineComponent,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n    NxDataDisplayComponent,\n    CurrencyPipe,\n  ],\n})\nexport class BreakdownTableExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow rowJustify=\"center\">\n    <div nxCol=\"12,12,10,10,8,6\">\n      <div class=\"breakdown-table nx-margin-bottom-s\">\n        <div class=\"breakdown-table__content\">\n          <p nxCopytext=\"small\" class=\"nx-margin-bottom-s\">\n            Based on your annual premium and additional selected coverages\n          </p>\n\n          <div nxHeadline=\"subsection-small\" class=\"nx-font-weight-semibold\">\n            Total coverage\n          </div>\n\n          <div class=\"nx-margin-bottom-s\">\n            <span nxHeadline=\"subsection-small\" class=\"nx-font-weight-semibold\"\n              >$</span\n            >\n            <span nxHeadline=\"section\" class=\"nx-font-weight-bold\"> 705 </span>\n            <span nxCopytext=\"small\">/year</span>\n          </div>\n        </div>\n\n        <nx-expansion-panel variant=\"light\">\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title>\n              Premium breakdown\n            </nx-expansion-panel-title>\n          </nx-expansion-panel-header>\n\n          <nx-data-display label=\"Annual base premium\" orientation=\"horizontal\">\n            {{ 421 | currency }}\n          </nx-data-display>\n          <nx-data-display label=\"Windscreen cover\" orientation=\"horizontal\">\n            {{ 120 | currency }}\n          </nx-data-display>\n          <nx-data-display\n            label=\"Emergency and/or fire service levies\"\n            orientation=\"horizontal\"\n          >\n            {{ 8 | currency }}\n          </nx-data-display>\n          <nx-data-display\n            label=\"Goods & services tax (GST)\"\n            orientation=\"horizontal\"\n          >\n            {{ 78 | currency }}\n          </nx-data-display>\n        </nx-expansion-panel>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n\n```ts\nimport {\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Recommendation table example\n */\n@Component({\n  selector: 'recommendation-table-example',\n  templateUrl: './recommendation-table-example.html',\n  styleUrls: ['./recommendation-table-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxCopytextComponent,\n    NxHeadlineComponent,\n    NxListComponent,\n    NxListIconComponent,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n  ],\n})\nexport class RecommendationTableExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow rowJustify=\"center\">\n    <div nxCol=\"12,12,10,10,9,8\">\n      <div class=\"breakdown-table nx-margin-bottom-s\">\n        <div class=\"breakdown-table__content\">\n          <p nxCopytext=\"small\" class=\"nx-margin-bottom-s\">\n            Based on the type and age of your car, we recommend this cover\n          </p>\n\n          <div\n            nxHeadline=\"subsection-small\"\n            class=\"nx-font-weight-semibold nx-margin-bottom-2xs\"\n          >\n            Smart Plus\n          </div>\n\n          <div class=\"nx-margin-bottom-m\">\n            <span nxHeadline=\"subsection-small\" class=\"nx-font-weight-semibold\"\n              >$</span\n            >\n            <span nxHeadline=\"section\" class=\"nx-font-weight-bold\"> 499 </span>\n            <span nxCopytext=\"small\">/year</span>\n          </div>\n        </div>\n\n        <!-- TODO image -->\n\n        <ul nxList=\"xsmall\" class=\"nx-margin-bottom-s\">\n          <li nxListIcon=\"check\">\n            <strong>100 million €</strong> insured sum, in case of personal\n            injury up to <strong>15 million €</strong>\n          </li>\n          <li nxListIcon=\"check\">\n            Up to <strong>18 months after purchase</strong> we refund the\n            purchase price / new price in case of total loss\n          </li>\n          <li nxListIcon=\"check\">\n            Contract communication <strong>online</strong>\n          </li>\n          <li nxListIcon=\"check\">\n            <strong>Premium protection cover:</strong><br />\n            Onward journey after breakdown or accident in 60 minutes\n          </li>\n        </ul>\n\n        <nx-expansion-panel variant=\"light\">\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title> All services </nx-expansion-panel-title>\n          </nx-expansion-panel-header>\n\n          <h5 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n            Liability\n          </h5>\n\n          <ul nxList=\"xsmall\" class=\"nx-margin-bottom-s\">\n            <li nxListIcon=\"check\">\n              Sum insured per claim: <strong>100 Mio. €</strong>\n            </li>\n            <li nxListIcon=\"check\">\n              In case of personal injury up to\n              <strong>15 million €</strong>\n            </li>\n            <li nxListIcon=\"check\">\n              In case of environmental damage up to\n              <strong>5 Mio. €</strong>\n            </li>\n            <li nxListIcon=\"check\">\n              In case of the use of foreign vehicles abroad up to\n              <strong>100 Mio. €</strong>\n            </li>\n            <li nxListIcon=\"close\">\n              Damage to your property caused by your own motor vehicle\n            </li>\n            <li nxListIcon=\"check\">\n              <strong>Premium protection cover:</strong><br />Onward journey\n              after breakdown or accident in 60 minutes\n            </li>\n          </ul>\n\n          <h5 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n            Partial cover\n          </h5>\n\n          <ul nxList=\"xsmall\" class=\"nx-margin-bottom-s\">\n            <li nxListIcon=\"check\">Theft protection</li>\n            <li nxListIcon=\"check\">Fire, explosion or short circuit</li>\n            <li nxListIcon=\"check\">Collision with animals of all kinds</li>\n            <li nxListIcon=\"check\">\n              Animal bite, without exclusion of certain animal species ( Incl.\n              consequential damage up to € 5,000)\n            </li>\n            <li nxListIcon=\"check\">\n              Storms, e.g. hail, flood, storm, avalanche\n            </li>\n            <li nxListIcon=\"check\">Glass damage</li>\n            <li nxListIcon=\"check\">Transfer and registration costs</li>\n            <li nxListIcon=\"check\">Special equipment also insured</li>\n            <li nxListIcon=\"check\">\n              New or purchase price compensation: 12 months\n            </li>\n          </ul>\n\n          <h5 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n            Full cover\n          </h5>\n\n          <ul nxList=\"xsmall\">\n            <li nxListIcon=\"check\">Accident and vandalism</li>\n            <li nxListIcon=\"check\">Grossly negligent acts are also insured</li>\n          </ul>\n        </nx-expansion-panel>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-expert-container\">\n\nSimplified, more neutral variants of both are available for expert applications.\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { CurrencyPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Breakdown table expert example\n */\n@Component({\n  selector: 'breakdown-table-expert-example',\n  templateUrl: './breakdown-table-expert-example.html',\n  styleUrls: ['./breakdown-table-expert-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxCopytextComponent,\n    NxHeadlineComponent,\n    NxDataDisplayComponent,\n    CurrencyPipe,\n  ],\n})\nexport class BreakdownTableExpertExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow rowJustify=\"center\">\n    <div nxCol=\"12,12,12,12,10,9\">\n      <div class=\"breakdown-table nx-margin-bottom-s\">\n        <p nxCopytext=\"small\" class=\"nx-margin-bottom-2xs\">\n          Based on your annual premium and additional selected coverages\n        </p>\n\n        <div nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n          <span class=\"nx-font-weight-semibold\">Total coverage: </span>\n          <span class=\"nx-font-weight-semibold\">$ 705 </span>\n          <span nxCopytext>/year</span>\n        </div>\n\n        <div class=\"breakdown-table__divider\"></div>\n\n        <h6 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n          Premium breakdown\n        </h6>\n\n        <nx-data-display label=\"Annual base premium\" orientation=\"horizontal\">\n          {{ 421 | currency }}\n        </nx-data-display>\n        <nx-data-display label=\"Windscreen cover\" orientation=\"horizontal\">\n          {{ 120 | currency }}\n        </nx-data-display>\n        <nx-data-display\n          label=\"Emergency and/or fire service levies\"\n          orientation=\"horizontal\"\n        >\n          {{ 8 | currency }}\n        </nx-data-display>\n        <nx-data-display\n          label=\"Goods & services tax (GST)\"\n          orientation=\"horizontal\"\n        >\n          {{ 78 | currency }}\n        </nx-data-display>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n\n```ts\nimport {\n  NxExpansionPanelComponent,\n  NxExpansionPanelHeaderComponent,\n  NxExpansionPanelTitleDirective,\n} from '@allianz/ng-aquila/accordion';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Recommendation table expert example\n */\n@Component({\n  selector: 'recommendation-table-expert-example',\n  templateUrl: './recommendation-table-expert-example.html',\n  styleUrls: ['./recommendation-table-expert-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxCopytextComponent,\n    NxHeadlineComponent,\n    NxListComponent,\n    NxListIconComponent,\n    NxExpansionPanelComponent,\n    NxExpansionPanelHeaderComponent,\n    NxExpansionPanelTitleDirective,\n  ],\n})\nexport class RecommendationTableExpertExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow rowJustify=\"center\">\n    <div nxCol=\"12,12,12,12,10,9\">\n      <div\n        class=\"breakdown-table breakdown-table__background nx-margin-bottom-s\"\n      >\n        <div class=\"breakdown-table__content\">\n          <p nxCopytext=\"small\" class=\"nx-margin-bottom-2xs\">\n            Based on the type and age of your car, we recommend this cover\n          </p>\n\n          <div nxHeadline=\"subsection-small\" class=\"nx-font-weight-bold\">\n            Smart Plus\n          </div>\n\n          <div class=\"nx-margin-bottom-s\">\n            <span nxHeadline=\"subsection-xsmall\" class=\"nx-font-weight-semibold\"\n              >$</span\n            >\n            <span nxHeadline=\"subsection-small\" class=\"nx-font-weight-bold\">\n              499\n            </span>\n            <span nxCopytext=\"small\">/year</span>\n          </div>\n        </div>\n\n        <!-- TODO image -->\n\n        <ul nxList=\"xsmall\" class=\"nx-margin-bottom-m\">\n          <li nxListIcon=\"check\">\n            <strong>100 million €</strong> insured sum, in case of personal\n            injury up to <strong>15 million €</strong>\n          </li>\n          <li nxListIcon=\"check\">\n            Up to <strong>18 months after purchase</strong> we refund the\n            purchase price / new price in case of total loss\n          </li>\n          <li nxListIcon=\"check\">\n            Contract communication <strong>online</strong>\n          </li>\n          <li nxListIcon=\"check\">\n            <strong>Premium protection cover:</strong><br />\n            Onward journey after breakdown or accident in 60 minutes\n          </li>\n        </ul>\n\n        <nx-expansion-panel variant=\"light\">\n          <nx-expansion-panel-header>\n            <nx-expansion-panel-title> All services </nx-expansion-panel-title>\n          </nx-expansion-panel-header>\n\n          <h5 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n            Liability\n          </h5>\n\n          <ul nxList=\"xsmall\" class=\"nx-margin-bottom-s\">\n            <li nxListIcon=\"check\">\n              Sum insured per claim: <strong>100 Mio. €</strong>\n            </li>\n            <li nxListIcon=\"check\">\n              In case of personal injury up to\n              <strong>15 million €</strong>\n            </li>\n            <li nxListIcon=\"check\">\n              In case of environmental damage up to\n              <strong>5 Mio. €</strong>\n            </li>\n            <li nxListIcon=\"check\">\n              In case of the use of foreign vehicles abroad up to\n              <strong>100 Mio. €</strong>\n            </li>\n            <li nxListIcon=\"close\">\n              Damage to your property caused by your own motor vehicle\n            </li>\n            <li nxListIcon=\"check\">\n              <strong>Premium protection cover:</strong><br />Onward journey\n              after breakdown or accident in 60 minutes\n            </li>\n          </ul>\n\n          <h5 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n            Partial cover\n          </h5>\n\n          <ul nxList=\"xsmall\" class=\"nx-margin-bottom-s\">\n            <li nxListIcon=\"check\">Theft protection</li>\n            <li nxListIcon=\"check\">Fire, explosion or short circuit</li>\n            <li nxListIcon=\"check\">Collision with animals of all kinds</li>\n            <li nxListIcon=\"check\">\n              Animal bite, without exclusion of certain animal species ( Incl.\n              consequential damage up to € 5,000)\n            </li>\n            <li nxListIcon=\"check\">\n              Storms, e.g. hail, flood, storm, avalanche\n            </li>\n            <li nxListIcon=\"check\">Glass damage</li>\n            <li nxListIcon=\"check\">Transfer and registration costs</li>\n            <li nxListIcon=\"check\">Special equipment also insured</li>\n            <li nxListIcon=\"check\">\n              New or purchase price compensation: 12 months\n            </li>\n          </ul>\n\n          <h5 nxCopytext class=\"nx-font-weight-bold nx-margin-bottom-s\">\n            Full cover\n          </h5>\n\n          <ul nxList=\"xsmall\">\n            <li nxListIcon=\"check\">Accident and vandalism</li>\n            <li nxListIcon=\"check\">Grossly negligent acts are also insured</li>\n          </ul>\n        </nx-expansion-panel>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "legacy",
        "level": 4,
        "content": "The following two examples are kept for existing NDBX applications. Do not start from them.\n\nBefore the header slots existed, header cells were composed of freeform markup with application-owned CSS for order, spacing and typography. This still works — unslotted content renders after the slots — but every application ended up looking slightly different, which is what the slots fix.\n\n\n```ts\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n} from '@allianz/ng-aquila/comparison-table';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/** @title Freeform header content example */\n@Component({\n  selector: 'comparison-table-header-legacy-example',\n  templateUrl: './comparison-table-header-legacy-example.html',\n  styleUrls: ['./comparison-table-header-legacy-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n  ],\n})\nexport class ComparisonTableHeaderLegacyExampleComponent {}\n\n```\n```html\n<div class=\"container\">\n  <nx-comparison-table selectedIndex=\"1\">\n    <ng-container nxComparisonTableRow type=\"header\">\n      <nx-comparison-table-cell type=\"header\">\n        <div class=\"header-container\">\n          <p class=\"product-title\">Product One</p>\n          <p class=\"product-price\">105,99 €</p>\n          <button\n            nxComparisonTableSelectButton\n            unselectedLabel=\"Select\"\n            selectedLabel=\"Selected\"\n            type=\"button\"\n          ></button>\n        </div>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <div class=\"header-container\">\n          <p class=\"product-title\">Product Two with a very long name</p>\n          <p class=\"product-price\">110,99 €</p>\n          <button\n            nxComparisonTableSelectButton\n            unselectedLabel=\"Select\"\n            selectedLabel=\"Selected\"\n            type=\"button\"\n          ></button>\n        </div>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Service headline</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n\nThe `view` input forces a fixed layout instead of deriving it from the available width. Prefer `responsiveBreakpoints` (see [responsive layout](#responsive-layout-and-overflow)), which covers the same ground and is the supported path for A1.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxComparisonTableCell,\n  NxComparisonTableComponent,\n  NxComparisonTableDescriptionCell,\n  NxComparisonTableFeature,\n  NxComparisonTableHeaderPrice,\n  NxComparisonTableHeaderTitle,\n  NxComparisonTableRowDirective,\n  NxComparisonTableSelectButton,\n  NxComparisonTableViewType,\n} from '@allianz/ng-aquila/comparison-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/** @title Static layout example */\n@Component({\n  selector: 'comparison-table-static-example',\n  templateUrl: './comparison-table-static-example.html',\n  styleUrls: ['./comparison-table-static-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxComparisonTableComponent,\n    NxComparisonTableRowDirective,\n    NxComparisonTableCell,\n    NxComparisonTableFeature,\n    NxComparisonTableHeaderTitle,\n    NxComparisonTableHeaderPrice,\n    NxComparisonTableSelectButton,\n    NxComparisonTableDescriptionCell,\n    NxHeadlineComponent,\n    NxPriceComponent,\n    NxButtonComponent,\n  ],\n})\nexport class ComparisonTableStaticExampleComponent {\n  layout?: NxComparisonTableViewType | null;\n\n  cycleLayout(): void {\n    switch (this.layout) {\n      case 'mobile':\n        this.layout = 'tablet';\n        break;\n      case 'tablet':\n        this.layout = 'desktop';\n        break;\n      default:\n        this.layout = 'mobile';\n    }\n  }\n\n  defaultLayout(): void {\n    this.layout = null;\n  }\n}\n\n```\n```html\n<div class=\"nx-margin-bottom-s\">\n  <button nxButton=\"secondary small\" (click)=\"cycleLayout()\" type=\"button\">\n    Cycle layout\n  </button>\n  <button nxButton=\"tertiary small\" (click)=\"defaultLayout()\" type=\"button\">\n    Back to automatic\n  </button>\n</div>\n\n<p class=\"nx-margin-bottom-s\">\n  Current layout: {{ layout ?? 'automatic (set by the viewport width)' }}\n</p>\n\n<div class=\"container\">\n  <nx-comparison-table selectedIndex=\"1\" [view]=\"layout\">\n    <ng-container nxComparisonTableRow type=\"header\">\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product One</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"105.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell type=\"header\">\n        <nx-comparison-table-header-title>\n          <h3 nxHeadline>Product Two</h3>\n        </nx-comparison-table-header-title>\n        <nx-comparison-table-header-price>\n          <nx-price [value]=\"110.99\" currency=\"EUR\"></nx-price>\n        </nx-comparison-table-header-price>\n        <button\n          nxComparisonTableSelectButton\n          unselectedLabel=\"Select\"\n          selectedLabel=\"Selected\"\n          type=\"button\"\n        ></button>\n      </nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Coverage amount</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>100 Mio. Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>150 Mio. Euro</nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Deductible</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>500 Euro</nx-comparison-table-cell>\n      <nx-comparison-table-cell>250 Euro</nx-comparison-table-cell>\n    </ng-container>\n\n    <ng-container nxComparisonTableRow>\n      <nx-comparison-table-description-cell\n        >Rental car</nx-comparison-table-description-cell\n      >\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature\n          type=\"minus\"\n          contained\n        ></nx-comparison-table-feature>\n      </nx-comparison-table-cell>\n      <nx-comparison-table-cell>\n        <nx-comparison-table-feature type=\"check\" contained\n          >Up to 7 days</nx-comparison-table-feature\n        >\n      </nx-comparison-table-cell>\n    </ng-container>\n  </nx-comparison-table>\n</div>\n\n```\n\n\n<div class=\"docs-private\">\n"
      },
      {
        "heading": "theming variations",
        "level": 4,
        "content": "By setting some theming tokens, you can modify the look of the comparison table. For the basic theming setup check the [theming page](./documentation/theming).\n\nDepending on the colors you choose, it may be necessary to modify the default button styling in the comparison table, e.g. use the negative button for an unselected button for the color combinations shown here. For this, you can set `unselectedClassNames=\"secondary small negative\"` for `nxComparisonTableSelectButton`.\n\n<!-- example(comparison-table-private-modify-theming, { \"privateExample\": true, \"hideStackblitzButton\": true }) -->\n\n</div>\n"
      }
    ]
  },
  {
    "name": "context-menu.md",
    "title": "Context Menu",
    "category": "components",
    "alias": [
      "menu"
    ],
    "sections": [
      {
        "heading": "toggling the menu programmatically",
        "level": 3,
        "content": "The context menu exposes an API to open/close programmatically. Please note that in this case, an `nxContextMenuTriggerFor` directive is still necessary to attach the context menu to a trigger element in the DOM.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n  NxContextMenuTriggerDirective as NxContextMenuTriggerDirective_1,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component, ViewChild } from '@angular/core';\n\n/**\n * @title Programmatic Context Menu Example\n */\n@Component({\n  selector: 'context-menu-programmatic-example',\n  templateUrl: './context-menu-programmatic-example.html',\n  styleUrls: ['./context-menu-programmatic-example.css'],\n  host: {\n    '(document:keydown.control.p)': 'openContextMenu($event)',\n  },\n  imports: [\n    NxCopytextComponent,\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective_1,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuProgrammaticExampleComponent {\n  @ViewChild(NxContextMenuTriggerDirective)\n  trigger!: NxContextMenuTriggerDirective;\n\n  openContextMenu($event: Event) {\n    $event.preventDefault();\n    this.trigger.toggleContextMenu();\n  }\n}\n\n```\n```html\n<p nxCopytext class=\"nx-margin-bottom-xs\">\n  Press <code>control+p</code> to open the context menu.\n</p>\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "icons",
        "level": 3,
        "content": "Context menus support displaying `<nx-icon>` elements before the menu item text.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Context Menu Example\n */\n@Component({\n  selector: 'context-menu-icons-example',\n  templateUrl: './context-menu-icons-example.html',\n  styleUrls: ['./context-menu-icons-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIconComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n  ],\n})\nexport class ContextMenuIconsExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">\n    <nx-icon aria-hidden=\"true\" name=\"setting\"></nx-icon>\n    Settings\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <nx-icon aria-hidden=\"true\" name=\"download\"></nx-icon>\n    Download\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <nx-icon aria-hidden=\"true\" name=\"info-circle-o\"></nx-icon>\n    Help\n  </button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "indicators",
        "level": 3,
        "content": "Using the [`<nx-indicator>`](./documentation/indicator/overview), certain entries of the context menu can be marked.\n\n<div class=\"docs-ndbx\">\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Context Menu with indicators\n */\n@Component({\n  selector: 'context-menu-indicator-example',\n  templateUrl: './context-menu-indicator-example.html',\n  styleUrls: ['./context-menu-indicator-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIndicatorComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuIndicatorExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Settings<nx-indicator\n        position=\"over-text with-overlap\"\n        aria-label=\"new notifications available'\"\n      ></nx-indicator>\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Downloads<nx-indicator\n        position=\"over-text with-overlap\"\n        aria-label=\"1 new notification available\"\n        >1</nx-indicator\n      >\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Help<nx-indicator\n        position=\"over-text with-overlap\"\n        aria-label=\"more than 99 notifications available\"\n        >99+</nx-indicator\n      >\n    </span>\n  </button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Context Menu with indicators\n */\n@Component({\n  selector: 'context-menu-indicator-a1-example',\n  templateUrl: './context-menu-indicator-a1-example.html',\n  styleUrls: ['./context-menu-indicator-a1-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIndicatorComponent,\n    NxPlainButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuIndicatorA1ExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Settings<nx-indicator\n        position=\"top-end\"\n        aria-label=\"new notifications available\"\n      ></nx-indicator>\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Downloads<nx-indicator\n        position=\"top-end\"\n        aria-label=\"1 new notification available\"\n        >1</nx-indicator\n      >\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Help<nx-indicator\n        position=\"top-end\"\n        aria-label=\"more than 99 notifications available\"\n        >99+</nx-indicator\n      >\n    </span>\n  </button>\n</nx-context-menu>\n\n<button\n  nxPlainButton\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "grouped context menu",
        "level": 3,
        "content": "The context menu supports grouping items together, allowing you to visually organize related options. You can optionally add a group header using the `label` property of the `nxContextMenuGroup` component to provide extra context for each group within the menu.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxContextMenuModule } from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Grouped Context Menu Example\n */\n@Component({\n  selector: 'context-menu-group-example',\n  templateUrl: './context-menu-group-example.html',\n  styleUrls: ['./context-menu-group-example.css'],\n  imports: [NxContextMenuModule, NxIconButtonComponent, NxIconComponent],\n})\nexport class ContextMenuGroupExampleComponent {}\n\n```\n```html\n<nx-context-menu #menuWithProvider=\"nxContextMenu\">\n  <nx-context-menu-group label=\"Actions\">\n    <button nxContextMenuItem type=\"button\">Settings</button>\n    <button nxContextMenuItem type=\"button\">Download</button>\n  </nx-context-menu-group>\n  <nx-divider />\n  <nx-context-menu-group label=\"Edit\">\n    <button nxContextMenuItem type=\"button\">Undo</button>\n    <button nxContextMenuItem type=\"button\">Redo</button>\n    <button nxContextMenuItem type=\"button\">\n      <nx-icon aria-hidden=\"true\" name=\"cut\"></nx-icon>Cut\n    </button>\n    <button nxContextMenuItem type=\"button\">\n      <nx-icon aria-hidden=\"true\" name=\"duplicate\"></nx-icon>\n      Copy\n    </button>\n    <button nxContextMenuItem type=\"button\">Paste</button>\n    <button\n      nxContextMenuItem\n      [nxContextMenuTriggerFor]=\"copyAsSubMenu\"\n      type=\"button\"\n    >\n      <nx-icon aria-hidden=\"true\" name=\"download\"></nx-icon>\n      Copy As\n    </button>\n  </nx-context-menu-group>\n  <nx-divider />\n  <nx-context-menu-group label=\"More\">\n    <button\n      nxContextMenuItem\n      [nxContextMenuTriggerFor]=\"openWithSubMenu\"\n      type=\"button\"\n    >\n      Open With\n    </button>\n    <button nxContextMenuItem type=\"button\">Properties</button>\n  </nx-context-menu-group>\n</nx-context-menu>\n\n<nx-context-menu #copyAsSubMenu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">CSS</button>\n  <button nxContextMenuItem type=\"button\">SVG</button>\n  <button nxContextMenuItem type=\"button\">PNG</button>\n</nx-context-menu>\n\n<nx-context-menu #openWithSubMenu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Editor</button>\n  <button nxContextMenuItem type=\"button\">Browser</button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menuWithProvider\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "nested context menu",
        "level": 3,
        "content": "The context menu has the ability to open a sub-menu. To do so, you have to define your root menu and sub-menus, in addition to setting the `nxContextMenuTriggerFor` on the `nxContextMenuItem` that should trigger the sub-menu:\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Nested Context Menu Example\n */\n@Component({\n  selector: 'context-menu-nested-example',\n  templateUrl: './context-menu-nested-example.html',\n  styleUrls: ['./context-menu-nested-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIconComponent,\n    NxContextMenuTriggerDirective,\n    NxIconButtonComponent,\n  ],\n})\nexport class ContextMenuNestedExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">\n    <nx-icon aria-hidden=\"true\" name=\"setting\"></nx-icon>\n    Settings\n  </button>\n  <button nxContextMenuItem [nxContextMenuTriggerFor]=\"subMenu\" type=\"button\">\n    <nx-icon aria-hidden=\"true\" name=\"download\"></nx-icon>\n    Download\n  </button>\n  <button\n    nxContextMenuItem\n    [nxContextMenuTriggerFor]=\"helpSubMenu\"\n    type=\"button\"\n  >\n    <nx-icon aria-hidden=\"true\" name=\"info-circle-o\"></nx-icon>\n    Help\n  </button>\n</nx-context-menu>\n\n<nx-context-menu #subMenu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">pdf</button>\n  <button\n    nxContextMenuItem\n    [nxContextMenuTriggerFor]=\"qualitySubMenu\"\n    type=\"button\"\n  >\n    jpg\n  </button>\n</nx-context-menu>\n\n<nx-context-menu #helpSubMenu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">FAQ</button>\n  <button nxContextMenuItem type=\"button\">Call Support</button>\n</nx-context-menu>\n\n<nx-context-menu #qualitySubMenu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">low quality</button>\n  <button nxContextMenuItem type=\"button\">medium quality</button>\n  <button nxContextMenuItem type=\"button\">high quality</button>\n  <button nxContextMenuItem type=\"button\">highest quality</button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  type=\"button\"\n>\n  <nx-icon name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "disabling menu items",
        "level": 3,
        "content": "Menu items can be disabled by adding a `disabled` attribute to the `nxContextMenuItem`.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Disabled Context Menu Example\n */\n@Component({\n  selector: 'context-menu-disabled-example',\n  templateUrl: './context-menu-disabled-example.html',\n  styleUrls: ['./context-menu-disabled-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxContextMenuTriggerDirective,\n    NxIconButtonComponent,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuDisabledExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem disabled type=\"button\">Download</button>\n  <button\n    nxContextMenuItem\n    disabled\n    [nxContextMenuTriggerFor]=\"archiveSubMenu\"\n    type=\"button\"\n  >\n    Move\n  </button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n<nx-context-menu #archiveSubMenu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">To Folder</button>\n  <button nxContextMenuItem type=\"button\">Archive</button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "lazy rendering",
        "level": 3,
        "content": "By default, the context menu content will be initialized even when the panel is closed. To defer initialization until the context menu is open, the content can be provided as an ng-template with the `nxContextMenuContent` attribute:\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuContentDirective,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Lazy Context Menu Example\n */\n@Component({\n  selector: 'context-menu-lazy-example',\n  templateUrl: './context-menu-lazy-example.html',\n  styleUrls: ['./context-menu-lazy-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuContentDirective,\n    NxContextMenuItemComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuLazyExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <ng-template nxContextMenuContent>\n    <button nxContextMenuItem type=\"button\">Settings</button>\n    <button nxContextMenuItem type=\"button\">Download</button>\n    <button nxContextMenuItem type=\"button\">Help</button>\n  </ng-template>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  type=\"button\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "passing in data to a menu",
        "level": 3,
        "content": "When using lazy rendering, additional context data can be passed to the context menu panel via the `nxContextMenuTriggerData` input. This allows for a single context menu instance to be rendered with a different set of data, depending on the trigger that opened it:\n\n\n```ts\nimport { NxBadgeComponent, NxBadgeType } from '@allianz/ng-aquila/badge';\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuContentDirective,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\n\ninterface Contract {\n  id: string;\n  user: string;\n  status: NxBadgeType;\n  statusText: string;\n  documents: string[];\n}\n\n/**\n * @title Data Context Menu Example\n */\n@Component({\n  selector: 'context-menu-data-example',\n  templateUrl: './context-menu-data-example.html',\n  styleUrls: ['context-menu-data-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuContentDirective,\n    NxContextMenuItemComponent,\n    NxIconComponent,\n    NxContextMenuTriggerDirective,\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxBadgeComponent,\n    NxIconButtonComponent,\n  ],\n})\nexport class ContextMenuDataExampleComponent {\n  contracts: Contract[] = [\n    {\n      id: '23412',\n      user: 'Anna Schuster',\n      status: 'info',\n      statusText: 'Active',\n      documents: ['Contract 01/04/2017'],\n    },\n    {\n      id: '09090',\n      user: 'Max Pecu',\n      status: 'info',\n      statusText: 'Active',\n      documents: ['Contract 11/07/2015'],\n    },\n    {\n      id: '45234',\n      user: 'Sefan Maier',\n      status: 'info',\n      statusText: 'Active',\n      documents: ['Contract 01/01/2017'],\n    },\n  ];\n}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <ng-template nxContextMenuContent let-contract=\"contract\">\n    <button nxContextMenuItem type=\"button\">\n      <nx-icon aria-hidden=\"true\" name=\"user-o\"></nx-icon>\n      User: {{ contract.user }}\n    </button>\n    <button nxContextMenuItem type=\"button\">\n      <nx-icon aria-hidden=\"true\" name=\"bookmark-o\"></nx-icon>\n      Bookmark\n    </button>\n    <button nxContextMenuItem type=\"button\">\n      <nx-icon aria-hidden=\"true\" name=\"pen\"></nx-icon>\n      Edit\n    </button>\n    <button\n      nxContextMenuItem\n      [nxContextMenuTriggerFor]=\"documentsSubmenu\"\n      [nxContextMenuTriggerData]=\"{ documents: contract.documents }\"\n      type=\"button\"\n    >\n      <nx-icon aria-hidden=\"true\" name=\"file\"></nx-icon>\n      Documents\n    </button>\n  </ng-template>\n</nx-context-menu>\n\n<nx-context-menu #documentsSubmenu=\"nxContextMenu\">\n  <ng-template nxContextMenuContent let-documents=\"documents\">\n    @for (document of documents; track document) {\n      <button nxContextMenuItem type=\"button\">\n        <nx-icon aria-hidden=\"true\" name=\"pdf\"></nx-icon>\n        {{ document }}\n      </button>\n    }\n  </ng-template>\n</nx-context-menu>\n\n<table nxTable condensed>\n  <thead>\n    <tr nxTableRow>\n      <th nxHeaderCell>Contract Id</th>\n      <th nxHeaderCell>Status</th>\n      <th nxHeaderCell aria-label=\"Context menu\"></th>\n    </tr>\n  </thead>\n  <tbody>\n    @for (contract of contracts; track contract) {\n      <tr nxTableRow>\n        <td nxTableCell>{{ contract.id }}</td>\n        <td nxTableCell>\n          <nx-badge [type]=\"contract.status\">{{\n            contract.statusText\n          }}</nx-badge>\n        </td>\n        <td nxTableCell>\n          <button\n            nxIconButton=\"tertiary small\"\n            [nxContextMenuTriggerFor]=\"menu\"\n            [nxContextMenuTriggerData]=\"{ contract: contract }\"\n            aria-label=\"Open menu\"\n            type=\"button\"\n          >\n            <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n          </button>\n        </td>\n      </tr>\n    }\n  </tbody>\n</table>\n\n```\n\n"
      },
      {
        "heading": "scroll strategy",
        "level": 3,
        "content": "By default scroll strategy of the context `reposition`, which lets the menu stay open and reposition itself when scrolling. To close the context menu on scroll, the scroll strategy can be set to `close`.\n\nTo use a custom scroll container instead of the body element, [add cdkScrollable to the container element](./documentation/popover/overview#cdkscrollable)\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Scroll Strategy Context Menu Example\n */\n@Component({\n  selector: 'context-menu-scroll-strategy-example',\n  templateUrl: './context-menu-scroll-strategy-example.html',\n  styleUrls: ['./context-menu-scroll-strategy-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuScrollStrategyExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  scrollStrategy=\"close\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n"
      },
      {
        "heading": "right click",
        "level": 3,
        "content": "You can set the mode of the context menu to `cursor` to be able to open it via right click. Be aware that this can cause usability issues and it is only recommended to use this in combination with a visible button.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCardComponent } from '@allianz/ng-aquila/card';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Cursor Mode Context Menu Example\n */\n@Component({\n  selector: 'context-menu-cursor-mode-example',\n  templateUrl: './context-menu-cursor-mode-example.html',\n  styleUrls: ['./context-menu-cursor-mode-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxCardComponent,\n    NxContextMenuTriggerDirective,\n    NxCopytextComponent,\n    NxIconButtonComponent,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuCursorModeExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n<nx-card [nxContextMenuTriggerFor]=\"menu\" nxContextMenuTriggerMode=\"cursor\">\n  <div class=\"card-content\">\n    <p nxCopytext>Right click card to open context menu.</p>\n    <button\n      nxIconButton=\"tertiary small\"\n      [nxContextMenuTriggerFor]=\"menu\"\n      aria-label=\"Open menu\"\n      type=\"button\"\n    >\n      <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n    </button>\n  </div>\n</nx-card>\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "If you want to use a custom scroll strategy, you can use the `NX_CONTEXT_MENU_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NX_CONTEXT_MENU_SCROLL_STRATEGY,\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'context-menu-scroll-strategy-provider-example',\n  templateUrl: './context-menu-scroll-strategy-provider-example.html',\n  styleUrls: ['./context-menu-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_CONTEXT_MENU_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuScrollStrategyProviderExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n\nAlternatively, the `NX_CONTEXT_MENU_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      },
      {
        "heading": "keyboard interaction",
        "level": 3,
        "content": "-   DOWN_ARROW: Focuses the next menu item\n-   UP_ARROW: Focuses previous menu item\n-   RIGHT_ARROW: Opens the menu item's sub-menu\n-   LEFT_ARROW: Closes the current menu, if it is a sub-menu\n-   ENTER: Activates the focused menu item\n-   ESCAPE: Closes the menu\n"
      },
      {
        "heading": "selection menu",
        "level": 3,
        "content": "`nxContextMenuItem` can manage its own selection presentation while the application keeps ownership of the selected value(s). Set `selectable` to `\"single\"` or `\"multi\"` and bind `[selected]` to your state. The component takes care of:\n\n- setting `role=\"menuitemradio\"` (single) or `role=\"menuitemcheckbox\"` (multi),\n- toggling `aria-checked`,\n- rendering the radio / checkbox indicator.\n\nSetting `selectable` to `null` (or omitting it) restores the default `menuitem` behavior.\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "single selection",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuModule,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { ChangeDetectionStrategy, Component, signal } from '@angular/core';\n\n/**\n * @title Context Menu Single Selectable Example\n */\n@Component({\n  selector: 'context-menu-single-selectable-example',\n  templateUrl: './context-menu-single-selectable-example.html',\n  styleUrls: ['./context-menu-single-selectable-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxContextMenuModule,\n    NxIconComponent,\n    NxButtonComponent,\n    NxContextMenuTriggerDirective,\n  ],\n})\nexport class ContextMenuSingleSelectableExampleComponent {\n  readonly selectedLanguage = signal('de');\n\n  selectLanguage(value: string) {\n    this.selectedLanguage.set(value);\n  }\n\n  options = [\n    { label: 'English', value: 'en' },\n    { label: 'Spanish', value: 'es' },\n    { label: 'French', value: 'fr' },\n    { label: 'German', value: 'de' },\n    { label: 'Chinese', value: 'cn' },\n  ];\n}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <nx-context-menu-header>Language</nx-context-menu-header>\n  @for (o of options; track o.value) {\n    <button\n      nxContextMenuItem\n      selectable=\"single\"\n      [selected]=\"selectedLanguage() === o.value\"\n      type=\"button\"\n      (click)=\"selectLanguage(o.value)\"\n    >\n      {{ o.label }}\n    </button>\n  }\n</nx-context-menu>\n\n<button\n  nxButton=\"primary small\"\n  class=\"uppercase\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open language menu\"\n  type=\"button\"\n>\n  <nx-icon\n    aria-hidden=\"true\"\n    size=\"s\"\n    name=\"globe\"\n    class=\"nx-margin-right-xs\"\n  ></nx-icon>\n  {{ selectedLanguage() }}\n</button>\n\n```\n\n"
      },
      {
        "heading": "multiple selection",
        "level": 4,
        "content": "Use `disableCloseOnSelect` to keep the menu open while the user toggles multiple options. The example below also wraps the items in `<nx-context-menu-group>` to label the section.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuModule,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  computed,\n  signal,\n} from '@angular/core';\n\ntype DamageArea = 'front' | 'driver' | 'rear';\n\n/**\n * @title Context Menu Multi Selectable Example\n */\n@Component({\n  selector: 'context-menu-multi-selectable-example',\n  templateUrl: './context-menu-multi-selectable-example.html',\n  styleUrls: ['./context-menu-multi-selectable-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxContextMenuModule,\n    NxIconComponent,\n    NxButtonComponent,\n    NxContextMenuTriggerDirective,\n  ],\n})\nexport class ContextMenuMultiSelectableExampleComponent {\n  readonly options: { value: DamageArea; label: string }[] = [\n    { value: 'front', label: 'Front window' },\n    { value: 'driver', label: 'Driver Window' },\n    { value: 'rear', label: 'Rear Window' },\n  ];\n\n  readonly selected = signal<Set<DamageArea>>(new Set<DamageArea>(['driver']));\n\n  readonly selectedLabel = computed(() =>\n    this.options\n      .filter((o) => this.selected().has(o.value))\n      .map((o) => o.label)\n      .join(', '),\n  );\n\n  isSelected(value: DamageArea): boolean {\n    return this.selected().has(value);\n  }\n\n  toggle(value: DamageArea): void {\n    const next = new Set(this.selected());\n    if (next.has(value)) {\n      next.delete(value);\n    } else {\n      next.add(value);\n    }\n    this.selected.set(next);\n  }\n}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <nx-context-menu-header>Car damage</nx-context-menu-header>\n  <nx-context-menu-group>\n    @for (o of options; track o.value) {\n      <button\n        nxContextMenuItem\n        selectable=\"multi\"\n        disableCloseOnSelect\n        [selected]=\"isSelected(o.value)\"\n        type=\"button\"\n        (click)=\"toggle(o.value)\"\n      >\n        {{ o.label }}\n      </button>\n    }\n  </nx-context-menu-group>\n</nx-context-menu>\n\n<button\n  nxButton=\"tertiary small\"\n  class=\"uppercase\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open damage menu\"\n  type=\"button\"\n>\n  CAR DAMAGE\n  <nx-icon aria-hidden=\"true\" name=\"chevron-down\" nxIconPositionEnd></nx-icon>\n</button>\n<div class=\"nx-margin-top-s\">Selected: {{ selectedLabel() || 'none' }}</div>\n\n```\n\n\n</div>\n\n"
      },
      {
        "heading": "legacy: hand-rolled selection (deprecated pattern)",
        "level": 3,
        "content": "The examples below predate the built-in `selectable` modes and render their own indicator, role and `aria-checked`. They are kept for reference. **Prefer One Allianz API.** To migrate, drop the manual `<nx-icon name=\"check\">`, `role` and `[attr.aria-checked]` and replace them with `selectable=\"single|multi\"` plus `[selected]`.\n"
      },
      {
        "heading": "single selection (legacy)",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuHeaderComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Context Menu Single Selection Example\n */\n@Component({\n  selector: 'context-menu-selection-example',\n  templateUrl: './context-menu-selection-example.html',\n  styleUrls: ['./context-menu-selection-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuHeaderComponent,\n    NxContextMenuItemComponent,\n    NxIconComponent,\n    NxButtonComponent,\n    NxContextMenuTriggerDirective,\n  ],\n})\nexport class ContextMenuSelectionExampleComponent {\n  selectedLanguage = 'de';\n\n  options = [\n    { label: 'English', value: 'en' },\n    { label: 'Spanish', value: 'es' },\n    { label: 'French', value: 'fr' },\n    { label: 'German', value: 'de' },\n    { label: 'Chinese', value: 'cn' },\n  ];\n}\n\n```\n```html\n<nx-context-menu #menu2=\"nxContextMenu\">\n  <nx-context-menu-header> Language </nx-context-menu-header>\n  @for (o of options; track o) {\n    <button\n      nxContextMenuItem\n      selectable\n      type=\"button\"\n      (click)=\"selectedLanguage = o.value\"\n      role=\"menuitemradio\"\n      [attr.aria-checked]=\"selectedLanguage === o.value ? 'true' : 'false'\"\n    >\n      @if (selectedLanguage === o.value) {\n        <nx-icon aria-hidden=\"true\" name=\"check\" nxIconPositionStart></nx-icon>\n      }\n      {{ o.label }}\n    </button>\n  }\n</nx-context-menu>\n\n<button\n  nxButton=\"primary small\"\n  class=\"uppercase\"\n  [nxContextMenuTriggerFor]=\"menu2\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon\n    aria-hidden=\"true\"\n    size=\"s\"\n    name=\"globe\"\n    class=\"nx-margin-right-xs\"\n  ></nx-icon>\n  {{ selectedLanguage }}\n</button>\n\n```\n\n"
      },
      {
        "heading": "multiple selection (legacy)",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { NxContextMenuModule } from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Context Menu Selection Multiple example\n */\n@Component({\n  selector: 'context-menu-selecti-multiple-example',\n  templateUrl: './context-menu-select-multiple-example.html',\n  styleUrls: ['./context-menu-select-multiple-example.css'],\n  imports: [\n    NxCheckboxGroupComponent,\n    FormsModule,\n    NxCheckboxComponent,\n    NxButtonComponent,\n    NxIconComponent,\n    NxContextMenuModule,\n  ],\n})\nexport class ContextMenuSelectMultipleExampleComponent {\n  options = [\n    { label: 'Front window', value: 'front' },\n    { label: 'Driver Window', value: 'driver' },\n    { label: 'Rear Window', value: 'rear' },\n  ];\n\n  selected = ['driver'];\n}\n\n```\n```html\n<nx-context-menu #menu2=\"nxContextMenu\">\n  <nx-context-menu-header>Car damage</nx-context-menu-header>\n  <nx-checkbox-group [(ngModel)]=\"selected\">\n    <nx-context-menu-item-wrap>\n      @for (o of options; track o) {\n        <div nxContextMenuItem nxContextMenuItemCheckbox disableCloseOnSelect>\n          <nx-checkbox [value]=\"o.value\">{{ o.label }}</nx-checkbox>\n        </div>\n      }\n    </nx-context-menu-item-wrap>\n  </nx-checkbox-group>\n</nx-context-menu>\n\n<button\n  nxButton=\"tertiary small\"\n  class=\"uppercase\"\n  [nxContextMenuTriggerFor]=\"menu2\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  Car damage\n  <nx-icon aria-hidden=\"true\" name=\"chevron-up\" nxIconPositionEnd></nx-icon>\n</button>\n<div class=\"nx-margin-top-s\">Model: {{ selected }}</div>\n\n```\n\n\n"
      }
    ]
  },
  {
    "name": "copytext.md",
    "title": "Copytext",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "sizes",
        "level": 3,
        "content": "\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Size examples\n */\n@Component({\n  selector: 'copytext-sizes-example',\n  templateUrl: './copytext-sizes-example.html',\n  styleUrls: ['./copytext-sizes-example.css'],\n  imports: [NxCopytextComponent],\n})\nexport class CopytextSizesExampleComponent {}\n\n```\n```html\n<table class=\"table typography-demo-table\">\n  <thead>\n    <tr>\n      <th class=\"left\">Variant</th>\n      <th class=\"left\">Size</th>\n      <th class=\"left\">Used for</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"small\" class=\"nx-margin-bottom-2m\">\n          Font size 0.75rem, line height 1rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>small</code></td>\n      <td class=\"left\">legal texts</td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"medium\" class=\"nx-margin-bottom-2m\">\n          Font size 0.875rem, line height 1.25rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>medium</code></td>\n      <td class=\"left\">footnotes</td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"normal\" class=\"nx-margin-bottom-2m\">\n          Font size 1rem, line height 1.5rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>normal (default)</code></td>\n      <td class=\"left\">normal content (default size)</td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"large\">\n          Font size 1.125rem, line height 1.5rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>large</code></td>\n      <td class=\"left\"></td>\n    </tr>\n  </tbody>\n</table>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "a1 styling",
        "level": 3,
        "content": "\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'copytext-a1-example',\n  templateUrl: './copytext-a1-example.html',\n  styleUrls: ['./copytext-a1-example.css'],\n  imports: [NxCopytextComponent],\n})\nexport class CopytextA1ExampleComponent {}\n\n```\n```html\n<table class=\"table typography-demo-table\">\n  <thead>\n    <tr>\n      <th class=\"left\">Variant</th>\n      <th class=\"left\">Size</th>\n      <th class=\"left\">Used for</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"small\" class=\"nx-margin-bottom-2m\">\n          Font size 1rem, line height 1.375rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>small</code></td>\n      <td class=\"left\">legal texts</td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"medium\" class=\"nx-margin-bottom-2m\">\n          Font size 1.125rem, line height 1.5rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>medium (default)</code></td>\n      <td class=\"left\">normal content (default size)</td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <p nxCopytext=\"large\">\n          Font size 1.375rem, line height 1.75rem<br />\n          Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero\n          voluptate explicabo ad iste, ratione cupiditate eaque sapiente odit,\n          accusamus placeat ipsam dolor sint voluptatibus nam? Recusandae\n          accusamus iste sapiente necessitatibus?\n        </p>\n      </td>\n      <td class=\"left\"><code>large</code></td>\n      <td class=\"left\"></td>\n    </tr>\n  </tbody>\n</table>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'copytext-negative-example',\n  templateUrl: './copytext-negative-example.html',\n  styleUrls: ['./copytext-negative-example.css'],\n  imports: [NxCopytextComponent],\n})\nexport class CopytextNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <p nxCopytext=\"medium negative\">\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero voluptate\n    explicabo ad iste, ratione cupiditate eaque sapiente odit, accusamus placeat\n    ipsam dolor sint voluptatibus nam? Recusandae accusamus iste sapiente\n    necessitatibus?\n  </p>\n</div>\n\n```\n\n\n"
      }
    ]
  },
  {
    "name": "data-display.md",
    "title": "Data Display",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "standard",
        "level": 3,
        "content": "\n```ts\nimport {\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standard data display example\n */\n@Component({\n  selector: 'data-display-standard-example',\n  templateUrl: './data-display-standard-example.html',\n  styleUrls: ['./data-display-standard-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n  ],\n})\nexport class DataDisplayStandardExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">Lorem ipsum</nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display>\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <nx-link nxStyle=\"text\">\n          <a href=\"javascript:void(0)\">Textlink</a>\n        </nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <ul nxList>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Address\">\n        <address>Carrer de Sant Lluís 2<br />Barcelona, 08012</address>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display>\n        <nx-data-display-label\n          >Exceptionally long multiline label</nx-data-display-label\n        >\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <nx-link nxStyle=\"text\">\n          <a href=\"javascript:void(0)\">\n            Exceptionally long multiline textlink\n          </a>\n        </nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <ul nxList>\n          <li class=\"nx-margin-bottom-0\">Very long multiline item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "size variations",
        "level": 3,
        "content": "The default size is `m`, configured through `DATA_DISPLAY_DEFAULT_OPTIONS`.\n\nFor a more compact layout, set `size=\"s\"`.\n\n\n```ts\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Condensed data display example\n */\n@Component({\n  selector: 'data-display-condensed-example',\n  templateUrl: './data-display-condensed-example.html',\n  styleUrls: ['./data-display-condensed-example.css'],\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n  ],\n})\nexport class DataDisplayCondensedExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">Lorem ipsum</nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display>\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <nx-link nxStyle=\"text\">\n          <a href=\"javascript:void(0)\">Textlink</a>\n        </nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\" size=\"s\"> Lorem ipsum </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display size=\"s\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\" size=\"s\">\n        <nx-link nxStyle=\"text\">\n          <a href=\"javascript:void(0)\">Textlink</a>\n        </nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\" size=\"s\">\n        <ul nxList=\"xsmall\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "horizontal orientation",
        "level": 3,
        "content": "The orientation of the data display can be changed to horizontal using `orientation=\"horizontal\"` or `orientation=\"horizontal-columns\"` input.\n\nMake sure to treat the `<nx-data-display-label>` element as inline to prevent a space char before the colon.\n\n\n```ts\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Horizontal data display example\n */\n@Component({\n  selector: 'data-display-horizontal-example',\n  templateUrl: './data-display-horizontal-example.html',\n  styleUrls: ['./data-display-horizontal-example.css'],\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n  ],\n})\nexport class DataDisplayHorizontalExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,12,12,6\" class=\"nx-margin-bottom-s\">\n      <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n        Inline layout\n      </h4>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal\">\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display orientation=\"horizontal\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal\">\n        <nx-link nxStyle=\"text\"><a href=\"#\">Textlink</a></nx-link>\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal\">\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,12,12,6\" class=\"nx-margin-bottom-s\">\n      <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n        Column layout\n      </h4>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal-columns\">\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display orientation=\"horizontal-columns\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal-columns\">\n        <nx-link nxStyle=\"text\"><a href=\"#\">Textlink</a></nx-link>\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal-columns\">\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n\nApplication developers can implement responsive layout based on individual needs using the `NxViewportService`.\n\nUse the `labelColumns` input for finer control of the label:value horizontal size ratio when in `orientation=\"horizontal-columns\"` mode.\n\n\n```ts\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n  NxDataDisplayOrientation,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport { AsyncPipe, NgClass } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Responsive data display example\n */\n@Component({\n  selector: 'data-display-responsive-example',\n  templateUrl: './data-display-responsive-example.html',\n  styleUrls: ['./data-display-responsive-example.css'],\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NgClass,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n    AsyncPipe,\n  ],\n})\nexport class DataDisplayResponsiveExampleComponent {\n  readonly mobileViewport$ = this.viewportService.max(\n    NxBreakpoints.BREAKPOINT_MEDIUM,\n    100,\n  );\n\n  readonly orientation$: Observable<NxDataDisplayOrientation> =\n    this.mobileViewport$.pipe(\n      map((mobile) => (mobile ? 'horizontal-columns' : 'vertical')),\n    );\n\n  readonly marginClass$: Observable<string> = this.mobileViewport$.pipe(\n    map((mobile) => (mobile ? '' : 'nx-margin-bottom-s')),\n  );\n\n  constructor(private readonly viewportService: NxViewportService) {}\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display\n        label=\"Label\"\n        [orientation]=\"orientation$ | async\"\n        labelColumns=\"4\"\n      >\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display [orientation]=\"orientation$ | async\" labelColumns=\"4\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display\n        label=\"Label\"\n        [orientation]=\"orientation$ | async\"\n        labelColumns=\"4\"\n      >\n        <nx-link nxStyle=\"text\"><a href=\"#\">Textlink</a></nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display\n        label=\"Label\"\n        [orientation]=\"orientation$ | async\"\n        labelColumns=\"4\"\n      >\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n\n\n</div>\n\n<div class=\"docs-expert-container docs-hide-a1\">\n"
      },
      {
        "heading": "expert: size variations",
        "level": 3,
        "content": "By default, expert data display is downsized to `size=\"medium\"` via `DATA_DISPLAY_DEFAULT_OPTIONS`.\n\nA more condensed version is available using `size=\"small\"`.\n\n\n```ts\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Condensed data display example\n */\n@Component({\n  selector: 'data-display-condensed-example',\n  templateUrl: './data-display-condensed-example.html',\n  styleUrls: ['./data-display-condensed-example.css'],\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n  ],\n})\nexport class DataDisplayCondensedExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">Lorem ipsum</nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display>\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <nx-link nxStyle=\"text\">\n          <a href=\"javascript:void(0)\">Textlink</a>\n        </nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\">\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\" size=\"s\"> Lorem ipsum </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display size=\"s\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\" size=\"s\">\n        <nx-link nxStyle=\"text\">\n          <a href=\"javascript:void(0)\">Textlink</a>\n        </nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" class=\"nx-margin-bottom-s\">\n      <nx-data-display label=\"Label\" size=\"s\">\n        <ul nxList=\"xsmall\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "expert: horizontal orientation",
        "level": 3,
        "content": "The orientation of the data display can be changed to horizontal using `orientation=\"horizontal\"` or `orientation=\"horizontal-columns\"` input.\n\nMake sure to treat the `<nx-data-display-label>` element as inline to prevent a space char before the colon.\n\n\n```ts\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Horizontal data display example\n */\n@Component({\n  selector: 'data-display-horizontal-example',\n  templateUrl: './data-display-horizontal-example.html',\n  styleUrls: ['./data-display-horizontal-example.css'],\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n  ],\n})\nexport class DataDisplayHorizontalExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,12,12,6\" class=\"nx-margin-bottom-s\">\n      <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n        Inline layout\n      </h4>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal\">\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display orientation=\"horizontal\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal\">\n        <nx-link nxStyle=\"text\"><a href=\"#\">Textlink</a></nx-link>\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal\">\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,12,12,6\" class=\"nx-margin-bottom-s\">\n      <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n        Column layout\n      </h4>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal-columns\">\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display orientation=\"horizontal-columns\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal-columns\">\n        <nx-link nxStyle=\"text\"><a href=\"#\">Textlink</a></nx-link>\n      </nx-data-display>\n\n      <nx-data-display label=\"Label\" orientation=\"horizontal-columns\">\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n\nApplication developers can implement responsive layout based on individual needs using the `NxViewportService`.\n\nUse the `labelColumns` input for finer control of the label:value horizontal size ratio when in `orientation=\"horizontal-columns\"` mode.\n\n\n```ts\nimport {\n  DATA_DISPLAY_DEFAULT_OPTIONS,\n  DataDisplayDefaultOptions,\n  NxDataDisplayComponent,\n  NxDataDisplayLabelComponent,\n  NxDataDisplayOrientation,\n} from '@allianz/ng-aquila/data-display';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport { AsyncPipe, NgClass } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nconst options: DataDisplayDefaultOptions = {\n  size: 'medium', // expert mode default size\n};\n\n/**\n * @title Responsive data display example\n */\n@Component({\n  selector: 'data-display-responsive-example',\n  templateUrl: './data-display-responsive-example.html',\n  styleUrls: ['./data-display-responsive-example.css'],\n  providers: [\n    {\n      provide: DATA_DISPLAY_DEFAULT_OPTIONS,\n      useValue: options,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NgClass,\n    NxDataDisplayComponent,\n    NxDataDisplayLabelComponent,\n    NxLinkComponent,\n    NxListComponent,\n    AsyncPipe,\n  ],\n})\nexport class DataDisplayResponsiveExampleComponent {\n  readonly mobileViewport$ = this.viewportService.max(\n    NxBreakpoints.BREAKPOINT_MEDIUM,\n    100,\n  );\n\n  readonly orientation$: Observable<NxDataDisplayOrientation> =\n    this.mobileViewport$.pipe(\n      map((mobile) => (mobile ? 'horizontal-columns' : 'vertical')),\n    );\n\n  readonly marginClass$: Observable<string> = this.mobileViewport$.pipe(\n    map((mobile) => (mobile ? '' : 'nx-margin-bottom-s')),\n  );\n\n  constructor(private readonly viewportService: NxViewportService) {}\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display\n        label=\"Label\"\n        [orientation]=\"orientation$ | async\"\n        labelColumns=\"4\"\n      >\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display [orientation]=\"orientation$ | async\" labelColumns=\"4\">\n        <nx-data-display-label>Custom Label</nx-data-display-label>\n        Lorem ipsum\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display\n        label=\"Label\"\n        [orientation]=\"orientation$ | async\"\n        labelColumns=\"4\"\n      >\n        <nx-link nxStyle=\"text\"><a href=\"#\">Textlink</a></nx-link>\n      </nx-data-display>\n    </div>\n\n    <div nxCol=\"12,12,6,6,3\" [ngClass]=\"(marginClass$ | async) ?? ''\">\n      <nx-data-display\n        label=\"Label\"\n        [orientation]=\"orientation$ | async\"\n        labelColumns=\"4\"\n      >\n        <ul nxList size=\"s\">\n          <li class=\"nx-margin-bottom-0\">List item</li>\n          <li class=\"nx-margin-bottom-0\">List item</li>\n        </ul>\n      </nx-data-display>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "datefield.md",
    "title": "Date Field",
    "category": "components",
    "alias": [
      "datepicker",
      "calendar",
      "date input"
    ],
    "sections": [
      {
        "heading": "module",
        "level": 3,
        "content": "Ensure that you provide a date implementation in addition to the required module:\n\n```ts\nimport { NxDatefieldModule } from '@allianz/ng-aquila/datefield';\nimport { NxNativeDateModule } from '@allianz/ng-aquila/datefield';\n```\n\nThe date field requires the Angular CDK (incl. CSS). Learn [how to enable Angular CDK styles](./documentation/overlay/overview#angular-cdk).\n"
      },
      {
        "heading": "choose your dateadapter",
        "level": 3,
        "content": "You can choose between using the native date, an ISO string adapter that uses [dayjs](https://day.js.org/) under the hood, [Moment.js](https://momentjs.com/), or implement your own. This documentation is using the moment date adapter.\n\n| Module | Date type | Supported locales | Dependencies | Import from |\n| --- | --- | --- | --- | --- |\n| `NxNativeDateModule` | `Date` | en-US | None | `@allianz/ng-aquila/datefield` |\n| `NxMomentDateModule` | `Moment` | [See moment project](https://github.com/moment/moment/tree/develop/src/locale) | [Moment.js](https://momentjs.com/) | `@allianz/ng-aquila/moment-date-adapter` |\n| `NxIsoDateModule` | `string` in ISO format YYYY-MM-DD | [See dayjs project](https://github.com/iamkun/dayjs/tree/dev/src/locale) | [dayjs](https://day.js.org/) | `@allianz/ng-aquila/iso-date-adapter` |\n\nMomentjs ships with every locale thus significantly increasing the bundle size. The iso date adapter uses dayjs where you have to import the locales you want to support manually. So you are under control and have huge potential bundle size savings. With en and de locales you save around 300KB (pre gzip).\n"
      },
      {
        "heading": "iso date adapter",
        "level": 4,
        "content": "The ISO date adapter works solely with YYYY-MM-DD strings. Under the hood it uses dayjs to support formatting, parsing and localization. With this adapter you don't have to create a proper Date, Dayjs or Moment Object first to bind it with ngModel or reactive forms.\n\n```ts\nimport { NxIsoDateModule } from '@allianz/ng-aquila/iso-date-adapter';\n```\n"
      },
      {
        "heading": "native date",
        "level": 4,
        "content": "```ts\nimport { NxNativeDateModule } from '@allianz/ng-aquila/datefield';\n```\n\nThat's an implementation on top of the native Date object in the browser. You have no dependencies but you won't be able to change the parse format. To repeat this: You won't be able to change the parsing, that's why for most use cases you should use the ISO or moment adapter.\n"
      },
      {
        "heading": "moment.js",
        "level": 4,
        "content": "```ts\nimport { NxMomentDateModule } from '@allianz/ng-aquila/moment-date-adapter';\n```\n\nIf you choose to use the moment implementation you have to fulfill the Moment.js peerDependency and import the NxMomentDateModule instead of the NativeDateAdapter.\n"
      },
      {
        "heading": "custom",
        "level": 4,
        "content": "You can implement your own DateAdapter to use other libraries like [date-fns](https://date-fns.org/) or [fecha](https://github.com/taylorhakes/fecha).\n"
      },
      {
        "heading": "setting the selected date",
        "level": 4,
        "content": "The type of values that the datepicker expects depends on the type of DateAdapter provided in your application. The `NativeDateAdapter`, for example, works directly with **plain JavaScript Date objects**. When using the `MomentDateAdapter`, however, the **values will all be Moment.js instances**. With the `IsoDateAdapter` the model is ISO date strings in the format of YYYY-MM-DD.\n\nDepending on the DateAdapter being used, the datepicker may automatically deserialize certain date formats for you as well. For example, both the `NativeDateAdapter` and `MomentDateAdapter` allow [ISO 8601](https://tools.ietf.org/html/rfc3339) strings to be passed to the datepicker and automatically converted to the proper object type. This can be convenient when binding data directly from your backend to the datepicker. However, the datepicker will not accept date strings formatted in user format such as \"1/2/2017\" as this is ambiguous and will mean different things depending on the locale of the browser running the code. You can test which strings are accepted:\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxDatefieldDirective } from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Use strings as inputs\n */\n@Component({\n  selector: 'datefield-iso-example',\n  templateUrl: './datefield-iso-example.html',\n  styleUrls: ['./datefield-iso-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldIsoExampleComponent {\n  inputString = '2020-01-01';\n}\n\n```\n```html\n<nx-formfield label=\"Birthday\">\n  <input nxDatefield nxInput [ngModel]=\"inputString\" />\n  <span nxFormfieldHint>MM/DD/YYYY</span>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n<nx-formfield label=\"Insert ISO string\">\n  <input nxInput [(ngModel)]=\"inputString\" />\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "manipulating dates",
        "level": 3,
        "content": "The adapter interface defines some methods to directly manipulate a date value like `addCalendarDays`, `addCalendarMonths` and `addCalendarYears`. That way you don't need to know how the underlying date object works and especially helps for the Iso Date Adapter to manipulate your date. See the [API](./documentation/datefield/overview) for a list of methods."
      },
      {
        "heading": "examples",
        "level": 3,
        "content": "This is a full example showing the capabilities of this component. It integrates into `nx-formfield` so you have access to floating labels, hints and error messages. Optionally you can provide a Datepicker.\n\nYou need to add the Directives `nxInput` to make the input accessible to the `nx-formfield` and `nxDatefield` to gain access to the actual date handling. The datepicker is provided by creating the `nx-datepicker` component together with a `nx-datepicker-toggle`. You have to tell the date field about the datepicker by connecting it with the `[nxDatepicker]` Input.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldNoteDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\n/**\n * @title Basic date field example\n */\n@Component({\n  selector: 'datefield-basic-example',\n  templateUrl: './datefield-basic-example.html',\n  styleUrls: ['./datefield-basic-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxMessageComponent,\n    NxFormfieldNoteDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldBasicExampleComponent {\n  currentDate: Moment | null = null;\n}\n\n```\n```html\n<nx-formfield label=\"Birthday\">\n  <input\n    nxDatefield\n    nxInput\n    [datepicker]=\"myDatepicker\"\n    [(ngModel)]=\"currentDate\"\n  />\n  <span nxFormfieldHint>MM/DD/YYYY</span>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n\n  <nx-message context=\"info\" nxFormfieldNote>\n    Provide your birthday date. Match the format or use the date picker.\n  </nx-message>\n\n  <nx-datepicker-toggle\n    [for]=\"myDatepicker\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #myDatepicker></nx-datepicker>\n</nx-formfield>\n\n```\n"
      },
      {
        "heading": "disabled",
        "level": 4,
        "content": "You can disable the input as usually. The datepicker toggle will be disabled too.\n\n\n```ts\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Disabled example\n */\n@Component({\n  selector: 'datefield-disabled-example',\n  templateUrl: './datefield-disabled-example.html',\n  styleUrls: ['./datefield-disabled-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxDateRangeComponent,\n    NxSwitcherComponent,\n    FormsModule,\n  ],\n})\nexport class DatefieldDisabledExampleComponent {\n  disabledAttribute = true;\n}\n\n```\n```html\n<nx-switcher [(ngModel)]=\"disabledAttribute\" name=\"templateTest\">\n  disabled\n</nx-switcher>\n\n<nx-formfield label=\"Date of damage\">\n  <input\n    [disabled]=\"disabledAttribute\"\n    nxDatefield\n    nxInput\n    [datepicker]=\"picker1\"\n  />\n\n  <span nxFormfieldHint>MM/DD/YYYY</span>\n  <nx-datepicker-toggle\n    [for]=\"picker1\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #picker1></nx-datepicker>\n</nx-formfield>\n\n<nx-formfield label=\"Disabled Date Range Component\">\n  <nx-date-range\n    [datepicker]=\"formRangeDatePicker\"\n    [disabled]=\"disabledAttribute\"\n    placeholder=\"mm/dd/yyyy\"\n  ></nx-date-range>\n  <nx-datepicker-toggle\n    [for]=\"formRangeDatePicker\"\n    [disabled]=\"disabledAttribute\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #formRangeDatePicker [rangeMode]=\"true\"></nx-datepicker>\n  <span aria-label=\"Please provide date in the US format\" nxFormfieldHint\n    >MM/DD/YYYY - MM/DD/YYYY</span\n  >\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "min & max",
        "level": 4,
        "content": "You can define a range of valid dates with min and max. The given limits are reflected in the datepicker too. If the user manage to input invalid dates you will get the errors `nxDatefieldMax`, `nxDatefieldMin` and `nxDatefieldParse` in your form model.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Example of setting min and max values\n */\n@Component({\n  selector: 'datefield-min-max-example',\n  templateUrl: './datefield-min-max-example.html',\n  styleUrls: ['./datefield-min-max-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    FormsModule,\n    NxDatefieldDirective,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldMinMaxExampleComponent {\n  minDate = moment([2010, 1, 1]);\n  maxDate = moment([2020, 1, 1]);\n}\n\n```\n```html\n<nx-formfield label=\"Date of damage\">\n  <input\n    [min]=\"minDate\"\n    [max]=\"maxDate\"\n    ngModel\n    #dateMinMaxModel=\"ngModel\"\n    nxDatefield\n    nxInput\n    [datepicker]=\"picker2\"\n  />\n\n  <span nxFormfieldHint>MM/DD/YYYY</span>\n  <nx-datepicker-toggle\n    [for]=\"picker2\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #picker2></nx-datepicker>\n\n  @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldMax) {\n    <nx-error nxFormfieldError> The date is too far in the future </nx-error>\n  }\n  @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldMin) {\n    <nx-error nxFormfieldError> The date is too far in the past </nx-error>\n  }\n  @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldParse) {\n    <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n  }\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "date filter",
        "level": 4,
        "content": "Instead of using min/max you can use `nxDatefieldFilter` to create your own set of valid dates. This example only allows the 6th day of each month. The datepicker disables all invalid dates. Validation will give you an error in the field `nxDatefieldFilter`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\n/**\n * @title Date filter example\n */\n@Component({\n  selector: 'datefield-filter-example',\n  templateUrl: './datefield-filter-example.html',\n  styleUrls: ['./datefield-filter-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    FormsModule,\n    NxDatefieldDirective,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldFilterExampleComponent {\n  onlyDaysWith6 = (date: Moment | null) => date?.date() === 6;\n}\n\n```\n```html\n<nx-formfield label=\"Date of damage\">\n  <input\n    [datefieldFilter]=\"onlyDaysWith6\"\n    ngModel\n    #dateFilterModel=\"ngModel\"\n    nxDatefield\n    nxInput\n    [datepicker]=\"picker3\"\n  />\n  <span nxFormfieldHint>MM/DD/YYYY</span>\n  <nx-datepicker-toggle\n    [for]=\"picker3\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #picker3></nx-datepicker>\n\n  @if (dateFilterModel.errors && dateFilterModel.errors.nxDatefieldFilter) {\n    <nx-error nxFormfieldError> That's not the 6th of a month. </nx-error>\n  }\n  @if (dateFilterModel.errors && dateFilterModel.errors.nxDatefieldParse) {\n    <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n  }\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "today button",
        "level": 4,
        "content": "You can enable the Today button by setting `showTodayButton` to `true`. Clicking this button will navigate the calendar to the current month, but it won’t select the current date.\nWe suggest not showing the Today button when today’s date cannot be displayed on the screen (e.g. due to minDate, maxDate, or dateFilter), as it may cause confusion.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\n/**\n * @title Datepicker with today button example\n */\n@Component({\n  selector: 'datefield-today-button-example',\n  templateUrl: './datefield-today-button-example.html',\n  styleUrls: ['./datefield-today-button-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldTodayButtonExampleComponent {\n  currentDate: Moment | null = null;\n}\n\n```\n```html\n<nx-formfield label=\"Birthday\">\n  <input\n    nxDatefield\n    nxInput\n    [datepicker]=\"myDatepicker\"\n    [(ngModel)]=\"currentDate\"\n  />\n  <span nxFormfieldHint>MM/DD/YYYY</span>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n\n  <nx-datepicker-toggle\n    [for]=\"myDatepicker\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker [showTodayButton]=\"true\" #myDatepicker></nx-datepicker>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive example\n */\n@Component({\n  selector: 'datefield-reactive-example',\n  templateUrl: './datefield-reactive-example.html',\n  styleUrls: ['./datefield-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldReactiveExampleComponent {\n  testForm: FormGroup = new FormGroup({\n    date: new FormControl('', {\n      validators: Validators.required,\n    }),\n  });\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-formfield label=\"Birthday\">\n    <input\n      nxDatefield\n      nxInput\n      [datepicker]=\"myDatepicker\"\n      formControlName=\"date\"\n    />\n    <span nxFormfieldHint>MM/DD/YYYY</span>\n\n    <nx-datepicker-toggle\n      [for]=\"myDatepicker\"\n      nxFormfieldSuffix\n    ></nx-datepicker-toggle>\n    <nx-datepicker #myDatepicker></nx-datepicker>\n    @if (testForm.get('date')?.hasError('required')) {\n      <nx-error nxFormfieldError> This field is required </nx-error>\n    }\n    @if (testForm.get('date')?.hasError('nxDatefieldParse')) {\n      <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n    }\n  </nx-formfield>\n</form>\n\n```\n\n"
      },
      {
        "heading": "readonly",
        "level": 4,
        "content": "\n```ts\nimport {\n  DateRange,\n  NxDateAdapter,\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputModule } from '@allianz/ng-aquila/input';\nimport { NxSwitcherModule } from '@allianz/ng-aquila/switcher';\nimport { Component, inject, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\n/**\n * @title Datefield readonly example\n */\n@Component({\n  selector: 'datefield-readonly-example',\n  templateUrl: './datefield-readonly-example.html',\n  styleUrls: ['./datefield-readonly-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxDatepickerToggleComponent,\n    NxDatepickerComponent,\n    NxDatefieldDirective,\n    FormsModule,\n    NxInputModule,\n    NxDateRangeComponent,\n    NxSwitcherModule,\n    NxDatepickerComponent,\n    NxDatepickerToggleComponent,\n    FormsModule,\n  ],\n})\nexport class DatefieldReadonlyExampleComponent {\n  adapter = inject(NxDateAdapter);\n  readOnlyAttribute = true;\n  currentDate = this.adapter.today();\n  dateRange: DateRange<Moment> = {\n    start: this.adapter.today(),\n    end: this.adapter.today(),\n  };\n\n  picker = viewChild.required<NxDatepickerComponent<Moment>>(\n    NxDatepickerComponent,\n  );\n}\n\n```\n```html\n<div class=\"container\">\n  <nx-switcher\n    [(ngModel)]=\"readOnlyAttribute\"\n    name=\"templateTest\"\n    class=\"nx-margin-bottom-2m\"\n  >\n    readonly\n  </nx-switcher>\n\n  <nx-formfield label=\"Date of accident (readonly)\">\n    <input\n      nxDatefield\n      nxInput\n      [readonly]=\"readOnlyAttribute\"\n      [datepicker]=\"myDatepicker\"\n      [(ngModel)]=\"currentDate\"\n    />\n    <span nxFormfieldHint>MM/DD/YYYY</span>\n    <nx-datepicker-toggle\n      [for]=\"myDatepicker\"\n      nxFormfieldSuffix\n    ></nx-datepicker-toggle>\n    <nx-datepicker #myDatepicker></nx-datepicker>\n  </nx-formfield>\n\n  <nx-formfield label=\"Date Range Component (readonly)\">\n    <nx-date-range\n      [datepicker]=\"formRangeDatePicker\"\n      [readonly]=\"readOnlyAttribute\"\n      placeholder=\"mm/dd/yyyy\"\n      [(ngModel)]=\"dateRange\"\n    ></nx-date-range>\n    <nx-datepicker-toggle\n      [for]=\"formRangeDatePicker\"\n      nxFormfieldSuffix\n    ></nx-datepicker-toggle>\n    <nx-datepicker #formRangeDatePicker [rangeMode]=\"true\"></nx-datepicker>\n    <span aria-label=\"Please provide date in the US format\" nxFormfieldHint\n      >MM/DD/YYYY - MM/DD/YYYY</span\n    >\n  </nx-formfield>\n</div>\n\n```\n\n"
      },
      {
        "heading": "plain and with datepicker",
        "level": 4,
        "content": "To create a date range, you can open the datepicker for the end date automatically when a start date is selected.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { CommonModule } from '@angular/common';\nimport { Component, contentChildren, viewChild } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Date range example\n */\n@Component({\n  selector: 'datefield-range-example',\n  templateUrl: './datefield-range-example.html',\n  styleUrls: ['./datefield-range-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxDateRangeComponent,\n    CommonModule,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class DatefieldRangeExampleComponent {\n  dateDirectives = contentChildren(NxDatefieldDirective);\n  dateRangeComponent = viewChild(NxDateRangeComponent);\n\n  dateRange = {\n    start: moment([2020, 2, 5]),\n    end: moment([2020, 5, 1]),\n  };\n  dateRangeModel = {\n    start: moment([2020, 2, 5]),\n    end: moment([2020, 5, 1]),\n  };\n\n  dateRangeForm = new FormBuilder().group({\n    range: [this.dateRangeModel, Validators.required],\n  });\n\n  formWithPicker = new FormBuilder().group({\n    range: [this.dateRange, Validators.required],\n  });\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\"><h5>Date Range</h5></div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form [formGroup]=\"dateRangeForm\">\n        <nx-formfield label=\"Date Range Component\" appearance=\"outline\">\n          <nx-date-range\n            formControlName=\"range\"\n            placeholder=\"mm/dd/yyyy\"\n          ></nx-date-range>\n\n          <nx-error nxFormfieldError appearance=\"text\">\n            @if (dateRangeForm.controls.range.errors?.required) {\n              Required: Please enter a date range.\n            }\n            @if (dateRangeForm.controls.range.errors?.nxDateRangeInvalid) {\n              Invalid: The end date can't be before the start date.\n            }\n            @if (dateRangeForm.controls.range.errors?.nxDateRangeIncomplete) {\n              Please enter a start and an end date.\n            }\n          </nx-error>\n          <span\n            aria-label=\"Please provide date in the US format\"\n            nxFormfieldHint\n            >MM/DD/YYYY - MM/DD/YYYY</span\n          >\n        </nx-formfield>\n      </form>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\">{{ dateRangeForm.value | json }}</div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\" class=\"nx-margin-top-l\">\n      <h5>Date Range with date picker</h5>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form [formGroup]=\"formWithPicker\">\n        <nx-formfield label=\"Date Range Component\">\n          <nx-date-range\n            formControlName=\"range\"\n            [datepicker]=\"formRangeDatePicker\"\n            placeholder=\"mm/dd/yyyy\"\n          ></nx-date-range>\n          <nx-datepicker-toggle\n            [for]=\"formRangeDatePicker\"\n            nxFormfieldSuffix\n          ></nx-datepicker-toggle>\n          <nx-datepicker\n            #formRangeDatePicker\n            [rangeMode]=\"true\"\n            [showTodayButton]=\"true\"\n          ></nx-datepicker>\n          <nx-error nxFormfieldError>\n            Please enter a date range with a start and end date.\n          </nx-error>\n          <span\n            aria-label=\"Please provide date in the US format\"\n            nxFormfieldHint\n            >MM/DD/YYYY - MM/DD/YYYY</span\n          >\n        </nx-formfield>\n      </form>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\">{{ formWithPicker.value | json }}</div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "date range validation",
        "level": 4,
        "content": "It's possible to validate date ranges. As default the component will return\n- `nxDateRangeInvalid` if the start date is after the end date\n- `nxDateRangeIncomplete` if the date range is set only partially\n\nadditionally the following validations can be activated by setting the corresponding component inputs, or applied directly as form control validators using `NxDateRangeValidators`:\n- `[minStartDate]` / `NxDateRangeValidators.minStart` will check if the start date is >= the min start date and will return `nxDateRangeMinStart` if it does not match\n- `[maxStartDate]` / `NxDateRangeValidators.maxStart` will check if the start date is <= the max start date and will return `nxDateRangeMaxStart` if it does not match\n- `[minEndDate]` / `NxDateRangeValidators.minEnd` will check if the end date is >= the min end date and will return `nxDateRangeMinEnd` if it does not match\n- `[maxEndDate]` / `NxDateRangeValidators.maxEnd` will check if the end date is <= the max end date and will return `nxDateRangeMaxEnd` if it does not match\n- `[dateFilter]` / `NxDateRangeValidators.filter` will check if the start and end date match the filter and will return `nxDateRangeStartFilter` and `nxDateRangeEndFilter` respectively\n- `required` will check if a complete value is present and will return a `required` validation error otherwise. Can be set via the `required` input on the component, `Validators.required`, or `NxDateRangeValidators.required` on the form control.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  DateRange,\n  NxDatepickerComponent as NxDatepickerComponent_1,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { CommonModule } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  AbstractControl,\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  ValidatorFn,\n} from '@angular/forms';\nimport moment, { Moment } from 'moment';\n\nfunction notSameMonthValidator(): ValidatorFn {\n  return (control: AbstractControl): { [key: string]: any } | null => {\n    if (!control.value || !control.value.start || !control.value.end) {\n      // will be handled by nx-date-range-component itself\n      return null;\n    }\n\n    const dateRange = control.value as DateRange<Moment>;\n\n    if (\n      dateRange.start?.month() === dateRange.end?.month() &&\n      dateRange.start?.year() === dateRange.end?.year()\n    ) {\n      return { customSameMonthValidationError: true };\n    }\n\n    return null;\n  };\n}\n\n/**\n * @title Date range example\n */\n@Component({\n  selector: 'datefield-range-validation-example',\n  templateUrl: './datefield-range-validation-example.html',\n  styleUrls: ['./datefield-range-validation-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent_1,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxDateRangeComponent,\n    CommonModule,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class DatefieldRangeValidationExampleComponent {\n  dateRange = {\n    start: moment([2020, 2, 5]),\n    end: moment([2020, 5, 1]),\n  };\n\n  formWithPicker = new FormBuilder().group({\n    range: [this.dateRange, notSameMonthValidator()],\n  });\n\n  minStartDate = moment([2020, 3, 1]);\n  maxEndDate = moment([2020, 4, 1]);\n\n  dateFilterWithFirstDay = (date: Moment | null) => date?.date() === 1;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form [formGroup]=\"formWithPicker\">\n        <nx-formfield label=\"Date Range Component\">\n          <nx-date-range\n            formControlName=\"range\"\n            [datepicker]=\"formRangeDatePicker\"\n            placeholder=\"mm/dd/yyyy\"\n            [minStartDate]=\"minStartDate\"\n            [maxEndDate]=\"maxEndDate\"\n            [dateFilter]=\"dateFilterWithFirstDay\"\n          ></nx-date-range>\n          <nx-datepicker-toggle\n            [for]=\"formRangeDatePicker\"\n            nxFormfieldSuffix\n          ></nx-datepicker-toggle>\n          <nx-datepicker\n            #formRangeDatePicker\n            [rangeMode]=\"true\"\n          ></nx-datepicker>\n          <nx-error nxFormfieldError>\n            Errors:\n            <ul>\n              @if (formWithPicker.controls.range.errors?.nxDateRangeMinStart) {\n                <li>The start date has to be after 03/31/2020.</li>\n              }\n              @if (formWithPicker.controls.range.errors?.nxDateRangeMaxEnd) {\n                <li>The end date has to be before 04/30/2020.</li>\n              }\n              @if (\n                formWithPicker.controls.range.errors?.nxDateRangeStartFilter ||\n                formWithPicker.controls.range.errors?.nxDateRangeEndFilter\n              ) {\n                <li>\n                  The start and end date have to be on a first of a month.\n                </li>\n              }\n              @if (\n                formWithPicker.controls.range.errors?.nxDateRangeIncomplete &&\n                formWithPicker.value.range!.start\n              ) {\n                <li>Please enter a end date.</li>\n              }\n              @if (\n                formWithPicker.controls.range.errors?.nxDateRangeIncomplete &&\n                formWithPicker.value.range!.end\n              ) {\n                <li>Please enter a start date.</li>\n              }\n              @if (\n                formWithPicker.controls.range.errors\n                  ?.customSameMonthValidationError\n              ) {\n                <li>Start and end date can't be in the same month.</li>\n              }\n            </ul>\n          </nx-error>\n          <span\n            aria-label=\"Please provide date in the US format\"\n            nxFormfieldHint\n            >MM/DD/YYYY - MM/DD/YYYY</span\n          >\n        </nx-formfield>\n      </form>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\">Range Form Value: {{ formWithPicker.value | json }}</div>\n    <div nxCol=\"12\">\n      Range Form Error: {{ formWithPicker.controls.range.errors | json }}\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "pinned start and end date",
        "level": 4,
        "content": "By setting `[minStartDate]` and `[maxStartDate]` to the same date, you can pin the start date to a single valid value. Similarly, setting `[minEndDate]` and `[maxEndDate]` to the same date pins the end date. When a validation error fires for a pinned field, compare the input values directly in the template to detect this case and show a specific \"must be exactly\" message.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { CommonModule } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Date range pinned date example\n */\n@Component({\n  selector: 'datefield-range-validation-pinned-example',\n  templateUrl: './datefield-range-validation-pinned-example.html',\n  styleUrls: ['./datefield-range-validation-pinned-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxDateRangeComponent,\n    CommonModule,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class DatefieldRangeValidationPinnedExampleComponent {\n  minStartDate = moment([2020, 3, 5]);\n  maxStartDate = moment([2020, 3, 5]);\n  minEndDate = moment([2020, 4, 20]);\n  maxEndDate = moment([2020, 4, 20]);\n\n  formWithPicker = new FormBuilder().group({\n    range: [{ start: this.minStartDate.clone(), end: this.minEndDate.clone() }],\n  });\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form [formGroup]=\"formWithPicker\">\n        <nx-formfield label=\"Date Range Component\">\n          <nx-date-range\n            formControlName=\"range\"\n            [datepicker]=\"formRangeDatePicker\"\n            placeholder=\"mm/dd/yyyy\"\n            [minStartDate]=\"minStartDate\"\n            [maxStartDate]=\"maxStartDate\"\n            [minEndDate]=\"minEndDate\"\n            [maxEndDate]=\"maxEndDate\"\n          ></nx-date-range>\n          <nx-datepicker-toggle\n            [for]=\"formRangeDatePicker\"\n            nxFormfieldSuffix\n          ></nx-datepicker-toggle>\n          <nx-datepicker\n            #formRangeDatePicker\n            [rangeMode]=\"true\"\n          ></nx-datepicker>\n          <nx-error nxFormfieldError>\n            Errors:\n            <ul>\n              <!-- start date -->\n              @if (\n                minStartDate.isSame(maxStartDate, 'day') &&\n                (formWithPicker.controls.range.errors?.nxDateRangeMinStart ||\n                  formWithPicker.controls.range.errors?.nxDateRangeMaxStart)\n              ) {\n                <li>\n                  The start date must be exactly\n                  {{ minStartDate.toDate() | date }}.\n                </li>\n              } @else if (\n                formWithPicker.controls.range.errors?.nxDateRangeMinStart\n              ) {\n                <li>\n                  The start date must be on or after\n                  {{\n                    formWithPicker.controls.range.errors?.nxDateRangeMinStart\n                      .minStart | date\n                  }}.\n                </li>\n              } @else if (\n                formWithPicker.controls.range.errors?.nxDateRangeMaxStart\n              ) {\n                <li>\n                  The start date must be on or before\n                  {{\n                    formWithPicker.controls.range.errors?.nxDateRangeMaxStart\n                      .maxStart | date\n                  }}.\n                </li>\n              }\n\n              <!-- end date -->\n              @if (\n                minEndDate.isSame(maxEndDate, 'day') &&\n                (formWithPicker.controls.range.errors?.nxDateRangeMinEnd ||\n                  formWithPicker.controls.range.errors?.nxDateRangeMaxEnd)\n              ) {\n                <li>\n                  The end date must be exactly {{ minEndDate.toDate() | date }}.\n                </li>\n              } @else if (\n                formWithPicker.controls.range.errors?.nxDateRangeMinEnd\n              ) {\n                <li>\n                  The end date has to be on or after\n                  {{\n                    formWithPicker.controls.range.errors?.nxDateRangeMinEnd\n                      .minEnd | date\n                  }}.\n                </li>\n              } @else if (\n                formWithPicker.controls.range.errors?.nxDateRangeMaxEnd\n              ) {\n                <li>\n                  The end date has to be on or before\n                  {{\n                    formWithPicker.controls.range.errors?.nxDateRangeMaxEnd\n                      .maxEnd | date\n                  }}.\n                </li>\n              }\n              @if (\n                formWithPicker.controls.range.errors?.nxDateRangeIncomplete &&\n                formWithPicker.value.range!.start\n              ) {\n                <li>Please enter a end date.</li>\n              }\n              @if (\n                formWithPicker.controls.range.errors?.nxDateRangeIncomplete &&\n                formWithPicker.value.range!.end\n              ) {\n                <li>Please enter a start date.</li>\n              }\n            </ul>\n          </nx-error>\n          <span\n            aria-label=\"Please provide date in the US format\"\n            nxFormfieldHint\n            >MM/DD/YYYY - MM/DD/YYYY</span\n          >\n        </nx-formfield>\n      </form>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\">Range Form Value: {{ formWithPicker.value | json }}</div>\n    <div nxCol=\"12\">\n      Range Form Error: {{ formWithPicker.controls.range.errors | json }}\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "range parsing & formatting",
        "level": 4,
        "content": "You can make use of same functionality as with the regular [Datefield parsing & formatting](documentation/datefield/overview#parsing-%2526-formatting).\nThis example will except and parse inputs of `MM/DD/YYYY | MM--DD-->YYYY | MMDDYYY | 'MMMM DD, YYYY'`. So <i>03032020</i> is a valid input.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Date range format example\n */\n@Component({\n  selector: 'datefield-range-example',\n  templateUrl: './datefield-range-format-example.html',\n  styleUrls: ['./datefield-range-format-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxDateRangeComponent,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class DatefieldRangeFormatExampleComponent {\n  dateRange = {\n    start: moment([2020, 2, 3]),\n    end: moment([2020, 2, 3]),\n  };\n\n  formWithPicker = new FormBuilder().group({\n    range: [this.dateRange],\n  });\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form [formGroup]=\"formWithPicker\">\n        <nx-formfield label=\"Date Range Component\">\n          <nx-date-range\n            formControlName=\"range\"\n            [datepicker]=\"formRangeDatePicker\"\n            placeholder=\"mm/dd/yyyy\"\n            [parseFormat]=\"[\n              'MM/DD/YYYY',\n              'MM--DD-->YYYY',\n              'MMDDYYYY',\n              'MMMM DD, YYYY',\n            ]\"\n            displayFormat=\"MMMM DD, YYYY\"\n          ></nx-date-range>\n          <nx-datepicker-toggle\n            [for]=\"formRangeDatePicker\"\n            nxFormfieldSuffix\n          ></nx-datepicker-toggle>\n          <nx-datepicker\n            #formRangeDatePicker\n            [rangeMode]=\"true\"\n          ></nx-datepicker>\n          <nx-error nxFormfieldError>\n            @if (formWithPicker.controls.range.errors?.nxDateRangeInvalid) {\n              Invalid: The end date can't be before the start date.\n            } @else {\n              Please enter a date range with a start and an end date.\n            }\n          </nx-error>\n          <span\n            aria-label=\"Please provide date in the US format\"\n            nxFormfieldHint\n            >MM/DD/YYYY - MM/DD/YYYY</span\n          >\n        </nx-formfield>\n      </form>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "datemask",
        "level": 3,
        "content": "The Datemask supports full dates with numeric inputs (e.g. _DD.MM.YYYY_ or _YYYY-MM-DD_).\nThe Datemask can be used with and without the datepicker.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatemaskComponent,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Basic date field example\n */\n@Component({\n  selector: 'datemask-basic-example',\n  templateUrl: './datemask-basic-example.html',\n  styleUrls: ['./datemask-basic-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    FormsModule,\n    NxDatemaskComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxErrorComponent,\n    NxDatepickerToggleComponent,\n    NxDatepickerComponent,\n    NxFormfieldHintDirective,\n    NxFormfieldSuffixDirective,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatemaskBasicExampleComponent {\n  submitForm($event: SubmitEvent) {}\n  //   customDate = moment([2020, 2, 5]);\n  customDate: any = null;\n  customDateExpert = moment([2025, 11, 15]);\n  minDate = moment([2020, 2, 5]);\n  maxDate = moment([2020, 2, 30]);\n  dateFilter(date: moment.Moment | null): boolean {\n    if (date === null) {\n      return false;\n    }\n\n    // exclude weekends\n    if (date.isoWeekday() < 6) {\n      return true;\n    }\n\n    return false;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\"><h5>Date Mask</h5></div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Birthday\">\n        <nx-datemask\n          [min]=\"minDate\"\n          [max]=\"maxDate\"\n          [dateFilter]=\"dateFilter\"\n          [(ngModel)]=\"customDate\"\n          [datepicker]=\"myDatepicker\"\n          format=\"DD.MM.YYYY\"\n          [required]=\"true\"\n          #dateMinMaxModel=\"ngModel\"\n        ></nx-datemask>\n        <span nxFormfieldHint>DD.MM.YYYY</span>\n        @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldMax) {\n          <nx-error nxFormfieldError>\n            The date is too far in the future\n          </nx-error>\n        }\n        @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldMin) {\n          <nx-error nxFormfieldError>\n            The date is too far in the past\n          </nx-error>\n        }\n        @if (\n          dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldParse\n        ) {\n          <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n        }\n        @if (dateMinMaxModel.errors && dateMinMaxModel.errors.required) {\n          <nx-error nxFormfieldError> Birthday is required.</nx-error>\n        }\n\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n      </nx-formfield>\n      Date: {{ customDate }}<br />\n    </div>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Birthday\" appearance=\"outline\">\n        <nx-datemask\n          visualSeperator=\"/\"\n          [(ngModel)]=\"customDateExpert\"\n          format=\"DD.MM.YYYY\"\n          #dateExpertModel=\"ngModel\"\n          [datepicker]=\"outlineDatepicker\"\n        ></nx-datemask>\n        <nx-datepicker-toggle\n          [for]=\"outlineDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #outlineDatepicker></nx-datepicker>\n        <span nxFormfieldHint>DD.MM.YYYY</span>\n        @if (\n          dateExpertModel.errors && dateExpertModel.errors.nxDatefieldParse\n        ) {\n          <nx-error nxFormfieldError appearance=\"text\">\n            Please enter a valid date.\n          </nx-error>\n        }\n      </nx-formfield>\n      Date: {{ customDateExpert }}\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "formats",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatemaskComponent,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Basic date field example\n */\n@Component({\n  selector: 'datemask-format-example',\n  templateUrl: './datemask-format-example.html',\n  styleUrls: ['./datemask-format-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    FormsModule,\n    NxDatemaskComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxErrorComponent,\n    NxMessageComponent,\n    NxDatepickerToggleComponent,\n    NxDatepickerComponent,\n    NxFormfieldHintDirective,\n    NxFormfieldSuffixDirective,\n    NxFormfieldErrorDirective,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DatemaskFormatExampleComponent {\n  date = moment([2020, 2, 5]);\n  format = 'DD.MM.YYYY';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\"><h5>Date Mask Formats</h5></div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,5\">\n      <nx-formfield label=\"Date Format\">\n        <nx-dropdown [(ngModel)]=\"format\">\n          <nx-dropdown-item value=\"DD.MM.YYYY\"\n            ><strong>Common</strong> - DD.MM.YYYY</nx-dropdown-item\n          >\n          <nx-dropdown-item value=\"YYYY-MM-DD\"\n            ><strong>ISO</strong> - YYYY-MM-DD</nx-dropdown-item\n          >\n          <nx-dropdown-item value=\"MM/DD/YYYY\"\n            ><strong>US</strong> - MM/DD/YYYY</nx-dropdown-item\n          >\n          <nx-dropdown-item value=\"MM#YYYY#DD\"\n            ><strong>😵‍💫</strong> - MM#YYYY#DD</nx-dropdown-item\n          >\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Birthday\">\n        <nx-datemask\n          [(ngModel)]=\"date\"\n          [datepicker]=\"myDatepicker\"\n          [format]=\"format\"\n          #dateMinMaxModel=\"ngModel\"\n        ></nx-datemask>\n        <span nxFormfieldHint>{{ format }}</span>\n        @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldMax) {\n          <nx-error nxFormfieldError>\n            The date is too far in the future\n          </nx-error>\n        }\n        @if (dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldMin) {\n          <nx-error nxFormfieldError>\n            The date is too far in the past\n          </nx-error>\n        }\n        @if (\n          dateMinMaxModel.errors && dateMinMaxModel.errors.nxDatefieldParse\n        ) {\n          <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n        }\n\n        <nx-message context=\"info\" nxFormfieldNote>\n          Provide your birthday date. Match the format or use the date picker.\n        </nx-message>\n\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n      </nx-formfield>\n      Date: {{ date }}\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "reactive forms",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatemaskComponent,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { CommonModule } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Reactive Form datemask example\n */\n@Component({\n  selector: 'datemask-reactive-form-example',\n  templateUrl: './datemask-reactive-form-example.html',\n  styleUrls: ['./datemask-reactive-form-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    CommonModule,\n    FormsModule,\n    ReactiveFormsModule,\n    NxDatemaskComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxErrorComponent,\n    NxDatepickerToggleComponent,\n    NxDatepickerComponent,\n    NxFormfieldHintDirective,\n    NxFormfieldSuffixDirective,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatemaskReactiveFormExampleComponent {\n  customDate: any = null;\n  minDate = moment([2020, 2, 5]);\n  maxDate = moment([2020, 2, 30]);\n  dateFilter(date: moment.Moment | null): boolean {\n    if (date === null) {\n      return false;\n    }\n\n    // exclude weekends\n    if (date.isoWeekday() < 6) {\n      return true;\n    }\n\n    return false;\n  }\n\n  datemaskForm = new FormBuilder().group({\n    date: [this.customDate],\n  });\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\"><h5>Date Mask</h5></div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form [formGroup]=\"datemaskForm\">\n        <nx-formfield label=\"Birthday\">\n          <nx-datemask\n            formControlName=\"date\"\n            [min]=\"minDate\"\n            [max]=\"maxDate\"\n            [dateFilter]=\"dateFilter\"\n            [datepicker]=\"myDatepicker\"\n            format=\"DD.MM.YYYY\"\n          ></nx-datemask>\n          <span nxFormfieldHint>DD.MM.YYYY</span>\n          <nx-error nxFormfieldError>\n            @if (\n              datemaskForm.controls.date.errors &&\n              datemaskForm.controls.date.errors.nxDatefieldMax\n            ) {\n              The date is too far in the future\n            }\n            @if (\n              datemaskForm.controls.date.errors &&\n              datemaskForm.controls.date.errors.nxDatefieldMin\n            ) {\n              The date is too far in the past\n            }\n            @if (\n              datemaskForm.controls.date.errors &&\n              datemaskForm.controls.date.errors.nxDatefieldParse\n            ) {\n              Please enter a valid date.\n            }\n            @if (\n              datemaskForm.controls.date.errors &&\n              datemaskForm.controls.date.errors.required\n            ) {\n              Birthday is required.\n            }\n          </nx-error>\n\n          <nx-datepicker-toggle\n            [for]=\"myDatepicker\"\n            nxFormfieldSuffix\n          ></nx-datepicker-toggle>\n          <nx-datepicker #myDatepicker></nx-datepicker>\n        </nx-formfield>\n      </form>\n      Date: {{ datemaskForm.controls.date.value | json }}<br />\n      <br />\n      Date Errors: {{ datemaskForm.controls.date.errors | json }}\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxDatemaskComponent,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Basic date field example\n */\n@Component({\n  selector: 'datemask-disabled-example',\n  templateUrl: './datemask-disabled-example.html',\n  styleUrls: ['./datemask-disabled-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    FormsModule,\n    NxDatemaskComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxDatepickerToggleComponent,\n    NxDatepickerComponent,\n    NxFormfieldHintDirective,\n    NxFormfieldSuffixDirective,\n    NxSwitcherComponent,\n  ],\n})\nexport class DatemaskDisabledExampleComponent {\n  disabledAttribute = true;\n  customDate: any = null;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <nx-switcher [(ngModel)]=\"disabledAttribute\" name=\"templateTest\">\n    disabled\n  </nx-switcher>\n  <div nxRow>\n    <div nxCol=\"12\"><h5>Date Mask disabled</h5></div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Birthday\">\n        <nx-datemask\n          [(ngModel)]=\"customDate\"\n          [datepicker]=\"myDatepicker\"\n          format=\"DD.MM.YYYY\"\n          [required]=\"true\"\n          #dateMinMaxModel=\"ngModel\"\n          [disabled]=\"disabledAttribute\"\n        ></nx-datemask>\n        <span nxFormfieldHint>DD.MM.YYYY</span>\n\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n      </nx-formfield>\n      Date: {{ customDate }}<br />\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "parsing & formatting",
        "level": 3,
        "content": "Both parsing and formatting depend on the capabilities of the chosen DateAdapter. Every date adapter brings it's own defaults so you don't have to set anything by default. To do so anyway you inject the necessary patterns through the injection token `NX_DATE_FORMATS`:\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NX_DATE_FORMATS,\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport moment from 'moment';\n\nexport const MY_FORMATS = {\n  parse: {\n    dateInput: 'LL',\n  },\n  display: {\n    dateInput: 'LL',\n    monthYearLabel: 'MMM YYYY',\n    dateA11yLabel: 'LL',\n    monthYearA11yLabel: 'MMMM YYYY',\n  },\n};\n\n/**\n * @title Custom date formats injection token\n */\n@Component({\n  selector: 'datefield-format-injection-example',\n  templateUrl: './datefield-format-injection-example.html',\n  styleUrls: ['./datefield-format-injection-example.css'],\n  providers: [{ provide: NX_DATE_FORMATS, useValue: MY_FORMATS }],\n  imports: [\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldFormatInjectionExampleComponent {\n  inputString = moment();\n}\n\n```\n```html\n<nx-formfield label=\"Birthday\">\n  <input\n    nxDatefield\n    nxInput\n    [(ngModel)]=\"inputString\"\n    [datepicker]=\"birthdayDatepicker\"\n  />\n\n  <nx-datepicker-toggle\n    [for]=\"birthdayDatepicker\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #birthdayDatepicker></nx-datepicker>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "parsing",
        "level": 4,
        "content": "Parsing converts the input string to the proper model of the date adapter you are using.\n\n**Parsing capabilities of date adapters:** The native date object has only minimal parsing capabilities. There is no parsing format supported so it's simply ignored if any is given.\n\nThe default parsing pattern for the Iso and moment adapter is `L` standing for local aware and translates to `MM/DD/YYYY` for `en`.\n\nPass a pattern of your choice to be used for the internal date heuristics. There are multiple valid formats. If you don't pass one, the current locale format will be the base for the pattern's heuristics.\n\nIn order to prevent any ambiguity with the date given by the user, **parsing is set to strict by default**. You can disable the strict mode with `[nxStrict]='false'`, but be aware that this may lead to situations where the date is not recognized as intended by the user.\n\nThe following example shows two datefields with both strict and non-strict formatting. The `[parseFormat]` is set to MM-DD-YYYY. In your implementation you can also use a list of strings for `[parseFormat]`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NX_DATE_LOCALE,\n  NxDateAdapter,\n  NxDatefieldDirective,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component, Inject, OnDestroy, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport moment, { Moment } from 'moment';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * @title Parsing example\n */\n@Component({\n  selector: 'datefield-parsing-example',\n  templateUrl: './datefield-parsing-example.html',\n  styleUrls: ['./datefield-parsing-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxSwitcherComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldParsingExampleComponent implements OnInit, OnDestroy {\n  strictDate = moment();\n  nonStrictDate = moment();\n  openedStrict = false;\n  openedNonStrict = false;\n  currentLocale = this.nxDateLocale;\n  parseFormat = 'MM/DD/YYYY';\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    readonly nxDateAdapter: NxDateAdapter<Moment>,\n    @Inject(NX_DATE_LOCALE) readonly nxDateLocale: string,\n  ) {}\n\n  ngOnInit(): void {\n    this.nxDateAdapter.localeChanges\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((locale) => {\n        this.currentLocale = locale;\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\">\n      <h6 nxHeadline=\"subsection-xsmall\">Strict parsing:</h6>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Date of damage\">\n        <input\n          nxDatefield\n          nxInput\n          strict=\"true\"\n          [parseFormat]=\"parseFormat\"\n          [(ngModel)]=\"strictDate\"\n          #strictDatefield=\"nxDatefield\"\n        />\n        <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"6\">\n      <nx-switcher [(checked)]=\"openedStrict\" class=\"debug-switcher\"\n        >Debug date</nx-switcher\n      >\n    </div>\n  </div>\n\n  @if (openedStrict) {\n    <div nxRow>\n      <div nxCol=\"12\" class=\"debug-container\">\n        Current Locale: {{ currentLocale }} <br />\n        Formatted value: {{ strictDatefield.currentFormattedDate }} <br />\n        Moment Object: {{ strictDatefield.value }} <br />\n      </div>\n    </div>\n  }\n\n  <div nxRow>\n    <div nxCol=\"12\">\n      <h6 nxHeadline=\"subsection-xsmall\">Non-strict parsing:</h6>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Date of damage\">\n        <input\n          nxDatefield\n          nxInput\n          strict=\"false\"\n          [parseFormat]=\"parseFormat\"\n          [(ngModel)]=\"nonStrictDate\"\n          #nonStrictDatefield=\"nxDatefield\"\n        />\n        <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"6\">\n      <nx-switcher [(checked)]=\"openedNonStrict\" class=\"debug-switcher\"\n        >Debug date</nx-switcher\n      >\n    </div>\n  </div>\n\n  @if (openedNonStrict) {\n    <div nxRow>\n      <div nxCol=\"12\" class=\"debug-container\">\n        Current Locale: {{ currentLocale }} <br />\n        Formatted value: {{ nonStrictDatefield.currentFormattedDate }}<br />\n        Moment Object: {{ nonStrictDatefield.value }} <br />\n      </div>\n    </div>\n  }\n\n  <div nxRow>\n    <div nxCol=\"12\">\n      <nx-formfield label=\"Parse Pattern\">\n        <input nxInput [(ngModel)]=\"parseFormat\" />\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "formatting",
        "level": 4,
        "content": "The formatting of the date is not initiated through user input. Therefore, the field will only trigger the formatting step if you enter a new value through the model. The default for the moment adapter is `L` given through display.dateInput. You can override that value by injecting your own `NxDateFormats` object or locally per datepicker with the property `nxDisplayFormat`. Here is an example: Provide a valid input like 01/01/2018, then click somewhere outside of the input field. The recognized date will be written into the model, now forcing a formatting step on `blur`.\n\nYou will see a change in format. If this format is not covered by your set of parsing functions, the value won't validate when the user tries to change it. That's why we have two parse formats in place: `['MM/DD/YYYY', 'MM--DD-->YYYY']`\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Formatting example\n */\n@Component({\n  selector: 'datefield-formatting-example',\n  templateUrl: './datefield-formatting-example.html',\n  styleUrls: ['./datefield-formatting-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    FormsModule,\n    NxDatefieldDirective,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldFormattingExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Date of damage\">\n  <input\n    #formatDatefield=\"nxDatefield\"\n    [parseFormat]=\"['MM/DD/YYYY', 'MM--DD-->YYYY']\"\n    displayFormat=\"MM--DD-->YYYY\"\n    ngModel\n    nxDatefield\n    nxInput\n    [datepicker]=\"myDatepicker\"\n  />\n\n  <span nxFormfieldHint> MM/DD/YYYY </span>\n  <nx-datepicker-toggle\n    [for]=\"myDatepicker\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #myDatepicker></nx-datepicker>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "start view",
        "level": 3,
        "content": "You can start the datepicker with different views. Use the property `startView` to do so. There are three views: Months (to pick a day, default), Year (to pick a month), MultiYear (to pick a year).\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Start view example\n */\n@Component({\n  selector: 'datefield-startview-example',\n  templateUrl: './datefield-startview-example.html',\n  styleUrls: ['./datefield-startview-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxDatefieldDirective,\n    FormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldStartviewExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Date of damage\">\n  <input nxInput nxDatefield [datepicker]=\"picker1\" ngModel />\n  <nx-datepicker-toggle\n    [for]=\"picker1\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker startView=\"year\" #picker1></nx-datepicker>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "manual control",
        "level": 3,
        "content": "You can manually open or close the date picker by accessing its template reference and calling either `open` or `close`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Manual control example\n */\n@Component({\n  selector: 'datefield-manual-example',\n  templateUrl: './datefield-manual-example.html',\n  styleUrls: ['./datefield-manual-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxDatefieldDirective,\n    FormsModule,\n    NxDatepickerComponent,\n    NxButtonComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldManualExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Date of damage\">\n  <input nxInput nxDatefield [datepicker]=\"picker2\" ngModel />\n  <nx-datepicker #picker2></nx-datepicker>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n<button nxButton=\"primary small\" (click)=\"picker2.open()\" type=\"button\">\n  open / close\n</button>\n\n```\n\n"
      },
      {
        "heading": "date localization",
        "level": 4,
        "content": "The ability to localize the datepicker **depends on the chosen date implementation**. The native date adapter supports only en-US and you can't change the values. The Iso and moment adapters support a variety of locales.\n\nThe Datepicker falls back on the Application token `LOCALE_ID` and can be overwritten through the `NX_DATE_LOCALE` if necessary:\n\n```ts\n@NgModule({\n    providers: [{ provide: NX_DATE_LOCALE, useValue: 'en-GB' }],\n})\nexport class MyApp {}\n```\n\nIf you want to **change the locale during runtime** you can use the `setLocale()` method of the used DateAdapter implementation. This is shown in the following example.\n\n**Please note** that the locale setting does not change all labels and texts in the datepicker, only the date related parts are translated. You need to provide your own translation for texts like the header. You can find an example in the next chapter [Localizing labels and messages](./documentation/datefield/overview#localizing-labels-and-messages).\n\nFrom Angular v.17 each locale needs to be imported separately with moment.js:\n```ts\nimport 'moment/locale/de';\nimport 'moment/locale/ja';\nimport 'moment/locale/ar';\n```\n\n```ts\nimport 'moment/locale/de';\nimport 'moment/locale/ja';\nimport 'moment/locale/ar';\n\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NX_DATE_LOCALE,\n  NxDateAdapter,\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component, Inject, OnDestroy, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * @title Localizing date example\n */\n@Component({\n  selector: 'datefield-localize-date-example',\n  templateUrl: './datefield-localize-date-example.html',\n  styleUrls: ['./datefield-localize-date-example.css'],\n  imports: [\n    NxMessageComponent,\n    FormsModule,\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldLocalizeDateExampleComponent\n  implements OnInit, OnDestroy\n{\n  currentDate: Moment | null = null;\n  currentLocale = this.nxDateLocale;\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    readonly nxDateAdapter: NxDateAdapter<Moment>,\n    @Inject(NX_DATE_LOCALE) readonly nxDateLocale: string,\n  ) {}\n\n  ngOnInit(): void {\n    this.nxDateAdapter.localeChanges\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((locale) => {\n        this.currentLocale = locale;\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  changeLocal(value: string) {\n    this.nxDateAdapter.setLocale(value);\n  }\n}\n\n```\n```html\n<nx-message context=\"info\" class=\"nx-margin-bottom-xs\">\n  Try changing the locale and look how the Datefield display format and parsing\n  and the labels in the Datepicker calendar are changing.<br />\n\n  <select\n    [(ngModel)]=\"currentLocale\"\n    (ngModelChange)=\"changeLocal($event)\"\n    name=\"currentLocale\"\n  >\n    <option value=\"de-DE\">de-DE</option>\n    <option value=\"en-US\">en-US</option>\n    <option value=\"ar-EG\">ar-EG</option>\n    <option value=\"ja\">ja</option>\n  </select>\n</nx-message>\n\n<nx-formfield label=\"Date of damage\">\n  <input\n    nxDatefield\n    nxInput\n    [datepicker]=\"myDatepicker\"\n    [(ngModel)]=\"currentDate\"\n  />\n  <nx-datepicker-toggle\n    [for]=\"myDatepicker\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #myDatepicker></nx-datepicker>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "localizing labels and messages",
        "level": 4,
        "content": "The different texts and strings in the datepicker (like the button \"Choose a date\") can be translated by implementing a subclass of `NxDatepickerIntl` and provide it in your (root) module. Here is an example where we changed the default \"Choose month and year\" text to \"Choose button\".\n\n**Important**: If you use your own label texts, please make sure that you also provide all the properties that are needed for screen reader users. These are also shown in the following example.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerIntl,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component, Injectable } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\n@Injectable()\nexport class MyIntl extends NxDatepickerIntl {\n  calendarLabel = 'My Calendar';\n  openCalendarLabel = 'Open my calendar';\n  prevMonthLabel = 'My previous month';\n  nextMonthLabel = 'My next month';\n  prevYearLabel = 'My previous year';\n  nextYearLabel = 'My next year';\n  prevMultiYearLabel = 'My previous 20 years';\n  nextMultiYearLabel = 'My next 20 years';\n  switchToMonthViewLabel = 'Choose a special date';\n  switchToMultiYearViewLabel = 'Choose button';\n}\n\n/**\n * @title Localizing labels and messages example\n */\n@Component({\n  selector: 'datefield-localize-texts-example',\n  templateUrl: './datefield-localize-texts-example.html',\n  styleUrls: ['./datefield-localize-texts-example.css'],\n  providers: [{ provide: NxDatepickerIntl, useClass: MyIntl }],\n  imports: [\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldLocalizeTextsExampleComponent {\n  currentDate: Moment | null = null;\n}\n\n```\n```html\n<nx-formfield label=\"Date of damage\">\n  <input\n    nxDatefield\n    nxInput\n    [datepicker]=\"myDatepicker\"\n    [(ngModel)]=\"currentDate\"\n  />\n  <nx-datepicker-toggle\n    [for]=\"myDatepicker\"\n    nxFormfieldSuffix\n  ></nx-datepicker-toggle>\n  <nx-datepicker #myDatepicker></nx-datepicker>\n  <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The provider `NxDatepickerIntl` contains various strings to provide labels for screen readers. You have to provide a proper translation for each of your locales. See the example in the [Localizing labels and messages](./documentation/datefield/overview#localizing-labels-and-messages) chapter above.\n\nThe provider includes a `changes` subject that you can use to notify dependent components about changes of the strings during runtime.\n\nRegarding Keyboard navigation see the following chapter.\n"
      },
      {
        "heading": "keyboard navigation",
        "level": 3,
        "content": "Each view of the calendar (month, year, multiYear) supports a wide range of key shortcuts. Here is an overview.\n"
      },
      {
        "heading": "keyboard shortcuts",
        "level": 4,
        "content": "The date field supports the following keyboard shortcuts:\n\n| Shortcut             | Action                                              |\n| -------------------- | --------------------------------------------------- |\n| `ALT` + `DOWN_ARROW` | Open the calendar pop-up (if date field is focused) |\n| `ENTER`              | Open the calendar pop-up (if date icon is focused)  |\n| `ESCAPE`             | Close the calendar pop-up                           |\n\nIn month view:\n\n| Shortcut            | Action                                   |\n| ------------------- | ---------------------------------------- |\n| `LEFT_ARROW`        | Go to previous day                       |\n| `RIGHT_ARROW`       | Go to next day                           |\n| `UP_ARROW`          | Go to same day in the previous week      |\n| `DOWN_ARROW`        | Go to same day in the next week          |\n| `HOME`              | Go to the first day of the month         |\n| `END`               | Go to the last day of the month          |\n| `PAGE_UP`           | Go to the same day in the previous month |\n| `ALT` + `PAGE_UP`   | Go to the same day in the previous year  |\n| `PAGE_DOWN`         | Go to the same day in the next month     |\n| `ALT` + `PAGE_DOWN` | Go to the same day in the next year      |\n| `ENTER`,`SPACE`     | Select current date                      |\n\nIn year view:\n\n| Shortcut            | Action                                    |\n| ------------------- | ----------------------------------------- |\n| `LEFT_ARROW`        | Go to previous month                      |\n| `RIGHT_ARROW`       | Go to next month                          |\n| `UP_ARROW`          | Go up a row (back 4 months)               |\n| `DOWN_ARROW`        | Go down a row (forward 4 months)          |\n| `HOME`              | Go to the first month of the year         |\n| `END`               | Go to the last month of the year          |\n| `PAGE_UP`           | Go to the same month in the previous year |\n| `ALT` + `PAGE_UP`   | Go to the same month 10 years back        |\n| `PAGE_DOWN`         | Go to the same month in the next year     |\n| `ALT` + `PAGE_DOWN` | Go to the same month 10 years forward     |\n| `ENTER`             | Select current month                      |\n\nIn multiYear view:\n\n| Shortcut            | Action                                    |\n| ------------------- | ----------------------------------------- |\n| `LEFT_ARROW`        | Go to previous year                       |\n| `RIGHT_ARROW`       | Go to next year                           |\n| `UP_ARROW`          | Go up a row (back 4 years)                |\n| `DOWN_ARROW`        | Go down a row (forward 4 years)           |\n| `HOME`              | Go to the first year in the current range |\n| `END`               | Go to the last year in the current range  |\n| `PAGE_UP`           | Go back 20 years                          |\n| `ALT` + `PAGE_UP`   | Go back 200 years                         |\n| `PAGE_DOWN`         | Go forward 20 years                       |\n| `ALT` + `PAGE_DOWN` | Go forward 200 years                      |\n| `ENTER`             | Select current year                       |\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: remove focus from datepicker toggle",
        "level": 4,
        "content": "The datepicker toggle can be focused via keyboard navigation (by pressing `TAB`). For expert this can be switched off with setting `[tabindex]=\"-1\"` on `<nx-datepicker-toggle/>`, so that only the input field is focusable. The calendar can still be opened by clicking on the calendar icon or by pressing `ALT` + `DOWN_ARROW`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\n/**\n * @title Datepicker toggle focus example\n */\n@Component({\n  selector: 'datefield-toggle-focus-example',\n  templateUrl: './datefield-toggle-focus-example.html',\n  styleUrls: ['./datefield-toggle-focus-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldToggleFocusExampleComponent {\n  date1: Moment | null = null;\n  date2: Moment | null = null;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <h4 nxHeadline=\"subsection-xsmall\">With focus on toggle (default)</h4>\n      <nx-formfield label=\"Date\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker1\"\n          [(ngModel)]=\"date1\"\n        />\n        <span nxFormfieldHint>MM/DD/YYYY</span>\n\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker1\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker1></nx-datepicker>\n        <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <h4 nxHeadline=\"subsection-xsmall\">Without focus on toggle</h4>\n      <nx-formfield label=\"Date\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker2\"\n          [(ngModel)]=\"date2\"\n        />\n        <span nxFormfieldHint>MM/DD/YYYY</span>\n\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker2\"\n          tabindex=\"-1\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker2></nx-datepicker>\n        <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "You can use the `DATEPICKER_DEFAULT_OPTIONS` injection token if you want to set `[tabindex]` property on `<nx-datepicker-toggle>` component globally. Using `DATEPICKER_DEFAULT_OPTIONS` you can set `toggleIconTabindex` property that modifies `tabindex`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  DATEPICKER_DEFAULT_OPTIONS,\n  DatepickerDefaultOptions,\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\nconst datepickerExpertOptions: DatepickerDefaultOptions = {\n  toggleIconTabindex: -1,\n};\n\n/**\n * @title Datepicker injection token\n */\n@Component({\n  selector: 'datefield-injection-token-example',\n  templateUrl: './datefield-injection-token-example.html',\n  styleUrls: ['./datefield-injection-token-example.css'],\n  providers: [\n    {\n      provide: DATEPICKER_DEFAULT_OPTIONS,\n      useValue: datepickerExpertOptions,\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldInjectionTokenExampleComponent {\n  date1: Moment | null = null;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <h4 nxHeadline=\"subsection-xsmall\">No focus on toggle (default)</h4>\n      <nx-formfield label=\"Date\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker1\"\n          [(ngModel)]=\"date1\"\n        />\n        <span nxFormfieldHint>MM/DD/YYYY</span>\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker1\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker1></nx-datepicker>\n        <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\nIf you want to use a custom scroll strategy, you can use the `NX_DATEPICKER_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NX_DATEPICKER_SCROLL_STRATEGY,\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Moment } from 'moment';\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'datefield-scroll-strategy-provider-example',\n  templateUrl: './datefield-scroll-strategy-provider-example.html',\n  styleUrls: ['./datefield-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_DATEPICKER_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDatefieldDirective,\n    NxInputDirective,\n    FormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class DatefieldScrollStrategyProviderExampleComponent {\n  currentDate: Moment | null = null;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Birthday\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker\"\n          [(ngModel)]=\"currentDate\"\n        />\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n        <nx-error nxFormfieldError> Please enter a valid date. </nx-error>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\nAlternatively, the `NX_DATEPICKER_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      }
    ]
  },
  {
    "name": "divider.md",
    "title": "Divider",
    "category": "components",
    "alias": [
      "separator"
    ],
    "sections": [
      {
        "heading": "divider",
        "level": 3,
        "content": "The `<nx-divider>` allows you to visually separate content with a horizontal line.\n\nImport it with\n\n<p class=\"docs-api-module-import\">\n  <code style=\"white-space: normal\">\n    <span class=\"docs-api-module-import__import-span\">import</span>\n    { NxDividerModule }\n    <span class=\"docs-api-module-import__from-span\">from</span>\n    <span class=\"docs-api-module-import__path-span\">'@allianz/ng-aquila/divider'</span>;\n  </code>\n</p>\n\nThe module is auto-imported when you use the [context-menu](./documentation/context-menu) module.\n\n\n```ts\nimport { NxDividerComponent } from '@allianz/ng-aquila/divider';\nimport { Component } from '@angular/core';\n\n/** @title Divider example */\n@Component({\n  selector: 'divider-example',\n  templateUrl: './divider-example.html',\n  styleUrls: ['./divider-example.css'],\n  imports: [NxDividerComponent],\n})\nexport class DividerExampleComponent {}\n\n```\n```html\n<p>Section above the divider.</p>\n<nx-divider />\n<p>Section below the divider.</p>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "dropdown.md",
    "title": "Dropdown",
    "category": "components",
    "alias": [
      "select",
      "multi select",
      "combobox",
      "picker"
    ],
    "sections": [
      {
        "heading": "standard dropdown",
        "level": 3,
        "content": "The dropdown wrapped by a formfield in different states is displayed in the following example.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standard dropdown example\n */\n@Component({\n  selector: 'dropdown-standard-example',\n  templateUrl: './dropdown-standard-example.html',\n  styleUrls: ['./dropdown-standard-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownStandardExampleComponent {\n  options = [\n    'BMW',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n\n  toText(value: string): string | null {\n    return value ? value.toUpperCase() : null;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow class=\"nx-margin-bottom-m\">\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown [valueFormatter]=\"toText\">\n          @for (option of options; track option) {\n            <nx-dropdown-item [value]=\"option\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Preselected Dropdown\">\n        <nx-dropdown value=\"BMW\">\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Readonly Dropdown\">\n        <nx-dropdown value=\"BMW\" readonly>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Disabled Dropdown\">\n        <nx-dropdown value=\"BMW\" disabled>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "simple binding",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Simple binding example\n */\n@Component({\n  selector: 'dropdown-simple-binding-example',\n  templateUrl: './dropdown-simple-binding-example.html',\n  styleUrls: ['./dropdown-simple-binding-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxButtonComponent,\n  ],\n})\nexport class DropdownSimpleBindingExampleComponent {\n  demoData = [\n    'BMW',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n\n  simpleBinding = 'Audi';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown #simpleDropdown [(value)]=\"simpleBinding\">\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12\">\n      <p class=\"nx-margin-y-0\">Model value is: {{ simpleDropdown.value }}</p>\n      <p class=\"nx-margin-top-0\">\n        Try to set the value to BMW, Audi, Volvo or Mini.\n      </p>\n      <div class=\"update-container\">\n        <input #simpleInput type=\"text\" />\n        <button\n          nxButton=\"primary small\"\n          class=\"nx-margin-bottom-0\"\n          (click)=\"simpleBinding = simpleInput.value\"\n          type=\"button\"\n        >\n          Update\n        </button>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "template-driven form with ngmodel",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template driven example\n */\n@Component({\n  selector: 'dropdown-template-driven-example',\n  templateUrl: './dropdown-template-driven-example.html',\n  styleUrls: ['./dropdown-template-driven-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    FormsModule,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class DropdownTemplateDrivenExampleComponent {\n  ngModelBinding = 'Mini';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <form>\n        <nx-formfield label=\"Car brand\">\n          <nx-dropdown\n            #ngModelDropdown\n            name=\"test\"\n            [(ngModel)]=\"ngModelBinding\"\n          >\n            <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n          </nx-dropdown>\n        </nx-formfield>\n      </form>\n      <p class=\"nx-margin-y-0\">Current Value: {{ ngModelDropdown.value }}</p>\n      <p class=\"nx-margin-y-0\">Model: {{ ngModelBinding | json }}</p>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12\">\n      <p class=\"nx-margin-top-0 nx-margin-bottom-xs\">\n        Try to set the value to BMW, Audi, Volvo or Mini.\n      </p>\n      <div class=\"update-container\">\n        <input #templateInput type=\"text\" />\n        <button\n          nxButton=\"primary small\"\n          class=\"nx-margin-bottom-0\"\n          (click)=\"ngModelBinding = templateInput.value\"\n          type=\"button\"\n        >\n          Update\n        </button>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldNoteDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive example\n */\n@Component({\n  selector: 'dropdown-reactive-example',\n  templateUrl: './dropdown-reactive-example.html',\n  styleUrls: ['./dropdown-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxFormfieldNoteDirective,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class DropdownReactiveExampleComponent {\n  form = new FormBuilder().group({\n    dropdown: ['BMW', Validators.required],\n  });\n\n  patch(value: string) {\n    this.form.patchValue({ dropdown: value });\n  }\n}\n\n```\n```html\n<form [formGroup]=\"form\">\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,12,6\">\n        <nx-formfield label=\"Car brand\">\n          <nx-dropdown formControlName=\"dropdown\">\n            <nx-dropdown-item>CLEAR VALUE</nx-dropdown-item>\n            <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n          </nx-dropdown>\n          <nx-error nxFormfieldError> Please select a value </nx-error>\n          <nx-message context=\"info\" nxFormfieldNote>\n            This field is required\n          </nx-message>\n        </nx-formfield>\n      </div>\n    </div>\n\n    <div nxRow>\n      <div nxCol=\"12\">\n        <p class=\"nx-margin-y-0\">Form value: {{ form.value | json }}</p>\n        <p class=\"nx-margin-y-0\">Form status: {{ form.status | json }}</p>\n\n        <p class=\"nx-margin-top-0\">\n          Try to set the value to BMW, Audi, Volvo or Mini.\n        </p>\n        <div class=\"update-container\">\n          <input #reactiveInput type=\"text\" />\n          <button\n            nxButton=\"primary small\"\n            class=\"nx-margin-bottom-0\"\n            (click)=\"patch(reactiveInput.value)\"\n            type=\"button\"\n          >\n            Update\n          </button>\n        </div>\n      </div>\n    </div>\n  </div>\n</form>\n\n```\n\n"
      },
      {
        "heading": "virtual scrolling",
        "level": 3,
        "content": "For large lists you can enable virtual-scrolling by using the `options` array instead of content-projection and setting the `virtualScroll` property. Please note: that means the items are only eventually rendered in the DOM, especially for testing you might need to scroll manually to an index or a value, before you can query the DOM for it. The dropdown exposes `scrollToIndex(index)` and `scrollToValue(value)` methods for that purpose.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownOption,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Virtual Viewport example\n */\n@Component({\n  selector: 'dropdown-virtual-viewport-example',\n  templateUrl: './dropdown-virtual-viewport-example.html',\n  styleUrls: ['./dropdown-virtual-viewport-example.css'],\n  imports: [NxDropdownComponent, NxFormfieldComponent, FormsModule],\n})\nexport class DropdownVirtualViewportExampleComponent {\n  readonly options: NxDropdownOption[] = Array.from(\n    { length: 10000 },\n    (_, i) => ({\n      value: i,\n      label: `${i + 1} - ${this.randomString()}`,\n    }),\n  );\n\n  private randomString(): string {\n    return Math.random().toString(36).substring(2, 10);\n  }\n\n  selectedValue: number | null = null;\n}\n\n```\n```html\n<nx-formfield label=\"Select an option\">\n  <nx-dropdown\n    [(value)]=\"selectedValue\"\n    [options]=\"options\"\n    [virtualScroll]=\"true\"\n  ></nx-dropdown>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "options of any shape",
        "level": 4,
        "content": "By default, the `options` array contains `NxDropdownOption` objects with a `value`, an optional `label` and an optional `disabled`. For other shapes, set `selectValue`, `selectLabel` and `selectDisabled` to read the value, the label and the disabled state of an option. Like in the multi select, they accept a property name or a function. An empty `selectValue` uses the whole option as value. Options without a label display their formatted value.\n\n```html\n<nx-dropdown [options]=\"countries\" selectValue=\"code\" selectLabel=\"name\"></nx-dropdown>\n```\n"
      },
      {
        "heading": "custom item template",
        "level": 4,
        "content": "When using the `options` array (with or without virtual scroll), you can customize how each item renders by providing a template with the `#nxDropdownItemTemplate` reference. The template context provides:\n\n- `$implicit` - The option value (use `let-{name}` to access it)\n- `index` - The index in the filtered options array\n- `selected` - Whether the item is currently selected\n- `option` - The option as passed to `options`\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownOption,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface CarOption {\n  id: string;\n  brand: string;\n  icon: string;\n}\n\n/**\n * @title Custom item template example\n */\n@Component({\n  selector: 'dropdown-item-template-example',\n  templateUrl: './dropdown-item-template-example.html',\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxIconComponent,\n    FormsModule,\n  ],\n  styles: `\n    .custom-item {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n    }\n    .custom-item nx-icon {\n      font-size: 16px;\n    }\n  `,\n})\nexport class DropdownItemTemplateExampleComponent {\n  cars: NxDropdownOption[] = [\n    { value: { id: '1', brand: 'BMW', icon: 'product-car' }, label: 'BMW' },\n    { value: { id: '2', brand: 'Audi', icon: 'product-car' }, label: 'Audi' },\n    { value: { id: '3', brand: 'Volvo', icon: 'product-car' }, label: 'Volvo' },\n    { value: { id: '4', brand: 'Mini', icon: 'product-car' }, label: 'Mini' },\n  ];\n\n  selectedCar: CarOption | null = null;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Select a car\">\n        <nx-dropdown [options]=\"cars\" [(ngModel)]=\"selectedCar\">\n          <ng-template #nxDropdownItemTemplate let-car>\n            <div class=\"custom-item\">\n              <nx-icon [name]=\"car.icon\"></nx-icon>\n              <span>{{ car.brand }}</span>\n            </div>\n          </ng-template>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "data-driven (lazy rendering)",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  This approach is not recommend anymore. If you have a large dataset use <a href=\"./documentation/dropdown/overview#virtual-scrolling\">virtual scrolling</a> instead.\n</div>\n\nThe options can also be passed to the dropdown using the `options` input. Dropdowns with many options benefit from this approach, as they will only be rendered when the dropdown is open.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownOption,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standard lazy example\n */\n@Component({\n  selector: 'dropdown-lazy-example',\n  templateUrl: './dropdown-lazy-example.html',\n  styleUrls: ['./dropdown-lazy-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n  ],\n})\nexport class DropdownLazyExampleComponent {\n  items: NxDropdownOption[];\n\n  constructor() {\n    this.items = [];\n    for (let i = 1; i <= 500; i++) {\n      this.items.push({\n        label: `Item ${i}`,\n        value: i,\n      });\n    }\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Lazy options\">\n        <nx-dropdown [options]=\"items\"></nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "placeholder",
        "level": 3,
        "content": "It is possible to show a placeholder instead of the floating label. The placeholder will only be shown if no option is selected.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Dropdown with placeholder example\n */\n@Component({\n  selector: 'dropdown-placeholder-example',\n  templateUrl: './dropdown-placeholder-example.html',\n  styleUrls: ['./dropdown-placeholder-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownPlaceholderExampleComponent {\n  demoData = [\n    'BMW',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow style=\"align-items: flex-end\">\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown placeholder=\"Choose a car brand\">\n          @for (brand of demoData; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Car brand\" appearance=\"outline\">\n        <nx-dropdown placeholder=\"Choose a car brand\">\n          @for (brand of demoData; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "panelgrow and panelmaxwidth",
        "level": 3,
        "content": "With `panelGrow` set to `true` the overlay can grow larger than the trigger and grows with the longest label.\nWith `panelGrow` set to `false` the overlay is the size of the trigger. With `panelMaxWidth` a max-width can be set, `panelMaxWidth` accepts a number for pixel values or a string for any css value.\n\n\n```ts\nimport { NxDropdownModule } from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldModule } from '@allianz/ng-aquila/formfield';\nimport { NxGridModule } from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title PanelGrow and panelMaxWidth dropdown example\n */\n@Component({\n  selector: 'dropdown-panelgrow-example',\n  templateUrl: './dropdown-panelgrow-example.html',\n  styleUrls: ['./dropdown-panelgrow-example.css'],\n  imports: [NxGridModule, NxFormfieldModule, NxDropdownModule],\n})\nexport class DropdownPanelgrowExampleComponent {\n  options = [\n    'BMW',\n    'Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua, sed eiusmod tempor incidunt ut.',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow class=\"nx-margin-bottom-m\">\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"Without panelGrow\">\n        <nx-dropdown [panelGrow]=\"false\" value=\"BMW\">\n          @for (option of options; track option) {\n            <nx-dropdown-item [value]=\"option\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"With panelGrow\">\n        <nx-dropdown [panelGrow]=\"true\" value=\"BMW\">\n          @for (option of options; track option) {\n            <nx-dropdown-item [value]=\"option\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"PanelGrow with a max-width\">\n        <nx-dropdown [panelGrow]=\"true\" [panelMaxWidth]=\"500\" value=\"BMW\">\n          @for (option of options; track option) {\n            <nx-dropdown-item [value]=\"option\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n"
      },
      {
        "heading": "rendering of dropdown-items",
        "level": 3,
        "content": "The items inside the dropdown can be rendered either by `[valueFormatter]` or by ng-content. If no ng-content is provided, the `[value]` in combination with `[valueFormatter]` will be used to render the item content (left). This example also shows the usage of `[valueFormatter]`. It is possible to transform any `[value]` into the rendered state (here: \"uppercase\").\n\nIf there is ng-content projected by nx-dropdown-item, this content will be used by the dropdown to display the items (middle). The library implements a fallback if you do not provide `[valueFormatter]` and ng-content. In this case, `[value]` will be used by .toString() as value for the item (right).\n\nFor more advanced content see the first dropdown where `[verticalAlignCheckmark]` is used to center the checkmark vertically.\n\n\n```ts\nimport { NxAvatarModule } from '@allianz/ng-aquila/avatar';\nimport {\n  NxDropdownClosedLabelDirective,\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Examples for rendering items\n */\n@Component({\n  selector: 'dropdown-rendering-items-example',\n  templateUrl: './dropdown-rendering-items-example.html',\n  styleUrls: ['./dropdown-rendering-items-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxAvatarModule,\n    FormsModule,\n    NxDropdownClosedLabelDirective,\n  ],\n})\nexport class DropdownRenderingItemsExampleComponent {\n  value: any;\n\n  demoData = [\n    { id: '1', avatar: 'B', brand: 'BMW', year: '1983' },\n    { id: '2', avatar: 'A', brand: 'Audi', year: '2009' },\n    { id: '3', avatar: 'V', brand: 'VW', year: '2024' },\n    { id: '4', avatar: 'T', brand: 'Tesla', year: '2004' },\n    { id: '5', avatar: 'L', brand: 'Lada', year: '2005' },\n    { id: '6', avatar: 'O', brand: 'Opel', year: '2013' },\n    { id: '7', avatar: 'F', brand: 'Fiat', year: '2017' },\n    { id: '8', avatar: 'F', brand: 'Ford', year: '1979' },\n    { id: '9', avatar: 'K', brand: 'Kia', year: '2000' },\n    { id: '10', avatar: 'T', brand: 'Toyota', year: '2021' },\n    { id: '11', avatar: 'F', brand: 'Ferrari', year: '2023' },\n  ];\n\n  toText(value: string): string | null {\n    return value ? value.toUpperCase() : null;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown\n          [valueFormatter]=\"toText\"\n          verticalAlignCheckmark=\"center\"\n          [(ngModel)]=\"value\"\n        >\n          <ng-template nxClosedLabel>\n            <span>{{ value?.brand }}</span>\n          </ng-template>\n          @for (car of demoData; track car.id) {\n            <nx-dropdown-item [value]=\"car\">\n              <div style=\"display: flex; align-items: center\">\n                <div nxAvatar size=\"small\" class=\"nx-margin-right-m\">\n                  {{ car.avatar }}\n                </div>\n\n                <div style=\"display: flex; flex-direction: column\">\n                  <span class=\"nx-font-weight-semibold\"> {{ car.brand }} </span>\n                  <span class=\"nx-font-weight-light\"> {{ car.year }} </span>\n                </div>\n              </div>\n            </nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown>\n          <nx-dropdown-item value=\"BMW\">B</nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\">A</nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\">V</nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\">M</nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "custom closed label dropdown",
        "level": 3,
        "content": "There might be use cases where you want to render a different label when the dropdown is closed. For such a use case we provide the option to add the `nxClosedLabel` directive on a `ng-template`.\n\nYou can access the currently selected value via a ngModel binding like you see in the example below, where we use the value to render only the country code without the country id.\n\n\n```ts\nimport {\n  NxDropdownClosedLabelDirective,\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface TelephonePrefixData {\n  prefix: string;\n  countryId: string;\n}\n\n/**\n * @title Custom label example\n */\n@Component({\n  selector: 'dropdown-custom-label-example',\n  templateUrl: './dropdown-custom-label-example.html',\n  styleUrls: ['./dropdown-custom-label-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    FormsModule,\n    NxDropdownClosedLabelDirective,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownCustomLabelExampleComponent {\n  customLabelDropdownValue?: TelephonePrefixData;\n\n  telPrefixDemoData: TelephonePrefixData[] = [\n    {\n      prefix: '+1',\n      countryId: 'United States of America',\n    },\n    {\n      prefix: '+49',\n      countryId: 'Germany',\n    },\n    {\n      prefix: '+41',\n      countryId: 'Switzerland',\n    },\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"Country Code\">\n        <nx-dropdown [(ngModel)]=\"customLabelDropdownValue\">\n          <ng-template nxClosedLabel>\n            <span>{{ customLabelDropdownValue?.prefix }}</span>\n          </ng-template>\n          @for (item of telPrefixDemoData; track item) {\n            <nx-dropdown-item [value]=\"item\">\n              {{ item.prefix }} ({{ item.countryId }})\n            </nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "See below for an example of a dropdown with negative styling wrapped by a formfield in different states.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'dropdown-negative-example',\n  templateUrl: './dropdown-negative-example.html',\n  styleUrls: ['./dropdown-negative-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,12,6\">\n        <nx-formfield label=\"Car brand\" negative=\"negative\">\n          <nx-dropdown variant=\"negative\">\n            <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n          </nx-dropdown>\n        </nx-formfield>\n      </div>\n      <div nxCol=\"12,12,6\">\n        <nx-formfield label=\"Car brand\" negative=\"negative\">\n          <nx-dropdown [disabled]=\"true\" variant=\"negative\">\n            <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n          </nx-dropdown>\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "filter dropdown",
        "level": 3,
        "content": "The dropdown can show an additional filter input, as demonstrated in this example:\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n  NxMultiSelectComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Filter example\n */\n@Component({\n  selector: 'dropdown-filter-example',\n  templateUrl: './dropdown-filter-example.html',\n  styleUrls: ['./dropdown-filter-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxMultiSelectComponent,\n  ],\n})\nexport class DropdownFilterExampleComponent {\n  options = [\n    'BMW',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown [showFilter]=\"true\" filterPlaceholder=\"Type to search car\">\n          @for (brand of options; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-multi-select\n          filter\n          filterPlaceholder=\"Type to search car\"\n          [options]=\"options\"\n        >\n        </nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "filter dropdown with custom filter function",
        "level": 3,
        "content": "The default filter function is comparing the lower case dropdown label with the lower case string from the search filter via `String.indexOf()`. You can alter the default filter function by setting the `[filterFn]` input. In this case we want to be really strict and only have a match if a dropdown item contains the case sensitive user input from the beginning of the string!\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Custom Filter Example\n */\n@Component({\n  selector: 'dropdown-filter-custom-example',\n  templateUrl: './dropdown-filter-custom-example.html',\n  styleUrls: ['./dropdown-filter-custom-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownFilterCustomExampleComponent {\n  demoData = [\n    'BMW',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n\n  myFilter(search: any, itemValue: any) {\n    return itemValue.match(new RegExp('^' + search, 'g')) !== null;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown\n          [showFilter]=\"true\"\n          filterPlaceholder=\"Type to search car\"\n          [filterFn]=\"myFilter\"\n        >\n          @for (brand of demoData; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "group dropdown",
        "level": 3,
        "content": "It might be necessary for your use case to group the items inside of a dropdown. This is how it's done:\n\n⚠️ Every item should have a unique value, regardless of which group it belongs to.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownGroupComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Dropdown group example\n */\n@Component({\n  selector: 'dropdown-group-example',\n  templateUrl: './dropdown-group-example.html',\n  styleUrls: ['./dropdown-group-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownGroupComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownGroupExampleComponent {\n  testBind = 'Catfish';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield label=\"Animals\">\n        <nx-dropdown [(value)]=\"testBind\">\n          <nx-dropdown-group label=\"Birds\">\n            <nx-dropdown-item disabled=\"true\" value=\"Parrot\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Pidgin\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Swallow\"></nx-dropdown-item>\n          </nx-dropdown-group>\n\n          <nx-dropdown-group label=\"Fish\">\n            <nx-dropdown-item value=\"Salmon\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Mackerel\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Catfish\"></nx-dropdown-item>\n          </nx-dropdown-group>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\nWhen filtering, the default filter matches the item label or the group label, so a matching group label shows the whole group. Groups without any matching item are hidden. A custom `filterFn` receives the group label as third argument.\n"
      },
      {
        "heading": "groups via `options`",
        "level": 4,
        "content": "Groups can also be passed to the `options` input, with or without virtual scrolling. Set `grouped` to pass a list of groups instead of a list of options. `selectGroupLabel` and `selectGroupOptions` define how to read the label and the options of a group. Like the other selectors, they accept a property name or a function, and default to `label` and `options`.\n\nIn grouped mode the type of `options` is inferred from your groups, not from the options inside them. Prefer property names for `selectLabel`, `selectValue` and `selectDisabled`; if you need a selector function, type its parameter as `any`. Selector functions for `selectGroupLabel` and `selectGroupOptions` can be typed with your group type.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownOption,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface Country {\n  code: string;\n  name: string;\n}\n\ninterface Continent {\n  name: string;\n  countries: Country[];\n}\n\ninterface Decade {\n  label: string;\n  options: NxDropdownOption[];\n}\n\n/** Years from newest to oldest, grouped by decade. */\nfunction createDecades(fromYear: number, toYear: number): Decade[] {\n  const decades: Decade[] = [];\n  for (let year = toYear; year >= fromYear; year--) {\n    const label = `${Math.floor(year / 10) * 10}s`;\n    if (decades.at(-1)?.label !== label) {\n      decades.push({ label, options: [] });\n    }\n    decades.at(-1)!.options.push({ value: year, label: String(year) });\n  }\n  return decades;\n}\n\n/**\n * @title Dropdown with grouped options example\n */\n@Component({\n  selector: 'dropdown-group-options-example',\n  templateUrl: './dropdown-group-options-example.html',\n  styleUrls: ['./dropdown-group-options-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    FormsModule,\n  ],\n})\nexport class DropdownGroupOptionsExampleComponent {\n  country = 'FR';\n\n  year: number | null = null;\n\n  /** Groups with the default keys `label` and `options`, so no selectors are needed. */\n  decades = createDecades(1900, new Date().getFullYear());\n\n  continents: Continent[] = [\n    {\n      name: 'Europe',\n      countries: [\n        { code: 'DE', name: 'Germany' },\n        { code: 'FR', name: 'France' },\n        { code: 'IT', name: 'Italy' },\n        { code: 'ES', name: 'Spain' },\n      ],\n    },\n    {\n      name: 'Asia',\n      countries: [\n        { code: 'JP', name: 'Japan' },\n        { code: 'IN', name: 'India' },\n        { code: 'TH', name: 'Thailand' },\n      ],\n    },\n    {\n      name: 'South America',\n      countries: [\n        { code: 'BR', name: 'Brazil' },\n        { code: 'AR', name: 'Argentina' },\n        { code: 'CL', name: 'Chile' },\n      ],\n    },\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Country\">\n        <nx-dropdown\n          grouped\n          [showFilter]=\"true\"\n          filterPlaceholder=\"Type to search countries\"\n          [(ngModel)]=\"country\"\n          [options]=\"continents\"\n          selectGroupLabel=\"name\"\n          selectGroupOptions=\"countries\"\n          selectValue=\"code\"\n          selectLabel=\"name\"\n        ></nx-dropdown>\n      </nx-formfield>\n      <div>\n        Selected country:\n        <pre>{{ country }}</pre>\n      </div>\n    </div>\n\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Year of construction\">\n        <nx-dropdown\n          grouped\n          virtualScroll\n          [showFilter]=\"true\"\n          filterPlaceholder=\"Type to search years\"\n          [(ngModel)]=\"year\"\n          [options]=\"decades\"\n        ></nx-dropdown>\n      </nx-formfield>\n      <div>\n        Selected year:\n        <pre>{{ year }}</pre>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "multi select dropdown",
        "level": 3,
        "content": "The multi select is a separate component from the dropdown. It supports selection on multiple items as well as filtering. Instead of a single value the model is an array of options. Options are passed into the component via the `options` input. In the simplest case you can pass in a list of strings. That way the selected values and the displayed labels are the same. If you need labels that are different to the values you can also pass in arbitrary complex objects as options. In that case it is recommended to set `selectValue` to specify a unique identifier for each option and `selectLabel` to select the option's label. If `selectValue` is empty, the whole object is used for selection, which may cause issues if object references change. The optional filter can be enabled via the `filter` input.\n\n\n```ts\nimport { NxMultiSelectComponent } from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\ninterface MyOption {\n  name: string;\n  id: number;\n}\n\n/**\n * @title Multi select example\n */\n@Component({\n  selector: 'dropdown-multi-select-example',\n  templateUrl: './dropdown-multi-select-example.html',\n  styleUrls: ['./dropdown-multi-select-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxMultiSelectComponent,\n  ],\n})\nexport class DropdownMultiSelectExampleComponent {\n  options: string[] = ['Apple', 'Orange', 'Plum', 'Cherry'];\n\n  complexOptions: MyOption[] = [\n    {\n      name: 'Apple',\n      id: 1,\n    },\n    {\n      name: 'Orange',\n      id: 2,\n    },\n    {\n      name: 'Plum',\n      id: 3,\n    },\n    {\n      name: 'Cherry',\n      id: 4,\n    },\n  ];\n\n  selectLabel(option: MyOption): string {\n    return option.name;\n  }\n\n  selectValue(option: MyOption): number {\n    return option.id;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Fruits\">\n        <nx-multi-select [options]=\"options\"></nx-multi-select>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Fruits\">\n        <nx-multi-select\n          [options]=\"complexOptions\"\n          selectLabel=\"name\"\n          selectValue=\"id\"\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Fruits\">\n        <nx-multi-select\n          placeholder=\"Choose options\"\n          [options]=\"complexOptions\"\n          selectLabel=\"name\"\n          selectValue=\"id\"\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Readonly\">\n        <nx-multi-select\n          placeholder=\"Choose options\"\n          [options]=\"complexOptions\"\n          [selectLabel]=\"selectLabel\"\n          [selectValue]=\"selectValue\"\n          readonly\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "multi select with groups",
        "level": 3,
        "content": "Set `grouped` to pass a list of groups to `options` instead of a list of options. `selectGroupLabel` and `selectGroupOptions` define how to read the label and the options of a group. Like the other selectors, they accept a property name or a function, and default to `label` and `options`. The model stays a flat list of the selected values, so every option needs a unique value across all groups.\n\nWhile the panel is open, selected options move to the top of their group. The default filter matches the option label or the group label, so a matching group label shows the whole group. Groups without any matching option are hidden. A custom `filterFn` receives the group label as third argument.\n\nIn grouped mode the type of `options` is inferred from your groups, not from the options inside them. Prefer property names for `selectLabel`, `selectValue` and `selectDisabled`; if you need a selector function, type its parameter as `any`. Selector functions for `selectGroupLabel` and `selectGroupOptions` can be typed with your group type.\n\n\n```ts\nimport { NxMultiSelectComponent } from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface Country {\n  code: string;\n  name: string;\n}\n\ninterface Continent {\n  name: string;\n  countries: Country[];\n}\n\n/**\n * @title Multi select with groups example\n */\n@Component({\n  selector: 'multi-select-group-example',\n  templateUrl: './multi-select-group-example.html',\n  styleUrls: ['./multi-select-group-example.css'],\n  imports: [NxFormfieldComponent, NxMultiSelectComponent, FormsModule],\n})\nexport class MultiSelectGroupExampleComponent {\n  model: string[] = ['FR'];\n\n  continents: Continent[] = [\n    {\n      name: 'Europe',\n      countries: [\n        { code: 'DE', name: 'Germany' },\n        { code: 'FR', name: 'France' },\n        { code: 'IT', name: 'Italy' },\n        { code: 'ES', name: 'Spain' },\n      ],\n    },\n    {\n      name: 'Asia',\n      countries: [\n        { code: 'JP', name: 'Japan' },\n        { code: 'IN', name: 'India' },\n        { code: 'TH', name: 'Thailand' },\n      ],\n    },\n    {\n      name: 'South America',\n      countries: [\n        { code: 'BR', name: 'Brazil' },\n        { code: 'AR', name: 'Argentina' },\n        { code: 'CL', name: 'Chile' },\n      ],\n    },\n  ];\n}\n\n```\n```html\n<nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Countries\">\n  <nx-multi-select\n    grouped\n    filter\n    placeholder=\"Choose countries\"\n    [(ngModel)]=\"model\"\n    [options]=\"continents\"\n    selectGroupLabel=\"name\"\n    selectGroupOptions=\"countries\"\n    selectValue=\"code\"\n    selectLabel=\"name\"\n  ></nx-multi-select>\n</nx-formfield>\n\n<div>\n  Selected countries:\n  <pre>[{{ model.join(', ') }}]</pre>\n</div>\n\n```\n\n"
      },
      {
        "heading": "multi select with virtual scrolling",
        "level": 3,
        "content": "For large lists, set `virtualScroll` to only render the options in view. It works with and without `grouped`; each group is still exposed as a named group to assistive technology. Options outside the visible area are not in the DOM. To bring one into view, e.g. before querying it in a test, call `scrollToIndex(index)` or `scrollToValue(value)` after the panel has opened. The option is rendered asynchronously, so wait for it to appear rather than querying it right after the call. The index counts the options in the order they are currently displayed.\n\nLike the dropdown, the multi select can have virtual scrolling enabled globally via `DROPDOWN_DEFAULT_OPTIONS`, see [Default Options](./documentation/dropdown/overview#default-options).\n\n\n```ts\nimport { NxMultiSelectComponent } from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface Car {\n  id: number;\n  name: string;\n}\n\n/**\n * @title Multi select with virtual scroll example\n */\n@Component({\n  selector: 'multi-select-virtual-scroll-example',\n  templateUrl: './multi-select-virtual-scroll-example.html',\n  styleUrls: ['./multi-select-virtual-scroll-example.css'],\n  imports: [NxFormfieldComponent, NxMultiSelectComponent, FormsModule],\n})\nexport class MultiSelectVirtualScrollExampleComponent {\n  readonly options: Car[] = Array.from({ length: 10000 }, (_, i) => ({\n    id: i,\n    name: `Car ${i + 1}`,\n  }));\n\n  model: number[] = [];\n}\n\n```\n```html\n<nx-formfield label=\"Cars\">\n  <nx-multi-select\n    virtualScroll\n    filter\n    placeholder=\"Choose cars\"\n    [(ngModel)]=\"model\"\n    [options]=\"options\"\n    selectValue=\"id\"\n    selectLabel=\"name\"\n  ></nx-multi-select>\n</nx-formfield>\n\n<div>\n  Selected cars:\n  <pre>[{{ model.join(', ') }}]</pre>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabling items",
        "level": 3,
        "content": "You can disable the whole dropdown as well as single dropdown items by setting their `disabled` property as shown in the example below:\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownIntl,\n  NxDropdownItemComponent,\n  NxMultiSelectComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\ninterface MyOption {\n  name: string;\n  id: number;\n}\n\nclass MyDropdownIntl extends NxDropdownIntl {\n  selectAll = 'Select all possible';\n}\n\n/**\n * @title Disabled items example\n */\n@Component({\n  selector: 'dropdown-disabled-items-example',\n  templateUrl: './dropdown-disabled-items-example.html',\n  styleUrls: ['./dropdown-disabled-items-example.css'],\n  providers: [{ provide: NxDropdownIntl, useClass: MyDropdownIntl }],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxMultiSelectComponent,\n  ],\n})\nexport class DropdownDisabledItemsExampleComponent {\n  options: MyOption[] = [\n    {\n      name: 'BMW',\n      id: 1,\n    },\n    {\n      name: 'Audi',\n      id: 2,\n    },\n    {\n      name: 'Volvo',\n      id: 3,\n    },\n    {\n      name: 'Mini',\n      id: 4,\n    },\n  ];\n\n  isOptionDisabled(option: MyOption) {\n    return option.id % 2 === 0;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"Disabled dropdown\">\n        <nx-dropdown disabled=\"true\">\n          <nx-dropdown-item value=\"BMW\">B</nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\">A</nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\">V</nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\">M</nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"With disabled item\">\n        <nx-dropdown>\n          <nx-dropdown-item disabled=\"true\" value=\"BMW\">B</nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\">A</nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\">V</nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\">M</nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12, 12, 4\">\n      <nx-formfield label=\"With disabled multi item\">\n        <nx-multi-select\n          [options]=\"options\"\n          selectValue=\"id\"\n          selectLabel=\"name\"\n          [selectDisabled]=\"isOptionDisabled\"\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: dropdown with outline",
        "level": 3,
        "content": "In a formfield with an outline the styling of the dropdown will adjust accordingly.\n\nPlease note that **this is an Expert styling option**. This means that the outline appearance is only intended for internal applications and not for applications that are client facing.\n\n\n```ts\nimport {\n  NxErrorComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport {\n  NxDropdownComponent,\n  NxDropdownComponent as NxDropdownComponent_1,\n  NxDropdownGroupComponent,\n  NxDropdownItemComponent,\n  NxMultiSelectComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  FORMFIELD_DEFAULT_OPTIONS,\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { AfterContentInit, Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Outline formfield example\n */\n@Component({\n  selector: 'dropdown-outline-example',\n  templateUrl: './dropdown-outline-example.html',\n  styleUrls: ['./dropdown-outline-example.css'],\n  providers: [\n    {\n      provide: FORMFIELD_DEFAULT_OPTIONS,\n      useValue: { appearance: 'outline', nxFloatLabel: 'always' },\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent_1,\n    NxDropdownItemComponent,\n    FormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxDropdownGroupComponent,\n    NxMultiSelectComponent,\n    NxInfoIconComponent,\n    NxLabelInfoDirective,\n  ],\n})\nexport class DropdownOutlineExampleComponent implements AfterContentInit {\n  options: string[] = [\n    'BMW',\n    'Audi',\n    'VW',\n    'Mercedes',\n    'Porsche',\n    'Tesla',\n    'Lada',\n    'Opel',\n    'Fiat',\n    'Ford',\n    'Kia',\n    'Toyota',\n    'Ferrari',\n  ];\n\n  groups = [\n    {\n      label: 'Birds',\n      items: ['Parrot', 'Pidgin', 'Swallow'],\n    },\n    {\n      label: 'Fish',\n      items: ['Salmon', 'Mackerel', 'Catfish'],\n    },\n  ];\n\n  model = 'Catfish';\n  modelBlank!: '';\n\n  brands: string[] = [];\n\n  @ViewChild('exampleErrorNgModel', { static: true })\n  exampleErrorNgModel!: NxDropdownComponent;\n\n  ngAfterContentInit(): void {\n    this.exampleErrorNgModel.ngControl?.control?.markAsTouched();\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\">\n      <h4 nxHeadline=\"subsection-xsmall\">Standard dropdown</h4>\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown>\n          @for (brand of options; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n      <nx-formfield label=\"Readonly Dropdown\">\n        <nx-dropdown value=\"BMW\" readonly>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n      <nx-formfield label=\"Disabled Dropdown\">\n        <nx-dropdown value=\"BMW\" disabled>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n      <nx-formfield label=\"Error dropdown\">\n        <nx-dropdown #exampleErrorNgModel [(ngModel)]=\"modelBlank\" required>\n          @for (brand of options; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n        <nx-error nxFormfieldError appearance=\"text\"> Error message </nx-error>\n      </nx-formfield>\n      <nx-formfield label=\"With icon dropdown\">\n        <nx-dropdown>\n          @for (brand of options; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n        <nx-info-icon nxLabelInfo popoverMaxWidth=\"300px\">\n          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,\n          nostrum. Obcaecati cupiditate numquam, fugit illo incidunt molestiae\n          ipsam perferendis officia accusamus. Enim magnam recusandae velit\n          accusamus ipsa. Nemo, eius exercitationem?\n        </nx-info-icon>\n      </nx-formfield>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\">\n      <h4 nxHeadline=\"subsection-xsmall\">Filter dropdown</h4>\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown [showFilter]=\"true\" filterPlaceholder=\"Type to search car\">\n          @for (brand of options; track brand) {\n            <nx-dropdown-item [value]=\"brand\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12\">\n      <h4 nxHeadline=\"subsection-xsmall\">Group dropdown</h4>\n      <nx-formfield label=\"Animals\">\n        <nx-dropdown [(value)]=\"model\">\n          @for (group of groups; track group) {\n            <nx-dropdown-group [label]=\"group.label\">\n              @for (item of group.items; track item) {\n                <nx-dropdown-item [value]=\"item\"></nx-dropdown-item>\n              }\n            </nx-dropdown-group>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12\">\n      <h4 nxHeadline=\"subsection-xsmall\">Multi select dropdown</h4>\n      <nx-formfield label=\"Car brand\">\n        <nx-multi-select\n          filter\n          [(ngModel)]=\"brands\"\n          [options]=\"options\"\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "multi select dropdown",
        "level": 4,
        "content": "The multi select dropdown is a new component which is a replacement for the `<dropdown isMultiselect ...>`. It offers a filter to quicky find items in long lists, improved accessibility and better performance.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxMultiSelectComponent } from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\ninterface MyOption {\n  label: string;\n  id: number;\n}\n\nfunction getOptions(): MyOption[] {\n  return [\n    {\n      label: 'Apple',\n      id: 1,\n    },\n    {\n      label: 'Banana',\n      id: 2,\n    },\n    {\n      label: 'Strawberry',\n      id: 3,\n    },\n    {\n      label: 'Orange',\n      id: 4,\n    },\n    {\n      label: 'Lemon',\n      id: 5,\n    },\n    {\n      label: 'Grapefruit',\n      id: 6,\n    },\n    {\n      label: 'Mango',\n      id: 7,\n    },\n    {\n      label: 'Pineapple',\n      id: 8,\n    },\n    {\n      label: 'Kiwi',\n      id: 9,\n    },\n    {\n      label: 'Cherry',\n      id: 10,\n    },\n    {\n      label: 'Blueberry',\n      id: 11,\n    },\n    {\n      label: 'Avocado',\n      id: 12,\n    },\n    {\n      label: 'Watermelon',\n      id: 13,\n    },\n    {\n      label: 'Raspberry',\n      id: 14,\n    },\n    {\n      label: 'Papaya',\n      id: 15,\n    },\n  ];\n}\n\nfunction getLongOptions(): MyOption[] {\n  return [\n    {\n      label:\n        'Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua, sed eiusmod tempor incidunt ut.',\n      id: 1,\n    },\n    {\n      label:\n        'Sed eiusmod tempor incidunt ut labore et dolore magna aliqua, sed eiusmod tempor incidunt ut.',\n      id: 2,\n    },\n  ];\n}\n\n/**\n * @title Basic multi select example\n */\n@Component({\n  selector: 'multi-select-example',\n  templateUrl: './multi-select-example.html',\n  styleUrls: ['./multi-select-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxMultiSelectComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    JsonPipe,\n  ],\n})\nexport class MultiSelectExampleComponent {\n  model: number[] = [3];\n\n  modelWithFilter: number[] = [];\n\n  options: MyOption[] = getOptions();\n\n  longOptions: MyOption[] = getLongOptions();\n\n  control = new FormControl([], {\n    validators: Validators.minLength(3),\n  });\n\n  selectLabel(option: MyOption) {\n    return option.label;\n  }\n\n  selectValue(option: MyOption) {\n    return option.id;\n  }\n}\n\n```\n```html\n<h3>With filter</h3>\n<nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Multi select\">\n  <nx-multi-select\n    filter\n    placeholder=\"Choose options\"\n    [(ngModel)]=\"modelWithFilter\"\n    [options]=\"options\"\n    selectValue=\"id\"\n    selectLabel=\"label\"\n  ></nx-multi-select>\n</nx-formfield>\n\n<div>\n  Selected options:\n  <pre>[{{ modelWithFilter.join(', ') }}]</pre>\n</div>\n\n<h3>Without filter</h3>\n<nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Multi select\">\n  <nx-multi-select\n    placeholder=\"Choose options\"\n    [(ngModel)]=\"model\"\n    [options]=\"options\"\n    [selectLabel]=\"selectLabel\"\n    [selectValue]=\"selectValue\"\n  ></nx-multi-select>\n</nx-formfield>\n\n<div>\n  Selected options:\n  <pre>[{{ model.join(', ') }}]</pre>\n</div>\n\n<h3>Reactive forms validation</h3>\n<nx-formfield floatLabel=\"always\" label=\"Multi select with validation\">\n  <nx-multi-select\n    placeholder=\"Choose options\"\n    [formControl]=\"control\"\n    [options]=\"options\"\n    [selectLabel]=\"selectLabel\"\n    [selectValue]=\"selectValue\"\n  ></nx-multi-select>\n  <nx-error nxFormfieldError>Error {{ control.errors | json }}</nx-error>\n</nx-formfield>\n\n<div>\n  Selected options:\n  <pre>[{{ control.value?.join(', ') }}]</pre>\n</div>\n\n<h3>Readonly</h3>\n<nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Multi select\">\n  <nx-multi-select\n    filter\n    placeholder=\"Choose options\"\n    [options]=\"options\"\n    selectValue=\"i'\"\n    selectLabel=\"label\"\n    readonly\n  ></nx-multi-select>\n</nx-formfield>\n\n<h3>With panelGrow</h3>\n<nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Multi select\">\n  <nx-multi-select\n    filter\n    placeholder=\"Choose options\"\n    [options]=\"longOptions\"\n    selectValue=\"id\"\n    selectLabel=\"label\"\n    panelGrow=\"true\"\n  ></nx-multi-select>\n</nx-formfield>\n\n<h3>With panelMaxWidth</h3>\n<nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Multi select\">\n  <nx-multi-select\n    filter\n    placeholder=\"Choose options\"\n    [options]=\"longOptions\"\n    selectValue=\"id\"\n    selectLabel=\"label\"\n    panelGrow=\"true\"\n    [panelMaxWidth]=\"800\"\n  ></nx-multi-select>\n</nx-formfield>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "If you want to use a custom scroll strategy, you can use the `NX_DROPDOWN_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport {\n  NX_DROPDOWN_SCROLL_STRATEGY,\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'dropdown-scroll-strategy-provider-example',\n  templateUrl: './dropdown-scroll-strategy-provider-example.html',\n  styleUrls: ['./dropdown-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_DROPDOWN_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n  ],\n})\nexport class DropdownScrollStrategyProviderExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Fruit\">\n        <nx-dropdown>\n          <nx-dropdown-item value=\"Apple\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Orange\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Pear\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\nAlternatively, the `NX_DROPDOWN_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      },
      {
        "heading": "default options",
        "level": 4,
        "content": "You can configure default options for all dropdowns and multi selects using the `DROPDOWN_DEFAULT_OPTIONS` injection token. This is useful for enabling virtual scrolling globally. Setting the `virtualScroll` input on a single component still takes precedence.\n\n\n```ts\nimport {\n  DROPDOWN_DEFAULT_OPTIONS,\n  NxDropdownComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Default Options Example\n */\n@Component({\n  selector: 'dropdown-default-options-example',\n  templateUrl: './dropdown-default-options-example.html',\n  styleUrls: ['./dropdown-default-options-example.css'],\n  providers: [\n    {\n      provide: DROPDOWN_DEFAULT_OPTIONS,\n      useValue: { virtualScroll: true },\n    },\n  ],\n  imports: [NxDropdownComponent, NxFormfieldComponent, FormsModule],\n})\nexport class DropdownDefaultOptionsExampleComponent {\n  options = Array.from({ length: 100 }, (_, i) => ({\n    value: `option-${i}`,\n    label: `Option ${i + 1}`,\n  }));\n  selectedValue: string | null = null;\n}\n\n```\n```html\n<nx-formfield label=\"Select an option\">\n  <nx-dropdown [options]=\"options\" [(ngModel)]=\"selectedValue\"></nx-dropdown>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "internationalization",
        "level": 4,
        "content": "The provider `NxDropdownIntl` contains various strings to provide labels for display and screen readers. You have to provide a proper translation for each of your locales.\n\nThe provider includes a `changes` subject that you can use to notify dependent components about changes of the strings during runtime.\n\n\n```ts\nimport {\n  NxDropdownIntl,\n  NxMultiSelectComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\nclass MyDropdownIntl extends NxDropdownIntl {\n  selectAll = `Alle auswählen`;\n  clearAll = `Alle abwählen`;\n}\n/**\n * @title Multi select intl example\n */\n@Component({\n  selector: 'multi-select-intl-example',\n  templateUrl: './multi-select-intl-example.html',\n  styleUrls: ['./multi-select-intl-example.css'],\n  providers: [{ provide: NxDropdownIntl, useClass: MyDropdownIntl }],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxMultiSelectComponent,\n  ],\n})\nexport class MultiSelectIntlExampleComponent {\n  options = ['Apple', 'Orange', 'Plum', 'Cherry'];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield appearance=\"outline\" floatLabel=\"always\" label=\"Fruits\">\n        <nx-multi-select filter [options]=\"options\"></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "focus out",
        "level": 3,
        "content": "A focusout event is emitted when the selected dropdown has lost focus.\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldNoteDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Focus out example\n */\n@Component({\n  selector: 'dropdown-focus-out-example',\n  templateUrl: './dropdown-focus-out-example.html',\n  styleUrls: ['./dropdown-focus-out-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxFormfieldNoteDirective,\n  ],\n})\nexport class DropdownFocusOutExampleComponent {\n  form = new FormBuilder().group({\n    dropdown: ['BMW'],\n  });\n\n  focusing = false;\n\n  onFocusOut() {\n    this.focusing = false;\n  }\n\n  onFocus() {\n    this.focusing = true;\n  }\n}\n\n```\n```html\n<form [formGroup]=\"form\">\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,12,6\">\n        <nx-formfield label=\"Car brand\">\n          <nx-dropdown\n            formControlName=\"dropdown\"\n            (focusOut)=\"onFocusOut()\"\n            (focus)=\"onFocus()\"\n          >\n            <nx-dropdown-item>CLEAR VALUE</nx-dropdown-item>\n            <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n            <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n          </nx-dropdown>\n          <nx-message context=\"info\" nxFormfieldNote>\n            Focusing: {{ focusing }}\n          </nx-message>\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</form>\n\n```\n\n"
      },
      {
        "heading": "select on focus directive",
        "level": 3,
        "content": "The `selectOnFocus` directive automatically select text when an element is focused.\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n  NxMultiSelectComponent,\n  SelectOnFocusDirective,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface TelephonePrefixData {\n  prefix: string;\n  countryId: string;\n}\n\n/**\n * @title Dropdown copy directive example\n */\n@Component({\n  selector: 'dropdown-select-on-focus-example',\n  templateUrl: './dropdown-select-on-focus-example.html',\n  styleUrls: ['./dropdown-select-on-focus-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    FormsModule,\n    NxDropdownItemComponent,\n    SelectOnFocusDirective,\n    NxMultiSelectComponent,\n  ],\n})\nexport class DropdownSelectOnFocusExampleComponent {\n  selectedModel = '';\n  options = [\n    {\n      label: 'Apple',\n      id: 1,\n    },\n    {\n      label: 'Banana',\n      id: 2,\n    },\n    {\n      label: 'Strawberry',\n      id: 3,\n    },\n    {\n      label: 'Orange',\n      id: 4,\n    },\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield label=\"Car brand\">\n        <nx-dropdown selectOnFocus>\n          <nx-dropdown-item value=\"BMW\">BMW</nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\">Audi</nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\">Volvo</nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\">Mini</nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12, 12, 6\">\n      <nx-formfield\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        label=\"Multi select\"\n      >\n        <nx-multi-select\n          selectOnFocus\n          filter\n          placeholder=\"Choose options\"\n          [(ngModel)]=\"selectedModel\"\n          [options]=\"options\"\n          selectValue=\"id\"\n          selectLabel=\"label\"\n          #multiselect\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The dropdown can be accessed via keyboard. If the component owns the focus, the dropdown will open when you hit ENTER. Pressing ESC while the dropdown is open will close it. To select a value while the dropdown is open, use ARROW-UP and ARROW-DOWN. You can quickly navigate to the first item with the HOME key and to the last item with the END key. Pressing the ALT key plus either the ARROW_UP or ARROW_DOWN key opens or closes the dropdown.\n\nIn order to mimic the native `<select>` element accessibility, the library is using `aria-labelledby` attribute to describe the dropdown. Under the hood, html ids of the element containing the rendered dropdown value and the element containing the formfield label are passed to the `aria-labelledby`. This allows assistive technology to read out currently selected value or placeholder of the dropdown together with the label displayed on the screen. If no formfield label is present, only the dropdown value is read.\n"
      },
      {
        "heading": "in single select mode",
        "level": 4,
        "content": "Hitting SPACE or ENTER closes the dropdown and commit the selected value to the model.\n"
      },
      {
        "heading": "in multi select mode",
        "level": 4,
        "content": "Hitting SPACE or ENTER selects the value and the dropdown stays open. You can close the dropdown by hitting ESC or click the backdrop.\n"
      },
      {
        "heading": "using space in a filter dropdown",
        "level": 4,
        "content": "Hitting SPACE in a dropdown with filter does not select the value, but filters the options with the SPACE included in the search string.\n"
      }
    ]
  },
  {
    "name": "dynamic-table.md",
    "title": "Dynamic Tables",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "ways for implementation",
        "level": 3,
        "content": "User can choose between two options when implementing a dynamic table.\n"
      },
      {
        "heading": "with column definitions",
        "level": 4,
        "content": "User can pass an array of column definitions, including the ordering, display name and the type of data ('numeric' will align right) as `NxDynamicTablColumnDefinition[]`. The key param should match the property name of the data.\n\n\n```ts\nimport {\n  NxDynamicTableColumnDefinition,\n  NxDynamicTableComponent,\n} from '@allianz/ng-aquila/dynamic-table';\nimport { Component } from '@angular/core';\n\n/**\n * @title Table Example\n */\n@Component({\n  selector: 'dynamic-table-example',\n  templateUrl: './dynamic-table-example.html',\n  styleUrls: ['./dynamic-table-example.css'],\n  imports: [NxDynamicTableComponent],\n})\nexport class DynamicTableExampleComponent {\n  data = [\n    {\n      code: 'AAC ',\n      company: 'Honda',\n      price: '$1.38 ',\n      change: '-0.01 ',\n      changePercent: '-0.36% ',\n      sample: '$0.00 ',\n      lorem: 'ab lreom ',\n    },\n    {\n      code: 'AAD ',\n      company: 'Abacus',\n      price: '$1.15 ',\n      change: '+2.01 ',\n      changePercent: '+45.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab ipsum ',\n    },\n    {\n      code: 'AAC ',\n      company: 'Aditya',\n      price: '$2.22 ',\n      change: '-1.21 ',\n      changePercent: '+5.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n    {\n      code: 'ABC ',\n      company: 'Acrux Limited',\n      price: '$1.50 ',\n      change: '-0.01 ',\n      changePercent: '±0% ',\n      sample: '$0.00 ',\n      lorem: 'mad<br>abdi ',\n    },\n    {\n      code: 'AGK ',\n      company: 'Adamus',\n      price: '$3.12 ',\n      change: '-0.01 ',\n      changePercent: '-1.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n  ];\n  displayedColumns: NxDynamicTableColumnDefinition[] = [\n    {\n      title: 'Code',\n      key: 'code',\n      type: 'string',\n      headerCellClass: 'text-underline',\n      cellStyle: { 'font-weight': 600 },\n    },\n    { title: 'Company', key: 'company', type: 'string' },\n    { title: 'Price', key: 'price', type: 'numeric' },\n    { title: 'Change Percent', key: 'changePercent', type: 'numeric' },\n    { title: 'Change', key: 'change', type: 'numeric' },\n    { title: 'Lorem Ipsum', key: 'lorem', type: 'string' },\n  ];\n}\n\n```\n```html\n<nx-dynamic-table\n  [data]=\"data\"\n  [displayedColumns]=\"displayedColumns\"\n></nx-dynamic-table>\n\n```\n\n"
      },
      {
        "heading": "passing data only",
        "level": 4,
        "content": "User can omit column definitions. The name of columns will fall back to the property name of the data and the table will show all data.\n\n\n```ts\nimport { NxDynamicTableComponent } from '@allianz/ng-aquila/dynamic-table';\nimport { Component } from '@angular/core';\n\n/**\n * @title Table Data Example\n */\n@Component({\n  selector: 'dynamic-table-data-example',\n  templateUrl: './dynamic-table-data-example.html',\n  styleUrls: ['./dynamic-table-data-example.css'],\n  imports: [NxDynamicTableComponent],\n})\nexport class DynamicTableDataExampleComponent {\n  data = [\n    {\n      code: 'AAC ',\n      company: 'Honda',\n      price: '$1.38 ',\n      change: '-0.01 ',\n      changePercent: '-0.36% ',\n      sample: '$0.00 ',\n      lorem: 'ab lreom ',\n    },\n    {\n      code: 'AAD ',\n      company: 'Abacus',\n      price: '$1.15 ',\n      change: '+2.01 ',\n      changePercent: '+45.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab ipsum ',\n    },\n    {\n      code: 'AAC ',\n      company: 'Aditya',\n      price: '$2.22 ',\n      change: '-1.21 ',\n      changePercent: '+5.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n    {\n      code: 'ABC ',\n      company: 'Acrux Limited',\n      price: '$1.50 ',\n      change: '-0.01 ',\n      changePercent: '±0% ',\n      sample: '$0.00 ',\n      lorem: 'mad<br>abdi ',\n    },\n    {\n      code: 'AGK ',\n      company: 'Adamus',\n      price: '$3.12 ',\n      change: '-0.01 ',\n      changePercent: '-1.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n  ];\n}\n\n```\n```html\n<nx-dynamic-table [data]=\"data\"></nx-dynamic-table>\n\n```\n\n"
      },
      {
        "heading": "no data provided",
        "level": 4,
        "content": "Without data provided. Users can add a customized message when they do not provide any data.\n\n\n```ts\nimport { NxDynamicTableComponent } from '@allianz/ng-aquila/dynamic-table';\nimport { Component } from '@angular/core';\n\n/**\n * @title Table Without Data Example\n */\n@Component({\n  selector: 'dynamic-table-without-data-example',\n  templateUrl: './dynamic-table-without-data-example.html',\n  styleUrls: ['./dynamic-table-without-data-example.css'],\n  imports: [NxDynamicTableComponent],\n})\nexport class DynamicTableWithoutDataExampleComponent {}\n\n```\n```html\n<nx-dynamic-table><b>Information: No data to show</b></nx-dynamic-table>\n\n```\n\n"
      },
      {
        "heading": "table event example",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxDynamicTableColumnDefinition,\n  NxDynamicTableComponent,\n} from '@allianz/ng-aquila/dynamic-table';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxModalComponent } from '@allianz/ng-aquila/modal';\nimport { Component } from '@angular/core';\n\n/**\n * @title Table Event Example\n */\n@Component({\n  selector: 'dynamic-table-event-example',\n  templateUrl: './dynamic-table-event-example.html',\n  styleUrls: ['./dynamic-table-event-example.css'],\n  imports: [\n    NxDynamicTableComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxButtonComponent,\n    NxModalComponent,\n  ],\n})\nexport class DynamicTableEventExampleComponent {\n  data = [\n    {\n      code: 'AAC ',\n      company: 'Honda',\n      price: '$1.38 ',\n      change: '-0.01 ',\n      changePercent: '-0.36% ',\n      sample: '$0.00 ',\n      lorem: 'ab lreom ',\n    },\n    {\n      code: 'AAD ',\n      company: 'Abacus',\n      price: '$1.15 ',\n      change: '+2.01 ',\n      changePercent: '+45.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab ipsum ',\n    },\n    {\n      code: 'AAC ',\n      company: 'Aditya',\n      price: '$2.22 ',\n      change: '-1.21 ',\n      changePercent: '+5.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n    {\n      code: 'ABC ',\n      company: 'Acrux Limited',\n      price: '$1.50 ',\n      change: '-0.01 ',\n      changePercent: '±0% ',\n      sample: '$0.00 ',\n      lorem: 'mad<br>abdi ',\n    },\n    {\n      code: 'AGK ',\n      company: 'Adamus',\n      price: '$3.12 ',\n      change: '-0.01 ',\n      changePercent: '-1.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n  ];\n\n  displayedColumns: NxDynamicTableColumnDefinition[] = [\n    { title: 'Code', key: 'code', type: 'string' },\n    { title: 'Company', key: 'company', type: 'string' },\n    { title: 'Price', key: 'price', type: 'numeric' },\n    { title: 'Change Percent', key: 'changePercent', type: 'numeric' },\n    { title: 'Change', key: 'change', type: 'numeric' },\n    { title: 'Lorem Ipsum', key: 'lorem', type: 'string' },\n  ];\n\n  modalOpen = false;\n  basicModalBody = '';\n\n  handleRowClick(row: unknown): void {\n    this.basicModalBody = JSON.stringify(row);\n    this.toggleModal();\n  }\n\n  toggleModal() {\n    this.modalOpen = !this.modalOpen;\n  }\n}\n\n```\n```html\n<nx-dynamic-table\n  [displayedColumns]=\"displayedColumns\"\n  [data]=\"data\"\n  (rowClick)=\"handleRowClick($event)\"\n></nx-dynamic-table>\n<ng-template #ngIfModalBody>\n  <div class=\"u-text-center\">\n    <h3 nxHeadline=\"subsection-medium\">Clicked row</h3>\n    <p nxCopytext=\"small\">{{ basicModalBody }}</p>\n    <br />\n    <button nxButton=\"primary\" (click)=\"toggleModal()\" type=\"button\">\n      Hide Modal\n    </button>\n  </div>\n</ng-template>\n@if (modalOpen) {\n  <nx-modal #basicModal [modalBody]=\"ngIfModalBody\" [showCloseIcon]=\"false\">\n  </nx-modal>\n}\n\n```\n\n"
      },
      {
        "heading": "table column options",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { NxContextMenuModule } from '@allianz/ng-aquila/context-menu';\nimport {\n  NxDynamicTableColumnDefinition,\n  NxDynamicTableComponent,\n} from '@allianz/ng-aquila/dynamic-table';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Table Column Options Example\n */\n@Component({\n  selector: 'dynamic-table-column-options-example',\n  templateUrl: './dynamic-table-column-options-example.html',\n  styleUrls: ['./dynamic-table-column-options-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxCheckboxGroupComponent,\n    FormsModule,\n    NxCheckboxComponent,\n    NxDynamicTableComponent,\n    NxContextMenuModule,\n  ],\n})\nexport class DynamicTableColumnOptionsExampleComponent {\n  data = [\n    {\n      code: 'AAC ',\n      company: 'Honda',\n      price: '$1.38 ',\n      change: '-0.01 ',\n      changePercent: '-0.36% ',\n      sample: '$0.00 ',\n      lorem: 'ab lreom ',\n    },\n    {\n      code: 'AAD ',\n      company: 'Abacus',\n      price: '$1.15 ',\n      change: '+2.01 ',\n      changePercent: '+45.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab ipsum ',\n    },\n    {\n      code: 'AAC ',\n      company: 'Aditya',\n      price: '$2.22 ',\n      change: '-1.21 ',\n      changePercent: '+5.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n    {\n      code: 'ABC ',\n      company: 'Acrux Limited',\n      price: '$1.50 ',\n      change: '-0.01 ',\n      changePercent: '±0% ',\n      sample: '$0.00 ',\n      lorem: 'mad<br>abdi ',\n    },\n    {\n      code: 'AGK ',\n      company: 'Adamus',\n      price: '$3.12 ',\n      change: '-0.01 ',\n      changePercent: '-1.00% ',\n      sample: '$0.00 ',\n      lorem: 'ab tyuy ',\n    },\n  ];\n\n  columns: NxDynamicTableColumnDefinition[] = [\n    { title: 'Code', key: 'code', type: 'string' },\n    { title: 'Company', key: 'company', type: 'string' },\n    { title: 'Price', key: 'price', type: 'numeric' },\n    { title: 'Change Percent', key: 'changePercent', type: 'numeric' },\n    { title: 'Change', key: 'change', type: 'numeric' },\n    { title: 'Lorem Ipsum', key: 'lorem', type: 'string' },\n  ];\n\n  selected = ['code', 'company', 'price', 'changePercent', 'change', 'lorem'];\n\n  get displayedColumns() {\n    return this.columns.filter((column) =>\n      this.selected.some((selected) => column.key === selected),\n    );\n  }\n}\n\n```\n```html\n<div style=\"text-align: end\">\n  <button\n    nxButton=\"small\"\n    [nxContextMenuTriggerFor]=\"menu\"\n    style=\"margin-bottom: 24px\"\n  >\n    Column Settings\n  </button>\n</div>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  <nx-context-menu-header> Column Settings </nx-context-menu-header>\n  <nx-checkbox-group [(ngModel)]=\"selected\">\n    <nx-context-menu-item-wrap>\n      @for (column of columns; track column) {\n        <div nxContextMenuItem nxContextMenuItemCheckbox disableCloseOnSelect>\n          <nx-checkbox [value]=\"column.key\"> {{ column.title }} </nx-checkbox>\n          <!-- TODO keyboard selection not working -->\n          <!-- TODO item span not full length, icon cannot be at the end -->\n        </div>\n      }\n    </nx-context-menu-item-wrap>\n  </nx-checkbox-group>\n</nx-context-menu>\n\n<nx-dynamic-table\n  [data]=\"data\"\n  [displayedColumns]=\"displayedColumns\"\n></nx-dynamic-table>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "error-handling.md",
    "title": "Error handling",
    "category": "general",
    "alias": [],
    "sections": [
      {
        "heading": "error component",
        "level": 3,
        "content": "The `<nx-error>` is a base component to display error messages.\n\nImport it with\n\n<p class=\"docs-api-module-import\">\n  <code style=\"white-space: normal\">\n    <span class=\"docs-api-module-import__import-span\">import</span>\n    { NxErrorModule }\n    <span class=\"docs-api-module-import__from-span\">from</span>\n    <span class=\"docs-api-module-import__path-span\">'@allianz/ng-aquila/base'</span>;\n  </code>\n</p>\n\nThe module is auto-imported when you use the [formfield](./documentation/formfield), [checkbox](./documentation/checkbox) or [radio-button](./documentation/radio-button) module.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { Component } from '@angular/core';\n\n/** @title Error example */\n@Component({\n  selector: 'error-example',\n  templateUrl: './error-example.html',\n  styleUrls: ['./error-example.css'],\n  imports: [NxErrorComponent],\n})\nexport class ErrorExampleComponent {}\n\n```\n```html\n<nx-error> This is an error message. </nx-error>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "The inverse version of the error can be used on a dark background. Set it via the `inverse` property.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { Component } from '@angular/core';\n\n/** @title Error Inverse */\n@Component({\n  selector: 'error-inverse-example',\n  templateUrl: './error-inverse-example.html',\n  styleUrls: ['./error-inverse-example.css'],\n  imports: [NxErrorComponent],\n})\nexport class ErrorInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-error inverse>\n    This is an inverse error message for use on a dark background.\n  </nx-error>\n</div>\n\n```\n\n"
      },
      {
        "heading": "custom error state",
        "level": 3,
        "content": "Our form control components use `ErrorStateMatcher` for determining when error messages should be shown. Using the `ErrorStateMatcher`, `nx-errors` are automatically managed by the component, you don't need to handle showing and hiding them manually in the markup anymore (except for when you have multiple errors on one input).\n\nThe `ErrorStateMatcher` is used in the following components:\n\n-   Checkbox Group\n-   Code Input\n-   Dropdown\n-   File Uploader\n-   Input Directive\n-   Progress Stepper\n-   Radio Button Group\n-   Selectable Card\n-   Switcher\n-   Segmented Toggle Button\n-   Toggle Button\n-   Timefield\n\nPer default a state is erroneous, if a control is **invalid and touched** or **invalid and its parent form submitted**. To change the default error state matching you can implement the `ErrorStateMatcher` interface in your component and use it instead of the default one:\n\n```ts\n@Component({\n  ...\n  providers: [\n    {\n      provide: ErrorStateMatcher,\n      useExisting: CustomErrorStateMatcher\n    }\n  ]\n  ...\n})\n```\n\nAn `ErrorStateMatcher` must implement the method `isErrorState` which takes the FormControl of the input field as well as the parent form and returns a boolean indicating whether errors should be shown.\n\nYou can import the `ErrorStateMatcher` with:\n\n<p class=\"docs-api-module-import\">\n  <code style=\"white-space: normal\">\n    <span class=\"docs-api-module-import__import-span\">import</span>\n    { ErrorStateMatcher }\n    <span class=\"docs-api-module-import__from-span\">from</span>\n    <span class=\"docs-api-module-import__path-span\">'@allianz/ng-aquila/utils'</span>;\n  </code>\n</p>\n\nThe example below shows an **error while the user is typing (dirty)** and not until he blurrs the input field as in the default case.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { ErrorStateMatcher } from '@allianz/ng-aquila/utils';\nimport { Component, Injectable } from '@angular/core';\nimport {\n  FormControl,\n  FormGroupDirective,\n  FormsModule,\n  NgForm,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n@Injectable()\nexport class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {\n  /** Custom error state matcher that checks for validity of the formfield. */\n  isErrorState(\n    control: FormControl | null,\n    form: FormGroupDirective | NgForm | null,\n  ): boolean {\n    return !!(control?.invalid && (control.dirty || form?.submitted));\n  }\n}\n\n/**\n * @title Custom error state matching Formfield Example\n */\n@Component({\n  selector: 'error-custom-matcher-formfield-example',\n  templateUrl: './error-custom-matcher-formfield-example.html',\n  styleUrls: ['./error-custom-matcher-formfield-example.css'],\n  providers: [\n    { provide: ErrorStateMatcher, useClass: ShowOnDirtyErrorStateMatcher },\n  ],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class ErrorCustomMatcherFormfieldExampleComponent {\n  emailFormControl = new FormControl('', [\n    Validators.required,\n    Validators.email,\n  ]);\n}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input nxInput [formControl]=\"emailFormControl\" />\n  <span nxFormfieldHint> This field will show an error while typing. </span>\n  <nx-error nxFormfieldError> Please enter a valid email address. </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "global custom errorstatematcher",
        "level": 3,
        "content": "You can also set a custom error matching behaviour globally by defining your custom error state matcher:\n\n```ts\n@Injectable()\nexport class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {\n    /** Custom error state matcher that checks for validity of the formfield. */\n    isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n        return !!(control && control.invalid && (control.dirty || (form && form.submitted)));\n    }\n}\n```\n\nand then providing it globaly, for example in your `app.module.ts`:\n\n```ts\n@NgModule({\n    providers: [{ provide: ErrorStateMatcher, useClass: CustomErrorStateMatcher }],\n})\nexport class ApplicationModule {}\n```\n"
      },
      {
        "heading": "reset error state",
        "level": 3,
        "content": "To reset the validation state of an Angular form, use `resetForm` from the formGroup directive instead of the formGroup instance. This method checks for the form submitted state which available via the directive.\n\n```\n<form [formGroup]=\"myForm\" (ngSubmit)=\"submitForm(ngForm)\" #ngForm=\"ngForm\">\n```\n\n```\nsubmitForm(ngForm: FormGroupDirective): void {\n\n  // won't work!\n  // this.myForm.reset();\n\n  // resets the form to the initial values and also resets the `submitted` status.\n  ngForm.resetForm();\n}\n```\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport {\n  FormsModule,\n  ReactiveFormsModule,\n  UntypedFormBuilder,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Error Reset Example\n */\n@Component({\n  selector: 'error-reset-example',\n  templateUrl: './error-reset-example.html',\n  styleUrls: ['./error-reset-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxButtonComponent,\n  ],\n})\nexport class ErrorResetExampleComponent {\n  constructor(private readonly fb: UntypedFormBuilder) {}\n\n  form = this.fb.group({\n    label: ['', Validators.required],\n  });\n}\n\n```\n```html\n<form [formGroup]=\"form\" #formGroupDirective>\n  <nx-formfield label=\"Label\">\n    <input nxInput formControlName=\"label\" />\n    <nx-error nxFormfieldError> This field is required. </nx-error>\n  </nx-formfield>\n  <button type=\"submit\" nxButton=\"primary small\">submit</button>\n  <button\n    type=\"button\"\n    nxButton=\"secondary small\"\n    class=\"nx-margin-left-s\"\n    (click)=\"formGroupDirective.reset()\"\n  >\n    Reset\n  </button>\n</form>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "eyebrow.md",
    "title": "Eyebrow",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "overview",
        "level": 3,
        "content": "Import it with\n\n<p class=\"docs-api-module-import\">\n  <code style=\"white-space: normal\">\n    <span class=\"docs-api-module-import__import-span\">import</span>\n    { NxEyebrowModule }\n    <span class=\"docs-api-module-import__from-span\">from</span>\n    <span class=\"docs-api-module-import__path-span\">'@allianz/ng-aquila/eyebrow'</span>;\n  </code>\n</p>\n\nThe Eyebrow can give more context with Headlines\n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Eyebrow as part of Headline example\n */\n@Component({\n  selector: 'eyebrow-headline-example',\n  templateUrl: './eyebrow-headline-example.html',\n  styleUrls: ['eyebrow-headline-example.css'],\n  imports: [NxEyebrowComponent, NxHeadlineComponent],\n})\nexport class EyebrowHeadlineExampleComponent {}\n\n```\n```html\n<p nxEyebrow size=\"s\">Eyebrow</p>\n<h2 nxHeadline size=\"4xl\">This is a Headline</h2>\n\n```\n\n\nThe selector for the Eyebrow can be used as a standalone html tag via `<nx-eyebrow>` or as a html attribue like `<p nxEyebrow>`.\n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic Eyebrow example\n */\n@Component({\n  selector: 'eyebrow-example',\n  templateUrl: './eyebrow-example.html',\n  styleUrls: ['eyebrow-example.css'],\n  imports: [NxEyebrowComponent],\n})\nexport class EyebrowExampleComponent {}\n\n```\n```html\n<div class=\"container\">\n  <div class=\"example\">\n    <p>default</p>\n    <nx-eyebrow size=\"m\">Eyebrow M</nx-eyebrow>\n    <p nxEyebrow size=\"s\">Eyebrow S</p>\n  </div>\n  <div class=\"example inverse\">\n    <p>inverse</p>\n    <nx-eyebrow size=\"m\" inverse>Eyebrow M</nx-eyebrow>\n    <p nxEyebrow size=\"s\" inverse>Eyebrow S</p>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 3,
        "content": "Use the `colorScheme` input (`default` or `on-accent-attention`) to place an eyebrow on an\naccent-colored surface. Combine with `inverse` for accent surfaces on dark backgrounds.\n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Eyebrow color scheme example\n */\n@Component({\n  selector: 'eyebrow-color-scheme-example',\n  templateUrl: './eyebrow-color-scheme-example.html',\n  styleUrls: ['./eyebrow-color-scheme-example.css'],\n  imports: [NxEyebrowComponent, NxHeadlineComponent],\n})\nexport class EyebrowColorSchemeExampleComponent {}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 nxHeadline size=\"s\">Default</h4>\n    <nx-eyebrow size=\"m\">Eyebrow default</nx-eyebrow>\n  </div>\n  <div class=\"example-item docs-attention-container\">\n    <h4 nxHeadline size=\"s\" colorScheme=\"on-accent-attention\">\n      On-Accent Attention\n    </h4>\n    <nx-eyebrow size=\"m\" colorScheme=\"on-accent-attention\"\n      >Eyebrow on-accent-attention</nx-eyebrow\n    >\n  </div>\n</div>\n\n```\n\n\n"
      }
    ]
  },
  {
    "name": "file-uploader.md",
    "title": "File uploader",
    "category": "components",
    "alias": [
      "file upload",
      "attachment"
    ],
    "sections": [
      {
        "heading": "basic usage",
        "level": 3,
        "content": "The component has a built-in http POST uploading functionality. To use this, there has to be a `NxFileUploader` defined and assigned to the file uploader component. Success and error handling can be done with subscribing to the `response` stream of the file uploader.\n\nMost of the examples are using the `[nxFileUploadTriggerFor]` directive for triggering the upload. Alternatively, `updateFiles()` of the File Uploader component can be used.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader example */\n@Component({\n  selector: 'file-uploader-basic-example',\n  templateUrl: './file-uploader-basic-example.html',\n  styleUrls: ['./file-uploader-basic-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderBasicExampleComponent implements OnInit, OnDestroy {\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n@if (documentUpload.value?.length) {\n  <button\n    nxButton=\"primary\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n    type=\"button\"\n  >\n    Upload files\n  </button>\n}\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader example */\n@Component({\n  selector: 'file-uploader-basic-ndbx-example',\n  templateUrl: './file-uploader-basic-ndbx-example.html',\n  styleUrls: ['./file-uploader-basic-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderBasicNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n<button\n  nxButton=\"secondary small\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  [disabled]=\"!documentUpload.value?.length\"\n  type=\"button\"\n>\n  Upload\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "reactive form",
        "level": 3,
        "content": "<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'All files were uploaded successfully!',\n};\n\n/** @title File uploader reactive form example */\n@Component({\n  selector: 'file-uploader-reactive-example',\n  templateUrl: './file-uploader-reactive-example.html',\n  styleUrls: ['./file-uploader-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderReactiveExampleComponent implements OnInit, OnDestroy {\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    formControlName=\"documents\"\n    required\n    #documentUpload\n    accept=\"image/jpeg, image/x-png, image/png\"\n    multiple\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Only JPG or PNG files are accepted.</span\n    >\n\n    <button\n      nxButton=\"secondary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"arrow-upload\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Choose File\n    </button>\n\n    <nx-error>Required!</nx-error>\n  </nx-file-uploader>\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    [disabled]=\"!testForm.valid\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n  >\n    Upload files\n  </button>\n</form>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'All files were uploaded successfully!',\n};\n\n/** @title File uploader reactive form example */\n@Component({\n  selector: 'file-uploader-reactive-ndbx-example',\n  templateUrl: './file-uploader-reactive-ndbx-example.html',\n  styleUrls: ['./file-uploader-reactive-ndbx-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderReactiveNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    formControlName=\"documents\"\n    required\n    #documentUpload\n    accept=\"image/jpeg, image/x-png, image/png\"\n    multiple\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Only JPG or PNG files are accepted.</span\n    >\n\n    <button\n      nxButton=\"primary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"plus\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Add File\n    </button>\n\n    <nx-error>Required!</nx-error>\n  </nx-file-uploader>\n\n  <button\n    nxButton=\"secondary small\"\n    type=\"button\"\n    [disabled]=\"!testForm.valid\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n  >\n    Upload files\n  </button>\n</form>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "template driven form",
        "level": 3,
        "content": "<div class=\"docs-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader template-driven example */\n@Component({\n  selector: 'file-uploader-template-driven-example',\n  templateUrl: './file-uploader-template-driven-example.html',\n  styleUrls: ['./file-uploader-template-driven-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    FormsModule,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderTemplateDrivenExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  myFiles: FileItem[] = [];\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload [(ngModel)]=\"myFiles\" [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Please upload a file</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Only one file is allowed.</span\n  >\n\n  <button\n    nxButton=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n@if (documentUpload.value?.length) {\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n  >\n    Upload files\n  </button>\n}\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader template-driven example */\n@Component({\n  selector: 'file-uploader-template-driven-ndbx-example',\n  templateUrl: './file-uploader-template-driven-ndbx-example.html',\n  styleUrls: ['./file-uploader-template-driven-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    FormsModule,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderTemplateDrivenNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  myFiles: FileItem[] = [];\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload [(ngModel)]=\"myFiles\" [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Please upload a file</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Only one file is allowed.</span\n  >\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  [disabled]=\"documentUpload.value && !documentUpload.value.length\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "multiple file uploader",
        "level": 3,
        "content": "It's possible to combine multiple file uploader to use different uploader configs or accommodate file categories\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  FileUploadError,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploadResult,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport {\n  Component,\n  OnChanges,\n  OnDestroy,\n  SimpleChanges,\n  viewChildren,\n} from '@angular/core';\nimport { Subject, zip } from 'rxjs';\nimport { first } from 'rxjs/operators';\n\nconst successToastConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\nconst noFilesToastConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'info',\n  announcementMessage: 'Information: No files to upload.',\n};\n\n/** @title Multiple file uploader combined example */\n@Component({\n  selector: 'file-uploader-categories-example',\n  templateUrl: './file-uploader-categories-example.html',\n  styleUrls: ['./file-uploader-categories-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxPlainButtonComponent,\n    NxErrorComponent,\n  ],\n})\nexport class FileUploaderCategoriesExampleComponent\n  implements OnDestroy, OnChanges\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n    // emitSuccessResultOnEmptyFileList: true,\n  };\n\n  readonly carDocumentsUploader = new NxFileUploader(\n    this.uploadConfig,\n    this.http,\n  );\n  readonly driverDocumentsUploader = new NxFileUploader(\n    this.uploadConfig,\n    this.http,\n  );\n  readonly additionalDocumentsUploader = new NxFileUploader(\n    this.uploadConfig,\n    this.http,\n  );\n\n  private readonly _destroyed = new Subject<void>();\n\n  uploaderComponents = viewChildren(NxFileUploaderComponent);\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnChanges(changes: SimpleChanges): void {\n    console.log(changes);\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  triggerUpload() {\n    // find all uploaders that have files to upload and ignore others\n    const uploadersWithFilesToUpload = this.uploaderComponents().filter(\n      (uploaderComponent) =>\n        uploaderComponent.value\n          ? uploaderComponent.value.filter((item) => !item.isUploaded).length >\n            0\n          : false,\n    );\n\n    // show toast if no files to upload\n    if (uploadersWithFilesToUpload.length === 0) {\n      this.messageToastService.open('No files to upload!', noFilesToastConfig);\n    }\n\n    if (uploadersWithFilesToUpload.length > 0) {\n      this.uploadFilesForUploaders(uploadersWithFilesToUpload);\n    }\n  }\n\n  getFileErrors(): FileUploadError[] {\n    return this.uploaderComponents()\n      .map((uploader) => uploader.errors || [])\n      .flatMap((error) => error);\n  }\n\n  uploadFilesForUploaders(\n    uploadersWithFilesToUpload: NxFileUploaderComponent[],\n  ) {\n    // wait for all uploaders with files to upload to finish uploading\n    zip(\n      uploadersWithFilesToUpload.map(\n        (uploaderComponent) => uploaderComponent.uploader.response,\n      ),\n    )\n      .pipe(first())\n      .subscribe((results: NxFileUploadResult[]) => {\n        console.log(`results`, results);\n\n        const allSucessful = results.every((result) => result.allSucessful);\n\n        if (allSucessful) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            successToastConfig,\n          );\n        } else {\n          results.forEach((result) => console.log(result.error));\n        }\n      });\n\n    // start uploading files\n    uploadersWithFilesToUpload.forEach((uploader) => {\n      uploader.uploadFiles();\n    });\n  }\n}\n\n```\n```html\n<nx-label size=\"small\" class=\"nx-margin-bottom-3xs\" id=\"file-upload-label\">\n  Upload your documents\n</nx-label>\n\n<span class=\"nx-margin-bottom-s\" nxFileUploadHint id=\"file-upload-hint\">\n  JPG, PNG or PDF • less than 1MB\n</span>\n\n@if (\n  uploaderComponents()[0].errors.length > 0 ||\n  uploaderComponents()[1].errors.length > 0 ||\n  uploaderComponents()[2].errors.length > 0\n) {\n  <nx-error id=\"file-upload-error\">\n    <div class=\"nx-font-weight-bold\">Error</div>\n    <ul>\n      @for (item of getFileErrors(); track $index) {\n        @if (item.type === 'fileSize') {\n          <li>File size of {{ item.filename }} exceeds limit of 1 MB</li>\n        }\n      }\n    </ul>\n  </nx-error>\n}\n\n<nx-file-uploader\n  #driverDocumentUpload\n  multiple\n  [uploader]=\"carDocumentsUploader\"\n  maxFileSize=\"{{ 1 * 1024 * 1024 }}\"\n  ariaDescribedBy=\"file-upload-label file-upload-hint file-upload-error\"\n>\n  <div class=\"uploader-row\">\n    Driver Documents\n    <span>\n      <button\n        nxPlainButton\n        type=\"button\"\n        nxFileUploadButton\n        aria-label=\"Add Driver Documents\"\n      >\n        <nx-icon\n          name=\"arrow-upload\"\n          nxIconPositionStart\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Choose File\n      </button>\n    </span>\n  </div>\n</nx-file-uploader>\n<nx-file-uploader\n  #carDocumentUpload\n  multiple\n  [uploader]=\"driverDocumentsUploader\"\n  maxFileSize=\"{{ 1 * 1024 * 1024 }}\"\n  ariaDescribedBy=\"file-upload-label file-upload-hint file-upload-error\"\n>\n  <div class=\"uploader-row\">\n    Car Documents\n    <span>\n      <button\n        nxPlainButton\n        type=\"button\"\n        nxFileUploadButton\n        aria-label=\"Add Car Documents\"\n      >\n        <nx-icon\n          name=\"arrow-upload\"\n          nxIconPositionStart\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Choose File\n      </button>\n    </span>\n  </div>\n</nx-file-uploader>\n<nx-file-uploader\n  #additionalDocumentUpload\n  multiple\n  [uploader]=\"additionalDocumentsUploader\"\n  maxFileSize=\"{{ 1 * 1024 * 1024 }}\"\n  ariaDescribedBy=\"file-upload-label file-upload-hint file-upload-error\"\n>\n  <div class=\"uploader-row\">\n    Additional Documents\n    <span>\n      <button\n        nxPlainButton\n        type=\"button\"\n        nxFileUploadButton\n        aria-label=\"Add Additional Documents\"\n      >\n        <nx-icon\n          name=\"arrow-upload\"\n          nxIconPositionStart\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Choose File\n      </button>\n    </span>\n  </div>\n</nx-file-uploader>\n\n<button\n  nxButton=\"primary\"\n  (click)=\"triggerUpload()\"\n  type=\"button\"\n  class=\"nx-margin-top-s\"\n>\n  Upload Documents\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  FileUploadError,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploadResult,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport {\n  Component,\n  OnChanges,\n  OnDestroy,\n  SimpleChanges,\n  viewChildren,\n} from '@angular/core';\nimport { Subject, zip } from 'rxjs';\nimport { first } from 'rxjs/operators';\n\nconst successToastConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\nconst noFilesToastConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'info',\n  announcementMessage: 'Information: No files to upload.',\n};\n\n/** @title Multiple file uploader combined example */\n@Component({\n  selector: 'file-uploader-categories-ndbx-example',\n  templateUrl: './file-uploader-categories-ndbx-example.html',\n  styleUrls: ['./file-uploader-categories-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxPlainButtonComponent,\n    NxErrorComponent,\n  ],\n})\nexport class FileUploaderCategoriesNdbxExampleComponent\n  implements OnDestroy, OnChanges\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n    // emitSuccessResultOnEmptyFileList: true,\n  };\n\n  readonly carDocumentsUploader = new NxFileUploader(\n    this.uploadConfig,\n    this.http,\n  );\n  readonly driverDocumentsUploader = new NxFileUploader(\n    this.uploadConfig,\n    this.http,\n  );\n  readonly additionalDocumentsUploader = new NxFileUploader(\n    this.uploadConfig,\n    this.http,\n  );\n\n  private readonly _destroyed = new Subject<void>();\n\n  uploaderComponents = viewChildren(NxFileUploaderComponent);\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnChanges(changes: SimpleChanges): void {\n    console.log(changes);\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  triggerUpload() {\n    // find all uploaders that have files to upload and ignore others\n    const uploadersWithFilesToUpload = this.uploaderComponents().filter(\n      (uploaderComponent) =>\n        uploaderComponent.value\n          ? uploaderComponent.value.filter((item) => !item.isUploaded).length >\n            0\n          : false,\n    );\n\n    // show toast if no files to upload\n    if (uploadersWithFilesToUpload.length === 0) {\n      this.messageToastService.open('No files to upload!', noFilesToastConfig);\n    }\n\n    if (uploadersWithFilesToUpload.length > 0) {\n      this.uploadFilesForUploaders(uploadersWithFilesToUpload);\n    }\n  }\n\n  getFileErrors(): FileUploadError[] {\n    return this.uploaderComponents()\n      .map((uploader) => uploader.errors || [])\n      .flatMap((error) => error);\n  }\n\n  uploadFilesForUploaders(\n    uploadersWithFilesToUpload: NxFileUploaderComponent[],\n  ) {\n    // wait for all uploaders with files to upload to finish uploading\n    zip(\n      uploadersWithFilesToUpload.map(\n        (uploaderComponent) => uploaderComponent.uploader.response,\n      ),\n    )\n      .pipe(first())\n      .subscribe((results: NxFileUploadResult[]) => {\n        console.log(`results`, results);\n\n        const allSucessful = results.every((result) => result.allSucessful);\n\n        if (allSucessful) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            successToastConfig,\n          );\n        } else {\n          results.forEach((result) => console.log(result.error));\n        }\n      });\n\n    // start uploading files\n    uploadersWithFilesToUpload.forEach((uploader) => {\n      uploader.uploadFiles();\n    });\n  }\n}\n\n```\n```html\n<nx-label size=\"small\" class=\"nx-margin-bottom-3xs\" id=\"file-upload-label\">\n  Upload your documents\n</nx-label>\n\n<span class=\"nx-margin-bottom-s\" nxFileUploadHint id=\"file-upload-hint\">\n  JPG, PNG or PDF • less than 1MB\n</span>\n\n@if (\n  uploaderComponents()[0].errors.length > 0 ||\n  uploaderComponents()[1].errors.length > 0 ||\n  uploaderComponents()[2].errors.length > 0\n) {\n  <nx-error id=\"file-upload-error\">\n    <div class=\"nx-font-weight-bold\">Error</div>\n    <ul>\n      @for (item of getFileErrors(); track $index) {\n        @if (item.type === 'fileSize') {\n          <li>File size of {{ item.filename }} exceeds limit of 1 MB</li>\n        }\n      }\n    </ul>\n  </nx-error>\n}\n\n<nx-file-uploader\n  #driverDocumentUpload\n  multiple\n  [uploader]=\"carDocumentsUploader\"\n  maxFileSize=\"{{ 1 * 1024 * 1024 }}\"\n  ariaDescribedBy=\"file-upload-label file-upload-hint file-upload-error\"\n>\n  <div class=\"uploader-row\">\n    Driver Documents\n    <span>\n      <button\n        nxPlainButton\n        type=\"button\"\n        nxFileUploadButton\n        aria-label=\"Add Driver Documents\"\n      >\n        <nx-icon name=\"plus\" nxIconPositionStart aria-hidden=\"true\"></nx-icon>\n        Add File\n      </button>\n    </span>\n  </div>\n</nx-file-uploader>\n<nx-file-uploader\n  #carDocumentUpload\n  multiple\n  [uploader]=\"driverDocumentsUploader\"\n  maxFileSize=\"{{ 1 * 1024 * 1024 }}\"\n  ariaDescribedBy=\"file-upload-label file-upload-hint file-upload-error\"\n>\n  <div class=\"uploader-row\">\n    Car Documents\n    <span>\n      <button\n        nxPlainButton\n        type=\"button\"\n        nxFileUploadButton\n        aria-label=\"Add Car Documents\"\n      >\n        <nx-icon name=\"plus\" nxIconPositionStart aria-hidden=\"true\"></nx-icon>\n        Add File\n      </button>\n    </span>\n  </div>\n</nx-file-uploader>\n<nx-file-uploader\n  #additionalDocumentUpload\n  multiple\n  [uploader]=\"additionalDocumentsUploader\"\n  maxFileSize=\"{{ 1 * 1024 * 1024 }}\"\n  ariaDescribedBy=\"file-upload-label file-upload-hint file-upload-error\"\n>\n  <div class=\"uploader-row\">\n    Additional Documents\n    <span>\n      <button\n        nxPlainButton\n        type=\"button\"\n        nxFileUploadButton\n        aria-label=\"Add Additional Documents\"\n      >\n        <nx-icon name=\"plus\" nxIconPositionStart aria-hidden=\"true\"></nx-icon>\n        Add File\n      </button>\n    </span>\n  </div>\n</nx-file-uploader>\n\n<button\n  nxButton=\"secondary small\"\n  (click)=\"triggerUpload()\"\n  type=\"button\"\n  class=\"nx-margin-top-s\"\n>\n  Upload Documents\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "validation",
        "level": 3,
        "content": "The FileItem class provides a set of methods and properties in order to set the current state of the file.\n"
      },
      {
        "heading": "error list",
        "level": 4,
        "content": "For all kinds of events where a file is blocked from being added to the file list model (e.g. wrong file type, too large, too many files), the file uploader component provides an `errors` property with an array of errors.\n\n<div class=\"docs-deprecation-warning\">\n    <strong>Please note: </strong><br>\n    <p>Previously we registered all validations as form control validators. We identified some problems with this approach such as that only the last file for each error was added in the form control errors instead of all files that do not validate. Additionally it creates some UX challenges when a file was blocked from being added to the model. The form control is then not valid and the user cannot proceed but leaves the user with the challenge what they should do.</p>\n    <p>To mitigate these problems we introduced the <code>noBlockingValidators</code> option which we do not enable by default yet because it would introduce a breaking change. For the new and improved behavior, please set it to <code>true</code>.\n    For further details see the <a href=\"./documentation/file-uploader/overview#disable-blocking-validators\">Disable blocking validators</a> section.</p>\n</div>\n\nThe following example shows how you can use both the form control validators (e.g. required or custom validators) and the `errors` property to display a comprehensive list of all errors.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxMessageToastService } from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  OnDestroy,\n  OnInit,\n  ViewChild,\n} from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { myCustomConfig } from '../file-uploader-auto/file-uploader-auto-example';\n\n/** @title File uploader error list example */\n@Component({\n  selector: 'file-uploader-error-list-example',\n  templateUrl: './file-uploader-error-list-example.html',\n  styleUrls: ['./file-uploader-error-list-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent_1,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderErrorListExampleComponent\n  implements OnInit, OnDestroy\n{\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          this.testForm.controls.documents.setErrors({\n            serverError: true,\n          });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    maxFileSize=\"{{ 2 * 1024 * 1024 }}\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n    accept=\"png\"\n    disableCommonValidator\n    maxFileNumber=\"2\"\n    [noBlockingValidators]=\"true\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum file size 2MB, Accept only PNG files, Maximum 2 files</span\n    >\n\n    <button\n      nxButton=\"secondary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"arrow-upload\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Choose File\n    </button>\n\n    <nx-error>\n      <div class=\"nx-font-weight-bold\">Error</div>\n      <ul>\n        @if (testForm.controls['documents'].hasError('required')) {\n          <li>Required!</li>\n        }\n        @if (testForm.controls['documents'].hasError('serverError')) {\n          <li>An error occurred while uploading.</li>\n        }\n        @if (documentUpload?.errors?.length) {\n          @for (error of documentUpload?.errors; track error) {\n            <li>\n              @if (error.type === 'fileType') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. The supported\n                  extensions us PNG.\n                </div>\n              }\n              @if (error.type === 'fileSize') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. max file size is\n                  {{ error.max }}.\n                </div>\n              }\n              @if (error.type === 'fileNumber') {\n                <div>\n                  You cannot upload more than {{ error.max }} documents.\n                </div>\n              }\n            </li>\n          }\n        }\n      </ul>\n    </nx-error>\n  </nx-file-uploader>\n</form>\n\n<button\n  nxButton=\"primary\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxMessageToastService } from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  OnDestroy,\n  OnInit,\n  ViewChild,\n} from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { myCustomConfig } from '../file-uploader-auto/file-uploader-auto-example';\n\n/** @title File uploader error list example */\n@Component({\n  selector: 'file-uploader-error-list-ndbx-example',\n  templateUrl: './file-uploader-error-list-ndbx-example.html',\n  styleUrls: ['./file-uploader-error-list-ndbx-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent_1,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderErrorListNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          this.testForm.controls.documents.setErrors({\n            serverError: true,\n          });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    maxFileSize=\"{{ 2 * 1024 * 1024 }}\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n    accept=\"png\"\n    disableCommonValidator\n    maxFileNumber=\"2\"\n    [noBlockingValidators]=\"true\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum file size 2MB, Accept only PNG files, Maximum 2 files</span\n    >\n\n    <button\n      nxButton=\"primary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"plus\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Add File\n    </button>\n\n    <nx-error>\n      <div class=\"nx-font-weight-bold\">Error</div>\n      <ul>\n        @if (testForm.controls['documents'].hasError('required')) {\n          <li>Required!</li>\n        }\n        @if (testForm.controls['documents'].hasError('serverError')) {\n          <li>An error occurred while uploading.</li>\n        }\n        @if (documentUpload?.errors?.length) {\n          @for (error of documentUpload?.errors; track error) {\n            <li>\n              @if (error.type === 'fileType') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. The supported\n                  extensions us PNG.\n                </div>\n              }\n              @if (error.type === 'fileSize') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. max file size is\n                  {{ error.max }}.\n                </div>\n              }\n              @if (error.type === 'fileNumber') {\n                <div>\n                  You cannot upload more than {{ error.max }} documents.\n                </div>\n              }\n            </li>\n          }\n        }\n      </ul>\n    </nx-error>\n  </nx-file-uploader>\n</form>\n\n<button\n  nxButton=\"primary small\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "max file size",
        "level": 4,
        "content": "The max file size is set via the `[maxFileSize]` property. Please note that the file size is passed in bytes.\n\nThe returned error is `NxFileUploadMaxFileSize`.\n\nThe server's errors can be handled by setting the file state as shown in this example.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nconst myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader validation example */\n@Component({\n  selector: 'file-uploader-validation-example',\n  templateUrl: './file-uploader-validation-example.html',\n  styleUrls: ['./file-uploader-validation-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderValidationExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          this.testForm.controls.documents.setErrors({\n            serverError: true,\n          });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    maxFileSize=\"{{ 2 * 1024 * 1024 }}\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum file size 2MB</span\n    >\n\n    <button\n      nxButton=\"secondary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"arrow-upload\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Choose File\n    </button>\n\n    @if (testForm.controls['documents'].errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (testForm.controls['documents'].hasError('serverError')) {\n            <li>An error occured while uploading.</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError('NxFileUploadMaxFileSize')\n          ) {\n            <li>\n              File\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadMaxFileSize'\n                ).fileName | json\n              }}\n              can not be uploaded. File size exceeds size limit!\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n</form>\n\n<p>\n  Set url for testing the upload:\n  {{\n    uploadConfig['requestUrl'] === 'file-upload' ? 'Valid url' : 'Invalid url'\n  }}\n</p>\n\n<nx-radio-toggle variant=\"small\" [(ngModel)]=\"uploadConfig['requestUrl']\">\n  <nx-radio-toggle-button value=\"file-upload\">Valid url</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"file-upload-error\"\n    >Invalid url</nx-radio-toggle-button\n  >\n</nx-radio-toggle>\n\n<br />\n\n<button\n  nxButton=\"primary\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nconst myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader validation example */\n@Component({\n  selector: 'file-uploader-validation-ndbx-example',\n  templateUrl: './file-uploader-validation-ndbx-example.html',\n  styleUrls: ['./file-uploader-validation-ndbx-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderValidationNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          this.testForm.controls.documents.setErrors({\n            serverError: true,\n          });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    maxFileSize=\"{{ 2 * 1024 * 1024 }}\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum file size 2MB</span\n    >\n\n    <button\n      nxButton=\"primary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"plus\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Add File\n    </button>\n\n    @if (testForm.controls['documents'].errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (testForm.controls['documents'].hasError('serverError')) {\n            <li>An error occured while uploading.</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError('NxFileUploadMaxFileSize')\n          ) {\n            <li>\n              File\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadMaxFileSize'\n                ).fileName | json\n              }}\n              can not be uploaded. File size exceeds size limit!\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n</form>\n\n<p>\n  Set url for testing the upload:\n  {{\n    uploadConfig['requestUrl'] === 'file-upload' ? 'Valid url' : 'Invalid url'\n  }}\n</p>\n\n<nx-radio-toggle variant=\"small\" [(ngModel)]=\"uploadConfig['requestUrl']\">\n  <nx-radio-toggle-button value=\"file-upload\">Valid url</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"file-upload-error\"\n    >Invalid url</nx-radio-toggle-button\n  >\n</nx-radio-toggle>\n\n<br />\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "max file number",
        "level": 4,
        "content": "The max file number is set via the `[maxFileNumber]` property.\n\nThe return error is `NxFileUploadMaxFileNumber`.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nconst myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader with max number of files example */\n@Component({\n  selector: 'file-uploader-max-file-number-example',\n  templateUrl: './file-uploader-max-file-number-example.html',\n  styleUrls: ['./file-uploader-max-file-number-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderMaxFileNumberExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n    maxFileNumber=\"3\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum number of 3 files</span\n    >\n\n    <button\n      nxButton=\"secondary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"arrow-upload\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Choose File\n    </button>\n\n    @if (testForm.controls['documents']?.errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError('NxFileUploadMaxFileNumber')\n          ) {\n            <li>\n              There were\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadMaxFileNumber'\n                ).actual | json\n              }}\n              files added, but the maximum is\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadMaxFileNumber'\n                ).max | json\n              }}\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n</form>\n\n<button\n  nxButton=\"primary\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nconst myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader with max number of files example */\n@Component({\n  selector: 'file-uploader-max-file-number-ndbx-example',\n  templateUrl: './file-uploader-max-file-number-ndbx-example.html',\n  styleUrls: ['./file-uploader-max-file-number-ndbx-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderMaxFileNumberNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n    maxFileNumber=\"3\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum number of 3 files</span\n    >\n\n    <button\n      nxButton=\"primary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"plus\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Add File\n    </button>\n\n    @if (testForm.controls['documents']?.errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError('NxFileUploadMaxFileNumber')\n          ) {\n            <li>\n              There were\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadMaxFileNumber'\n                ).actual | json\n              }}\n              files added, but the maximum is\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadMaxFileNumber'\n                ).max | json\n              }}\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n</form>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "accepted file types",
        "level": 4,
        "content": "The permitted file types can be set via `[accept]` and are passed down to the native input[type='file'] element. Allowed is a comma separated list of MIME types or file extensions.\n\n- wildcard mime types: e.g. `image/*`\n- specific mime types: e.g. `image/png`\n- file extensions including the dot: e.g. `.png`\n\nAdditionally, there is a basic client side validation integrated in the component which returns the error `NxFileUploadFileTypeNotAccepted`. However, **files should be always verified on the server side**.\n\n<div class=\"docs-deprecation-warning\">\n  <strong>Please note: </strong><br>\n  <p>Depending on operating system settings files sometimes don't get an associated MIME type added to them.</p>\n  <p>\n  In the past we skipped validation when the file type was missing to mitigate some problems. This means that the file uploader will accept undesired files, e.g. a .log file.</p><p> To improve this behavior we added a new option <code>strictAcceptValidation</code> which we do not enable by default yet because it would introduce a breaking change. If you want to enable it, please set it to <code>true</code>.<br>\n  See the <a href=\"./documentation/file-uploader/overview#strict-file-type-validation\">Strict file type validation</a> section further below for more details.</p>\n</div>\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderDropZoneComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader type validation example */\n@Component({\n  selector: 'file-uploader-type-validation-example',\n  templateUrl: './file-uploader-type-validation-example.html',\n  styleUrls: ['./file-uploader-type-validation-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxFileUploaderDropZoneComponent,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderTypeValidationExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    formControlName=\"documents\"\n    (valueChange)=\"onChange($event)\"\n    (fileDeleted)=\"onDelete($event)\"\n    #documentUpload\n    multiple\n    accept=\"image/png\"\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Only *.png files are allowed</span\n    >\n\n    <nx-file-uploader-drop-zone class=\"nx-margin-bottom-m\">\n      <button nxButton=\"secondary\" type=\"button\" nxFileUploadButton>\n        <nx-icon\n          name=\"arrow-upload\"\n          class=\"nx-margin-right-2xs\"\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Choose File\n      </button>\n    </nx-file-uploader-drop-zone>\n\n    @if (testForm.controls['documents']?.errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError(\n              'NxFileUploadFileTypeNotAccepted'\n            )\n          ) {\n            <li>\n              File\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadFileTypeNotAccepted'\n                ).fileName | json\n              }}\n              can not be uploaded. This file type is not supported!\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n\n  <button\n    nxButton=\"primary\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n    type=\"button\"\n    [disabled]=\"!testForm.valid\"\n  >\n    Upload files\n  </button>\n</form>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderDropZoneComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader type validation example */\n@Component({\n  selector: 'file-uploader-type-validation-ndbx-example',\n  templateUrl: './file-uploader-type-validation-ndbx-example.html',\n  styleUrls: ['./file-uploader-type-validation-ndbx-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxFileUploaderDropZoneComponent,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderTypeValidationNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    formControlName=\"documents\"\n    (valueChange)=\"onChange($event)\"\n    (fileDeleted)=\"onDelete($event)\"\n    #documentUpload\n    multiple\n    accept=\"image/png\"\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Only *.png files are allowed</span\n    >\n\n    <nx-file-uploader-drop-zone class=\"nx-margin-bottom-m\">\n      <button nxButton=\"primary\" type=\"button\" nxFileUploadButton>\n        <nx-icon\n          name=\"plus\"\n          class=\"nx-margin-right-2xs\"\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Add File\n      </button>\n    </nx-file-uploader-drop-zone>\n\n    @if (testForm.controls['documents']?.errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError(\n              'NxFileUploadFileTypeNotAccepted'\n            )\n          ) {\n            <li>\n              File\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadFileTypeNotAccepted'\n                ).fileName | json\n              }}\n              can not be uploaded. This file type is not supported!\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n\n  <button\n    nxButton=\"secondary small\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n    type=\"button\"\n    [disabled]=\"!testForm.valid\"\n  >\n    Upload files\n  </button>\n</form>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "strict file type validation",
        "level": 4,
        "content": "The File objects that are created by the browsers sometimes do not provide a file mime type. This usually happens if the operating system does not have a file type associated, e.g. for a .log file or for .xslx if microsoft office or excel is not installed.\n\nBecause this created some challenges by default the file type validation is skipped in this case. This means that undesired files can be accepted.\n\nYou can harden against these cases with the `strictAcceptValidation` option. When enabled you might have to add file extensions in addition to mime types for some file types. E.g. for excel files this has been a problem in the past to only rely on the mime type. A good approach in this case could be  `accept=\"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.xls,.xlsx\"`.\n\nTry to drag and drop a .log file (at least these files worked best for us in testing across windows and mac) in the example below. It should throw an error, then disable the `strictAcceptValidation` option with the button and try again to see the difference.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderDropZoneComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader strict type validation example */\n@Component({\n  selector: 'file-uploader-strict-type-validation-example',\n  templateUrl: './file-uploader-strict-type-validation-example.html',\n  styleUrls: ['./file-uploader-strict-type-validation-example.css'],\n  imports: [\n    NxButtonComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxFileUploaderDropZoneComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderStrictTypeValidationExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  stricterAcceptValidation = true;\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n\n  toggleAcceptValidation() {\n    this.stricterAcceptValidation = !this.stricterAcceptValidation;\n  }\n}\n\n```\n```html\n<button nxButton=\"primary small\" (click)=\"toggleAcceptValidation()\">\n  Toggle strict validation\n</button>\n<p>\n  Strict validation is:\n  <strong>{{ stricterAcceptValidation ? 'on' : 'off' }}</strong>\n</p>\n\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    formControlName=\"documents\"\n    [strictAcceptValidation]=\"stricterAcceptValidation\"\n    (valueChange)=\"onChange($event)\"\n    (fileDeleted)=\"onDelete($event)\"\n    #documentUpload\n    multiple\n    accept=\"image/png\"\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Only *.png files are allowed</span\n    >\n\n    <nx-file-uploader-drop-zone class=\"nx-margin-bottom-m\">\n      <button nxButton=\"secondary\" type=\"button\" nxFileUploadButton>\n        <nx-icon\n          name=\"arrow-upload\"\n          class=\"nx-margin-right-2xs\"\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Choose File\n      </button>\n    </nx-file-uploader-drop-zone>\n\n    @if (testForm.controls['documents']?.errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError(\n              'NxFileUploadFileTypeNotAccepted'\n            )\n          ) {\n            <li>\n              File\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadFileTypeNotAccepted'\n                ).fileName | json\n              }}\n              can not be uploaded. This file type is not supported!\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n\n  <button\n    nxButton=\"primary\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n    type=\"button\"\n    [disabled]=\"!testForm.valid\"\n  >\n    Upload files\n  </button>\n</form>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderDropZoneComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader strict type validation example */\n@Component({\n  selector: 'file-uploader-strict-type-validation-ndbx-example',\n  templateUrl: './file-uploader-strict-type-validation-ndbx-example.html',\n  styleUrls: ['./file-uploader-strict-type-validation-ndbx-example.css'],\n  imports: [\n    NxButtonComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxFileUploaderDropZoneComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploaderStrictTypeValidationNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  stricterAcceptValidation = true;\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n\n  toggleAcceptValidation() {\n    this.stricterAcceptValidation = !this.stricterAcceptValidation;\n  }\n}\n\n```\n```html\n<button nxButton=\"primary small\" (click)=\"toggleAcceptValidation()\">\n  Toggle strict validation\n</button>\n<p>\n  Strict validation is:\n  <strong>{{ stricterAcceptValidation ? 'on' : 'off' }}</strong>\n</p>\n\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    formControlName=\"documents\"\n    [strictAcceptValidation]=\"stricterAcceptValidation\"\n    (valueChange)=\"onChange($event)\"\n    (fileDeleted)=\"onDelete($event)\"\n    #documentUpload\n    multiple\n    accept=\"image/png\"\n    [uploader]=\"uploader\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Only *.png files are allowed</span\n    >\n\n    <nx-file-uploader-drop-zone class=\"nx-margin-bottom-m\">\n      <button nxButton=\"primary\" type=\"button\" nxFileUploadButton>\n        <nx-icon\n          name=\"plus\"\n          class=\"nx-margin-right-2xs\"\n          aria-hidden=\"true\"\n        ></nx-icon>\n        Add File\n      </button>\n    </nx-file-uploader-drop-zone>\n\n    @if (testForm.controls['documents']?.errors) {\n      <nx-error>\n        <div class=\"nx-font-weight-bold\">Error</div>\n        <ul>\n          @if (testForm.controls['documents'].hasError('required')) {\n            <li>Required!</li>\n          }\n          @if (\n            testForm.controls['documents'].hasError(\n              'NxFileUploadFileTypeNotAccepted'\n            )\n          ) {\n            <li>\n              File\n              {{\n                testForm.controls['documents'].getError(\n                  'NxFileUploadFileTypeNotAccepted'\n                ).fileName | json\n              }}\n              can not be uploaded. This file type is not supported!\n            </li>\n          }\n        </ul>\n      </nx-error>\n    }\n  </nx-file-uploader>\n\n  <button\n    nxButton=\"secondary small\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n    type=\"button\"\n    [disabled]=\"!testForm.valid\"\n  >\n    Upload files\n  </button>\n</form>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "disable blocking validators",
        "level": 4,
        "content": "Previously we registered all validations as form control validators. We identified some problems with this approach such as that only the last file for each error was added in the form control errors instead of all files that do not validate. Additionally it creates some UX challenges when a file was blocked from being added to the model. The form control is then not valid and the user cannot proceed but leaves the user with the challenge what they should do.<br>\n\nTo mitigate these problems we introduced the <code>noBlockingValidators</code> option which we do not enable by default yet because it would introduce a breaking change. By enabling this option all validators that block files from being added to the list, like max file size, max file number or file type validation, are not added to the form control anymore. Instead you can access these types of errors via the <code>errors</code> property of the component. See the <a href=\"./documentation/file-uploader/overview#error-list\">error list</a> section.\n\nIn the following example you can see how enabling and disabling `noBlockingValidators` and then trying to add an invalid file to the list will influence the form control errors object.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxMessageToastService } from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  OnDestroy,\n  OnInit,\n  ViewChild,\n} from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { myCustomConfig } from '../file-uploader-auto/file-uploader-auto-example';\n\n/** @title No blocking validators example */\n@Component({\n  selector: 'file-uploader-error-list-example',\n  templateUrl: './file-uploader-disable-common-validators-example.html',\n  styleUrls: ['./file-uploader-disable-common-validators-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent_1,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploadernoBlockingValidatorsExampleComponent\n  implements OnInit, OnDestroy\n{\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  disableValidator = false;\n\n  toggleValidation() {\n    this.disableValidator = !this.disableValidator;\n  }\n\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          this.testForm.controls.documents.setErrors({\n            serverError: true,\n          });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    maxFileSize=\"{{ 2 * 1024 * 1024 }}\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n    accept=\"png\"\n    disableCommonValidator\n    maxFileNumber=\"2\"\n    [noBlockingValidators]=\"disableValidator\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum file size 2MB, Accept only PNG files, Maximum 2 files</span\n    >\n\n    <button\n      nxButton=\"secondary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"arrow-upload\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Choose File\n    </button>\n\n    <nx-error>\n      <div class=\"nx-font-weight-bold\">Error</div>\n      <ul>\n        @if (testForm.controls['documents'].hasError('required')) {\n          <li>File is Required!</li>\n        }\n        @if (testForm.controls['documents'].hasError('serverError')) {\n          <li>An error occurred while uploading.</li>\n        }\n        @if (documentUpload?.errors?.length) {\n          @for (error of documentUpload?.errors; track error) {\n            <li>\n              @if (error.type === 'fileType') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. The supported\n                  extensions us PNG.\n                </div>\n              }\n              @if (error.type === 'fileSize') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. max file size is\n                  {{ error.max }}.\n                </div>\n              }\n              @if (error.type === 'fileNumber') {\n                <div>\n                  You cannot upload more than {{ error.max }} documents.\n                </div>\n              }\n            </li>\n          }\n        }\n      </ul>\n    </nx-error>\n  </nx-file-uploader>\n</form>\n\n<button\n  nxButton=\"primary\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n<br />\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  (click)=\"toggleValidation()\"\n  class=\"nx-margin-top-s\"\n>\n  Toggle Disable validator ({{ disableValidator }})\n</button>\n\n<pre>\n          validators: {{testForm.controls['documents'].errors | json}}\n          <br/>\n          errors property: {{ documentUpload?.errors | json }}\n        </pre>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxMessageToastService } from '@allianz/ng-aquila/message';\nimport { JsonPipe } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  OnDestroy,\n  OnInit,\n  ViewChild,\n} from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { myCustomConfig } from '../file-uploader-auto/file-uploader-auto-example';\n\n/** @title No blocking validators example */\n@Component({\n  selector: 'file-uploader-disable-common-validators-ndbx-example',\n  templateUrl: './file-uploader-disable-common-validators-ndbx-example.html',\n  styleUrls: ['./file-uploader-disable-common-validators-ndbx-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFileUploaderComponent_1,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderTriggerDirective,\n    JsonPipe,\n  ],\n})\nexport class FileUploadernoBlockingValidatorsNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  disableValidator = false;\n\n  toggleValidation() {\n    this.disableValidator = !this.disableValidator;\n  }\n\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  readonly testForm = new FormGroup({\n    documents: new FormControl([], Validators.required),\n  });\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          this.testForm.controls.documents.setErrors({\n            serverError: true,\n          });\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onChange($event: FileItem[]) {\n    console.log($event);\n  }\n\n  onDelete($event: FileItem) {\n    console.log($event);\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-file-uploader\n    #documentUpload\n    multiple\n    formControlName=\"documents\"\n    maxFileSize=\"{{ 2 * 1024 * 1024 }}\"\n    (fileDeleted)=\"onDelete($event)\"\n    (valueChange)=\"onChange($event)\"\n    [uploader]=\"uploader\"\n    accept=\"png\"\n    disableCommonValidator\n    maxFileNumber=\"2\"\n    [noBlockingValidators]=\"disableValidator\"\n  >\n    <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n      >Required file to upload</nx-label\n    >\n    <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n      >Maximum file size 2MB, Accept only PNG files, Maximum 2 files</span\n    >\n\n    <button\n      nxButton=\"primary\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n      nxFileUploadButton\n    >\n      <nx-icon\n        name=\"plus\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Add File\n    </button>\n\n    <nx-error>\n      <div class=\"nx-font-weight-bold\">Error</div>\n      <ul>\n        @if (testForm.controls['documents'].hasError('required')) {\n          <li>File is Required!</li>\n        }\n        @if (testForm.controls['documents'].hasError('serverError')) {\n          <li>An error occurred while uploading.</li>\n        }\n        @if (documentUpload?.errors?.length) {\n          @for (error of documentUpload?.errors; track error) {\n            <li>\n              @if (error.type === 'fileType') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. The supported\n                  extensions us PNG.\n                </div>\n              }\n              @if (error.type === 'fileSize') {\n                <div>\n                  \"{{ error.filename }}\" could not be uploaded. max file size is\n                  {{ error.max }}.\n                </div>\n              }\n              @if (error.type === 'fileNumber') {\n                <div>\n                  You cannot upload more than {{ error.max }} documents.\n                </div>\n              }\n            </li>\n          }\n        }\n      </ul>\n    </nx-error>\n  </nx-file-uploader>\n</form>\n\n<button\n  nxButton=\"primary small\"\n  type=\"button\"\n  [disabled]=\"!testForm.valid\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"testForm.controls['documents'].setErrors({ serverError: false })\"\n>\n  Upload files\n</button>\n<br />\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  (click)=\"toggleValidation()\"\n  class=\"nx-margin-top-s\"\n>\n  Toggle Disable validator ({{ disableValidator }})\n</button>\n\n<pre>\n          validators: {{testForm.controls['documents'].errors | json}}\n          <br/>\n          errors property: {{ documentUpload?.errors | json }}\n        </pre>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "upload",
        "level": 3,
        "content": "All previous examples are implemented with the built-in uploading functionality of the file uploader.\n"
      },
      {
        "heading": "auto upload",
        "level": 4,
        "content": "<div class=\"docs-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader auto uploading example */\n@Component({\n  selector: 'file-uploader-auto-example',\n  templateUrl: './file-uploader-auto-example.html',\n  styleUrls: ['./file-uploader-auto-example.css'],\n  imports: [\n    NxFileUploaderComponent_1,\n    FormsModule,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n  ],\n})\nexport class FileUploaderAutoExampleComponent implements OnInit, OnDestroy {\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      headers: new HttpHeaders({\n        'My-Custom-Header': 'custom-header-value',\n      }),\n      reportUploadProgress: true,\n    },\n  };\n\n  myFiles: FileItem[] = [];\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onFilesAddedChange(files: FileItem[]) {\n    if (files) {\n      this.documentUpload.uploadFiles();\n    }\n  }\n}\n\n```\n```html\n<nx-file-uploader\n  [(ngModel)]=\"myFiles\"\n  (filesSelected)=\"onFilesAddedChange($event)\"\n  [uploader]=\"uploader\"\n  #documentUpload\n  multiple\n>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\">Upload file(s)</nx-label>\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files are allowed</span\n  >\n  <button\n    nxButton=\"secondary small-medium\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      nxIconPositionStart\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader auto uploading example */\n@Component({\n  selector: 'file-uploader-auto-ndbx-example',\n  templateUrl: './file-uploader-auto-ndbx-example.html',\n  styleUrls: ['./file-uploader-auto-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent_1,\n    FormsModule,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n  ],\n})\nexport class FileUploaderAutoNdbxExampleComponent implements OnInit, OnDestroy {\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      headers: new HttpHeaders({\n        'My-Custom-Header': 'custom-header-value',\n      }),\n      reportProgress: true,\n    },\n  };\n\n  myFiles: FileItem[] = [];\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onFilesAddedChange(files: FileItem[]) {\n    if (files) {\n      this.documentUpload.uploadFiles();\n    }\n  }\n}\n\n```\n```html\n<nx-file-uploader\n  [(ngModel)]=\"myFiles\"\n  (filesSelected)=\"onFilesAddedChange($event)\"\n  [uploader]=\"uploader\"\n  #documentUpload\n  multiple\n>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\">Upload file(s)</nx-label>\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files are allowed</span\n  >\n  <button\n    nxButton=\"primary small-medium\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon name=\"plus\" nxIconPositionStart aria-hidden=\"true\"></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "separate upload requests for each file",
        "level": 4,
        "content": "By default, all files are sent within one single upload request. You can also send separate requests by adding `uploadSeparately: true` to the configuration of the NxFileUploader.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title Example with separate uploading requests */\n@Component({\n  selector: 'file-uploader-separate-requests-example',\n  templateUrl: './file-uploader-separate-requests-example.html',\n  styleUrls: ['./file-uploader-separate-requests-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderSeparateRequestsExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n    uploadSeparately: true,\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  showUploadError = false;\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else {\n          // error handling: at least one request returned an error\n          this.showUploadError = true;\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload [uploader]=\"uploader\" multiple>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n@if (showUploadError) {\n  <nx-error> An error occurred while uploading. </nx-error>\n}\n\n<p>\n  Set url for testing the upload:\n  {{\n    uploadConfig['requestUrl'] === 'file-upload' ? 'Valid url' : 'Invalid url'\n  }}\n</p>\n\n<nx-radio-toggle variant=\"small\" [(ngModel)]=\"uploadConfig['requestUrl']\">\n  <nx-radio-toggle-button value=\"file-upload\">Valid url</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"file-upload-error\"\n    >Invalid url</nx-radio-toggle-button\n  >\n</nx-radio-toggle>\n\n<br />\n\n@if (documentUpload.value?.length) {\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n    (click)=\"showUploadError = false\"\n  >\n    Upload files\n  </button>\n}\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title Example with separate uploading requests */\n@Component({\n  selector: 'file-uploader-separate-requests-ndbx-example',\n  templateUrl: './file-uploader-separate-requests-ndbx-example.html',\n  styleUrls: ['./file-uploader-separate-requests-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderSeparateRequestsNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n    uploadSeparately: true,\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  showUploadError = false;\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else {\n          // error handling: at least one request returned an error\n          this.showUploadError = true;\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload [uploader]=\"uploader\" multiple>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n@if (showUploadError) {\n  <nx-error> An error occurred while uploading. </nx-error>\n}\n\n<p>\n  Set url for testing the upload:\n  {{\n    uploadConfig['requestUrl'] === 'file-upload' ? 'Valid url' : 'Invalid url'\n  }}\n</p>\n\n<nx-radio-toggle variant=\"small\" [(ngModel)]=\"uploadConfig['requestUrl']\">\n  <nx-radio-toggle-button value=\"file-upload\">Valid url</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"file-upload-error\"\n    >Invalid url</nx-radio-toggle-button\n  >\n</nx-radio-toggle>\n\n<br />\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!documentUpload.value?.length\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  (click)=\"showUploadError = false\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "form data field name",
        "level": 4,
        "content": "The files are appended to the form data of the upload request with the field name `uploads[]`. If your backend expects another field name, you can change it by adding `formDataFieldName: 'upload'` to the configuration of the NxFileUploader.\n"
      },
      {
        "heading": "custom uploading implementation",
        "level": 4,
        "content": "Besides the build-in uploading functionality you can also send an http request by yourself if you want to do more complex requests. Then you have to set the uploading status of the files manually:\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, ViewChild } from '@angular/core';\n\nconst myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title Custom uploading implementation */\n@Component({\n  selector: 'file-uploader-with-request-example',\n  templateUrl: './file-uploader-with-request-example.html',\n  styleUrls: ['./file-uploader-with-request-example.css'],\n  imports: [\n    NxFileUploaderComponent_1,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n  ],\n})\nexport class FileUploaderWithRequestExampleComponent {\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  showUploadError = false;\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  upload(url: string) {\n    this.showUploadError = false;\n\n    if (!this.documentUpload.value) {\n      return;\n    }\n\n    const formData = new FormData();\n\n    this.documentUpload.value.forEach((fileItem: FileItem) => {\n      if (!fileItem.isUploaded) {\n        fileItem.setUploadingState();\n        formData.append('uploads[]', fileItem.file as Blob, fileItem.name);\n      }\n    });\n\n    const params = new HttpParams();\n    const options = {\n      params,\n      reportUploadProgress: true,\n    };\n\n    this.http.post(url, formData, options).subscribe(\n      (data) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          fileItem.setUploadedState();\n        });\n        this.messageToastService.open(\n          'All files were uploaded successfully!',\n          myCustomConfig,\n        );\n      },\n      (error) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          if (!fileItem.isUploaded) {\n            fileItem.setErrorState();\n          }\n        });\n        this.showUploadError = true;\n      },\n    );\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n@if (showUploadError) {\n  <nx-error> An error occurred while uploading. </nx-error>\n}\n@if (documentUpload.value?.length) {\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    (click)=\"upload('file-upload')\"\n    class=\"nx-margin-right-2xs\"\n  >\n    Upload files\n  </button>\n\n  <button\n    nxButton=\"secondary small\"\n    type=\"button\"\n    (click)=\"upload('file-upload-error')\"\n  >\n    Upload files (and get an error)\n  </button>\n}\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderHintDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, ViewChild } from '@angular/core';\n\nconst myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title Custom uploading implementation */\n@Component({\n  selector: 'file-uploader-with-request-ndbx-example',\n  templateUrl: './file-uploader-with-request-ndbx-example.html',\n  styleUrls: ['./file-uploader-with-request-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent_1,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n  ],\n})\nexport class FileUploaderWithRequestNdbxExampleComponent {\n  @ViewChild('documentUpload', { static: false })\n  documentUpload!: NxFileUploaderComponent;\n\n  showUploadError = false;\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  upload(url: string) {\n    this.showUploadError = false;\n\n    if (!this.documentUpload.value) {\n      return;\n    }\n\n    const formData = new FormData();\n\n    this.documentUpload.value.forEach((fileItem: FileItem) => {\n      if (!fileItem.isUploaded) {\n        fileItem.setUploadingState();\n        formData.append('uploads[]', fileItem.file as Blob, fileItem.name);\n      }\n    });\n\n    const params = new HttpParams();\n    const options = {\n      params,\n      reportProgress: true,\n    };\n\n    this.http.post(url, formData, options).subscribe(\n      (data) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          fileItem.setUploadedState();\n        });\n        this.messageToastService.open(\n          'All files were uploaded successfully!',\n          myCustomConfig,\n        );\n      },\n      (error) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          if (!fileItem.isUploaded) {\n            fileItem.setErrorState();\n          }\n        });\n        this.showUploadError = true;\n      },\n    );\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n@if (showUploadError) {\n  <nx-error> An error occurred while uploading. </nx-error>\n}\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!documentUpload.value?.length\"\n  (click)=\"upload('file-upload')\"\n  class=\"nx-margin-right-2xs\"\n>\n  Upload files\n</button>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!documentUpload.value?.length\"\n  (click)=\"upload('file-upload-error')\"\n>\n  Upload files (and get an error)\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert",
        "level": 3,
        "content": "Expert uses a `small-medium` button and provides an additional drop zone component.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader expert example */\n@Component({\n  selector: 'file-uploader-expert-ndbx-example',\n  templateUrl: './file-uploader-expert-ndbx-example.html',\n  styleUrls: ['./file-uploader-expert-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderExpertNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"primary small-medium\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n<button\n  nxButton=\"secondary small\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  [disabled]=\"!documentUpload.value?.length\"\n  type=\"button\"\n>\n  Upload\n</button>\n\n```\n\n"
      },
      {
        "heading": "drop zone",
        "level": 3,
        "content": "\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderDropZoneComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader drop zone example */\n@Component({\n  selector: 'file-uploader-drop-zone-ndbx-example',\n  templateUrl: './file-uploader-drop-zone-ndbx-example.html',\n  styleUrls: ['./file-uploader-drop-zone-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxFileUploaderDropZoneComponent,\n    NxCopytextComponent,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderDropZoneNdbxExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <nx-file-uploader-drop-zone class=\"nx-margin-bottom-m\">\n    <span nxCopytext class=\"nx-margin-right-2xs nx-hidden-xs nx-hidden-s\"\n      >Drag your files here to</span\n    >\n    <button nxButton=\"primary small-medium\" type=\"button\" nxFileUploadButton>\n      <nx-icon\n        name=\"plus\"\n        class=\"nx-margin-right-2xs\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      Add File\n    </button>\n  </nx-file-uploader-drop-zone>\n</nx-file-uploader>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n  [disabled]=\"!documentUpload.value?.length\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n</div>\n"
      },
      {
        "heading": "internationalization",
        "level": 3,
        "content": "`NxFileUploaderIntl` provides the text strings used inside the file uploader component (e.g. the uploading label). It can be customized by creating a class with the translated string values.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderIntl,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, Injectable, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n@Injectable()\nexport class FileUploaderIntl extends NxFileUploaderIntl {\n  uploadingLabel = 'Téléchargement';\n  deleteLabel = 'Supprimer';\n  uploadedStateLabel = 'Téléchargé';\n  uploadedListLabel = 'Liste des fichiers téléchargés';\n}\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader internationalization example */\n@Component({\n  selector: 'file-uploader-intl-example',\n  templateUrl: './file-uploader-intl-example.html',\n  styleUrls: ['./file-uploader-intl-example.css'],\n  providers: [{ provide: NxFileUploaderIntl, useClass: FileUploaderIntl }],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderIntlExampleComponent implements OnInit, OnDestroy {\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportUploadProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n@if (documentUpload.value?.length) {\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    [nxFileUploadTriggerFor]=\"documentUpload\"\n  >\n    Upload files\n  </button>\n}\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFileUploadConfig,\n  NxFileUploader,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderHintDirective,\n  NxFileUploaderIntl,\n  NxFileUploaderTriggerDirective,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, Injectable, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n@Injectable()\nexport class FileUploaderIntl extends NxFileUploaderIntl {\n  uploadingLabel = 'Téléchargement';\n  deleteLabel = 'Supprimer';\n  uploadedStateLabel = 'Téléchargé';\n  uploadedListLabel = 'Liste des fichiers téléchargés';\n}\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader internationalization example */\n@Component({\n  selector: 'file-uploader-intl-ndbx-example',\n  templateUrl: './file-uploader-intl-ndbx-example.html',\n  styleUrls: ['./file-uploader-intl-ndbx-example.css'],\n  providers: [{ provide: NxFileUploaderIntl, useClass: FileUploaderIntl }],\n  imports: [\n    NxFileUploaderComponent,\n    NxLabelComponent,\n    NxFileUploaderHintDirective,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxFileUploaderTriggerDirective,\n  ],\n})\nexport class FileUploaderIntlNdbxExampleComponent implements OnInit, OnDestroy {\n  readonly uploadConfig: NxFileUploadConfig = {\n    requestUrl: 'file-upload',\n    options: {\n      params: new HttpParams(),\n      reportProgress: true,\n    },\n  };\n\n  readonly uploader = new NxFileUploader(this.uploadConfig, this.http);\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  ngOnInit(): void {\n    this.uploader.response\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((result) => {\n        if (result.success) {\n          this.messageToastService.open(\n            'All files were uploaded successfully!',\n            myCustomConfig,\n          );\n        } else if (result.error) {\n          // error handling\n          console.log(result.error);\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-file-uploader #documentUpload multiple [uploader]=\"uploader\">\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Select a file to upload</nx-label\n  >\n  <span class=\"nx-margin-bottom-s\" nxFileUploadHint\n    >Multiple files can be selected</span\n  >\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!documentUpload.value?.length\"\n  [nxFileUploadTriggerFor]=\"documentUpload\"\n>\n  Upload files\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "file icon",
        "level": 3,
        "content": "The `nx-file-icon` component displays a file type icon with a colored extension label badge. \n\nThe badge color is determined by the file extension. Unrecognized extensions fall back to a default color. Files without an extension show the icon without a badge. \n\n<i>Accessibility: As the extension text size does not meet accessibility requirements, file icons should only be used as decorative elements</i>\n\n\n```ts\nimport { NxFileIconComponent } from '@allianz/ng-aquila/file-uploader';\nimport { Component } from '@angular/core';\n\n/** @title File icon example */\n@Component({\n  selector: 'file-icon-example',\n  templateUrl: './file-icon-example.html',\n  styleUrls: ['./file-icon-example.css'],\n  imports: [NxFileIconComponent],\n})\nexport class FileIconExampleComponent {}\n\n```\n```html\n<div class=\"file-icon-row\">\n  <nx-file-icon fileExtension=\"pdf\"></nx-file-icon>\n  <nx-file-icon fileExtension=\"xlsx\"></nx-file-icon>\n  <nx-file-icon fileExtension=\"xls\"></nx-file-icon>\n  <nx-file-icon fileExtension=\"png\"></nx-file-icon>\n  <nx-file-icon fileExtension=\"zip\"></nx-file-icon>\n  <nx-file-icon></nx-file-icon>\n</div>\n\n```\n\n"
      },
      {
        "heading": "custom item template",
        "level": 3,
        "content": "You can customize the template that is used to render each entry within the list of files to upload.\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderItemDelete,\n  NxFileUploaderItemName,\n  NxFileUploaderItemSize,\n  NxFileUploaderItemStatus,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, ViewChild } from '@angular/core';\nimport { FormsModule, NgModel } from '@angular/forms';\n\nexport class CustomFileItem extends FileItem {\n  formData!: FormData;\n}\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader custom-item example */\n@Component({\n  selector: 'file-uploader-custom-item-example',\n  templateUrl: './file-uploader-custom-item-example.html',\n  styleUrls: ['./file-uploader-custom-item-example.css'],\n  imports: [\n    NxFileUploaderComponent_1,\n    FormsModule,\n    NxLabelComponent,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderItemName,\n    NxFileUploaderItemSize,\n    NxFileUploaderItemStatus,\n    NxFileUploaderItemDelete,\n    NxRadioGroupComponent,\n    NxRadioComponent,\n  ],\n})\nexport class FileUploaderCustomItemExampleComponent {\n  myFiles: CustomFileItem[] = [];\n\n  @ViewChild('documentUpload') documentUpload!: NxFileUploaderComponent;\n\n  @ViewChild('ngModel') ngModel!: NgModel;\n\n  showUploadError = false;\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  onChange() {\n    this.validate();\n  }\n\n  validate() {\n    const valid = this.myFiles.every(\n      (file) => typeof file.formData === 'boolean',\n    );\n    this.ngModel.control.setErrors(valid ? {} : { required: true });\n    return valid;\n  }\n\n  upload(url: string) {\n    this.showUploadError = false;\n\n    if (!this.documentUpload.value) {\n      return;\n    }\n\n    if (!this.validate()) {\n      return;\n    }\n\n    const formData = new FormData();\n    this.myFiles.forEach((file: CustomFileItem) => {\n      if (!file.isUploaded) {\n        file.setUploadingState();\n        formData.set(file.name, file.file as Blob, file.name);\n        formData.set(`${file.name}-form`, file.formData.toString());\n      }\n    });\n\n    const params = new HttpParams();\n    const options = {\n      params,\n      reportUploadProgress: true,\n    };\n\n    this.http.post(url, formData, options).subscribe(\n      (data) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          fileItem.setUploadedState();\n        });\n        this.messageToastService.open(\n          'All files were uploaded successfully!',\n          myCustomConfig,\n        );\n      },\n      (error) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          if (!fileItem.isUploaded) {\n            fileItem.setErrorState();\n          }\n        });\n        this.showUploadError = true;\n      },\n    );\n  }\n}\n\n```\n```html\n<nx-file-uploader\n  #documentUpload\n  #ngModel=\"ngModel\"\n  multiple\n  [(ngModel)]=\"myFiles\"\n  [itemTemplate]=\"myItemTemplate\"\n>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Please upload a file</nx-label\n  >\n\n  <button\n    nxButton=\"secondary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"arrow-upload\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Choose File\n  </button>\n</nx-file-uploader>\n\n@if (showUploadError) {\n  <nx-error>\n    <div class=\"nx-font-weight-bold\">Error</div>\n    <ul>\n      <li>An error occurred while uploading.</li>\n      @if (ngModel.control.hasError('required')) {\n        <li>Required!</li>\n      }\n    </ul>\n  </nx-error>\n}\n@if (documentUpload.value?.length) {\n  <button nxButton=\"primary\" type=\"button\" (click)=\"upload('file-upload')\">\n    Upload files\n  </button>\n}\n\n<ng-template\n  #myItemTemplate\n  let-templateContext=\"templateContext\"\n  let-file=\"file\"\n>\n  <nx-file-upload-name [name]=\"file?.name\"></nx-file-upload-name>\n\n  <nx-file-upload-size\n    [size]=\"file?.size\"\n    [isUploading]=\"file.isUploading\"\n    [uploadingLabel]=\"templateContext.uploadingLabel\"\n  ></nx-file-upload-size>\n\n  <div class=\"nx-file-uploader--file-row-actions\">\n    <nx-file-upload-status\n      [isUploading]=\"file.isUploading\"\n      [isUploaded]=\"file.isUploaded\"\n      [uploadedLabel]=\"templateContext.uploadedLabel\"\n    ></nx-file-upload-status>\n\n    <nx-file-upload-delete\n      [deleteLabel]=\"templateContext.deleteLabel\"\n      [isUploading]=\"file.isUploading\"\n      (click)=\"templateContext.removeFile(file)\"\n    ></nx-file-upload-delete>\n  </div>\n\n  <form>\n    <nx-radio-group\n      [disabled]=\"file.isUploading || file.isUploaded\"\n      [(ngModel)]=\"file.formData\"\n      name=\"pictureRights\"\n    >\n      <nx-label class=\"nx-margin-bottom-m\"\n        >Do you own all rights to this picture?</nx-label\n      >\n      <div class=\"horizontal-buttons\">\n        <nx-radio [value]=\"true\" class=\"nx-margin-bottom-m\">Yes</nx-radio>\n        <nx-radio [value]=\"false\" class=\"nx-margin-left-s nx-margin-bottom-m\"\n          >No</nx-radio\n        >\n      </div>\n    </nx-radio-group>\n  </form>\n</ng-template>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  FileItem,\n  NxFileUploaderButtonDirective,\n  NxFileUploaderComponent,\n  NxFileUploaderComponent as NxFileUploaderComponent_1,\n  NxFileUploaderItemDelete,\n  NxFileUploaderItemName,\n  NxFileUploaderItemSize,\n  NxFileUploaderItemStatus,\n} from '@allianz/ng-aquila/file-uploader';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, ViewChild } from '@angular/core';\nimport { FormsModule, NgModel } from '@angular/forms';\n\nexport class CustomFileItem extends FileItem {\n  formData!: FormData;\n}\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 3000,\n  context: 'positive',\n  announcementMessage: 'File was uploaded successfully!',\n};\n\n/** @title File uploader custom-item example */\n@Component({\n  selector: 'file-uploader-custom-item-ndbx-example',\n  templateUrl: './file-uploader-custom-item-ndbx-example.html',\n  styleUrls: ['./file-uploader-custom-item-ndbx-example.css'],\n  imports: [\n    NxFileUploaderComponent_1,\n    FormsModule,\n    NxLabelComponent,\n    NxButtonComponent,\n    NxFileUploaderButtonDirective,\n    NxIconComponent,\n    NxErrorComponent,\n    NxFileUploaderItemName,\n    NxFileUploaderItemSize,\n    NxFileUploaderItemStatus,\n    NxFileUploaderItemDelete,\n    NxRadioGroupComponent,\n    NxRadioComponent,\n  ],\n})\nexport class FileUploaderCustomItemNdbxExampleComponent {\n  myFiles: CustomFileItem[] = [];\n\n  @ViewChild('documentUpload') documentUpload!: NxFileUploaderComponent;\n\n  @ViewChild('ngModel') ngModel!: NgModel;\n\n  showUploadError = false;\n\n  constructor(\n    private readonly messageToastService: NxMessageToastService,\n    private readonly http: HttpClient,\n  ) {}\n\n  onChange() {\n    this.validate();\n  }\n\n  validate() {\n    const valid = this.myFiles.every(\n      (file) => typeof file.formData === 'boolean',\n    );\n    this.ngModel.control.setErrors(valid ? {} : { required: true });\n    return valid;\n  }\n\n  upload(url: string) {\n    this.showUploadError = false;\n\n    if (!this.documentUpload.value) {\n      return;\n    }\n\n    if (!this.validate()) {\n      return;\n    }\n\n    const formData = new FormData();\n    this.myFiles.forEach((file: CustomFileItem) => {\n      if (!file.isUploaded) {\n        file.setUploadingState();\n        formData.set(file.name, file.file as Blob, file.name);\n        formData.set(`${file.name}-form`, file.formData.toString());\n      }\n    });\n\n    const params = new HttpParams();\n    const options = {\n      params,\n      reportProgress: true,\n    };\n\n    this.http.post(url, formData, options).subscribe(\n      (data) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          fileItem.setUploadedState();\n        });\n        this.messageToastService.open(\n          'All files were uploaded successfully!',\n          myCustomConfig,\n        );\n      },\n      (error) => {\n        this.documentUpload.value!.forEach((fileItem: FileItem) => {\n          if (!fileItem.isUploaded) {\n            fileItem.setErrorState();\n          }\n        });\n        this.showUploadError = true;\n      },\n    );\n  }\n}\n\n```\n```html\n<nx-file-uploader\n  #documentUpload\n  #ngModel=\"ngModel\"\n  multiple\n  [(ngModel)]=\"myFiles\"\n  [itemTemplate]=\"myItemTemplate\"\n>\n  <nx-label size=\"small\" class=\"nx-margin-bottom-3xs\"\n    >Please upload a file</nx-label\n  >\n\n  <button\n    nxButton=\"primary\"\n    type=\"button\"\n    class=\"nx-margin-bottom-s\"\n    nxFileUploadButton\n  >\n    <nx-icon\n      name=\"plus\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    Add File\n  </button>\n</nx-file-uploader>\n\n@if (showUploadError) {\n  <nx-error>\n    <div class=\"nx-font-weight-bold\">Error</div>\n    <ul>\n      <li>An error occurred while uploading.</li>\n      @if (ngModel.control.hasError('required')) {\n        <li>Required!</li>\n      }\n    </ul>\n  </nx-error>\n}\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  [disabled]=\"!documentUpload.value?.length\"\n  (click)=\"upload('file-upload')\"\n>\n  Upload files\n</button>\n\n<ng-template\n  #myItemTemplate\n  let-templateContext=\"templateContext\"\n  let-file=\"file\"\n>\n  <nx-file-upload-name [name]=\"file?.name\"></nx-file-upload-name>\n\n  <nx-file-upload-size\n    [size]=\"file?.size\"\n    [isUploading]=\"file.isUploading\"\n    [uploadingLabel]=\"templateContext.uploadingLabel\"\n  ></nx-file-upload-size>\n\n  <div class=\"nx-file-uploader--file-row-actions\">\n    <nx-file-upload-status\n      [isUploading]=\"file.isUploading\"\n      [isUploaded]=\"file.isUploaded\"\n      [uploadedLabel]=\"templateContext.uploadedLabel\"\n    ></nx-file-upload-status>\n\n    <nx-file-upload-delete\n      [deleteLabel]=\"templateContext.deleteLabel\"\n      [isUploading]=\"file.isUploading\"\n      (click)=\"templateContext.removeFile(file)\"\n    ></nx-file-upload-delete>\n  </div>\n\n  <form>\n    <nx-radio-group\n      [disabled]=\"file.isUploading || file.isUploaded\"\n      [(ngModel)]=\"file.formData\"\n      name=\"pictureRights\"\n    >\n      <nx-label class=\"nx-margin-bottom-m\"\n        >Do you own all rights to this picture?</nx-label\n      >\n      <div class=\"horizontal-buttons\">\n        <nx-radio [value]=\"true\" class=\"nx-margin-bottom-m\">Yes</nx-radio>\n        <nx-radio [value]=\"false\" class=\"nx-margin-left-s nx-margin-bottom-m\"\n          >No</nx-radio\n        >\n      </div>\n    </nx-radio-group>\n  </form>\n</ng-template>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "footer.md",
    "title": "Footer",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic footer",
        "level": 4,
        "content": "Use the `nx-footer-copyright` directive to set any copyright text and navigation links via `nx-footer-navigation` and `nx-footer-link`.\n\n\n```ts\nimport {\n  NxFooterComponent,\n  NxFooterCopyrightDirective,\n  NxFooterLinkDirective,\n  NxFooterNavigationDirective,\n} from '@allianz/ng-aquila/footer';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Basic example\n */\n@Component({\n  selector: 'footer-basic-example',\n  templateUrl: './footer-basic-example.html',\n  styleUrls: ['footer-basic-example.css'],\n  imports: [\n    NxFooterComponent,\n    NxFooterCopyrightDirective,\n    NxFooterNavigationDirective,\n    NxFooterLinkDirective,\n    RouterLink,\n  ],\n})\nexport class FooterBasicExampleComponent {\n  readonly currentYear = new Date().getFullYear();\n}\n\n```\n```html\n<nx-footer>\n  <nx-footer-copyright>\n    &copy; {{ currentYear }} Some company\n  </nx-footer-copyright>\n\n  <nx-footer-navigation>\n    <nx-footer-link>\n      <a routerLink=\"./\">Imprint</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Privacy Policy</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Terms of Use</a>\n    </nx-footer-link>\n  </nx-footer-navigation>\n</nx-footer>\n\n```\n\n"
      },
      {
        "heading": "default copyright",
        "level": 4,
        "content": "You can set default copyright text by omitting the `nx-footer-copyright` directive and using the `copyright` input for company name instead.\n\n\n```ts\nimport {\n  NxFooterComponent,\n  NxFooterLinkDirective,\n  NxFooterNavigationDirective,\n} from '@allianz/ng-aquila/footer';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Footer default copyright\n */\n@Component({\n  selector: 'footer-default-copyright-example',\n  templateUrl: './footer-default-copyright-example.html',\n  styleUrls: ['footer-default-copyright-example.css'],\n  imports: [\n    NxFooterComponent,\n    NxFooterNavigationDirective,\n    NxFooterLinkDirective,\n    RouterLink,\n  ],\n})\nexport class FooterDefaultCopyrightExampleComponent {}\n\n```\n```html\n<nx-footer copyright=\"Other company\">\n  <nx-footer-navigation>\n    <nx-footer-link>\n      <a routerLink=\"./\">Imprint</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Privacy Policy</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Terms of Use</a>\n    </nx-footer-link>\n  </nx-footer-navigation>\n</nx-footer>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "divider",
        "level": 4,
        "content": "With the A1 theme, a divider is shown at the top of the footer and spans its full width. Set the `divider` input to `false` to hide it.\n\n\n```ts\nimport {\n  NxFooterComponent,\n  NxFooterCopyrightDirective,\n  NxFooterLinkDirective,\n  NxFooterNavigationDirective,\n} from '@allianz/ng-aquila/footer';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Divider example\n */\n@Component({\n  selector: 'footer-divider-example',\n  templateUrl: './footer-divider-example.html',\n  styleUrls: ['footer-divider-example.css'],\n  imports: [\n    NxFooterComponent,\n    NxFooterCopyrightDirective,\n    NxFooterNavigationDirective,\n    NxFooterLinkDirective,\n    RouterLink,\n  ],\n})\nexport class FooterDividerExampleComponent {\n  readonly currentYear = new Date().getFullYear();\n}\n\n```\n```html\n<nx-footer [divider]=\"false\">\n  <nx-footer-copyright>&copy; {{ currentYear }} Allianz</nx-footer-copyright>\n\n  <nx-footer-navigation>\n    <nx-footer-link>\n      <a routerLink=\"./\">Imprint</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Privacy Policy</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Terms of Use</a>\n    </nx-footer-link>\n  </nx-footer-navigation>\n</nx-footer>\n\n```\n\n"
      },
      {
        "heading": "max width",
        "level": 4,
        "content": "With the A1 theme and the default grid, the footer content is limited to the maximum content width and centered. The background and the divider still span the full width. With the functional grid, the content is not limited. Set the `maxWidthContent` input to `false` to let the content span the full width. Open the example in fullscreen to see the difference.\n\n\n```ts\nimport {\n  NxFooterComponent,\n  NxFooterCopyrightDirective,\n  NxFooterLinkDirective,\n  NxFooterNavigationDirective,\n} from '@allianz/ng-aquila/footer';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Max width example\n */\n@Component({\n  selector: 'footer-max-width-example',\n  templateUrl: './footer-max-width-example.html',\n  styleUrls: ['footer-max-width-example.css'],\n  imports: [\n    NxFooterComponent,\n    NxFooterCopyrightDirective,\n    NxFooterNavigationDirective,\n    NxFooterLinkDirective,\n    RouterLink,\n  ],\n})\nexport class FooterMaxWidthExampleComponent {\n  readonly currentYear = new Date().getFullYear();\n}\n\n```\n```html\n<nx-footer>\n  <nx-footer-copyright>&copy; {{ currentYear }} Allianz</nx-footer-copyright>\n\n  <nx-footer-navigation>\n    <nx-footer-link>\n      <a routerLink=\"./\">Imprint</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Privacy Policy</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Terms of Use</a>\n    </nx-footer-link>\n  </nx-footer-navigation>\n</nx-footer>\n\n<nx-footer [maxWidthContent]=\"false\">\n  <nx-footer-copyright>&copy; {{ currentYear }} Allianz</nx-footer-copyright>\n\n  <nx-footer-navigation>\n    <nx-footer-link>\n      <a routerLink=\"./\">Imprint</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Privacy Policy</a>\n    </nx-footer-link>\n    <nx-footer-link>\n      <a routerLink=\"./\">Terms of Use</a>\n    </nx-footer-link>\n  </nx-footer-navigation>\n</nx-footer>\n\n```\n\n\nBoth defaults can be changed for the whole app with the `FOOTER_DEFAULT_OPTIONS` injection token.\n\n</div>\n"
      }
    ]
  },
  {
    "name": "formfield.md",
    "title": "Formfield",
    "category": "components",
    "alias": [
      "control"
    ],
    "sections": [
      {
        "heading": "basic example",
        "level": 3,
        "content": "\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic formfield example\n */\n@Component({\n  selector: 'formfield-basic-example',\n  templateUrl: './formfield-basic-example.html',\n  styleUrls: ['./formfield-basic-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n  ],\n})\nexport class FormfieldBasicExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,4\">\n      <nx-formfield label=\"Label\">\n        <input nxInput />\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,12,4\">\n      <nx-formfield label=\"Label\">\n        <input nxInput readonly value=\"Readonly Field\" />\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,12,4\">\n      <nx-formfield label=\"Label\">\n        <input nxInput disabled value=\"Disabled Field\" />\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "small size",
        "level": 3,
        "content": "Set `size=\"s\"` on the formfield to render a more compact variant. Below is every supported form control (input, autocomplete, dropdown, multi-select, phone input, license plate, timefield, datefield, datemask, date range) using the small size.\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteOptionComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport {\n  NX_DATE_FORMATS,\n  NX_DATE_LOCALE,\n  NX_DATE_LOCALE_PROVIDER,\n  NxDateAdapter,\n  NxDatefieldDirective,\n  NxDatemaskComponent,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n  NxDateRangeComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n  NxMultiSelectComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n  NxFormfieldLabelDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NX_ISO_DATE_FORMATS,\n  NxIsoDateAdapter,\n} from '@allianz/ng-aquila/iso-date-adapter';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\ninterface FruitOption {\n  label: string;\n  id: number;\n}\n\n/**\n * @title Small formfield example\n */\n@Component({\n  selector: 'formfield-small-example',\n  templateUrl: './formfield-small-example.html',\n  styleUrls: ['./formfield-small-example.css'],\n  providers: [\n    NX_DATE_LOCALE_PROVIDER,\n    {\n      provide: NxDateAdapter,\n      useClass: NxIsoDateAdapter,\n      deps: [NX_DATE_LOCALE],\n    },\n    { provide: NX_DATE_FORMATS, useValue: NX_ISO_DATE_FORMATS },\n  ],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxFormfieldPrefixDirective,\n    NxFormfieldHintDirective,\n    NxFormfieldSuffixDirective,\n    NxInputDirective,\n    NxAutocompleteTriggerDirective,\n    NxAutocompleteComponent,\n    NxAutocompleteOptionComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxMultiSelectComponent,\n    NxPhoneInputComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxLicencePlateValidatorDirective,\n    NxTimefieldComponent,\n    NxDatefieldDirective,\n    NxDatepickerComponent,\n    NxDatepickerToggleComponent,\n    NxDatemaskComponent,\n    NxDateRangeComponent,\n    FormsModule,\n  ],\n})\nexport class FormfieldSmallExampleComponent {\n  autocompleteOptions = [\n    'Chimpanzee',\n    'Chinchilla',\n    'Chipmunk',\n    'Coati',\n    'Cicada',\n  ];\n\n  dropdownOptions = ['BMW', 'Audi', 'VW', 'Mercedes', 'Porsche'];\n\n  multiSelectOptions: FruitOption[] = [\n    { label: 'Apple', id: 1 },\n    { label: 'Banana', id: 2 },\n    { label: 'Strawberry', id: 3 },\n    { label: 'Orange', id: 4 },\n  ];\n\n  licenceValue = '';\n\n  timeValue = '12:30';\n\n  currentDate = '2020-01-01';\n\n  customDate = '2020-01-01';\n\n  dateRange: { start: string | null; end: string | null } | null = null;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Input\">\n        <input nxInput />\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Autocomplete\">\n        <input type=\"text\" nxInput [nxAutocomplete]=\"auto1\" />\n        <nx-autocomplete #auto1=\"nxAutocomplete\">\n          @for (option of autocompleteOptions; track option) {\n            <nx-autocomplete-option [value]=\"option\">\n              {{ option }}\n            </nx-autocomplete-option>\n          }\n        </nx-autocomplete>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Dropdown\">\n        <nx-dropdown>\n          @for (option of dropdownOptions; track option) {\n            <nx-dropdown-item [value]=\"option\"></nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Multi select\">\n        <nx-multi-select\n          placeholder=\"Choose options\"\n          [options]=\"multiSelectOptions\"\n          selectValue=\"id\"\n          selectLabel=\"label\"\n        ></nx-multi-select>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\">\n        <nx-formfield-label>Phone number</nx-formfield-label>\n        <nx-phone-input countryCode=\"FR\"></nx-phone-input>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input\n          nxInput\n          nxLicensePlate=\"de_standard\"\n          [(ngModel)]=\"licenceValue\"\n        />\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-timefield\n        withTimepicker\n        size=\"s\"\n        label=\"Time\"\n        [(ngModel)]=\"timeValue\"\n      ></nx-timefield>\n    </div>\n\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Datefield\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker\"\n          [(ngModel)]=\"currentDate\"\n        />\n        <span nxFormfieldHint>MM/DD/YYYY</span>\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Datemask\">\n        <nx-datemask\n          visualSeperator=\"/\"\n          format=\"DD.MM.YYYY\"\n          [(ngModel)]=\"customDate\"\n          [datepicker]=\"maskDatepicker\"\n        ></nx-datemask>\n        <span nxFormfieldHint>DD.MM.YYYY</span>\n        <nx-datepicker-toggle\n          [for]=\"maskDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #maskDatepicker></nx-datepicker>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,12,6\">\n      <nx-formfield size=\"s\" label=\"Date Range\">\n        <nx-date-range\n          [datepicker]=\"rangeDatepicker\"\n          placeholder=\"mm/dd/yyyy\"\n          [(ngModel)]=\"dateRange\"\n        ></nx-date-range>\n        <span nxFormfieldHint>MM/DD/YYYY - MM/DD/YYYY</span>\n        <nx-datepicker-toggle\n          [for]=\"rangeDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker\n          #rangeDatepicker\n          [rangeMode]=\"true\"\n          [showTodayButton]=\"true\"\n        ></nx-datepicker>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "simple form",
        "level": 3,
        "content": "This form will show a validation error as both fields are required and one fields uses the appendix slot to display an info [`<nx-icon>`](./documentation/icon/overview) together with a popover.\n\nThe formfield width depends only on the grid column it is placed in and expands until it has taken 100% of the width.\n\n**Note:** You have to include NxPopoverModule to run this example. See [NxPopover](./documentation/popover/overview) for details.\n\n\n```ts\nimport {\n  NxErrorComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Simple form example\n */\n@Component({\n  selector: 'formfield-simple-form-example',\n  templateUrl: './formfield-simple-form-example.html',\n  styleUrls: ['./formfield-simple-form-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxButtonComponent,\n    NxInfoIconComponent,\n    NxLabelInfoDirective,\n  ],\n})\nexport class FormfieldSimpleFormExampleComponent {\n  formGroup: FormGroup;\n\n  constructor() {\n    this.formGroup = new FormBuilder().group({\n      firstName: ['', Validators.required],\n      lastName: ['', Validators.required],\n      items: ['', Validators.required],\n      email: ['', Validators.required],\n    });\n  }\n}\n\n```\n```html\n<form class=\"form-example\" [formGroup]=\"formGroup\">\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,6\">\n        <nx-formfield label=\"First Name\">\n          <input nxInput formControlName=\"firstName\" />\n          <nx-error nxFormfieldError>\n            <strong>Please note:</strong> this field is required!\n          </nx-error>\n        </nx-formfield>\n      </div>\n\n      <div nxCol=\"12,6\">\n        <nx-formfield label=\"Number of items\">\n          <nx-dropdown formControlName=\"items\">\n            <nx-dropdown-item value=\"1\">1</nx-dropdown-item>\n            <nx-dropdown-item value=\"2\">2</nx-dropdown-item>\n            <nx-dropdown-item value=\"3\">3</nx-dropdown-item>\n          </nx-dropdown>\n          <nx-error nxFormfieldError> Please select an option. </nx-error>\n        </nx-formfield>\n      </div>\n    </div>\n    <div nxRow>\n      <div nxCol=\"12,6\">\n        <nx-formfield label=\"Last Name\">\n          <input nxInput formControlName=\"lastName\" />\n          <nx-error nxFormfieldError> Your name is missing. </nx-error>\n        </nx-formfield>\n      </div>\n\n      <div nxCol=\"12,6\">\n        <nx-formfield label=\"E-Mail\">\n          <input nxInput formControlName=\"email\" />\n\n          <nx-info-icon nxLabelInfo popoverMaxWidth=\"200px\">\n            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,\n            nostrum. Obcaecati cupiditate numquam, fugit illo incidunt molestiae\n            ipsam perferendis officia accusamus. Enim magnam recusandae velit\n            accusamus ipsa. Nemo, eius exercitationem?\n          </nx-info-icon>\n          <nx-error nxFormfieldError> Your email is missing. </nx-error>\n        </nx-formfield>\n      </div>\n    </div>\n    <div nxRow>\n      <div nxCol=\"12,6\">\n        <button nxButton type=\"submit\">Submit</button>\n      </div>\n    </div>\n  </div>\n</form>\n\n```\n\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "floating",
        "level": 3,
        "content": "By default the label will float once the input is focused or filled. By specifying `floatLabel` with a value of always you can make this formfield appear as a static input + label combination.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Floating examples\n */\n@Component({\n  selector: 'formfield-floating-example',\n  templateUrl: './formfield-floating-example.html',\n  styleUrls: ['./formfield-floating-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective, NxFormfieldHintDirective],\n})\nexport class FormfieldFloatingExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Label\" floatLabel=\"always\">\n  <input nxInput />\n  <span nxFormfieldHint> some additional information </span>\n</nx-formfield>\n\n<h3 class=\"nx-margin-bottom-0\">Disabled:</h3>\n<nx-formfield label=\"Label\">\n  <input nxInput disabled />\n  <span nxFormfieldHint> some additional information </span>\n</nx-formfield>\n<nx-formfield label=\"Label\">\n  <input nxInput disabled value=\"Prefilled with content\" />\n  <span nxFormfieldHint> some additional information </span>\n</nx-formfield>\n\n```\n\n\n</div>"
      },
      {
        "heading": "custom formfield label",
        "level": 3,
        "content": "You can pass text label content via the input `label`. If you need a more complex label you an use the directive `nx-formfield-label` as shown in the code example below. If both are defined, then `nx-formfield-label` will take precedence.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Custom formfield label example\n */\n@Component({\n  selector: 'formfield-custom-label-example',\n  templateUrl: './formfield-custom-label-example.html',\n  styleUrls: ['./formfield-custom-label-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxIconComponent,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxButtonComponent,\n  ],\n})\nexport class FormfieldCustomLabelExampleComponent {\n  suffix = '(suffix)';\n\n  addOptionalSuffix() {\n    this.suffix = this.suffix === '' ? '(suffix)' : '';\n  }\n}\n\n```\n```html\n<nx-formfield class=\"nx-margin-bottom-s\">\n  <nx-formfield-label>\n    Favourite Animal\n    <nx-icon name=\"product-heart\" aria-hidden=\"true\"></nx-icon>\n    {{ suffix }}</nx-formfield-label\n  >\n  <input nxInput />\n  <span nxFormfieldHint> some additional information </span>\n</nx-formfield>\n\n<nx-formfield appearance=\"outline\" floatLabel=\"always\">\n  <nx-formfield-label>\n    Favourite Animal\n    <nx-icon name=\"product-heart\" aria-hidden=\"true\"></nx-icon>\n    <span class=\"nx-font-weight-regular\">\n      {{ suffix }}</span\n    ></nx-formfield-label\n  >\n  <input nxInput />\n</nx-formfield>\n\n<button nxButton=\"primary small\" (click)=\"addOptionalSuffix()\" type=\"button\">\n  Toggle Suffix\n</button>\n\n```\n\n"
      },
      {
        "heading": "info icon",
        "level": 3,
        "content": "Show an info icon next to the label by projecting an info-icon component into the formfield and marking it with the `nxLabelInfo` directive. Use the standard `nx-info-icon` (from `@allianz/ng-aquila/info-icon`) or project your own implementation — the projected component keeps full control over its own API (popover direction, width, modal behaviour, etc.). You author it once and the formfield places it per theme: **next to the label under A1**, and in the **appendix position (next to the field) under NDBX** — matching the legacy placement. It works together with both the `label` input and a custom `nx-formfield-label`, and replaces the previous pattern of placing an info icon and popover manually in the `nxFormfieldAppendix` slot.\n\n\n```ts\nimport { NxFormfieldModule } from '@allianz/ng-aquila/formfield';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxInputModule } from '@allianz/ng-aquila/input';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Formfield with info icon */\n@Component({\n  selector: 'formfield-info-icon-example',\n  templateUrl: './formfield-info-icon-example.html',\n  styleUrls: ['./formfield-info-icon-example.css'],\n  imports: [\n    NxFormfieldModule,\n    NxInputModule,\n    FormsModule,\n    NxInfoIconComponent,\n    NxListComponent,\n  ],\n})\nexport class FormfieldInfoIconExampleComponent {}\n\n```\n```html\n<!--\n  Project any info-icon implementation and mark it with `nxLabelInfo`. The\n  formfield places it automatically: next to the label under A1, and in the\n  appendix (next to the field) under NDBX. Switch the theme to see both.\n-->\n\n<!-- Simple string content -->\n<nx-formfield label=\"Email\">\n  <input nxInput />\n  <nx-info-icon nxLabelInfo\n    >We only use your email to send policy documents.</nx-info-icon\n  >\n</nx-formfield>\n\n<br />\n\n<!-- Structured content projected directly into the info icon -->\n<nx-formfield label=\"Contribution\">\n  <input nxInput />\n  <nx-info-icon nxLabelInfo>\n    <p>Your monthly contribution is calculated from:</p>\n    <ul nxList>\n      <li>your selected coverage</li>\n      <li>your age at contract start</li>\n    </ul>\n  </nx-info-icon>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "The negative modifier can be used whenever the component is used on a dark background.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'formfield-negative-example',\n  templateUrl: './formfield-negative-example.html',\n  styleUrls: ['./formfield-negative-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective, NxFormfieldHintDirective],\n})\nexport class FormfieldNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-formfield label=\"Label\" negative=\"negative\">\n    <input nxInput />\n    <span nxFormfieldHint> some additional information </span>\n  </nx-formfield>\n  <nx-formfield label=\"Label\" negative=\"negative\">\n    <input nxInput value=\"Prefilled with content\" />\n    <span nxFormfieldHint> some additional information </span>\n  </nx-formfield>\n  <nx-formfield label=\"Disabled\" negative=\"negative\">\n    <input disabled nxInput />\n    <span nxFormfieldHint> some additional information </span>\n  </nx-formfield>\n\n  <nx-formfield label=\"Read Only\" negative=\"negative\">\n    <input readonly nxInput value=\"Prefilled with content\" />\n    <span nxFormfieldHint> some additional information </span>\n  </nx-formfield>\n</div>\n\n```\n\n"
      },
      {
        "heading": "hint",
        "level": 3,
        "content": "You can add a hint to a formfield which is then displayed on the bottom right corner.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldAppendixDirective,\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Hint example\n */\n@Component({\n  selector: 'formfield-hint-example',\n  templateUrl: './formfield-hint-example.html',\n  styleUrls: ['./formfield-hint-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxFormfieldAppendixDirective,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n    NxIconButtonComponent,\n  ],\n})\nexport class FormfieldHintExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input nxInput />\n  <span nxFormfieldHint> some additional information </span>\n  <button\n    nxFormfieldAppendix\n    nxIconButton=\"tertiary small\"\n    nxPopoverDirection=\"top\"\n    [nxPopoverTriggerFor]=\"popoverAppendixExample\"\n    nxPopoverTrigger=\"click\"\n    type=\"button\"\n    aria-label=\"More information\"\n  >\n    <nx-icon name=\"info-circle-o\" size=\"s\" aria-hidden=\"true\"> </nx-icon>\n  </button>\n</nx-formfield>\n\n<nx-popover #popoverAppendixExample>\n  <div style=\"max-width: 300px\">\n    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni, nostrum.\n    Obcaecati cupiditate numquam, fugit illo incidunt molestiae ipsam\n    perferendis officia accusamus. Enim magnam recusandae velit accusamus ipsa.\n    Nemo, eius exercitationem?\n  </div>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "inline",
        "level": 3,
        "content": "Set the `inline` input to render the formfield in a compact way: the label is visually hidden and the space normally reserved above (for the floating label) and below the field (for hints, errors and notes) is removed. This is useful for dense layouts, for example a field inside a table cell where the column header already labels the control.\n\nFor accessibility the label is kept in the DOM (only visually hidden), so you should always provide a meaningful `label`. Alternatively you can connect the control to an existing element via `aria-labelledby` (for example a table header).\n\n**Note:** with `inline`, hints, errors, notes and the status message are visually hidden, not removed — the formfield still connects them via `aria-describedby`, so assistive technology still announces them. Keep projecting them.\n\nSince sighted users can't see the nots, it is important to show the information in some other way, for example with a [signal button](/documentation/signal-button/overview) in the `nxFormfieldSuffix` slot, opening a popover with the details. The example below and the [table with form elements](/documentation/table/overview) example show this for errors; the [status example](#status) shows it for `status`.\n\n`inline` combines well with the [small size](#small-size) for especially dense layouts. **Note:** when the formfield uses `size=\"s\"`, the signal button in the suffix needs `size=\"s\"` as well, so that its icon matches the reduced control height. The last row of the example below shows this combination.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxPopoverMainContentDirective,\n  NxPopoverTitleDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport { Component } from '@angular/core';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Inline example\n */\n@Component({\n  selector: 'formfield-inline-example',\n  templateUrl: './formfield-inline-example.html',\n  styleUrls: ['./formfield-inline-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldSuffixDirective,\n    NxFormfieldErrorDirective,\n    NxErrorComponent,\n    NxSignalButtonComponent,\n    NxPopoverTitleDirective,\n    NxPopoverMainContentDirective,\n    NxHeadlineComponent,\n    ReactiveFormsModule,\n  ],\n})\nexport class FormfieldInlineExampleComponent {\n  budgetControl = new FormControl<number | null>(null, [\n    Validators.required,\n    Validators.min(100),\n  ]);\n\n  feeControl = new FormControl<number | null>(null, [\n    Validators.required,\n    Validators.min(10),\n  ]);\n\n  constructor() {\n    // Mark as touched so the inline error state is visible on load.\n    this.budgetControl.markAsTouched();\n    this.feeControl.markAsTouched();\n  }\n}\n\n```\n```html\n<div class=\"example-row\">\n  <span id=\"amount-label\">Amount</span>\n  <nx-formfield label=\"Amount\" inline>\n    <input nxInput aria-labelledby=\"amount-label\" />\n  </nx-formfield>\n</div>\n\n<!--\n  Inline mode hides the projected error message, so the validation state is\n  surfaced with a signal button in the suffix slot instead. The projected\n  `nx-error` is kept (only visually hidden) so the formfield still wires it up\n  as `aria-describedby` / `aria-invalid` on the control for assistive tech.\n-->\n<div class=\"example-row nx-margin-top-s\">\n  <span id=\"budget-label\">Budget</span>\n  <nx-formfield label=\"Budget\" inline>\n    @if (budgetControl.invalid && budgetControl.touched) {\n      <nx-signal-button\n        nxFormfieldSuffix\n        context=\"critical\"\n        popoverDirection=\"bottom\"\n        aria-label=\"Show validation errors for Budget\"\n      >\n        <div nxPopoverTitle>\n          <h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-2xs\">\n            Please review this field\n          </h3>\n        </div>\n        <ul nxPopoverMainContent class=\"error-list\">\n          @if (budgetControl.hasError('required')) {\n            <li>A budget is required.</li>\n          }\n          @if (budgetControl.hasError('min')) {\n            <li>The budget must be at least 100.</li>\n          }\n        </ul>\n      </nx-signal-button>\n    }\n    <input\n      nxInput\n      type=\"number\"\n      [formControl]=\"budgetControl\"\n      aria-labelledby=\"budget-label\"\n    />\n    <nx-error nxFormfieldError>\n      @if (budgetControl.hasError('required')) {\n        A budget is required.\n      } @else if (budgetControl.hasError('min')) {\n        The budget must be at least 100.\n      }\n    </nx-error>\n  </nx-formfield>\n</div>\n\n<!--\n  `inline` together with `size=\"s\"` for an even more compact field. The signal\n  button in the suffix uses `size=\"s\"` as well, so its icon matches the reduced\n  control height.\n-->\n<div class=\"example-row nx-margin-top-s\">\n  <span id=\"fee-label\">Fee</span>\n  <nx-formfield label=\"Fee\" inline size=\"s\">\n    @if (feeControl.invalid && feeControl.touched) {\n      <nx-signal-button\n        nxFormfieldSuffix\n        size=\"s\"\n        context=\"critical\"\n        popoverDirection=\"bottom\"\n        aria-label=\"Show validation errors for Fee\"\n      >\n        <div nxPopoverTitle>\n          <h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-2xs\">\n            Please review this field\n          </h3>\n        </div>\n        <ul nxPopoverMainContent class=\"error-list\">\n          @if (feeControl.hasError('required')) {\n            <li>A fee is required.</li>\n          }\n          @if (feeControl.hasError('min')) {\n            <li>The fee must be at least 10.</li>\n          }\n        </ul>\n      </nx-signal-button>\n    }\n    <input\n      nxInput\n      type=\"number\"\n      [formControl]=\"feeControl\"\n      aria-labelledby=\"fee-label\"\n    />\n    <nx-error nxFormfieldError>\n      @if (feeControl.hasError('required')) {\n        A fee is required.\n      } @else if (feeControl.hasError('min')) {\n        The fee must be at least 10.\n      }\n    </nx-error>\n  </nx-formfield>\n</div>\n\n```\n\n"
      },
      {
        "heading": "character count",
        "level": 3,
        "content": "To show the user both the character restrictions and the characters remaining, you can simply use the slot of the `nxFormfieldHint`.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component, ViewChild } from '@angular/core';\n\n/**\n * @title Character count example\n */\n@Component({\n  selector: 'formfield-character-count-example',\n  templateUrl: './formfield-character-count-example.html',\n  styleUrls: ['./formfield-character-count-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective, NxFormfieldHintDirective],\n})\nexport class FormfieldCharacterCountExampleComponent {\n  @ViewChild('inputToCount', { read: NxInputDirective, static: true })\n  input!: NxInputDirective;\n\n  count = 0;\n\n  onInput() {\n    this.count = this.input.value.length;\n  }\n}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input nxInput #inputToCount maxlength=\"15\" (input)=\"onInput()\" />\n  <span nxFormfieldHint>\n    @if (count === 0) {\n      <span> max. 15 characters </span>\n    }\n    @if (count > 0) {\n      <span> {{ 15 - (count || 0) }} characters remaining </span>\n    }\n  </span>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "supplements (errors, notes)",
        "level": 3,
        "content": "It's possible to display additional information like error messages below the input. The component will render either errors or the information, depending on the state of the input.\n"
      },
      {
        "heading": "notes",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldNoteDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Note example\n */\n@Component({\n  selector: 'formfield-note-example',\n  templateUrl: './formfield-note-example.html',\n  styleUrls: ['./formfield-note-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxMessageComponent,\n    NxFormfieldNoteDirective,\n  ],\n})\nexport class FormfieldNoteExampleComponent {\n  valueSupplementNote!: string;\n}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input nxInput [(ngModel)]=\"valueSupplementNote\" />\n  <nx-message context=\"info\" nxFormfieldNote>\n    Ensure that you enter your real name.\n  </nx-message>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "errors",
        "level": 4,
        "content": "Errors are shown once the textfield is touched. This textfield was programatically touched to demonstrate the error state in this example.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport {\n  NxInputDirective,\n  NxInputDirective as NxInputDirective_1,\n} from '@allianz/ng-aquila/input';\nimport { AfterContentInit, Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Error example\n */\n@Component({\n  selector: 'formfield-error-example',\n  templateUrl: './formfield-error-example.html',\n  styleUrls: ['./formfield-error-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective_1,\n    FormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class FormfieldErrorExampleComponent implements AfterContentInit {\n  @ViewChild('exampleErrorNgModel', { static: true })\n  exampleErrorNgModel!: NxInputDirective;\n  @ViewChild('exampleErrorNgModelHint', { static: true })\n  exampleErrorNgModelHint!: NxInputDirective;\n\n  valueSupplementError!: string;\n  valueSupplementErrorHint!: string;\n\n  ngAfterContentInit(): void {\n    this.exampleErrorNgModel.ngControl?.control?.markAsTouched();\n    this.exampleErrorNgModelHint.ngControl?.control?.markAsTouched();\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\">\n        <input\n          required\n          nxInput\n          [(ngModel)]=\"valueSupplementError\"\n          #exampleErrorNgModel=\"nxInput\"\n        />\n        <nx-error nxFormfieldError>\n          <strong> Please note: </strong> you have to fill out this field to\n          continue.\n        </nx-error>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\">\n        <input\n          required\n          nxInput\n          [(ngModel)]=\"valueSupplementErrorHint\"\n          #exampleErrorNgModelHint=\"nxInput\"\n        />\n        <span nxFormfieldHint> some additional information </span>\n        <nx-error nxFormfieldError>\n          <strong> Please note: </strong> you have to fill out this field to\n          continue.\n        </nx-error>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "two column alignment",
        "level": 4,
        "content": "Vertical alignment of formfields, including errors and hints, with help of a two column grid.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport {\n  NxInputDirective,\n  NxInputDirective as NxInputDirective_1,\n} from '@allianz/ng-aquila/input';\nimport { AfterContentInit, Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Two column example\n */\n@Component({\n  selector: 'formfield-error-two-column-example',\n  templateUrl: './formfield-error-two-column-example.html',\n  styleUrls: ['./formfield-error-two-column-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective_1,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class FormfieldErrorTwoColumnExampleComponent implements AfterContentInit {\n  @ViewChild('exampleErrorNgModel', { static: true })\n  exampleErrorNgModel!: NxInputDirective;\n  @ViewChild('exampleErrorNgModelHint', { static: true })\n  exampleErrorNgModelHint!: NxInputDirective;\n\n  valueSupplementError!: string;\n  valueSupplementErrorHint!: string;\n\n  ngAfterContentInit(): void {\n    this.exampleErrorNgModel.ngControl?.control?.markAsTouched();\n    this.exampleErrorNgModelHint.ngControl?.control?.markAsTouched();\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\" class=\"nx-margin-bottom-m\">\n        <input required nxInput />\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\" class=\"nx-margin-bottom-m\">\n        <input\n          required\n          nxInput\n          [(ngModel)]=\"valueSupplementErrorHint\"\n          #exampleErrorNgModelHint=\"nxInput\"\n        />\n        <span nxFormfieldHint> some additional information </span>\n        <nx-error nxFormfieldError>\n          <strong> Please note: </strong> you have to fill out this field to\n          continue.\n        </nx-error>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\" class=\"nx-margin-bottom-m\">\n        <input\n          required\n          nxInput\n          [(ngModel)]=\"valueSupplementError\"\n          #exampleErrorNgModel=\"nxInput\"\n        />\n        <nx-error nxFormfieldError>\n          <strong> Please note: </strong> you have to fill out this field to\n          continue.\n        </nx-error>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\" class=\"nx-margin-bottom-m\">\n        <input required nxInput />\n        <span nxFormfieldHint> some additional information </span>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "multiple errors",
        "level": 4,
        "content": "You can also show different errors on one input field according to the particular error occurring in the form as shown in the example below.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Multiple errors example\n */\n@Component({\n  selector: 'formfield-multiple-errors-example',\n  templateUrl: './formfield-multiple-errors-example.html',\n  styleUrls: ['./formfield-multiple-errors-example.css'],\n  imports: [\n    FormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    ReactiveFormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class FormfieldMultipleErrorsExampleComponent {\n  emailFormControl = new FormControl('', [\n    Validators.required,\n    Validators.email,\n  ]);\n}\n\n```\n```html\n<form>\n  <nx-formfield label=\"Email\">\n    <input nxInput [formControl]=\"emailFormControl\" />\n    @if (emailFormControl.hasError('required')) {\n      <nx-error nxFormfieldError> This field is required. </nx-error>\n    }\n    @if (emailFormControl.hasError('email')) {\n      <nx-error nxFormfieldError>\n        Please enter a valid email address.\n      </nx-error>\n    }\n  </nx-formfield>\n</form>\n\n```\n\n"
      },
      {
        "heading": "notes and errors",
        "level": 4,
        "content": "Initially, the info is shown here. But once you touch the textfield (try focus and blur), it displays the error instead.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldNoteDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Combining notes and errors example\n */\n@Component({\n  selector: 'formfield-note-and-error-example',\n  templateUrl: './formfield-note-and-error-example.html',\n  styleUrls: ['./formfield-note-and-error-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxMessageComponent,\n    NxFormfieldNoteDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class FormfieldNoteAndErrorExampleComponent {\n  valueSupplementErrorAndNote!: string;\n}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input required nxInput [(ngModel)]=\"valueSupplementErrorAndNote\" />\n\n  <nx-message context=\"info\" nxFormfieldNote>\n    Ensure that you enter your real name.\n  </nx-message>\n\n  <nx-error nxFormfieldError> Your real name is missing </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "status",
        "level": 3,
        "content": "Set `status` to show the outcome of a check on the field — `positive`, `warning` or `info`. It colors the border and shows a message below the field via `nxFormfieldStatusMessage`.\n\n<div class=\"docs-hide-a1\">\n\nOnly works with `appearance=\"outline\"`; ignored otherwise.\n\n</div>\n\nAlways add a message — color alone doesn't convey meaning to colorblind or screen-reader users.\n\nThe border and message are suppressed while the control is disabled — a disabled field cannot be acted on, so there is nothing left to signal.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldStatus,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxPopoverMainContentDirective } from '@allianz/ng-aquila/popover';\nimport {\n  NxSignalButtonComponent,\n  NxSignalButtonContext,\n} from '@allianz/ng-aquila/signal-button';\nimport { Component, computed, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nconst SIGNAL_BUTTON_CONTEXT: Record<NxFormfieldStatus, NxSignalButtonContext> =\n  {\n    positive: 'success',\n    warning: 'warning',\n    info: 'info',\n  };\n\nconst INITIAL_MILEAGE = '12500';\n\n/**\n * @title Status example\n */\n@Component({\n  selector: 'formfield-status-example',\n  templateUrl: './formfield-status-example.html',\n  styleUrls: ['./formfield-status-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxFormfieldSuffixDirective,\n    NxInputDirective,\n    NxButtonComponent,\n    NxSignalButtonComponent,\n    NxPopoverMainContentDirective,\n    NxHeadlineComponent,\n    FormsModule,\n  ],\n})\nexport class FormfieldStatusExampleComponent {\n  iban = 'DE02 1203 0000 0000 2020 51';\n  inlineIban = 'DE02 1203 0000 0000 2020 51';\n\n  readonly mileage = signal(INITIAL_MILEAGE);\n\n  /** Status only holds while the value matches what was taken from the contract. */\n  readonly mileageStatus = computed<NxFormfieldStatus | null>(() =>\n    this.mileage() === INITIAL_MILEAGE ? 'info' : null,\n  );\n\n  /** Status of the account field, set once the account has been checked. */\n  readonly ibanStatus = signal<NxFormfieldStatus | null>(null);\n\n  /** Status of the inline account field, set once the account has been checked. */\n  readonly inlineIbanStatus = signal<NxFormfieldStatus>('positive');\n\n  readonly inlineIbanSignalContext = computed(() => {\n    const status = this.inlineIbanStatus();\n    return SIGNAL_BUTTON_CONTEXT[status];\n  });\n\n  checkIban() {\n    this.ibanStatus.set(this.ibanStatus() ? null : 'positive');\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Bank account\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        status=\"positive\"\n      >\n        <input nxInput value=\"DE02 1203 0000 0000 2020 51\" />\n        <span nxFormfieldStatusMessage>Account verified.</span>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Email address\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        status=\"warning\"\n      >\n        <input nxInput value=\"jane.doe@exmaple.com\" />\n        <span nxFormfieldStatusMessage>\n          Did you mean <strong>example.com</strong>?\n        </span>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Mileage\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        [status]=\"mileageStatus()\"\n      >\n        <input\n          nxInput\n          [ngModel]=\"mileage()\"\n          (ngModelChange)=\"mileage.set($event)\"\n        />\n        <span nxFormfieldStatusMessage>\n          We took this value from your last contract.\n        </span>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"IBAN\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        [status]=\"ibanStatus()\"\n      >\n        <input nxInput [(ngModel)]=\"iban\" />\n        <span nxFormfieldStatusMessage>\n          This account belongs to Jane Doe.\n        </span>\n      </nx-formfield>\n      <button nxButton=\"secondary small\" type=\"button\" (click)=\"checkIban()\">\n        {{ ibanStatus() ? 'Reset' : 'Check account holder' }}\n      </button>\n    </div>\n  </div>\n\n  <div nxRow class=\"nx-margin-top-m\">\n    <div nxCol=\"12\">\n      <h4 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-2xs\">Inline</h4>\n    </div>\n    <div nxCol=\"6\">\n      <div class=\"example-row\">\n        <span id=\"inline-mileage-label\">Mileage</span>\n        <nx-formfield inline appearance=\"outline\" status=\"info\">\n          <input nxInput value=\"12500\" aria-labelledby=\"inline-mileage-label\" />\n          <nx-signal-button\n            nxFormfieldSuffix\n            context=\"info\"\n            aria-label=\"Show the status of Mileage\"\n          >\n            <p nxPopoverMainContent>\n              We took this value from your last contract.\n            </p>\n          </nx-signal-button>\n          <span nxFormfieldStatusMessage>\n            We took this value from your last contract.\n          </span>\n        </nx-formfield>\n      </div>\n    </div>\n    <div nxCol=\"6\">\n      <div class=\"example-row\">\n        <span id=\"inline-iban-label\">IBAN</span>\n        <nx-formfield inline appearance=\"outline\" [status]=\"inlineIbanStatus()\">\n          <input\n            nxInput\n            aria-labelledby=\"inline-iban-label\"\n            [(ngModel)]=\"inlineIban\"\n          />\n          <nx-signal-button\n            nxFormfieldSuffix\n            aria-label=\"Show the status of IBAN\"\n            [context]=\"inlineIbanSignalContext()\"\n          >\n            <p nxPopoverMainContent>This account belongs to Jane Doe.</p>\n          </nx-signal-button>\n          <span nxFormfieldStatusMessage>\n            This account belongs to Jane Doe.\n          </span>\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\nThere is deliberately no `critical` status — the error look stays driven by the validity of the form control (see [Errors](#errors)), so what is shown always matches `aria-invalid`. Only one message is displayed at a time, in the order **error > status > note**.\n\nOn an [`inline`](#inline) formfield the message is only visually hidden, so pair it with a [signal button](/documentation/signal-button/overview) in the `nxFormfieldSuffix` slot to keep the status visible.\n\nThe message is added to the `aria-describedby` of the input and carries `role=\"status\"`, so it is announced politely rather than interrupting the screen reader. A live region filled in the same tick is not reliably announced by all screen readers (as with `nxFormfieldError`) — if you need a guaranteed announcement, use the CDK [`LiveAnnouncer`](https://material.angular.dev/cdk/a11y/api#LiveAnnouncer).\n"
      },
      {
        "heading": "prefix, suffix, appendix",
        "level": 3,
        "content": "Provide additional information like the unit or icons with popovers by using additional spaces before and after the input. Both prefix and suffix are visually inside the input, the appendix is located outside to display elements like info icons as they need to be placed outside.\n\nProjected content is automatically colored in a secondary color, auto-sized icons get a size of 24px (s) and a primary action dark color.\n\nPlease note that the prefix and suffix are not read out by the screenreader, so you would have to set an explicit `aria-label` (which includes the prefix/suffix information) via the `nxAriaLabel` input on `nxInput` as shown in the example below.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldAppendixDirective,\n  NxFormfieldComponent,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Prefix, suffix and appendix examples\n */\n@Component({\n  selector: 'formfield-prefix-suffix-appendix-example',\n  templateUrl: './formfield-prefix-suffix-appendix-example.html',\n  styleUrls: ['./formfield-prefix-suffix-appendix-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldSuffixDirective,\n    NxFormfieldAppendixDirective,\n    NxIconComponent,\n    NxIconButtonComponent,\n  ],\n})\nexport class FormfieldPrefixSuffixAppendixExampleComponent {\n  value = 'Max';\n}\n\n```\n```html\n<nx-formfield label=\"Your share (Suffix)\">\n  <input\n    nxInput\n    nxAriaLabel=\"Enter percents\"\n    min=\"0\"\n    max=\"100\"\n    type=\"number\"\n    value=\"85\"\n  />\n  <span nxFormfieldSuffix>%</span>\n</nx-formfield>\n\n<nx-formfield label=\"Your settings (Appendix)\">\n  <input nxInput />\n  <button\n    nxFormfieldAppendix\n    nxIconButton=\"tertiary small\"\n    type=\"button\"\n    aria-label=\"Open settings\"\n  >\n    <nx-icon name=\"setting\" size=\"s\" aria-hidden=\"true\"> </nx-icon>\n  </button>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "placeholder",
        "level": 3,
        "content": "Using placeholders is an optional way to assist the user when filling out inputs. Placeholders normally disappear when the user types something in or if the input is filled. A placeholder can be an example of what should be typed into the field. It is important not to confuse placeholders with labels and hints.\n\nPlease note that placeholders are not fully accessible because their color contrast is usually lower than the one of actual text input. In addition, placeholders are **not supported by all screen readers**. Therefore, a placeholder should provide **only non-essential information**.\n\n\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Placeholder example\n */\n@Component({\n  selector: 'formfield-placeholder-example',\n  templateUrl: './formfield-placeholder-example.html',\n  styleUrls: ['./formfield-placeholder-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective],\n})\nexport class FormfieldPlaceholderExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input nxInput type=\"text\" placeholder=\"This is a placeholder\" />\n</nx-formfield>\n\n<nx-formfield appearance=\"outline\" label=\"Label\" floatLabel=\"always\">\n  <input nxInput type=\"text\" placeholder=\"This is a placeholder\" />\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "password visibility toggle",
        "level": 3,
        "content": "In order to hide/show characters on inputs of type password you can use the `nx-password-toggle` component in combination with a `nxFormFieldSuffix` as shown in the example below. The input field has to be passed as a `control` to the `nx-password-toggle` component.\n\n**Important:** When using a formfield with a visibility toggle please pass an `aria-label` to the password toggle via the `ariaLabel` input. If you don't set it explicitly it will have 'Show password' as default value. As the default is in English, in almost all cases you should explicitly set the label.\n\nFor more information on the password toggle component have a look at the [Input API](./documentation/input/api).\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxInputDirective,\n  NxPasswordToggleComponent,\n} from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Password visibility toggle example\n */\n@Component({\n  selector: 'formfield-password-visibility-example',\n  templateUrl: './formfield-password-visibility-example.html',\n  styleUrls: ['./formfield-password-visibility-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxPasswordToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class FormfieldPasswordVisibilityExampleComponent {\n  inputValue!: string;\n}\n\n```\n```html\n<nx-formfield label=\"Password\">\n  <input\n    required\n    nxInput\n    #testInput\n    type=\"password\"\n    nxAriaLabel=\"Enter password\"\n    [(ngModel)]=\"inputValue\"\n  />\n  <nx-password-toggle\n    [control]=\"testInput\"\n    ariaLabel=\"Your custom show password label\"\n    nxFormfieldSuffix\n  ></nx-password-toggle>\n  <nx-error nxFormfieldError>\n    <b>Please note: </b> you have to fill in your password to continue.\n  </nx-error>\n</nx-formfield>\n\n```\n\n<div class=\"docs-expert-container docs-hide-a1\">\n"
      },
      {
        "heading": "expert: appearance",
        "level": 3,
        "content": "With `appearance` you can change the styling of the formfield and add an outline.\n\nPlease note that **this is an Expert styling option**. This means that the outline appearance is only intended for internal applications and not for applications that are client facing.\n\n\n```ts\nimport {\n  NxErrorComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Appearance example\n */\n@Component({\n  selector: 'formfield-appearance-example',\n  templateUrl: './formfield-appearance-example.html',\n  styleUrls: ['./formfield-appearance-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldPrefixDirective,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxDatefieldDirective,\n    FormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxInfoIconComponent,\n    NxLabelInfoDirective,\n  ],\n})\nexport class FormfieldAppearanceExampleComponent {\n  currentDate: Date | null = null;\n\n  @ViewChild('inputToCount', { read: NxInputDirective, static: true })\n  input!: NxInputDirective;\n\n  count = 0;\n\n  onInput() {\n    this.count = this.input.value.length;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        appearance=\"outline\"\n        label=\"Prefilled field\"\n        floatLabel=\"always\"\n      >\n        <input nxInput value=\"prefilled\" />\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Readonly field\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <span nxFormfieldPrefix>$</span>\n        <input nxInput readonly value=\"500\" />\n        <nx-info-icon nxLabelInfo popoverMaxWidth=\"300px\">\n          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,\n          nostrum. Obcaecati cupiditate numquam, fugit illo incidunt molestiae\n          ipsam perferendis officia accusamus. Enim magnam recusandae velit\n          accusamus ipsa. Nemo, eius exercitationem?\n        </nx-info-icon>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Dropdown Label\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <nx-dropdown>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Label\" appearance=\"outline\" floatLabel=\"always\">\n        <input nxInput disabled value=\"Disabled input\" />\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Birthday\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker\"\n          [(ngModel)]=\"currentDate\"\n          nxAriaLabel=\"Enter the date of your Birthday\"\n        />\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n        <span nxFormfieldHint> mm/dd/yyyy </span>\n        <nx-error nxFormfieldError>\n          <strong>Error: </strong>Please type in a valid Date in the Format\n          mm/dd/yyyy or use the calendar to select a Date.\n        </nx-error>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"6\">\n      <nx-formfield\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        label=\"Textarea Label\"\n        optionalLabel=\"Optional\"\n      >\n        <textarea nxInput type=\"text\"></textarea>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Character count\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <input nxInput #inputToCount maxlength=\"15\" (input)=\"onInput()\" />\n        <span nxFormfieldHint>\n          @if (count === 0) {\n            <span> max. 15 characters </span>\n          }\n          @if (count > 0) {\n            <span> {{ 15 - count }} characters remaining </span>\n          }\n        </span>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "expert: error message",
        "level": 3,
        "content": "For internal applications you can use the `nx-error` component with `appearance=\"text\"` to display errors. This textfield was programatically touched to demonstrate the error state in this example.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport {\n  NxInputDirective,\n  NxInputDirective as NxInputDirective_1,\n} from '@allianz/ng-aquila/input';\nimport { AfterContentInit, Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Expert error message example\n */\n@Component({\n  selector: 'formfield-expert-error-example',\n  templateUrl: './formfield-expert-error-example.html',\n  styleUrls: ['./formfield-expert-error-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective_1,\n    FormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class FormfieldExpertErrorExampleComponent implements AfterContentInit {\n  @ViewChild('exampleErrorNgModel', { static: true })\n  exampleErrorNgModel!: NxInputDirective;\n  @ViewChild('exampleErrorWithHintNgModel', { static: true })\n  exampleErrorWithHintNgModel!: NxInputDirective;\n\n  valueError!: string;\n  valueErrorWithHint!: string;\n\n  ngAfterContentInit(): void {\n    this.exampleErrorNgModel.ngControl?.control?.markAsTouched();\n    this.exampleErrorWithHintNgModel.ngControl?.control?.markAsTouched();\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          required\n          nxInput\n          [(ngModel)]=\"valueError\"\n          #exampleErrorNgModel=\"nxInput\"\n        />\n        <nx-error appearance=\"text\" nxFormfieldError>\n          Please enter your name!\n        </nx-error>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,12,6,6\">\n      <nx-formfield label=\"Label\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          required\n          nxInput\n          [(ngModel)]=\"valueErrorWithHint\"\n          #exampleErrorWithHintNgModel=\"nxInput\"\n        />\n        <span nxFormfieldHint> some additional information </span>\n        <nx-error appearance=\"text\" nxFormfieldError>\n          Please enter your name!\n        </nx-error>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "<div class=\"docs-a1\">\n\nThe current Design System enforces\n\n- `appearance=\"outline\"` for Formfield\n- `floatLabel=\"always\"` for Formfield\n- `appearance=\"text\"` for Error Component\n\n</div>\n\n<div class=\"docs-ndbx\">\n\nIf you want to use default settings for all of your formfields, you can use the `FORMFIELD_DEFAULT_OPTIONS` injection token. Here global settings for `appearance` and `nxFloatLabel` can be defined.\n\nIf a certain formfield should have another styling, you can overwrite it by explicitly defining the property in the template.\n\nThe same is valid for the formfield error notifications (`nx-error`). The default error style is 'message', but you can use the `ERROR_DEFAULT_OPTIONS` injection token to overwrite it, as shown in the example below.\n\n\n```ts\nimport {\n  ERROR_DEFAULT_OPTIONS,\n  ErrorDefaultOptions,\n  NxErrorComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport {\n  FORMFIELD_DEFAULT_OPTIONS,\n  FormfieldDefaultOptions,\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldPrefixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { AfterContentInit, Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nconst myDefaultOptions: FormfieldDefaultOptions = {\n  appearance: 'outline',\n  nxFloatLabel: 'always',\n  updateOn: 'change',\n};\n\nconst myErrorOptions: ErrorDefaultOptions = {\n  appearance: 'text',\n};\n\n/**\n * @title Global default settings example\n */\n@Component({\n  selector: 'formfield-global-example',\n  templateUrl: './formfield-global-example.html',\n  styleUrls: ['./formfield-global-example.css'],\n  providers: [\n    { provide: FORMFIELD_DEFAULT_OPTIONS, useValue: myDefaultOptions },\n    { provide: ERROR_DEFAULT_OPTIONS, useValue: myErrorOptions },\n  ],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldPrefixDirective,\n    FormsModule,\n    NxInputDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxInfoIconComponent,\n    NxLabelInfoDirective,\n  ],\n})\nexport class FormfieldGlobalExampleComponent implements AfterContentInit {\n  modelValue!: string;\n\n  @ViewChild('errorNgModel', { static: true })\n  errorNgModel!: NxInputDirective;\n\n  ngAfterContentInit(): void {\n    this.errorNgModel.ngControl?.control?.markAsTouched();\n  }\n}\n\n```\n```html\n<h3>Use default global settings</h3>\n\n<nx-formfield label=\"Label\">\n  <input nxInput value=\"prefilled\" />\n</nx-formfield>\n\n<nx-formfield label=\"Label\">\n  <span nxFormfieldPrefix>$</span>\n  <input nxInput nxAriaLabel=\"Enter dollar amount\" />\n  <nx-info-icon nxLabelInfo popoverMaxWidth=\"300px\">\n    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni, nostrum.\n    Obcaecati cupiditate numquam, fugit illo incidunt molestiae ipsam\n    perferendis officia accusamus. Enim magnam recusandae velit accusamus ipsa.\n    Nemo, eius exercitationem?\n  </nx-info-icon>\n</nx-formfield>\n\n<nx-formfield label=\"Formfield with error\">\n  <input nxInput required [(ngModel)]=\"modelValue\" #errorNgModel=\"nxInput\" />\n  <nx-error nxFormfieldError> This is a mandatory field </nx-error>\n</nx-formfield>\n\n<h3>Override default global settings</h3>\n\n<nx-formfield label=\"Override appearance\" appearance=\"auto\">\n  <input nxInput />\n</nx-formfield>\n\n<nx-formfield\n  label=\"Override appearance and nxFloatLabel\"\n  appearance=\"auto\"\n  floatLabel=\"auto\"\n>\n  <input nxInput />\n</nx-formfield>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "creating a custom form field control",
        "level": 3,
        "content": "If you want you can create custom form field controls and add custom logic to it. Your custom form field control then should be wrapped inside `nx-formfield`. Let's start simple and check how it looks once you implement the necessary interfaces. Our goal is to implement custom form field controls for phone numbers.\n\nThe HTML code below shows how we can consume our custom control.\n\n```html\n<nx-formfield label=\"Phone number\">\n    <formfield-custom-tel-input-example></formfield-custom-tel-input-example>\n</nx-formfield>\n```\n\n\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { Component } from '@angular/core';\n\nimport { FormfieldCustomTelInputExampleComponent } from '../formfield-custom-tel-input/formfield-custom-tel-input-example';\n\n/**\n * @title Usage Custom Formfield Control example\n */\n@Component({\n  selector: 'formfield-custom-example',\n  templateUrl: './formfield-custom-example.html',\n  styleUrls: ['./formfield-custom-example.css'],\n  imports: [NxFormfieldComponent, FormfieldCustomTelInputExampleComponent],\n})\nexport class FormfieldCustomExampleComponent {}\n\n```\n```html\n<nx-formfield\n  role=\"group\"\n  label=\"Phone number\"\n  aria-label=\"Phone number\"\n  floatLabel=\"always\"\n>\n  <formfield-custom-tel-input-example></formfield-custom-tel-input-example>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "change detection trigger event",
        "level": 3,
        "content": "To enable rich responsive visual behaviour, by default `NxFormField` runs a new change detection cycle in response to every user interaction (e.g. every keypress for `nxInput`). For some applications this could create a performance problem, in which case you could switch your formfields to only running change detection after user has left the control instead. To achieve this, set the `updateOn` input of NxFormField to `blur`.\n\nNote that if you are using `nxInput` without wrapping it in `NxFormField`, you could also configure `updateOn` on it specifically, but this configuration would be overwritten as soon as you place `nxInput` inside of `NxFormField`.\n\nYou could also use [default formfield settings](./documentation/formfield/overview#global-settings) with predefined `updateOn` setting in order to configure all formfieds in your application at once, as described [here](./documentation/formfield/overview#global-settings).\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxInputDirective,\n  NxInputDirective as NxInputDirective_1,\n} from '@allianz/ng-aquila/input';\nimport { AfterContentInit, Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Change detection trigger event example\n */\n@Component({\n  selector: 'formfield-changedetection-example',\n  templateUrl: './formfield-changedetection-example.html',\n  styleUrls: ['./formfield-changedetection-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective_1,\n    FormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class FormfieldChangedetectionExampleComponent implements AfterContentInit {\n  modelValue!: string;\n\n  @ViewChild('errorNgModel', { static: true })\n  errorNgModel!: NxInputDirective;\n\n  ngAfterContentInit(): void {\n    this.errorNgModel.ngControl?.control?.markAsTouched();\n  }\n}\n\n```\n```html\n<nx-formfield label=\"Formfield with error\" updateOn=\"blur\">\n  <input nxInput required [(ngModel)]=\"modelValue\" #errorNgModel=\"nxInput\" />\n  <nx-error nxFormfieldError> This is a mandatory field </nx-error>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "implementing the methods and properties of nxformfieldcontrol",
        "level": 4,
        "content": "The implementation is similar to Angular Material and can be checked for reference [Angular Material - Custom Formfield Controls](https://material.angular.io/guide/creating-a-custom-form-field-control)\n\nAlso implement the optional `onContainerClick(event)` method unless your control's `id` sits on a native `input`, `textarea` or `select`. If the `id` is on your own host element, on an inner `<div>`, or is never rendered, `<label for>` cannot focus the control. The formfield calls `onContainerClick()` when the user clicks your control's area, which includes the label and the empty space next to a control that does not fill the row. Usually you move focus to the leading element of your control, or, if it has several inputs, to the first one the user still has to fill. A prefix or suffix is not part of that area, so a toggle button placed there keeps the focus it just took. The formfield also skips the call while the control is disabled and while focus already sits inside your control.\n\n\n```ts\nimport { NxFormfieldControl } from '@allianz/ng-aquila/formfield';\nimport { IdGenerationService } from '@allianz/ng-aquila/utils';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n  AfterViewInit,\n  Component,\n  ElementRef,\n  inject,\n  Input,\n  OnDestroy,\n  Optional,\n  Self,\n} from '@angular/core';\nimport {\n  ControlValueAccessor,\n  FormBuilder,\n  FormGroup,\n  FormsModule,\n  NgControl,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * @title Implementing Custom Formfield Control example\n */\n\n/** Data structure for holding telephone number. */\nexport class MyTel {\n  constructor(\n    readonly area: string,\n    readonly exchange: string,\n    readonly subscriber: string,\n  ) {}\n}\n\n/** Custom `NxFormFieldControl` for telephone number input. */\n@Component({\n  selector: 'formfield-custom-tel-input-example',\n  templateUrl: 'formfield-custom-tel-input-example.html',\n  styleUrls: ['formfield-custom-tel-input-example.css'],\n  providers: [\n    {\n      provide: NxFormfieldControl,\n      useExisting: FormfieldCustomTelInputExampleComponent,\n    },\n  ],\n  host: {\n    '[class.example-floating]': 'shouldLabelFloat',\n    '[id]': 'id',\n    '[attr.aria-describedby]': 'describedBy',\n  },\n  imports: [FormsModule, ReactiveFormsModule],\n})\nexport class FormfieldCustomTelInputExampleComponent\n  implements\n    ControlValueAccessor,\n    NxFormfieldControl<MyTel>,\n    OnDestroy,\n    AfterViewInit\n{\n  readonly parts: FormGroup;\n  readonly!: boolean;\n  readonly stateChanges = new Subject<void>();\n  focused = false;\n  errorState = false;\n  controlType = 'example-tel-input';\n  id = inject(IdGenerationService).nextId('example-tel-input');\n  describedBy = '';\n\n  get empty() {\n    const {\n      value: { area, exchange, subscriber },\n    } = this.parts;\n    return !area && !exchange && !subscriber;\n  }\n\n  get shouldLabelFloat() {\n    return this.focused || !this.empty;\n  }\n\n  @Input() set placeholder(value: string) {\n    this._placeholder = value;\n    this.stateChanges.next();\n  }\n  get placeholder(): string {\n    return this._placeholder;\n  }\n  private _placeholder = '';\n\n  @Input() set required(value: BooleanInput) {\n    this._required = coerceBooleanProperty(value);\n    this.stateChanges.next();\n  }\n  get required(): boolean {\n    return this._required;\n  }\n  private _required = false;\n\n  @Input() set disabled(value: BooleanInput) {\n    this._disabled = coerceBooleanProperty(value);\n    this._disabled ? this.parts.disable() : this.parts.enable();\n    this.stateChanges.next();\n  }\n  get disabled(): boolean {\n    return this._disabled;\n  }\n  private _disabled = false;\n\n  @Input() set value(tel: MyTel | null) {\n    const { area, exchange, subscriber } = tel || new MyTel('', '', '');\n    this.parts.setValue({ area, exchange, subscriber });\n    this.stateChanges.next();\n  }\n  get value(): MyTel | null {\n    if (this.parts.valid) {\n      const {\n        value: { area, exchange, subscriber },\n      } = this.parts;\n      return new MyTel(area, exchange, subscriber);\n    }\n    return null;\n  }\n\n  private readonly _destroyed = new Subject<void>();\n\n  onChange = (_: any) => {};\n  onTouched = () => {};\n\n  constructor(\n    private readonly fb: FormBuilder,\n    private readonly _focusMonitor: FocusMonitor,\n    private readonly _elementRef: ElementRef<HTMLElement>,\n    @Optional() @Self() readonly ngControl: NgControl | null,\n  ) {\n    this.parts = this.fb.group({\n      area: [\n        null,\n        [Validators.required, Validators.minLength(3), Validators.maxLength(3)],\n      ],\n      exchange: [\n        null,\n        [Validators.required, Validators.minLength(3), Validators.maxLength(3)],\n      ],\n      subscriber: [\n        null,\n        [Validators.required, Validators.minLength(4), Validators.maxLength(4)],\n      ],\n    });\n\n    if (this.ngControl != null) {\n      this.ngControl.valueAccessor = this;\n    }\n  }\n\n  setAriaLabel?(value: string): void {\n    throw new Error('Method not implemented.');\n  }\n\n  get elementRef(): ElementRef {\n    return this._elementRef;\n  }\n\n  ngAfterViewInit(): void {\n    this._focusMonitor\n      .monitor(this._elementRef, true)\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((origin) => {\n        if (this.focused && !origin) {\n          this.onTouched();\n        }\n        this.focused = !!origin;\n        this.stateChanges.next();\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n    this.stateChanges.complete();\n    this._focusMonitor.stopMonitoring(this._elementRef);\n  }\n\n  setDescribedByIds(ids: string[]) {\n    this.describedBy = ids.join(' ');\n  }\n\n  onContainerClick(): void {\n    this._elementRef.nativeElement.querySelector('input')!.focus();\n  }\n\n  writeValue(tel: MyTel | null): void {\n    this.value = tel;\n  }\n\n  registerOnChange(fn: any): void {\n    this.onChange = fn;\n  }\n\n  registerOnTouched(fn: any): void {\n    this.onTouched = fn;\n  }\n\n  setDisabledState(isDisabled: boolean): void {\n    this.disabled = isDisabled;\n  }\n\n  _handleInput(): void {\n    this.onChange(this.value);\n  }\n}\n\n```\n```html\n<div [formGroup]=\"parts\" class=\"example-tel-input-container\">\n  <input\n    class=\"example-tel-input-element\"\n    formControlName=\"area\"\n    size=\"3\"\n    aria-label=\"Area code\"\n    (input)=\"_handleInput()\"\n  />\n  <span class=\"example-tel-input-spacer\">&ndash;</span>\n  <input\n    class=\"example-tel-input-element\"\n    formControlName=\"exchange\"\n    size=\"3\"\n    aria-label=\"Exchange code\"\n    (input)=\"_handleInput()\"\n  />\n  <span class=\"example-tel-input-spacer\">&ndash;</span>\n  <input\n    class=\"example-tel-input-element\"\n    formControlName=\"subscriber\"\n    size=\"4\"\n    aria-label=\"Subscriber number\"\n    (input)=\"_handleInput()\"\n  />\n</div>\n\n```\n\n"
      },
      {
        "heading": "showing optional label",
        "level": 3,
        "content": "\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Optional label example\n */\n@Component({\n  selector: 'formfield-optional-label-example',\n  templateUrl: './formfield-optional-label-example.html',\n  styleUrls: ['./formfield-optional-label-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxInputDirective,\n  ],\n})\nexport class FormfieldOptionalLabelExampleComponent {\n  formGroup: FormGroup;\n\n  constructor() {\n    this.formGroup = new FormBuilder().group({\n      firstName: ['', Validators.required],\n      lastName: [''],\n      items: [''],\n      email: ['', Validators.required],\n    });\n  }\n}\n\n```\n```html\n<form class=\"form-example\" [formGroup]=\"formGroup\">\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,6\">\n        <nx-formfield label=\"Number of items\" optionalLabel=\"Optional\">\n          <nx-dropdown formControlName=\"items\">\n            <nx-dropdown-item value=\"1\">1</nx-dropdown-item>\n            <nx-dropdown-item value=\"2\">2</nx-dropdown-item>\n          </nx-dropdown>\n        </nx-formfield>\n      </div>\n      <div nxCol=\"12,6\">\n        <nx-formfield label=\"Last Name\" optionalLabel=\"Optional\">\n          <input nxInput formControlName=\"lastName\" />\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n  <hr />\n  <h3 class=\"nx-margin-top-xs\">Expert optional label</h3>\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,6\">\n        <nx-formfield\n          label=\"Number of items\"\n          appearance=\"outline\"\n          floatLabel=\"always\"\n          optionalLabel=\"optional\"\n        >\n          <nx-dropdown formControlName=\"items\">\n            <nx-dropdown-item value=\"1\">1</nx-dropdown-item>\n            <nx-dropdown-item value=\"2\">2</nx-dropdown-item>\n          </nx-dropdown>\n        </nx-formfield>\n      </div>\n      <div nxCol=\"12,6\">\n        <nx-formfield\n          label=\"Last Name\"\n          appearance=\"outline\"\n          floatLabel=\"always\"\n          optionalLabel=\"optional\"\n        >\n          <input nxInput formControlName=\"lastName\" />\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</form>\n\n```\n\n"
      },
      {
        "heading": "customizing form field spacing with css variables",
        "level": 3,
        "content": "To customize the spacing of form fields, you can adjust the existing CSS variables. This allows for flexibility when applying styles, whether you need to remove or modify the spacing across specific forms, individual form fields, or the entire application.\n\nWe provide default spacing for form fields, but in cases where you need to adjust it, you can use the following CSS variables:\n\n```scss\n--formfield-bottom-padding: 0;\n--formfield-outline-bottom-padding: 0;\n--formfield-mobile-bottom-padding: 0;\n```\n\nHere’s an example of how to remove bottom spacing for a whole form:\n\n\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Adjusting Form Field Spacing with CSS Variables Example\n */\n@Component({\n  selector: 'formfield-spacing-adjuster-example',\n  imports: [NxFormfieldComponent, NxInputDirective],\n  templateUrl: './formfield-spacing-adjuster-example.html',\n  styleUrl: './formfield-spacing-adjuster-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormfieldSpacingAdjusterExampleComponent {}\n\n```\n```html\n<form class=\"remove-formfield-spacing\">\n  <nx-formfield label=\"Label\">\n    <input nxInput />\n  </nx-formfield>\n  <nx-formfield label=\"Label\">\n    <input nxInput />\n  </nx-formfield>\n</form>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "grid.md",
    "title": "Grid",
    "category": "components",
    "alias": [
      "container",
      "column",
      "layout"
    ],
    "sections": [
      {
        "heading": "breakpoints",
        "level": 1,
        "content": "You can size columns and apply layout modifiers (like justify or offset) based on a set of 7 responsive breakpoints:\n\n- tiny (default / mobile-first)\n- small — 320px\n- medium — 704px\n- large — 992px\n- xlarge — 1280px\n- 2xlarge — 1472px\n- 3xlarge — 1760px\n"
      },
      {
        "heading": "notes",
        "level": 1,
        "content": "- Avoid using inline CSS styles on nxCol, nxRow, or nxLayout. Instead, use their built-in directive APIs for layout control.\n-->\n\nThe application grid is based on 12 columns with tiers spread over the given set of breakpoints. That way, you can maintain different layouts corresponding to each group of devices.\n\n**Note:** The borders here are only for visual support and not part of any grid definition.\n\nThis bar will show you the current tier of the grid. Change the size of your browser to see when the tiers change:\n\n<div class=\"grid-component__current-grid-tier\">\n  <span class=\"current-grid__tier current-grid__tier-tiny\">tiny</span>\n  <span class=\"current-grid__tier current-grid__tier-small\">small</span>\n  <span class=\"current-grid__tier current-grid__tier-medium\">medium</span>\n  <span class=\"current-grid__tier current-grid__tier-large\">large</span>\n  <span class=\"current-grid__tier current-grid__tier-xlarge\">xlarge</span>\n  <span class=\"current-grid__tier current-grid__tier-2xlarge\">2xlarge</span>\n  <span class=\"current-grid__tier current-grid__tier-3xlarge\">3xlarge</span>\n</div>\n"
      },
      {
        "heading": "breakpoints",
        "level": 4,
        "content": "You can size columns and apply modifiers (like justify or offset properties) depending on a given set of breakpoints. You will find a set of 7 tiers called tiny, small, medium, large, xlarge, 2xlarge and 3xlarge. We are mobile first, so you will never use tiny as it's the default case.\n\nWhen you specify a tier, it is always understood as from that tier up.\n\n**Note:** Additional breakpoints are introduced for B2B(Expert) use cases. B2C users are advised to use the smaller breakpoints (tiny, small, medium, large).\n\n<div style=\"display: flex\">\n  <div class=\"grid-tiers-example__container tier-tiny\">\n    <span class=\"grid-tiers-example__label\">tiny</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>0</code>\n  </div>\n  <div class=\"grid-tiers-example__container tier-small\">\n    <span class=\"grid-tiers-example__label\">small</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>320px</code>\n  </div>\n  <div class=\"grid-tiers-example__container tier-medium\">\n    <span class=\"grid-tiers-example__label\">medium</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>704px</code>\n  </div>\n  <div class=\"grid-tiers-example__container tier-large\">\n    <span class=\"grid-tiers-example__label\">large</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>992px</code>\n  </div>\n  <div class=\"grid-tiers-example__container tier-xlarge\">\n    <span class=\"grid-tiers-example__label\">xlarge</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>1280px</code>\n  </div>\n  <div class=\"grid-tiers-example__container tier-2xlarge\">\n    <span class=\"grid-tiers-example__label\">2xlarge</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>1472px</code>\n  </div>\n  <div class=\"grid-tiers-example__container tier-3xlarge\">\n    <span class=\"grid-tiers-example__label\">3xlarge</span>\n    <code class=\"grid-tiers-example__pixel-value\">|<br>1760px</code>\n  </div>\n</div>\n"
      },
      {
        "heading": "structure",
        "level": 3,
        "content": "A grid is based on the directives **grid**, **row** and **column**.\n"
      },
      {
        "heading": "grid",
        "level": 4,
        "content": "The root of a grid is always `nxLayout='grid'`. This establishes the necessary spacings so that the columns and rows can generate a balanced gutter. You can assign a max-width and remove the gutters through modifiers `nogutters` and `maxwidth`.\n"
      },
      {
        "heading": "row",
        "level": 4,
        "content": "This provides the flex container for the columns to be laid out as flex children. There are modifications available to change the flex behaviour like `justify-content-start` or `align-items-start`.\n\nNever forget a row when using a column; otherwise you will have spacing problems due to the applied margins having a negative value.\n"
      },
      {
        "heading": "column",
        "level": 4,
        "content": "The grid is based on the common 12 column base. This means that a single column takes up 1/12 of the available width. You can configure a column to take up more space ranging from 1 to 12 columns by using the directive `nxCol`.\n\nThere are modifiers available like `align-self-start` and `offset`.\n"
      },
      {
        "heading": "css media and container queries",
        "level": 3,
        "content": "CSS Media Queries allow for the styling of web content based on the characteristics of the device or browser that it is being viewed on, while CSS Container Queries enable responsive design by allowing elements to adapt their styling based on the size of their container rather than the viewport.\nYou can choose the query type for each grid based on your needs.\n"
      },
      {
        "heading": "media queries",
        "level": 4,
        "content": "Media queries are based on the browser where the web page is viewed on.\nWe use CSS Media Queries as the default. All components and examples are based on Media Queries if not stated otherwise.\n"
      },
      {
        "heading": "container queries",
        "level": 4,
        "content": "Container queries are a way to create layouts that are based on the size of each individual container, rather than the viewport.\nCheckout the [mozilla container queries documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_container_queries) for more information.\n\nTo enable container querying use `[containerQuery]=\"true\"` on the grid.\n\nThis example illustrates the difference between media and container queries. Both sub grids use the same definitions for __rows__ and __columns__. The only difference is the query type.\nWatch the container grid adjust to changes of the container size in contrast to the media query grid.\n\n\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { AfterViewInit, Component, ElementRef } from '@angular/core';\n\n/**\n * @title Container Query Example\n */\n@Component({\n  selector: 'grid-query-comparison-example',\n  templateUrl: './grid-query-comparison-example.html',\n  styleUrls: ['./grid-query-comparison-example.css'],\n  imports: [\n    NxSliderComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n  ],\n})\nexport class GridQueryComparisonComponent implements AfterViewInit {\n  exampleGridWidth!: number;\n  maxExampleGridWidth!: number;\n  appendPx = (value: number | string) => `${value}px`;\n\n  constructor(private readonly el: ElementRef) {}\n\n  ngAfterViewInit(): void {\n    this.exampleGridWidth = this.el.nativeElement.offsetWidth;\n    this.maxExampleGridWidth = this.exampleGridWidth;\n  }\n}\n\n```\n```html\n<nx-slider\n  [min]=\"10\"\n  [max]=\"maxExampleGridWidth\"\n  [step]=\"2\"\n  [valueFormatter]=\"appendPx\"\n  [(value)]=\"exampleGridWidth\"\n  label=\"Set width of example grids\"\n>\n</nx-slider>\n<div\n  nxLayout=\"grid\"\n  [style.width.px]=\"exampleGridWidth\"\n  class=\"docs-outer-grid\"\n>\n  <div nxRow>\n    <div nxCol=\"12\">\n      <div\n        nxLayout=\"grid\"\n        [containerQuery]=\"false\"\n        class=\"docs-grid-colored-grid\"\n      >\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"12,10,8\" class=\"nx-margin-top-s\">\n            <h3>Media Query Subgrid</h3>\n          </div>\n        </div>\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"12,8,4\" class=\"\">\n            <h4>Some simple form</h4>\n          </div>\n        </div>\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"12,12,6\" class=\"\">\n            <nx-formfield label=\"Long input\">\n              <input nxInput type=\"text\" />\n            </nx-formfield>\n          </div>\n          <div nxCol=\"12,8,4\" class=\"\">\n            <nx-formfield label=\"Short input\">\n              <input nxInput type=\"text\" />\n            </nx-formfield>\n          </div>\n          <div nxCol=\"12,4,2\" class=\"\">\n            <nx-formfield label=\"Tiny input\">\n              <input nxInput type=\"text\" />\n            </nx-formfield>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"12\" class=\"docs-container-inline-size\">\n      <div\n        nxLayout=\"grid\"\n        [containerQuery]=\"true\"\n        class=\"docs-grid-colored-grid-container\"\n      >\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"12,10,8\" class=\"nx-margin-top-s\">\n            <h3>Container Query Subgrid</h3>\n          </div>\n        </div>\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"12,8,4\" class=\"\">\n            <h4>Some simple form</h4>\n          </div>\n        </div>\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"12,12,6\" class=\"\">\n            <nx-formfield label=\"Long input\">\n              <input nxInput type=\"text\" />\n            </nx-formfield>\n          </div>\n          <div nxCol=\"12,8,4\" class=\"\">\n            <nx-formfield label=\"Short input\">\n              <input nxInput type=\"text\" />\n            </nx-formfield>\n          </div>\n          <div nxCol=\"12,4,2\" class=\"\">\n            <nx-formfield label=\"Tiny input\">\n              <input nxInput type=\"text\" />\n            </nx-formfield>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n"
      },
      {
        "heading": "nxlayout",
        "level": 4,
        "content": "Use the nxLayout directive on a `div` element to specify if it's a container:\n\n```html\n<div nxLayout=\"grid\"> [...] </div>\n```\n"
      },
      {
        "heading": "nxrow",
        "level": 4,
        "content": "Use the `nxRow` directive on a div element to specify if it's a row:\n\n```html\n<div nxLayout=\"grid\">\n    <div nxRow> [...] </div>\n</div>\n```"
      },
      {
        "heading": "nxcol",
        "level": 4,
        "content": "Use the `nxCol` directive on a div element to specify if it's a column.\nAn empty `nxCol` will automatically take up all the remaining space of the row.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title nxCol example\n */\n@Component({\n  selector: 'grid-col-blank-example',\n  templateUrl: './grid-col-blank-example.html',\n  styleUrls: ['./grid-col-blank-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridColBlankExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-row\">\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">50%</div>\n    <div nxCol class=\"docs-grid-colored-col\">50%</div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"3\" class=\"docs-grid-colored-col\">25%</div>\n    <div nxCol class=\"docs-grid-colored-col\">50%</div>\n    <div nxCol=\"3\" class=\"docs-grid-colored-col\">25%</div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "nxcol: auto-sized (one input)",
        "level": 4,
        "content": "Two rows with two columns in the first and four columns in the second row. We enter only one value in the directive.\n\nThey are shared among all tiers.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title One input example\n */\n@Component({\n  selector: 'grid-one-input-example',\n  templateUrl: './grid-one-input-example.html',\n  styleUrls: ['./grid-one-input-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridOneInputExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-row\">\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">50%</div>\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">50%</div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"3\" class=\"docs-grid-colored-col\">25%</div>\n    <div nxCol=\"3\" class=\"docs-grid-colored-col\">25%</div>\n    <div nxCol=\"3\" class=\"docs-grid-colored-col\">25%</div>\n    <div nxCol=\"3\" class=\"docs-grid-colored-col\">25%</div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "nxcol: multiple inputs",
        "level": 4,
        "content": "If you assign only one value it will be used for all tiers. If you assign two values the first one will be used for the tiny size and the second one for the remaining ones.\n\nOrder of the used inputs: <code>nxCol=\"<span class=\"docs-grid-text-tiny\">&lt;tiny&gt;</span>, <span class=\"docs-grid-text-small\">&lt;small&gt;</span>, <span class=\"docs-grid-text-medium\">&lt;medium&gt;</span>, <span class=\"docs-grid-text-large\">&lt;large&gt;</span>, <span class=\"docs-grid-text-xlarge\">&lt;xlarge&gt;</span>, <span class=\"docs-grid-text-2xlarge\">&lt;2xlarge&gt;</span>, <span class=\"docs-grid-text-3xlarge\">&lt;3xlarge&gt;</span>\"</code>.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multiple inputs example 1\n */\n@Component({\n  selector: 'grid-multi-inputs-1-example',\n  templateUrl: './grid-multi-inputs-1-example.html',\n  styleUrls: ['./grid-multi-inputs-1-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridMultiInputs1ExampleComponent {}\n\n```\n```html\nWatch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n<span class=\"docs-grid-text-small\">small</span>,\n<span class=\"docs-grid-text-medium\">medium</span>,\n<span class=\"docs-grid-text-large\">large</span>,\n<span class=\"docs-grid-text-xlarge\">xlarge</span>,\n<span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n<span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use two inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"12,8\" class=\"docs-grid-colored-col\">\n      <code\n        >nxCol=<wbr />\"12,8\"<br />\n        => nxCol=<wbr />\"<span class=\"docs-grid-text-tiny\">12</span>,<span\n          class=\"docs-grid-text-small\"\n          >8</span\n        >,<span class=\"docs-grid-text-medium\">8</span>,<span\n          class=\"docs-grid-text-large\"\n          >8</span\n        >,<span class=\"docs-grid-text-xlarge\">8</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >8</span\n        >,<span class=\"docs-grid-text-3xlarge\">8</span>\"\n      </code>\n    </div>\n  </div>\n</div>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use three inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"12,8,6\" class=\"docs-grid-colored-col\">\n      <code\n        >nxCol=<wbr />\"12,8,6\"<br />\n        => nxCol=<wbr />\"<span class=\"docs-grid-text-tiny\">12</span>,<span\n          class=\"docs-grid-text-small\"\n          >8</span\n        >,<span class=\"docs-grid-text-medium\">6</span>,<span\n          class=\"docs-grid-text-large\"\n          >6</span\n        >,<span class=\"docs-grid-text-xlarge\">6</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >6</span\n        >,<span class=\"docs-grid-text-3xlarge\">6</span>\"\n      </code>\n    </div>\n  </div>\n</div>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use four inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"12,8,6,4\" class=\"docs-grid-colored-col\">\n      <code\n        >nxCol=<wbr />\"12,8,6,4\"<br />\n        => nxCol=<wbr />\"<span class=\"docs-grid-text-tiny\">12</span>,<span\n          class=\"docs-grid-text-small\"\n          >8</span\n        >,<span class=\"docs-grid-text-medium\">6</span>,<span\n          class=\"docs-grid-text-large\"\n          >4</span\n        >,<span class=\"docs-grid-text-xlarge\">4</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >4</span\n        >,<span class=\"docs-grid-text-3xlarge\">4</span>\"\n      </code>\n    </div>\n  </div>\n</div>\n\n<span><b>......</b></span>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use seven inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"12,8,6,4,3,4,3\" class=\"docs-grid-colored-col\">\n      <code\n        >nxCol=<wbr />\"12,8,6,4,3,4,3\"<br />\n        => nxCol=<wbr />\"<span class=\"docs-grid-text-tiny\">12</span>,<span\n          class=\"docs-grid-text-small\"\n          >8</span\n        >,<span class=\"docs-grid-text-medium\">6</span>,<span\n          class=\"docs-grid-text-large\"\n          >4</span\n        >,<span class=\"docs-grid-text-xlarge\">3</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >4</span\n        >,<span class=\"docs-grid-text-3xlarge\">3</span>\"\n      </code>\n    </div>\n  </div>\n</div>\n\n```\n\n\nFor example:\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multiple inputs example 2\n */\n@Component({\n  selector: 'grid-multi-inputs-2-example',\n  templateUrl: './grid-multi-inputs-2-example.html',\n  styleUrls: ['./grid-multi-inputs-2-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridMultiInputs2ExampleComponent {}\n\n```\n```html\nWatch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n<span class=\"docs-grid-text-small\">small</span>,\n<span class=\"docs-grid-text-medium\">medium</span>,\n<span class=\"docs-grid-text-large\">large</span>,\n<span class=\"docs-grid-text-xlarge\">xlarge</span>,\n<span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n<span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n\n<p class=\"nx-margin-y-xs\">\n  The last two columns are also aligned differently depending on the window\n  size.\n</p>\n\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"12,3\" class=\"docs-grid-colored-col\">\n      <strong>3</strong> on all devices except tier tiny (<span\n        class=\"docs-grid-text-tiny\"\n        >12</span\n      >)\n    </div>\n    <div nxCol=\"12,6,3\" class=\"docs-grid-colored-col\">\n      <strong>3</strong> on all devices except tier tiny (<span\n        class=\"docs-grid-text-tiny\"\n        >12</span\n      >) and small (<span class=\"docs-grid-text-small\">6</span>)\n    </div>\n    <div nxCol=\"12,6,3\" class=\"docs-grid-colored-col\">\n      <strong>3</strong> on all devices except tier tiny (<span\n        class=\"docs-grid-text-tiny\"\n        >12</span\n      >) and small (<span class=\"docs-grid-text-small\">6</span>)\n    </div>\n    <div nxCol=\"12,6,4,2\" class=\"docs-grid-colored-col\">\n      This column is <strong>2</strong> by default and shrinks down to\n      <span class=\"docs-grid-text-medium\">4</span>,\n      <span class=\"docs-grid-text-small\">6</span>,\n      <span class=\"docs-grid-text-tiny\">12</span>.\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "nxcol: offset columns",
        "level": 4,
        "content": "If you want to offset a column you can use the `colOffset` property similar to the `nxCol` logic.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Offset example\n */\n@Component({\n  selector: 'grid-offset-example',\n  templateUrl: './grid-offset-example.html',\n  styleUrls: ['./grid-offset-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridOffsetExampleComponent {}\n\n```\n```html\nWatch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n<span class=\"docs-grid-text-small\">small</span>,\n<span class=\"docs-grid-text-medium\">medium</span>,\n<span class=\"docs-grid-text-large\">large</span>,\n<span class=\"docs-grid-text-xlarge\">xlarge</span>,\n<span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n<span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use one input:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-offset\">\n    <div nxCol=\"10,9,6,4\" colOffset=\"2\" class=\"docs-grid-colored-col\">\n      <code\n        >colOffset=<wbr />\"2\"<br />\n        => colOffset=<wbr />\"<span class=\"docs-grid-text-tiny\">2</span>,<span\n          class=\"docs-grid-text-small\"\n          >2</span\n        >,<span class=\"docs-grid-text-medium\">2</span>,<span\n          class=\"docs-grid-text-large\"\n          >2</span\n        >,<span class=\"docs-grid-text-xlarge\">2</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >2</span\n        >,<span class=\"docs-grid-text-3xlarge\">2</span>\"</code\n      >\n    </div>\n  </div>\n</div>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use two inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-offset\">\n    <div nxCol=\"10,9\" colOffset=\"2,3\" class=\"docs-grid-colored-col\">\n      <code\n        >colOffset=<wbr />\"2,3\"<br />\n        => colOffset=<wbr />\"<span class=\"docs-grid-text-tiny\">2</span>,<span\n          class=\"docs-grid-text-small\"\n          >3</span\n        >,<span class=\"docs-grid-text-medium\">3</span>,<span\n          class=\"docs-grid-text-large\"\n          >3</span\n        >,<span class=\"docs-grid-text-xlarge\">3</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >3</span\n        >,<span class=\"docs-grid-text-3xlarge\">3</span>\"</code\n      >\n    </div>\n  </div>\n</div>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use three inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-offset\">\n    <div nxCol=\"12,9,8,6\" colOffset=\"0,3,4\" class=\"docs-grid-colored-col\">\n      <code\n        >colOffset=<wbr />\"0,3,4\"<br />\n        => colOffset=<wbr />\"<span class=\"docs-grid-text-tiny\">0</span>,<span\n          class=\"docs-grid-text-small\"\n          >3</span\n        >,<span class=\"docs-grid-text-medium\">4</span>,<span\n          class=\"docs-grid-text-large\"\n          >4</span\n        >,<span class=\"docs-grid-text-xlarge\">4</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >4</span\n        >,<span class=\"docs-grid-text-3xlarge\">4</span>\"</code\n      >\n    </div>\n  </div>\n</div>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use four inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-offset\">\n    <div nxCol=\"12,9,6,4\" colOffset=\"0,3,4,5\" class=\"docs-grid-colored-col\">\n      <code\n        >colOffset=<wbr />\"0,3,4,5\"<br />\n        => colOffset=<wbr />\"<span class=\"docs-grid-text-tiny\">0</span>,<span\n          class=\"docs-grid-text-small\"\n          >3</span\n        >,<span class=\"docs-grid-text-medium\">4</span>,<span\n          class=\"docs-grid-text-large\"\n          >5</span\n        >,<span class=\"docs-grid-text-xlarge\">5</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >5</span\n        >,<span class=\"docs-grid-text-3xlarge\">5</span>\"</code\n      >\n    </div>\n  </div>\n</div>\n\n<span><b>......</b></span>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\">Use seven inputs:</strong>\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-offset\">\n    <div\n      nxCol=\"12,9,6,4,3,4,3\"\n      colOffset=\"0,3,4,5,6,7,8\"\n      class=\"docs-grid-colored-col\"\n    >\n      <code\n        >colOffset=<wbr />\"0,3,4,5,6,7,8\"<br />\n        => colOffset=<wbr />\"<span class=\"docs-grid-text-tiny\">0</span>,<span\n          class=\"docs-grid-text-small\"\n          >3</span\n        >,<span class=\"docs-grid-text-medium\">4</span>,<span\n          class=\"docs-grid-text-large\"\n          >5</span\n        >,<span class=\"docs-grid-text-xlarge\">6</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >7</span\n        >,<span class=\"docs-grid-text-3xlarge\">8</span>\"</code\n      >\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "nogutters and nopadding",
        "level": 4,
        "content": "Use `nogutters` to remove the spacing from rows and (direct) columns. Use `nopadding` to remove the spacing around the grid, but keep the column gutters. This is useful when you need to place the grid inside of another component that already has spacing (including the grid in grid case).\n\nWith `nopadding` alone the rows are pulled out by half a gutter so that the column content still aligns flush with the container edge — the row therefore overhangs its container, which is expected. Combine `nopadding` with `nogutters` when you want the grid to sit flush inside a parent container without any overhang.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Current tier of the grid\n */\n@Component({\n  selector: 'grid-nogutter-example',\n  templateUrl: './grid-nogutter-example.html',\n  styleUrls: ['./grid-nogutter-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridNogutterExampleComponent {}\n\n```\n```html\n<p class=\"nx-margin-top-0 nx-margin-bottom-xs\"><strong>Normal grid:</strong></p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">This is a default grid.</div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">This is a default grid.</div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">This is a default grid.</div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">This is a default grid.</div>\n  </div>\n</div>\n\n<p class=\"nx-margin-y-xs\"><strong>Grid with nogutters:</strong></p>\n<div nxLayout=\"grid nogutters\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nogutters.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nogutters.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nogutters.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nogutters.\n    </div>\n  </div>\n</div>\n\n<p class=\"nx-margin-y-xs\"><strong>Grid with nopadding:</strong></p>\n<div nxLayout=\"grid nopadding\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding.\n    </div>\n  </div>\n</div>\n\n<p class=\"nx-margin-y-xs\">\n  <strong>Grid with nopadding and nogutters:</strong>\n</p>\n<div nxLayout=\"grid nopadding nogutters\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding and nogutters.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding and nogutters.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding and nogutters.\n    </div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">\n      This is an example with nopadding and nogutters.\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "grid in grid",
        "level": 4,
        "content": "You can nest grids inside of other grids to get subdivided columns and achieve more granular positioning. Make sure to use `nopadding` for [grid in grid scenario](./documentation/grid/overview#nogutters-and-nopadding).\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Grid in grid example\n */\n@Component({\n  selector: 'grid-in-grid-example',\n  templateUrl: './grid-in-grid-example.html',\n  styleUrls: ['./grid-in-grid-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridInGridExampleComponent {}\n\n```\n```html\n<p>Grid in grid</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-row\">\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">col=\"6\"</div>\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">col=\"6\"</div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">col=\"6\"</div>\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">\n      <div nxLayout=\"grid nopadding\" class=\"docs-grid-colored-grid\">\n        <div nxRow class=\"docs-grid-colored-row\">\n          <div nxCol=\"6\" class=\"docs-grid-colored-col nested\">\n            col=\"6\" Nested\n          </div>\n          <div nxCol=\"6\" class=\"docs-grid-colored-col nested\">\n            col=\"6\" Nested\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<p>Nesting row</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow class=\"docs-grid-colored-row\">\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">col=\"6\"</div>\n    <div nxCol=\"6\" class=\"docs-grid-colored-col\">\n      <div nxRow class=\"docs-grid-colored-row\">\n        <div nxCol=\"6\" class=\"docs-grid-colored-col\">col=\"6\" Nested</div>\n        <div nxCol=\"6\" class=\"docs-grid-colored-col\">col=\"6\" Nested</div>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "maxwidth",
        "level": 4,
        "content": "In order to constrain the grid, define an overall maximum width (width: 1184px and max-width: 100%).\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Max width example\n */\n@Component({\n  selector: 'grid-maxwidth-example',\n  templateUrl: './grid-maxwidth-example.html',\n  styleUrls: ['./grid-maxwidth-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridMaxwidthExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">example max width</div>\n    <div nxCol=\"2,3\" class=\"docs-grid-colored-col\">example max width</div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "rowjustify",
        "level": 4,
        "content": "The `rowJustify` directive aligns the flexible container's items when the items do not use all available space on the main axis (horizontally).\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Justify row example\n */\n@Component({\n  selector: 'grid-justify-example',\n  templateUrl: './grid-justify-example.html',\n  styleUrls: ['./grid-justify-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridJustifyExampleComponent {}\n\n```\n```html\n<p class=\"nx-margin-top-0 nx-margin-bottom-xs\">\n  Watch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n  <span class=\"docs-grid-text-small\">small</span>,\n  <span class=\"docs-grid-text-medium\">medium</span>,\n  <span class=\"docs-grid-text-large\">large</span>,\n  <span class=\"docs-grid-text-xlarge\">xlarge</span>,\n  <span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n  <span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n</p>\n\n<p>\n  <code\n    >rowJustify=\"start,start,around\"<br />\n    => rowJustify=<wbr />\"<span class=\"docs-grid-text-tiny\">start</span>,<span\n      class=\"docs-grid-text-small\"\n      >start</span\n    >,<span class=\"docs-grid-text-medium\">around</span>,<span\n      class=\"docs-grid-text-large\"\n      >around</span\n    >,<span class=\"docs-grid-text-xlarge\">around</span>,<span\n      class=\"docs-grid-text-2xlarge\"\n      >around</span\n    >,<span class=\"docs-grid-text-3xlarge\">around</span>\"\n  </code>\n</p>\n\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow rowJustify=\"start,start,around\">\n    <div nxCol=\"4\" class=\"docs-grid-colored-col\">This is the first column.</div>\n    <div nxCol=\"4\" class=\"docs-grid-colored-col\">\n      This is the second column.\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "rowaligncontent",
        "level": 4,
        "content": "To modify the behavior of the flex-wrap property, use the `rowAlignContent` directive. It is similar to `rowAlignItems`, but instead of aligning flex items, it aligns flex lines.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Align content example\n */\n@Component({\n  selector: 'grid-align-content-example',\n  templateUrl: './grid-align-content-example.html',\n  styleUrls: ['./grid-align-content-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridAlignContentExampleComponent {}\n\n```\n```html\n<p class=\"nx-margin-top-0 nx-margin-bottom-xs\">\n  Watch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n  <span class=\"docs-grid-text-small\">small</span>,\n  <span class=\"docs-grid-text-medium\">medium</span>,\n  <span class=\"docs-grid-text-large\">large</span>,\n  <span class=\"docs-grid-text-xlarge\">xlarge</span>,\n  <span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n  <span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n</p>\n\n<p>\n  <code\n    >rowAlignContent=\"<span class=\"docs-grid-text-tiny\">end</span>,<span\n      class=\"docs-grid-text-small\"\n      >end</span\n    >,<span class=\"docs-grid-text-medium\">around</span>,<span\n      class=\"docs-grid-text-large\"\n      >stretch</span\n    >,<span class=\"docs-grid-text-xlarge\">stretch</span>,<span\n      class=\"docs-grid-text-2xlarge\"\n      >stretch</span\n    >,<span class=\"docs-grid-text-3xlarge\">stretch</span>\"</code\n  >\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow rowAlignContent=\"end,end,around,stretch\" style=\"height: 200px\">\n    <div nxCol=\"3\" style=\"height: 50px\" class=\"docs-grid-colored-col\">\n      example item 1\n    </div>\n    <div nxCol=\"3\" style=\"height: 50px\" class=\"docs-grid-colored-col\">\n      example item 2\n    </div>\n    <div nxCol=\"3\" style=\"height: 50px\" class=\"docs-grid-colored-col\">\n      example item 3\n    </div>\n    <div nxCol=\"3\" style=\"height: 50px\" class=\"docs-grid-colored-col\">\n      example item 4\n    </div>\n    <div nxCol=\"3\" style=\"height: 50px\" class=\"docs-grid-colored-col\">\n      example item 5\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "rowalignitems",
        "level": 4,
        "content": "The `rowAlignItems` directive defines the default vertical alignment for items inside the flexible container.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Align items example\n */\n@Component({\n  selector: 'grid-align-items-example',\n  templateUrl: './grid-align-items-example.html',\n  styleUrls: ['./grid-align-items-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridAlignItemsExampleComponent {}\n\n```\n```html\n<p class=\"nx-margin-top-0 nx-margin-bottom-xs\">\n  Watch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n  <span class=\"docs-grid-text-small\">small</span>,\n  <span class=\"docs-grid-text-medium\">medium</span>,\n  <span class=\"docs-grid-text-large\">large</span>,\n  <span class=\"docs-grid-text-xlarge\">xlarge</span>,\n  <span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n  <span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n</p>\n\n<p>\n  <code\n    >rowAlignItems=<wbr />\"start,start,center\"<br />\n    => rowAlignItems=<wbr />\"<span class=\"docs-grid-text-tiny\">start</span\n    >,<span class=\"docs-grid-text-small\">start</span>,<span\n      class=\"docs-grid-text-medium\"\n      >center</span\n    >,<span class=\"docs-grid-text-large\">center</span>,<span\n      class=\"docs-grid-text-xlarge\"\n      >center</span\n    >,<span class=\"docs-grid-text-2xlarge\">center</span>,<span\n      class=\"docs-grid-text-3xlarge\"\n      >center</span\n    >\"</code\n  >\n</p>\n\n<div nxLayout=\"grid maxwidth\" class=\"docs-grid-colored-grid\">\n  <div nxRow rowAlignItems=\"start,start,center\">\n    <div nxCol=\"4\" class=\"docs-grid-colored-col\">example item 1</div>\n    <div nxCol=\"4\" style=\"height: 200px\" class=\"docs-grid-colored-col\">\n      example item 2\n    </div>\n    <div nxCol=\"4\" class=\"docs-grid-colored-col\">example item 3</div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "alignself",
        "level": 4,
        "content": "The `alignSelf` property specifies the alignment for a selected item inside the flexible container.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Align self example\n */\n@Component({\n  selector: 'grid-align-self-example',\n  templateUrl: './grid-align-self-example.html',\n  styleUrls: ['./grid-align-self-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridAlignSelfExampleComponent {}\n\n```\n```html\n<p class=\"nx-margin-top-0 nx-margin-bottom-xs\">\n  Watch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n  <span class=\"docs-grid-text-small\">small</span>,\n  <span class=\"docs-grid-text-medium\">medium</span>,\n  <span class=\"docs-grid-text-large\">large</span>,\n  <span class=\"docs-grid-text-xlarge\">xlarge</span>,\n  <span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n  <span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n</p>\n\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow style=\"height: 180px\">\n    <div\n      nxCol=\"5\"\n      alignSelf=\"end\"\n      style=\"min-height: 120px\"\n      class=\"docs-grid-colored-col\"\n    >\n      <strong>item 1:</strong><br />\n      <code\n        >alignSelf=<wbr />\"end\"<br />\n        => alignSelf=<wbr />\"<span class=\"docs-grid-text-tiny\">end</span>,<span\n          class=\"docs-grid-text-small\"\n          >end</span\n        >,<span class=\"docs-grid-text-medium\">end</span>,<span\n          class=\"docs-grid-text-large\"\n          >end</span\n        >,<span class=\"docs-grid-text-xlarge\">end</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >end</span\n        >,<span class=\"docs-grid-text-3xlarge\">end</span>\"</code\n      >\n    </div>\n    <div\n      nxCol=\"5\"\n      alignSelf=\"start,start,end\"\n      style=\"min-height: 120px\"\n      class=\"docs-grid-colored-col\"\n    >\n      <strong>item 2:</strong><br />\n      <code\n        >alignSelf=<wbr />\"start,start,end\"<br />\n        => alignSelf=<wbr />\"<span class=\"docs-grid-text-tiny\">start</span\n        >,<span class=\"docs-grid-text-small\">start</span>,<span\n          class=\"docs-grid-text-medium\"\n          >end</span\n        >,<span class=\"docs-grid-text-large\">end</span>,<span\n          class=\"docs-grid-text-xlarge\"\n          >end</span\n        >,<span class=\"docs-grid-text-2xlarge\">end</span>,<span\n          class=\"docs-grid-text-3xlarge\"\n          >end</span\n        >\"</code\n      >\n    </div>\n  </div>\n  <div nxRow style=\"height: 180px\">\n    <div\n      nxCol=\"5\"\n      alignSelf=\"end,baseline,stretch\"\n      style=\"min-height: 120px\"\n      class=\"docs-grid-colored-col\"\n    >\n      <strong>item 3:</strong><br />\n      <code\n        >alignSelf=<wbr />\"end,baseline,stretch\"<br />\n        => alignSelf=<wbr />\"<span class=\"docs-grid-text-tiny\">end</span>,<span\n          class=\"docs-grid-text-small\"\n          >baseline</span\n        >,<span class=\"docs-grid-text-medium\">stretch</span>,<span\n          class=\"docs-grid-text-large\"\n          >stretch</span\n        >,<span class=\"docs-grid-text-xlarge\">stretch</span>,<span\n          class=\"docs-grid-text-2xlarge\"\n          >stretch</span\n        >,<span class=\"docs-grid-text-3xlarge\">stretch</span>\"</code\n      >\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "colorder",
        "level": 4,
        "content": "To specify the order within the row, apply the `colOrder` property.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { Component } from '@angular/core';\n\n/**\n * @title Column order example\n */\n@Component({\n  selector: 'grid-col-order-example',\n  templateUrl: './grid-col-order-example.html',\n  styleUrls: ['./grid-col-order-example.css'],\n  imports: [NxLayoutComponent, NxRowComponent, NxColComponent],\n})\nexport class GridColOrderExampleComponent {}\n\n```\n```html\n<p class=\"nx-margin-top-0 nx-margin-bottom-xs\">\n  Watch it changing for <span class=\"docs-grid-text-tiny\">tiny</span>,\n  <span class=\"docs-grid-text-small\">small</span>,\n  <span class=\"docs-grid-text-medium\">medium</span>,\n  <span class=\"docs-grid-text-large\">large</span>,\n  <span class=\"docs-grid-text-xlarge\">xlarge</span>,\n  <span class=\"docs-grid-text-2xlarge\">2xlarge</span> and\n  <span class=\"docs-grid-text-3xlarge\">3xlarge</span> widths!\n</p>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\"\n    >Use one order for all four screen sizes:</strong\n  >\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"3\" colOrder=\"last\" class=\"docs-grid-colored-col\">\n      Column <strong>1</strong><br />\n      <code>colOrder=<wbr />\"last\"</code>\n    </div>\n    <div nxCol=\"3\" colOrder=\"first\" class=\"docs-grid-colored-col\">\n      Column <strong>2</strong><br />\n      <code>colOrder=<wbr />\"first\"</code>\n    </div>\n    <div nxCol=\"3\" colOrder=\"unordered\" class=\"docs-grid-colored-col\">\n      Column <strong>3</strong><br />\n      <code>colOrder=<wbr />\"unordered\"</code>\n    </div>\n    <div nxCol=\"3\" colOrder=\"unordered\" class=\"docs-grid-colored-col\">\n      Column <strong>4</strong><br />\n      <code>colOrder=<wbr />\"unordered\"</code>\n    </div>\n  </div>\n</div>\n\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\"\n    >Changing the order for\n    <span class=\"docs-grid-text-tiny\">tiny</span> size:</strong\n  >\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div nxCol=\"5\" colOrder=\"last,first\" class=\"docs-grid-colored-col\">\n      Column <strong>1</strong>\n    </div>\n    <div nxCol=\"5\" colOrder=\"first,last\" class=\"docs-grid-colored-col\">\n      Column <strong>2</strong>\n    </div>\n  </div>\n</div>\n<p>\n  <strong class=\"nx-margin-top-0 nx-margin-bottom-xs\"\n    >Changing the order for <span class=\"docs-grid-text-tiny\">tiny</span> and\n    <span class=\"docs-grid-text-small\">small</span> size:</strong\n  >\n</p>\n<div nxLayout=\"grid\" class=\"docs-grid-colored-grid\">\n  <div nxRow>\n    <div\n      nxCol=\"5\"\n      colOrder=\"last,last,first,first\"\n      class=\"docs-grid-colored-col\"\n    >\n      Column <strong>1</strong>\n    </div>\n    <div\n      nxCol=\"5\"\n      colOrder=\"first,first,last,last\"\n      class=\"docs-grid-colored-col\"\n    >\n      Column <strong>2</strong>\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "functional grid",
        "level": 3,
        "content": "The functional grid is a variant of the grid optimized for data-dense, task-oriented interfaces in the A1 design system. It uses tighter spacing to accommodate more content.\n\nTo activate the functional grid, pass `gridType: 'functional'` to `provideA1Theme()` in your application config:\n\n```typescript\n// app.config.ts\nimport { provideA1Theme } from '@allianz/ngx-brand-kit';\n\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    provideA1Theme({ gridType: 'functional' }),\n  ],\n};\n```\n\n</div>\n\n"
      }
    ]
  },
  {
    "name": "header.md",
    "title": "Header",
    "category": "components",
    "alias": [
      "toolbar",
      "navbar",
      "app bar",
      "navigation bar"
    ],
    "sections": [
      {
        "heading": "basic header",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n  NxHeaderLinkComponent,\n  NxHeaderNavigationComponent,\n  NxHeaderNavigationItemDirective,\n} from '@allianz/ng-aquila/header';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Single Row Header Example\n */\n@Component({\n  selector: 'header-example',\n  templateUrl: './header-example.html',\n  styleUrls: ['./header-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderBrandDirective,\n    NxLinkComponent,\n    NxHeaderNavigationComponent,\n    NxHeaderNavigationItemDirective,\n    NxHeaderLinkComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxHeaderActionsDirective,\n    NxButtonComponent,\n  ],\n})\nexport class HeaderExampleComponent {}\n\n```\n```html\n<header nx-header>\n  <nx-header-brand>\n    <a href=\"#\">\n      <figure nxFigure>\n        <img src=\"assets/logos/aposin_logo.svg\" alt=\"Brand Logo\" role=\"none\" />\n      </figure>\n      <span class=\"logo-text\">AQUILA</span>\n    </a>\n  </nx-header-brand>\n\n  <nx-header-navigation>\n    <nx-header-navigation-item>\n      <a\n        routerLink=\"./\"\n        [routerLinkActiveOptions]=\"{ exact: true }\"\n        routerLinkActive=\"is-active\"\n        [skipLocationChange]=\"true\"\n        nxHeaderLink\n        >Option 1</a\n      >\n    </nx-header-navigation-item>\n    <nx-header-navigation-item>\n      <a\n        routerLink=\"./\"\n        [queryParams]=\"{ s: 2 }\"\n        routerLinkActive=\"is-active\"\n        [skipLocationChange]=\"true\"\n        nxHeaderLink\n        >Option 2</a\n      >\n    </nx-header-navigation-item>\n  </nx-header-navigation>\n\n  <nx-header-actions>\n    <button nxButton=\"secondary small\" type=\"button\">Login</button>\n  </nx-header-actions>\n</header>\n\n```\n\n"
      },
      {
        "heading": "multiple rows",
        "level": 3,
        "content": "In some cases you want to have a header with two rows. In this case simply place another `<nx-header-row>` element after the first one.\n\n```html\n<header nx-header>\n    <nx-header-row> First row </nx-header-row>\n    <nx-header-row> Second row </nx-header-row>\n</header>\n```\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n  NxHeaderLinkComponent,\n  NxHeaderNavigationComponent,\n  NxHeaderNavigationItemDirective,\n  NxHeaderRowDirective,\n} from '@allianz/ng-aquila/header';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Header Two Rows Example\n */\n@Component({\n  selector: 'header-two-rows-example',\n  templateUrl: './header-two-rows-example.html',\n  styleUrls: ['./header-two-rows-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderRowDirective,\n    NxHeaderBrandDirective,\n    NxLinkComponent,\n    NxHeaderActionsDirective,\n    NxButtonComponent,\n    NxHeaderNavigationComponent,\n    NxHeaderNavigationItemDirective,\n    NxHeaderLinkComponent,\n    RouterLink,\n    RouterLinkActive,\n  ],\n})\nexport class HeaderTwoRowsExampleComponent {}\n\n```\n```html\n<header nx-header>\n  <nx-header-row>\n    <nx-header-brand>\n      <a href=\"#\">\n        <figure nxFigure>\n          <img\n            src=\"assets/logos/aposin_logo.svg\"\n            alt=\"Brand Logo\"\n            role=\"none\"\n          />\n        </figure>\n        <span class=\"logo-text\">AQUILA</span>\n      </a>\n    </nx-header-brand>\n\n    <nx-header-actions>\n      <button nxButton=\"secondary small\" type=\"button\">Login</button>\n    </nx-header-actions>\n  </nx-header-row>\n  <nx-header-row>\n    <nx-header-navigation>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [routerLinkActiveOptions]=\"{ exact: true }\"\n          routerLinkActive=\"is-active\"\n          nxHeaderLink\n          >Option 1</a\n        >\n      </nx-header-navigation-item>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [queryParams]=\"{ s: 2 }\"\n          routerLinkActive=\"is-active\"\n          nxHeaderLink\n          >Option 2</a\n        >\n      </nx-header-navigation-item>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [queryParams]=\"{ s: 3 }\"\n          routerLinkActive=\"is-active\"\n          nxHeaderLink\n          >Option 3</a\n        >\n      </nx-header-navigation-item>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [queryParams]=\"{ s: 4 }\"\n          routerLinkActive=\"is-active\"\n          [skipLocationChange]=\"true\"\n          nxHeaderLink\n          >Option 4</a\n        >\n      </nx-header-navigation-item>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [queryParams]=\"{ s: 5 }\"\n          routerLinkActive=\"is-active\"\n          [skipLocationChange]=\"true\"\n          nxHeaderLink\n          >Option 5</a\n        >\n      </nx-header-navigation-item>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [queryParams]=\"{ s: 6 }\"\n          routerLinkActive=\"is-active\"\n          nxHeaderLink\n          >Option 6</a\n        >\n      </nx-header-navigation-item>\n    </nx-header-navigation>\n  </nx-header-row>\n</header>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "application title and header actions",
        "level": 4,
        "content": "You can show the title of your application in the header by using the `<nx-header-app-title>` directive inside the `<nx-header-brand>` as shown in the example below. The application title is displayed after the logo separated by a vertical line by default in NDBX. In A1 the divider is hidden by default. Use `[showDivider]=\"true\"` to show it explicitly.\n\n`<nx-header-actions>` is a container where additional actions can be placed. Depending on the action, use links if it redirects to a different page, or a button if it is an action happening on the current page. It also supports a left vertical divider via the `[showDivider]` input, which defaults to `false`.\n\n<div class=\"docs-deprecation-warning\">\n  <strong>Note:</strong> The previous `showSeparator` input on <code>&lt;nx-header-actions&gt;</code> is kept for backward compatibility but is deprecated. Please migrate to <code>showDivider</code>.\n</div>\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderAppTitleDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n} from '@allianz/ng-aquila/header';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Header with functional icons example\n */\n@Component({\n  selector: 'header-icons-example',\n  templateUrl: './header-icons-example.html',\n  styleUrls: ['./header-icons-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderBrandDirective,\n    NxLinkComponent,\n    NxHeaderAppTitleDirective,\n    NxHeaderActionsDirective,\n    NxPlainButtonComponent,\n    NxIconComponent,\n    RouterLink,\n  ],\n})\nexport class HeaderIconsExampleComponent {}\n\n```\n```html\n<header nx-header>\n  <nx-header-brand>\n    <nx-link>\n      <a href=\"#\">\n        <figure nxFigure>\n          <img\n            src=\"assets/logos/aposin_logo.svg\"\n            alt=\"Brand Logo\"\n            role=\"none\"\n          />\n        </figure>\n      </a>\n    </nx-link>\n\n    <nx-header-app-title [showDivider]=\"true\"\n      >Application title</nx-header-app-title\n    >\n  </nx-header-brand>\n\n  <nx-header-actions [showDivider]=\"true\">\n    <button nxPlainButton aria-label=\"Open Search Bar\">\n      <nx-icon name=\"search\" aria-hidden=\"true\"></nx-icon>\n    </button>\n    <nx-link class=\"action-item\" nxStyle=\"icon-only\">\n      <a routerLink=\"#\" aria-label=\"Settings\"\n        ><nx-icon name=\"setting\" aria-hidden=\"true\"></nx-icon\n      ></a>\n    </nx-link>\n    <nx-link class=\"action-item\" nxStyle=\"icon-only\">\n      <a routerLink=\"#\" aria-label=\"More information\"\n        ><nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon\n      ></a>\n    </nx-link>\n    <button nxPlainButton class=\"action-item\" aria-label=\"Show notifications\">\n      <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n  </nx-header-actions>\n</header>\n\n```\n\n"
      },
      {
        "heading": "co-branding",
        "level": 4,
        "content": "A co-branding can be used in the header. It is positioned in the rightmost position separated by a vertical line.\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderAppTitleDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n  NxHeaderLinkComponent,\n  NxHeaderNavigationComponent,\n  NxHeaderNavigationItemDirective,\n  NxHeaderRowDirective,\n} from '@allianz/ng-aquila/header';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Header with co-branding example\n */\n@Component({\n  selector: 'header-cobranding-example',\n  templateUrl: './header-cobranding-example.html',\n  styleUrls: ['header-cobranding-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderRowDirective,\n    NxHeaderBrandDirective,\n    NxLinkComponent,\n    NxHeaderAppTitleDirective,\n    NxHeaderActionsDirective,\n    NxHeaderNavigationComponent,\n    NxHeaderNavigationItemDirective,\n    NxHeaderLinkComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxPlainButtonComponent,\n    NxIconComponent,\n  ],\n})\nexport class HeaderCobrandingExampleComponent {}\n\n```\n```html\n<header nx-header>\n  <nx-header-row>\n    <nx-header-brand>\n      <nx-link>\n        <a href=\"#\">\n          <figure nxFigure>\n            <img\n              src=\"assets/logos/aposin_logo.svg\"\n              alt=\"Brand Logo\"\n              role=\"none\"\n            />\n          </figure>\n        </a>\n      </nx-link>\n\n      <nx-header-app-title>Application title</nx-header-app-title>\n    </nx-header-brand>\n\n    <nx-header-actions [showDivider]=\"true\" class=\"cobranding\">\n      <span>Powered by</span>\n      <nx-header-brand class=\"nx-margin-right-0\">\n        <nx-link>\n          <a href=\"#\">\n            <figure nxFigure>\n              <img\n                class=\"logo-with-title\"\n                src=\"assets/logos/aposin_logo.svg\"\n                alt=\"Brand Logo\"\n                role=\"none\"\n              />\n            </figure>\n            <span class=\"logo-text\">AQUILA</span>\n          </a>\n        </nx-link>\n      </nx-header-brand>\n    </nx-header-actions>\n  </nx-header-row>\n\n  <nx-header-row>\n    <nx-header-navigation>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [routerLinkActiveOptions]=\"{ exact: true }\"\n          routerLinkActive=\"is-active\"\n          nxHeaderLink\n          >Option 1</a\n        >\n      </nx-header-navigation-item>\n      <nx-header-navigation-item>\n        <a\n          routerLink=\"./\"\n          [queryParams]=\"{ s: 2 }\"\n          routerLinkActive=\"is-active\"\n          nxHeaderLink\n          >Option 2</a\n        >\n      </nx-header-navigation-item>\n    </nx-header-navigation>\n\n    <nx-header-actions>\n      <button nxPlainButton aria-label=\"Open Search Bar\">\n        <nx-icon name=\"search\" aria-hidden=\"true\"></nx-icon>\n      </button>\n      <nx-link class=\"action-item\" nxStyle=\"icon-only\">\n        <a routerLink=\"#\" aria-label=\"Settings\"\n          ><nx-icon name=\"setting\" aria-hidden=\"true\"></nx-icon\n        ></a>\n      </nx-link>\n      <nx-link class=\"action-item\" nxStyle=\"icon-only\">\n        <a routerLink=\"#\" aria-label=\"More information\"\n          ><nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon\n        ></a>\n      </nx-link>\n      <button nxPlainButton class=\"action-item\" aria-label=\"Show notifications\">\n        <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n      </button>\n    </nx-header-actions>\n  </nx-header-row>\n</header>\n\n```\n\n</div>\n"
      },
      {
        "heading": "responsive",
        "level": 3,
        "content": "You can make header responsive by using `NxViewportService` to detect the screen size. Here are some examples:\n"
      },
      {
        "heading": "header icons",
        "level": 4,
        "content": "An example of a responsive header where multiple icons transform into a burger menu button on smaller screens. Click to view in fullscreen and resize the screen to see it in action.\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderAppTitleDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n} from '@allianz/ng-aquila/header';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxMenuButtonComponent,\n  NxMenuComponent,\n  NxMenuItemDirective,\n} from '@allianz/ng-aquila/menu';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport {\n  ChangeDetectorRef,\n  Component,\n  OnDestroy,\n  OnInit,\n  viewChild,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { merge, Subject } from 'rxjs';\nimport { distinctUntilChanged, filter, map, takeUntil } from 'rxjs/operators';\n\ntype ViewType = 'mobile' | 'tablet' | 'desktop';\n\ninterface MenuItem {\n  label: string;\n  menuLink: string;\n}\n\n/**\n * @title Header with functional icons example\n */\n@Component({\n  selector: 'header-icons-responsive-example',\n  templateUrl: './header-icons-responsive-example.html',\n  styleUrls: ['./header-icons-responsive-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderBrandDirective,\n    NxLinkComponent,\n    NxHeaderAppTitleDirective,\n    NxHeaderActionsDirective,\n    NxPlainButtonComponent,\n    NxIconComponent,\n    RouterLink,\n    NxMenuButtonComponent,\n    NxMenuComponent,\n    NxMenuItemDirective,\n  ],\n})\nexport class HeaderIconsResponsiveExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly menu = viewChild.required(NxMenuComponent);\n\n  protected readonly _destroyed = new Subject<void>();\n\n  viewType: ViewType = 'desktop';\n\n  constructor(\n    private readonly viewportService: NxViewportService,\n    protected readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  ngOnInit(): void {\n    this.detectScreenSize();\n  }\n\n  detectScreenSize(): void {\n    const mobile$ = this.viewportService.max(NxBreakpoints.BREAKPOINT_MEDIUM);\n    const tablet$ = this.viewportService.between(\n      NxBreakpoints.BREAKPOINT_MEDIUM,\n      NxBreakpoints.BREAKPOINT_LARGE,\n    );\n    const desktop$ = this.viewportService.min(NxBreakpoints.BREAKPOINT_LARGE);\n\n    merge(\n      mobile$.pipe(\n        filter((value) => value),\n        map(() => 'mobile' as ViewType),\n      ),\n      tablet$.pipe(\n        filter((value) => value),\n        map(() => 'tablet' as ViewType),\n      ),\n      desktop$.pipe(\n        filter((value) => value),\n        map(() => 'desktop' as ViewType),\n      ),\n    )\n      .pipe(distinctUntilChanged(), takeUntil(this._destroyed))\n      .subscribe((viewType) => {\n        if (\n          (viewType === 'tablet' || viewType === 'desktop') &&\n          this.menu().open\n        ) {\n          this.menu().toggle();\n        }\n        this.viewType = viewType;\n        this._cdr.markForCheck();\n      });\n  }\n\n  menuData: MenuItem[] = [\n    {\n      label: 'Search',\n      menuLink: './',\n    },\n    {\n      label: 'Settings',\n      menuLink: './',\n    },\n    {\n      label: 'More information',\n      menuLink: './',\n    },\n    {\n      label: 'Notifications',\n      menuLink: './',\n    },\n  ];\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<header nx-header>\n  <nx-header-brand>\n    <nx-link>\n      <a href=\"#\">\n        <figure nxFigure>\n          <img\n            src=\"assets/logos/aposin_logo.svg\"\n            alt=\"Brand Logo\"\n            role=\"none\"\n          />\n        </figure>\n      </a>\n    </nx-link>\n\n    <nx-header-app-title>Application title</nx-header-app-title>\n  </nx-header-brand>\n\n  @if (viewType === 'tablet' || viewType === 'desktop') {\n    <nx-header-actions>\n      <button nxPlainButton aria-label=\"Open Search Bar\">\n        <nx-icon name=\"search\" aria-hidden=\"true\"></nx-icon>\n      </button>\n      <nx-link class=\"action-item\" nxStyle=\"icon-only\">\n        <a routerLink=\"#\" aria-label=\"Settings\"\n          ><nx-icon name=\"setting\" aria-hidden=\"true\"></nx-icon\n        ></a>\n      </nx-link>\n      <nx-link class=\"action-item\" nxStyle=\"icon-only\">\n        <a routerLink=\"#\" aria-label=\"More information\"\n          ><nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon\n        ></a>\n      </nx-link>\n      <button nxPlainButton class=\"action-item\" aria-label=\"Show notifications\">\n        <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n      </button>\n    </nx-header-actions>\n  }\n  @if (viewType === 'mobile') {\n    @if (!menu.open) {\n      <nx-header-actions>\n        <button\n          nxPlainButton\n          (click)=\"menu.toggle()\"\n          aria-label=\"open menu\"\n          type=\"button\"\n        >\n          <nx-icon name=\"bars\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      </nx-header-actions>\n    } @else {\n      <button\n        nxPlainButton\n        class=\"close-menu\"\n        (click)=\"menu.toggle()\"\n        type=\"button\"\n        aria-label=\"close menu\"\n      >\n        <nx-icon name=\"close\"></nx-icon>\n      </button>\n    }\n  }\n</header>\n\n<nx-menu #menu>\n  @for (item of menuData; track item) {\n    <button\n      nxMenuButton\n      menuButtonType=\"root\"\n      nxMenuItem\n      type=\"button\"\n      routerLink=\"{{ item.menuLink }}\"\n    >\n      {{ item.label }}\n    </button>\n  }\n</nx-menu>\n\n```\n\n"
      },
      {
        "heading": "header two rows",
        "level": 4,
        "content": "An example of a responsive two-row header that integrates with the `<nx-menu>` component. On smaller screens, the second row collapses into a single row, and header actions are moved into a burger menu button. Click to view in fullscreen and resize the screen to see it in action.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n  NxHeaderLinkComponent,\n  NxHeaderNavigationComponent,\n  NxHeaderNavigationItemDirective,\n  NxHeaderRowDirective,\n} from '@allianz/ng-aquila/header';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxMenuButtonComponent,\n  NxMenuComponent,\n  NxMenuItemDirective,\n} from '@allianz/ng-aquila/menu';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport {\n  ChangeDetectorRef,\n  Component,\n  OnDestroy,\n  OnInit,\n  viewChild,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { merge, Subject } from 'rxjs';\nimport { distinctUntilChanged, filter, map, takeUntil } from 'rxjs/operators';\n\ntype ViewType = 'mobile' | 'tablet' | 'desktop';\n\ninterface MenuItem {\n  label: string;\n  query: {\n    s: number;\n  };\n}\n\n/**\n * @title Header Two Rows Responsive Example\n */\n@Component({\n  selector: 'header-two-rows-responsive-example',\n  templateUrl: './header-two-rows-responsive-example.html',\n  styleUrls: ['./header-two-rows-responsive-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderRowDirective,\n    NxHeaderBrandDirective,\n    NxLinkComponent,\n    NxHeaderActionsDirective,\n    NxButtonComponent,\n    NxHeaderNavigationComponent,\n    NxHeaderNavigationItemDirective,\n    NxHeaderLinkComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxMenuButtonComponent,\n    NxMenuComponent,\n    NxMenuItemDirective,\n    NxPlainButtonComponent,\n  ],\n})\nexport class HeaderTwoRowsResponsiveExampleComponent\n  implements OnInit, OnDestroy\n{\n  readonly menu = viewChild.required(NxMenuComponent);\n\n  protected readonly _destroyed = new Subject<void>();\n\n  viewType: ViewType = 'desktop';\n\n  constructor(\n    private readonly viewportService: NxViewportService,\n    protected readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  menuData: MenuItem[] = [\n    {\n      label: 'Option 1',\n      query: { s: 1 },\n    },\n    {\n      label: 'Option 2',\n      query: { s: 2 },\n    },\n    {\n      label: 'Option 3',\n      query: { s: 3 },\n    },\n    {\n      label: 'Option 4',\n      query: { s: 4 },\n    },\n    {\n      label: 'Option 5',\n      query: { s: 5 },\n    },\n    {\n      label: 'Option 6',\n      query: { s: 6 },\n    },\n  ];\n\n  ngOnInit(): void {\n    this.detectScreenSize();\n  }\n\n  detectScreenSize(): void {\n    const mobile$ = this.viewportService.max(NxBreakpoints.BREAKPOINT_MEDIUM);\n    const tablet$ = this.viewportService.between(\n      NxBreakpoints.BREAKPOINT_MEDIUM,\n      NxBreakpoints.BREAKPOINT_LARGE,\n    );\n    const desktop$ = this.viewportService.min(NxBreakpoints.BREAKPOINT_LARGE);\n\n    merge(\n      mobile$.pipe(\n        filter((value) => value),\n        map(() => 'mobile' as ViewType),\n      ),\n      tablet$.pipe(\n        filter((value) => value),\n        map(() => 'tablet' as ViewType),\n      ),\n      desktop$.pipe(\n        filter((value) => value),\n        map(() => 'desktop' as ViewType),\n      ),\n    )\n      .pipe(distinctUntilChanged(), takeUntil(this._destroyed))\n      .subscribe((viewType) => {\n        if (\n          (viewType === 'tablet' || viewType === 'desktop') &&\n          this.menu().open\n        ) {\n          this.menu().toggle();\n        }\n        this.viewType = viewType;\n        this._cdr.markForCheck();\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<header nx-header>\n  <nx-header-row>\n    <nx-header-brand>\n      <a href=\"#\">\n        <figure nxFigure>\n          <img\n            src=\"assets/logos/aposin_logo.svg\"\n            alt=\"Brand Logo\"\n            role=\"none\"\n          />\n        </figure>\n        <span class=\"logo-text\">AQUILA</span>\n      </a>\n    </nx-header-brand>\n\n    @if (viewType === 'desktop') {\n      <nx-header-actions>\n        <button nxButton=\"secondary small\" type=\"button\">Login</button>\n      </nx-header-actions>\n    }\n    @if (viewType === 'tablet' || viewType === 'mobile') {\n      <nx-header-actions>\n        <button nxPlainButton aria-label=\"open search bar\" type=\"button\">\n          <nx-icon name=\"search\" aria-hidden=\"true\"></nx-icon>\n        </button>\n        <button\n          nxPlainButton\n          aria-label=\"login\"\n          class=\"nx-margin-left-s\"\n          type=\"button\"\n        >\n          <nx-icon name=\"user\" aria-hidden=\"true\"></nx-icon>\n        </button>\n        <button\n          nxPlainButton\n          (click)=\"menu.toggle()\"\n          aria-label=\"open menu\"\n          class=\"nx-margin-left-s\"\n          type=\"button\"\n        >\n          <nx-icon name=\"bars\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      </nx-header-actions>\n    }\n  </nx-header-row>\n  @if (viewType === 'desktop') {\n    <nx-header-row>\n      <nx-header-navigation>\n        @for (item of menuData; track item; let i = $index) {\n          <nx-header-navigation-item>\n            <a\n              routerLink=\"./\"\n              [routerLinkActiveOptions]=\"{ exact: true }\"\n              [queryParams]=\"i === 0 ? null : item.query\"\n              routerLinkActive=\"is-active\"\n              nxHeaderLink\n              >{{ item.label }}</a\n            >\n          </nx-header-navigation-item>\n        }\n      </nx-header-navigation>\n      <nx-header-actions>\n        <button nxPlainButton aria-label=\"open search bar\" type=\"button\">\n          <nx-icon name=\"search\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      </nx-header-actions>\n    </nx-header-row>\n  }\n</header>\n\n<nx-menu #menu>\n  <div class=\"action-wrapper\">\n    <nx-link>\n      <a href=\"#\">\n        <figure nxFigure>\n          <img\n            src=\"assets/logos/aposin_logo.svg\"\n            alt=\"Brand Logo\"\n            role=\"none\"\n          />\n        </figure>\n        <span class=\"logo-text\">AQUILA</span>\n      </a>\n    </nx-link>\n    <button\n      nxPlainButton\n      class=\"close-menu\"\n      (click)=\"menu.toggle()\"\n      type=\"button\"\n      aria-label=\"close menu\"\n    >\n      <nx-icon name=\"close\"></nx-icon>\n    </button>\n  </div>\n  @for (item of menuData; track item) {\n    <button\n      nxMenuButton\n      menuButtonType=\"root\"\n      nxMenuItem\n      type=\"button\"\n      routerLink=\"./\"\n    >\n      {{ item.label }}\n    </button>\n  }\n</nx-menu>\n\n```\n\n"
      },
      {
        "heading": "header with side navigation",
        "level": 4,
        "content": "An example of a header integrated with `<nx-sidebar>`, where its options move into the sidebar menu on smaller screens. Click to view in fullscreen and resize the screen to see it in action.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxHeaderActionsDirective,\n  NxHeaderBrandDirective,\n  NxHeaderComponent,\n  NxHeaderLinkComponent,\n  NxHeaderNavigationComponent,\n  NxHeaderNavigationItemDirective,\n  NxHeaderRowDirective,\n} from '@allianz/ng-aquila/header';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport { NgClass } from '@angular/common';\nimport { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { merge, Subject } from 'rxjs';\nimport { distinctUntilChanged, filter, map, takeUntil } from 'rxjs/operators';\n\ntype ViewType = 'mobile' | 'tablet' | 'desktop';\n\ninterface MenuItem {\n  label: string;\n  query: {\n    s: number;\n  };\n}\n\ninterface ActionItem {\n  icon: string;\n  label: string;\n  query: object;\n}\n\n/**\n * @title Header with side navigation example\n */\n@Component({\n  selector: 'header-with-side-navigation-example',\n  templateUrl: './header-with-side-navigation-example.html',\n  styleUrls: ['./header-with-side-navigation-example.css'],\n  imports: [\n    NxHeaderComponent,\n    NxHeaderBrandDirective,\n    NxHeaderRowDirective,\n    NxLinkComponent,\n    NxHeaderNavigationComponent,\n    NxHeaderNavigationItemDirective,\n    NxHeaderLinkComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxHeaderActionsDirective,\n    NxSidebarComponent,\n    NxPlainButtonComponent,\n    NxActionComponent,\n    NxIconComponent,\n    NxActionIconDirective,\n    NgClass,\n  ],\n})\nexport class HeaderWithSideNavigationExampleComponent\n  implements OnInit, OnDestroy\n{\n  protected readonly _destroyed = new Subject<void>();\n  viewType: ViewType = 'desktop';\n\n  constructor(\n    private readonly viewportService: NxViewportService,\n    protected readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  showSidebar: boolean = false;\n\n  menuData: MenuItem[] = [\n    {\n      label: 'Option 1',\n      query: { s: 1 },\n    },\n    {\n      label: 'Option 2',\n      query: { s: 2 },\n    },\n    {\n      label: 'Option 3',\n      query: { s: 3 },\n    },\n  ];\n\n  actionData: ActionItem[] = [\n    {\n      icon: 'file-text',\n      label: 'Action 1',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Action 2',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Action 3',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'Action 4',\n      query: { a: 4 },\n    },\n    {\n      icon: 'file',\n      label: 'Action 5',\n      query: { a: 5 },\n    },\n  ];\n\n  ngOnInit(): void {\n    this.detectScreenSize();\n  }\n\n  detectScreenSize(): void {\n    const mobile$ = this.viewportService.max(NxBreakpoints.BREAKPOINT_MEDIUM);\n    const tablet$ = this.viewportService.between(\n      NxBreakpoints.BREAKPOINT_MEDIUM,\n      NxBreakpoints.BREAKPOINT_LARGE,\n    );\n    const desktop$ = this.viewportService.min(NxBreakpoints.BREAKPOINT_LARGE);\n\n    merge(\n      mobile$.pipe(\n        filter((value) => value),\n        map(() => 'mobile' as ViewType),\n      ),\n      tablet$.pipe(\n        filter((value) => value),\n        map(() => 'tablet' as ViewType),\n      ),\n      desktop$.pipe(\n        filter((value) => value),\n        map(() => 'desktop' as ViewType),\n      ),\n    )\n      .pipe(distinctUntilChanged(), takeUntil(this._destroyed))\n      .subscribe((viewType) => {\n        this.viewType = viewType;\n        this.showSidebar = viewType !== 'mobile';\n        this._cdr.markForCheck();\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<header nx-header>\n  <nx-header-row>\n    <nx-header-brand>\n      <a href=\"#\">\n        <figure nxFigure>\n          <img\n            src=\"assets/logos/aposin_logo.svg\"\n            alt=\"Brand Logo\"\n            role=\"none\"\n          />\n        </figure>\n        <span class=\"logo-text\">AQUILA</span>\n      </a>\n    </nx-header-brand>\n\n    @if (viewType === 'desktop') {\n      <nx-header-navigation>\n        @for (menu of menuData; track menu; let i = $index) {\n          <nx-header-navigation-item>\n            <a\n              routerLink=\"./\"\n              [routerLinkActiveOptions]=\"{ exact: true }\"\n              [queryParams]=\"i === 0 ? null : menu.query\"\n              routerLinkActive=\"is-active\"\n              nxHeaderLink\n              >{{ menu.label }}</a\n            >\n          </nx-header-navigation-item>\n        }\n      </nx-header-navigation>\n    }\n    <nx-header-actions>\n      <button nxPlainButton aria-label=\"open search bar\" type=\"button\">\n        <nx-icon name=\"search\" aria-hidden=\"true\"></nx-icon>\n      </button>\n      @if (viewType === 'mobile') {\n        <button\n          nxPlainButton\n          aria-label=\"open menu\"\n          type=\"button\"\n          class=\"nx-margin-left-s\"\n          (click)=\"showSidebar = !showSidebar\"\n        >\n          <nx-icon name=\"bars\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      }\n    </nx-header-actions>\n  </nx-header-row>\n</header>\n\n@if (showSidebar) {\n  <div class=\"content-wrapper\">\n    <nx-sidebar\n      #sidebar\n      class=\"sidebar-wrapper\"\n      [ngClass]=\"{ 'full-width': viewType === 'mobile' }\"\n    >\n      @if (viewType === 'tablet' || viewType === 'mobile') {\n        @for (menu of menuData; track menu) {\n          <a\n            nxAction\n            routerLink=\"./\"\n            [queryParams]=\"menu.query\"\n            routerLinkActive=\"is-selected\"\n          >\n            {{ menu.label }}\n          </a>\n        }\n      }\n      @for (action of actionData; track action) {\n        <a\n          nxAction\n          routerLink=\"./\"\n          [queryParams]=\"action.query\"\n          routerLinkActive=\"is-selected\"\n        >\n          <nx-icon\n            nxActionIcon\n            [name]=\"action.icon\"\n            aria-hidden=\"true\"\n          ></nx-icon>\n          {{ action.label }}\n        </a>\n      }\n    </nx-sidebar>\n  </div>\n}\n\n```\n"
      }
    ]
  },
  {
    "name": "headline.md",
    "title": "Headline",
    "category": "components",
    "alias": [
      "heading",
      "title"
    ],
    "sections": [
      {
        "heading": "sizes",
        "level": 3,
        "content": "\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Sizes Example\n */\n@Component({\n  selector: 'headline-sizes-deprecated-example',\n  templateUrl: './headline-sizes-deprecated-example.html',\n  styleUrls: ['./headline-sizes-deprecated-example.css'],\n  imports: [NxHeadlineComponent],\n})\nexport class HeadlineSizesDeprecatedExampleComponent {}\n\n```\n```html\n<table class=\"table typography-demo-table\">\n  <thead>\n    <tr>\n      <th class=\"left\">Variant</th>\n      <th class=\"left\">Commonly used for</th>\n      <th class=\"left\">Use cases</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td class=\"left\">\n        <h1 nxHeadline=\"page-bold-caps\">Headline Page Bold Caps</h1>\n      </td>\n      <td class=\"left\"><code>h1</code></td>\n      <td class=\"left\">One per page</td>\n    </tr>\n    <tr>\n      <td class=\"left\"><h1 nxHeadline=\"page\">Headline Page</h1></td>\n      <td class=\"left\"><code>h1</code></td>\n      <td class=\"left\">One per page</td>\n    </tr>\n    <tr>\n      <td class=\"left\"><h2 nxHeadline=\"section\">Headline Section</h2></td>\n      <td class=\"left\"><code>h2</code></td>\n      <td class=\"left\"></td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <h3 nxHeadline=\"subsection-large\">Headline Subsection (large)</h3>\n      </td>\n      <td class=\"left\"><code>h3</code></td>\n      <td class=\"left\"></td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <h3 nxHeadline=\"subsection-medium\">Headline Subsection (medium)</h3>\n      </td>\n      <td class=\"left\"><code>h3</code></td>\n      <td class=\"left\"></td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <h3 nxHeadline=\"subsection-small\">Headline Subsection (small)</h3>\n      </td>\n      <td class=\"left\"><code>h3</code></td>\n      <td class=\"left\"></td>\n    </tr>\n    <tr>\n      <td class=\"left\">\n        <h4 nxHeadline=\"subsection-xsmall\">Headline Subsection (xsmall)</h4>\n      </td>\n      <td class=\"left\"><code>h4</code></td>\n      <td class=\"left\"></td>\n    </tr>\n  </tbody>\n</table>\n\n```\n\n"
      },
      {
        "heading": "font weights",
        "level": 3,
        "content": "<div class=\"docs-a1\">\nFor the One Allianz design the font-weights of the headlines are already set as they should be. You should not need to change them anymore.\n</div>\n\n<div class=\"docs-hide-a1\">\n\nYou can change the font-weight of any headline by using the font-weight utility classes `nx-font-weight-{weight}` as shown in the example below. Our library provides four font-weight options: **light** (300), **regular** (400), **semibold** (600) and **bold** (700).\n\n**Important:** In order to use these utility classes you first have to import the utility css file in your project as explained [here](./documentation/typography/overview).\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Font Weight Example\n */\n@Component({\n  selector: 'headline-font-weights-example',\n  templateUrl: './headline-font-weights-example.html',\n  styleUrls: ['./headline-font-weights-example.css'],\n  imports: [NxHeadlineComponent],\n})\nexport class HeadlineFontWeightsExampleComponent {}\n\n```\n```html\n<h2 nxHeadline=\"subsection-medium\" class=\"nx-font-weight-light\">\n  Headline Subsection medium (light)\n</h2>\n<br />\n<h2 nxHeadline=\"subsection-medium\" class=\"nx-font-weight-semibold\">\n  Headline Subsection medium (semibold)\n</h2>\n<br />\n<h2 nxHeadline=\"subsection-medium\" class=\"nx-font-weight-bold\">\n  Headline Subsection medium (bold)\n</h2>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "links",
        "level": 3,
        "content": "[`<nx-link>`](./documentation/link/overview) and `<a>` elements automatically adapt if they are placed inside a `nxHeadline` element.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Links Example\n */\n@Component({\n  selector: 'headline-links-example',\n  templateUrl: './headline-links-example.html',\n  styleUrls: ['./headline-links-example.css'],\n  imports: [NxHeadlineComponent, NxLinkComponent],\n})\nexport class HeadlineLinksExampleComponent {}\n\n```\n```html\n<h1 nxHeadline=\"page\">\n  <nx-link><a href=\"#\">Linked Headline</a></nx-link>\n</h1>\n<br />\n<h2 nxHeadline=\"section\">\n  <nx-link><a href=\"#\">Linked Headline</a></nx-link>\n</h2>\n<br />\n<h3 nxHeadline=\"subsection-large\">\n  <nx-link><a href=\"#\">Linked Headline</a></nx-link>\n</h3>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "accent text",
        "level": 3,
        "content": "To draw more attention to parts of a headline, use [`[nx-accent-color]`](./documentation/text/overview#accent-color).\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxAccentColorComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Font Weight Example\n */\n@Component({\n  selector: 'headline-attention-text-example',\n  templateUrl: './headline-attention-text-example.html',\n  styleUrls: ['./headline-attention-text-example.css'],\n  imports: [NxHeadlineComponent, NxAccentColorComponent],\n})\nexport class HeadlineAttentionTextExampleComponent {}\n\n```\n```html\n<h2 nxHeadline=\"section\">\n  Headline with <span [nx-accent-color]=\"'green'\">highlighted</span> text\n</h2>\n\n```\n\n\n</div>\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  <strong><code>nxHeadline=\"negative\"</code></strong> is deprecated. Use the boolean <code>inverse</code> input instead.\n</div>\n\nFor dark background, use the `inverse` input to apply inverse styling\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Inverse Example\n */\n@Component({\n  selector: 'headline-negative-example',\n  templateUrl: './headline-negative-example.html',\n  styleUrls: ['./headline-negative-example.css'],\n  imports: [NxHeadlineComponent, NxLinkComponent],\n})\nexport class HeadlineNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h2 nxHeadline inverse>Headline negative primary</h2>\n  <h2 nxHeadline type=\"secondary\" inverse>Headline inverse secondary</h2>\n  <h2 nxHeadline inverse>\n    <nx-link><a href=\"#\">Headline negative with link</a></nx-link>\n  </h2>\n</div>\n\n```\n\n"
      },
      {
        "heading": "new explicit size input",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  <strong>Please note:</strong> In preparation for future design system updates for One Allianz the headline component gets new size names and a dedicated new <code>size</code> input with a proper typing.\n  For existing NDBX projects you do not have to update to this API now, you can keep using the old one and we will keep it in the library for quite some time, even though it is marked as deprecated.\n  Please also note that the t-shirt sizes are matching the One Allianz design and not the NDBX design. So if you want to use it already please double check if the font-size matches the design, as it will not necessarily match sizings in Figma for NDBX.\n\n  Example for the new API:\n\n  ```html\n  <!-- old usage -->\n  <h3 nxHeadline=\"section\">\n  <!-- new usage -->\n  <h3 nxHeadline size=\"2xl\">\n  ```\n  You can also find a mapping table from old to new values below for One Allianz.\n</div>\n"
      },
      {
        "heading": "size input",
        "level": 4,
        "content": "\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Sizes Example\n */\n@Component({\n  selector: 'headline-sizes-a1-example',\n  templateUrl: './headline-sizes-a1-example.html',\n  styleUrls: ['./headline-sizes-a1-example.css'],\n  imports: [NxHeadlineComponent],\n})\nexport class HeadlineSizesA1ExampleComponent {}\n\n```\n```html\n<table class=\"table typography-demo-table\">\n  <thead>\n    <tr>\n      <th class=\"left\">Size</th>\n      <th class=\"left\">Demo</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td class=\"left\"><code>6xl</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"6xl\">Headline 6xl</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>5xl</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"5xl\">Headline 5xl</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>4xl</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"4xl\">Headline 4xl</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>3xl</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"3xl\">Headline 3xl</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>2xl</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"2xl\">Headline 2xl</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>xl</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"xl\">Headline xl</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>l</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"l\">Headline l</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>m</code></td>\n      <td class=\"left\">\n        <h3 nxHeadline size=\"m\">Headline m</h3>\n      </td>\n    </tr>\n    <tr>\n      <td class=\"left\"><code>s</code></td>\n      <td class=\"left\">\n        <h1 nxHeadline size=\"s\">Headline s</h1>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n\nYou can set the headline style using the existing `type` input. Choose either `primary` or `secondary` to apply the color scheme.\n"
      },
      {
        "heading": "type",
        "level": 3,
        "content": "\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline Type Example\n */\n@Component({\n  selector: 'headline-type-example',\n  templateUrl: './headline-type-example.html',\n  styleUrls: ['./headline-type-example.css'],\n  imports: [NxHeadlineComponent],\n})\nexport class HeadlineTypeExampleComponent {}\n\n```\n```html\n<h2 nxHeadline size=\"2xl\">Headline primary</h2>\n<br />\n<h2 nxHeadline size=\"2xl\" type=\"secondary\">Headline secondary</h2>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 3,
        "content": "Use the `colorScheme` input (`default` or `on-accent-attention`) to place a headline on an\naccent-colored surface. Combine with `inverse` for accent surfaces on dark backgrounds.\n\nType `primary` and\n`secondary` headlines render identically once `colorScheme` is set to `on-accent-attention`.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { Component } from '@angular/core';\n\n/**\n * @title Headline color scheme example\n */\n@Component({\n  selector: 'headline-color-scheme-example',\n  templateUrl: './headline-color-scheme-example.html',\n  styleUrls: ['./headline-color-scheme-example.css'],\n  imports: [NxHeadlineComponent],\n})\nexport class HeadlineColorSchemeExampleComponent {}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 nxHeadline size=\"s\">Default</h4>\n    <h2 nxHeadline size=\"2xl\">Headline primary</h2>\n    <h2 nxHeadline size=\"2xl\" type=\"secondary\">Headline secondary</h2>\n  </div>\n  <div class=\"example-item docs-attention-container\">\n    <h4 nxHeadline size=\"s\" colorScheme=\"on-accent-attention\">\n      On-Accent Attention\n    </h4>\n    <h2 nxHeadline size=\"2xl\" colorScheme=\"on-accent-attention\">\n      Headline primary\n    </h2>\n    <h2\n      nxHeadline\n      size=\"2xl\"\n      type=\"secondary\"\n      colorScheme=\"on-accent-attention\"\n    >\n      Headline secondary\n    </h2>\n  </div>\n</div>\n\n```\n\n</div>\n\n"
      },
      {
        "heading": "mappings",
        "level": 3,
        "content": "This table shows you how the old names will translate to in the new design.\n\n<!-- example(headline-sizes-mapping, { \"hideHeader\": true }) -->\n"
      },
      {
        "heading": "imposing size from a wrapper",
        "level": 3,
        "content": "A wrapping component (e.g. a card grid or a comparison table header) can provide\n`NX_HEADLINE_CONTEXT` to own the size of every `nxHeadline` rendered beneath it, overriding\nthe consumer's `size` input. This keeps headlines visually consistent across all usages of\nthat wrapper, even if each usage sets a different `size`.\n\n\n```ts\nimport {\n  NX_HEADLINE_CONTEXT,\n  NxHeadlineComponent,\n  type NxHeadlineContext,\n  type NxHeadlineSize,\n} from '@allianz/ng-aquila/headline';\nimport { Component, input, signal } from '@angular/core';\n\n/**\n * @title Imposing a size via NX_HEADLINE_CONTEXT\n */\n\n/** Wrapper that owns the size of any `nxHeadline` rendered inside it, e.g. for a card grid. */\n@Component({\n  selector: 'headline-context-card-example',\n  template: `\n    <div class=\"example-card\">\n      <ng-content />\n    </div>\n  `,\n  styleUrls: ['./headline-context-example.css'],\n  providers: [\n    {\n      provide: NX_HEADLINE_CONTEXT,\n      useExisting: HeadlineContextCardExampleComponent,\n    },\n  ],\n})\nexport class HeadlineContextCardExampleComponent implements NxHeadlineContext {\n  readonly headlineSize = input<NxHeadlineSize>('2xl');\n}\n\n@Component({\n  selector: 'headline-context-example',\n  templateUrl: './headline-context-example.html',\n  styleUrls: ['./headline-context-example.css'],\n  imports: [NxHeadlineComponent, HeadlineContextCardExampleComponent],\n})\nexport class HeadlineContextExampleComponent {\n  readonly cardSize = signal<NxHeadlineSize>('2xl');\n  readonly sizes: NxHeadlineSize[] = ['m', 'l', 'xl', '2xl', '3xl'];\n}\n\n```\n```html\n<p class=\"nx-margin-bottom-m\">\n  Each card below imposes <code>{{ cardSize() }}</code> via\n  <code>NX_HEADLINE_CONTEXT</code>, regardless of the <code>size</code> input\n  passed to the headline inside it.\n</p>\n\n<div class=\"example-cards\">\n  @for (size of sizes; track size) {\n    <headline-context-card-example [headlineSize]=\"cardSize()\">\n      <span class=\"example-card-label\">size=\"{{ size }}\"</span>\n      <h3 nxHeadline [size]=\"size\">Headline</h3>\n    </headline-context-card-example>\n  }\n</div>\n\n```\n\n\n\n"
      }
    ]
  },
  {
    "name": "icon.md",
    "title": "Icons",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "general usage of icons",
        "level": 3,
        "content": "The icons are comprised of two general types: **functional** and **product icons**. **Functional icons** are used to indicate important actions and functions like search, close or links. In most cases, functional icons will have a size of 24x24px (**s**). **Product icons** are a visual expression of aspects of our products. They are, for instance, used to select product options or in claims use cases. To make both icons distinguishable, the name of all product icons starts with `product-*`. The outline and fill options should only be used in combination with **product** icons.\n\nThe general functionality of the icons is provided with the `NxIconModule` of `ng-aquila`. The Allianz Icons are provided with the additional `AllianzIconModule` of `@allianz/ngx-brand-kit` for usage in modules or component imports or with `provideAllianzIcons()` as a global provider for standalone app configs.\n\nCurrent icon version: **2.34.0** --- from [Global Allianz Icons](https://github.developer.allianz.io/oneMarketing/allianz-icons)\n"
      },
      {
        "heading": "standalone projects",
        "level": 4,
        "content": "Please note that `provideAllianzIcons()` has to be used on the root level, so in the `bootstrapApplication` call.\n\n\n```ts\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { provideAllianzIcons } from '@allianz/ngx-brand-kit/icon';\n\n// in app.config.ts\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    provideAllianzIcons()\n  ],\n};\n```\n\n"
      },
      {
        "heading": "module import usage",
        "level": 4,
        "content": "Instead of the global provider you can continue to use the `AllianzIconModule` and import it anywhere in your modules or standalone component imports, but it is recommended to do this at the root level of your application and not in sub components or routes.\n\n\n```ts\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { AllianzIconModule } from '@allianz/ngx-brand-kit/icon';\n\n@NgModule({\n    declarations: [\n        // ...\n    ],\n    imports: [\n        // ...\n        NxIconModule,\n        AllianzIconModule,\n    ],\n    // ...\n})\nexport class AppModule {}\n```\n\n</div>\n\n<div class=\"docs-public\">\n"
      },
      {
        "heading": "open source icons / icons not working?",
        "level": 3,
        "content": "For all open source users: internally the projects use an icon font we unfortunately couldn't open source. We are using a special module for the documentation that maps internal icon names to icons from font awesome that the code examples still work.\n\nSo if you copy any code example that is including an icon and want to see how it looks you can use that same module, for that please install font awesome `npm i @fortawesome/fontawesome-free` use this import:\n\n```ts\nimport { NxDocumentationIconModule } from '@allianz/ng-aquila/documentation-icons';\n```\n\nadd it to your AppModule and include the `node_modules/@fortawesome/fontawesome-free/css/all.css` to your project. Alternatively you can of course use any other icon fonts or svgs and register them with the icon registry.\n\n</div>\n\n<div class=\"docs-private\">\n\n⚠️ __NDBX/A1/Aquila conflict:__ please make sure **not** to import the opensource(aquila) **NxDocumentationIconModule** into Allianz projects, since it's only supposed to be used in opensource(aquila) projects and would lead to conflicts with **AllianzIconModule**\nrecommend to use either module and register custom font yourself if need.\n</div>\n\n"
      },
      {
        "heading": "sizes",
        "level": 3,
        "content": "**Functional** icons should mainly use the size **s**.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Sizes Example\n */\n@Component({\n  selector: 'icon-sizes-example',\n  templateUrl: './icon-sizes-example.html',\n  styleUrls: ['./icon-sizes-example.css'],\n  imports: [NxIconComponent],\n})\nexport class IconSizesExampleComponent {}\n\n```\n```html\n<div>\n  <nx-icon name=\"product-heart\" size=\"auto\" aria-hidden=\"true\"></nx-icon>\n  <nx-icon name=\"product-heart\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n  <nx-icon name=\"product-heart\" size=\"m\" aria-hidden=\"true\"></nx-icon>\n  <nx-icon name=\"product-heart\" size=\"l\" aria-hidden=\"true\"></nx-icon>\n  <nx-icon name=\"product-heart\" size=\"xl\" aria-hidden=\"true\"></nx-icon>\n\n  <div class=\"docs-hide-ndbx inline-block\">\n    <!-- 2xl is only available in A1 -->\n    <nx-icon name=\"product-heart\" size=\"2xl\" aria-hidden=\"true\"></nx-icon>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "types",
        "level": 3,
        "content": "Icons can be `primary | secondary | accent-attention | accent-subtle`. \nThe default is `primary`. [For __accent-attention__ and  __accent-subtle__ the color can be set with the `accentColor` input](./documentation/icon/overview#colors). \n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Type Example\n */\n@Component({\n  selector: 'icon-type-example',\n  templateUrl: './icon-type-example.html',\n  styleUrls: ['./icon-type-example.css'],\n  imports: [NxIconComponent, A11yModule],\n})\nexport class IconTypeExampleComponent {}\n\n```\n```html\n<div class=\"icon-type-outer\">\n  <div class=\"icon-type-overview\">\n    <div class=\"icon-type-overview__row-label\"></div>\n    <div class=\"icon-type-overview__col-header\">primary</div>\n    <div class=\"icon-type-overview__col-header\">secondary</div>\n    <div class=\"icon-type-overview__col-header\">accent-attention</div>\n    <div class=\"icon-type-overview__col-header\">accent-subtle</div>\n\n    <!-- Not emphasis & not contained -->\n    <div></div>\n    <!-- primary -->\n    <nx-icon name=\"product-heart\" size=\"l\" aria-hidden=\"true\"></nx-icon>\n    <!-- secondary -->\n    <nx-icon\n      type=\"secondary\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent attention -->\n    <nx-icon\n      type=\"accent-attention\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent subtle -->\n    <nx-icon\n      type=\"accent-subtle\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n  </div>\n\n  <div class=\"icon-type-overview inverse\">\n    <div class=\"icon-type-overview__row-label\" style=\"font-weight: bold\">\n      Inverse\n    </div>\n    <!-- primary -->\n    <nx-icon\n      inverse=\"true\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- secondary -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"secondary\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent attention -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"accent-attention\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent subtle -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"accent-subtle\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "contained",
        "level": 3,
        "content": "Contained Icons can be _primary, secondary, emphasis, accent-attention or accent-subtle_\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Emphasis Example\n */\n@Component({\n  selector: 'icon-emphasis-example',\n  templateUrl: './icon-emphasis-example.html',\n  styleUrls: ['./icon-emphasis-example.css'],\n  imports: [NxIconComponent, A11yModule],\n})\nexport class IconEmphasisExampleComponent {}\n\n```\n```html\n<div class=\"icon-type-outer\">\n  <div class=\"icon-type-overview grid-header\">\n    <div class=\"icon-type-overview__row-label\"></div>\n    <div class=\"icon-type-overview__col-header\">primary</div>\n    <div class=\"icon-type-overview__col-header\">secondary</div>\n  </div>\n\n  <div class=\"icon-type-overview subgrid\">\n    <div class=\"icon-type-overview__row-label\"></div>\n    <!-- primary emphasis -->\n    <nx-icon\n      emphasis=\"true\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- secondary emphasis -->\n    <nx-icon\n      type=\"secondary\"\n      emphasis=\"true\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n  </div>\n\n  <div class=\"icon-type-overview inverse subgrid\">\n    <div class=\"icon-type-overview__row-label\" style=\"font-weight: bold\">\n      Inverse\n    </div>\n    <!-- primary emphasis inverse -->\n    <nx-icon\n      inverse=\"true\"\n      emphasis=\"true\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- secondary emphasis inverse -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"secondary\"\n      emphasis=\"true\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n  </div>\n</div>\n\n```\n\n\n__Primary__ and __Secondary__ Contained Icons should be placed on colored backgrounds (e.g. emphasis). \n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Contained Example\n */\n@Component({\n  selector: 'icon-contained-example',\n  templateUrl: './icon-contained-example.html',\n  styleUrls: ['./icon-contained-example.css'],\n  imports: [NxIconComponent, A11yModule],\n})\nexport class IconContainedExampleComponent {}\n\n```\n```html\n<div class=\"icon-type-outer\">\n  <div class=\"icon-type-overview\">\n    <div class=\"icon-type-overview__row-label\" style=\"font-weight: bold\"></div>\n    <div class=\"icon-type-overview__col-header\">primary</div>\n    <div class=\"icon-type-overview__col-header\">secondary</div>\n    <div class=\"icon-type-overview__col-header\">accent-attention</div>\n    <div class=\"icon-type-overview__col-header\">accent-subtle</div>\n  </div>\n  <div class=\"icon-type-overview emphasis\">\n    <!-- contained -->\n    <div class=\"icon-type-overview__row-label\"></div>\n    <!-- primary contained -->\n    <nx-icon\n      name=\"product-heart\"\n      contained=\"true\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- secondary contained -->\n    <nx-icon\n      type=\"secondary\"\n      name=\"product-heart\"\n      contained=\"true\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent-attention contained -->\n    <nx-icon\n      type=\"accent-attention\"\n      contained=\"true\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent-subtle contained -->\n    <nx-icon\n      type=\"accent-subtle\"\n      contained=\"true\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n  </div>\n\n  <div class=\"icon-type-overview inverse\">\n    <!-- contained inverse -->\n    <div class=\"icon-type-overview__row-label\" style=\"font-weight: bold\">\n      Inverse\n    </div>\n    <!-- primary contained inverse -->\n    <nx-icon\n      inverse=\"true\"\n      name=\"product-heart\"\n      contained=\"true\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- secondary contained inverse -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"secondary\"\n      name=\"product-heart\"\n      contained=\"true\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent-attention contained inverse -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"accent-attention\"\n      contained=\"true\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    <!-- accent-subtle contained inverse -->\n    <nx-icon\n      inverse=\"true\"\n      type=\"accent-subtle\"\n      contained=\"true\"\n      accentColor=\"purple\"\n      name=\"product-heart\"\n      size=\"l\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "contained sizes",
        "level": 4,
        "content": "Contained icons are available in sizes `s`, `m`, `l`, `xl` and `2xl`.\n\n\n```ts\nimport { IconSize, NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Icons Contained Sizes Example\n */\n@Component({\n  selector: 'icon-contained-sizes-example',\n  templateUrl: './icon-contained-sizes-example.html',\n  styleUrls: ['./icon-contained-sizes-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxIconComponent],\n})\nexport class IconContainedSizesExampleComponent {\n  protected readonly sizes: IconSize[] = ['s', 'm', 'l', 'xl', '2xl'];\n}\n\n```\n```html\n<div class=\"grid\">\n  @for (size of sizes; track size) {\n    <div class=\"col\">\n      <nx-icon\n        name=\"product-heart\"\n        contained=\"true\"\n        [size]=\"size\"\n        aria-hidden=\"true\"\n      ></nx-icon>\n      <span class=\"label\">{{ size }}</span>\n    </div>\n  }\n</div>\n\n```\n\n\n"
      },
      {
        "heading": "colors",
        "level": 2,
        "content": "Use the predefined color schemes for icon types `accent-attention` or `accent-subtle`.\nAvailable color options are `yellow | orange | red | purple | aqua | blue | teal | green | gray`\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { Component, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Icons Attention Colors Example\n */\n@Component({\n  selector: 'icon-attention-colors-example',\n  templateUrl: './icon-attention-colors-example.html',\n  styleUrls: ['./icon-attention-colors-example.css'],\n  imports: [NxIconComponent, NxSwitcherComponent, FormsModule, A11yModule],\n})\nexport class IconAttentionColorsExampleComponent {\n  inverse = signal(false);\n}\n\n```\n```html\n<nx-switcher [(ngModel)]=\"inverse\">Inverse</nx-switcher>\n\n<div class=\"colors-grid\" [class.colors-grid--inverse]=\"inverse()\">\n  <!-- spanning \"contained\" label over last 2 columns -->\n  <div></div>\n  <div></div>\n  <div></div>\n  <div class=\"colors-grid__group-label\" [class.inverse-label]=\"inverse()\">\n    contained\n  </div>\n  <!-- <div></div> -->\n\n  <!-- column headers -->\n  <div></div>\n  <div class=\"colors-grid__col-header\" [class.inverse-label]=\"inverse()\">\n    accent-attention\n  </div>\n  <div class=\"colors-grid__col-header\" [class.inverse-label]=\"inverse()\">\n    accent-subtle\n  </div>\n  <div class=\"colors-grid__col-header\" [class.inverse-label]=\"inverse()\">\n    accent-attention\n  </div>\n  <div class=\"colors-grid__col-header\" [class.inverse-label]=\"inverse()\">\n    accent-subtle\n  </div>\n\n  <!-- yellow -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    yellow\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"yellow\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"yellow\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"yellow\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"yellow\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- orange -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    orange\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"orange\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"orange\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"orange\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"orange\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- red -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    red\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"red\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"red\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"red\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"red\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- purple -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    purple\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"purple\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"purple\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"purple\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"purple\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- aqua -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    aqua\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"aqua\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"aqua\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"aqua\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"aqua\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- blue -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    blue\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"blue\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"blue\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"blue\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"blue\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- teal -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    teal\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"teal\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"teal\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"teal\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"teal\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- green -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    green\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"green\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"green\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"green\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"green\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n\n  <!-- gray -->\n  <div class=\"colors-grid__row-label\" [class.inverse-label]=\"inverse()\">\n    gray\n  </div>\n  <nx-icon\n    type=\"accent-attention\"\n    accentColor=\"gray\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    accentColor=\"gray\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-attention\"\n    contained=\"true\"\n    accentColor=\"gray\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    type=\"accent-subtle\"\n    contained=\"true\"\n    accentColor=\"gray\"\n    name=\"product-heart\"\n    size=\"l\"\n    [inverse]=\"inverse()\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n</div>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "filled icons",
        "level": 4,
        "content": "<div class=\"docs-private\">\n\nThe filled option should only be used with **product** icons.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Filled Example\n */\n@Component({\n  selector: 'icon-filled-example',\n  templateUrl: './icon-filled-example.html',\n  styleUrls: ['./icon-filled-example.css'],\n  imports: [NxIconComponent],\n})\nexport class IconFilledExampleComponent {}\n\n```\n```html\n<div>\n  <nx-icon\n    name=\"product-care-insurance\"\n    fill=\"true\"\n    outline=\"true\"\n    size=\"s\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    name=\"product-care-insurance\"\n    fill=\"true\"\n    outline=\"true\"\n    size=\"m\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    name=\"product-care-insurance\"\n    fill=\"true\"\n    outline=\"true\"\n    size=\"l\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    name=\"product-care-insurance\"\n    fill=\"true\"\n    outline=\"true\"\n    size=\"xl\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n</div>\n\n```\n\n"
      },
      {
        "heading": "icons with outline",
        "level": 4,
        "content": "<div class=\"docs-private\">\n\nThe outline option should only be used with **product** icons.\n\n</div>\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icons Outline Example\n */\n@Component({\n  selector: 'icon-outline-example',\n  templateUrl: './icon-outline-example.html',\n  styleUrls: ['./icon-outline-example.css'],\n  imports: [NxIconComponent],\n})\nexport class IconOutlineExampleComponent {}\n\n```\n```html\n<div>\n  <nx-icon\n    name=\"product-care-insurance\"\n    outline=\"true\"\n    size=\"s\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    name=\"product-care-insurance\"\n    outline=\"true\"\n    size=\"m\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    name=\"product-care-insurance\"\n    outline=\"true\"\n    size=\"l\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n  <nx-icon\n    name=\"product-care-insurance\"\n    outline=\"true\"\n    size=\"xl\"\n    aria-hidden=\"true\"\n  ></nx-icon>\n</div>\n\n```\n\n</div>\n</div>\n\n\n"
      },
      {
        "heading": "status icon",
        "level": 3,
        "content": "Set the status with `type`: `positive`, `warning`, `info` or `critical`.\n\n<div class=\"docs-deprecation-warning\">\n<code>error</code> and <code>success</code> are deprecated aliases of <code>critical</code> and <code>positive</code>. They still work, but use the new names for new code.\n</div>\n\n<div class=\"docs-hide-a1\">\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxStatusIconComponent } from '@allianz/ng-aquila/icon';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Status icon Example\n */\n\n@Component({\n  selector: 'status-icon-example',\n  templateUrl: './status-icon-example.html',\n  styleUrls: ['./status-icon-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxHeadlineComponent, NxStatusIconComponent],\n})\nexport class StatusIconExampleComponent {}\n\n```\n```html\n<h4 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">Types</h4>\n<section>\n  <div>\n    <nx-status-icon type=\"positive\" size=\"m\"></nx-status-icon>\n    <div>positive</div>\n  </div>\n\n  <div>\n    <nx-status-icon type=\"warning\" size=\"m\"></nx-status-icon>\n    <div>warning</div>\n  </div>\n\n  <div>\n    <nx-status-icon type=\"info\" size=\"m\"></nx-status-icon>\n    <div>info</div>\n  </div>\n  <div>\n    <nx-status-icon type=\"critical\" size=\"m\"></nx-status-icon>\n    <div>critical</div>\n  </div>\n</section>\n\n<h4 nxHeadline=\"subsection-small\" class=\"nx-margin-top-m\">Sizes</h4>\n<section>\n  <div>\n    <nx-status-icon type=\"positive\" size=\"s\"></nx-status-icon>\n    <div>s</div>\n  </div>\n\n  <div>\n    <nx-status-icon type=\"positive\" size=\"m\"></nx-status-icon>\n    <div>m</div>\n  </div>\n\n  <div>\n    <nx-status-icon type=\"positive\" size=\"l\"></nx-status-icon>\n    <div>l</div>\n  </div>\n  <div>\n    <nx-status-icon type=\"positive\" size=\"xl\"></nx-status-icon>\n    <div>xl</div>\n  </div>\n</section>\n\n```\n\n</div>\n\n<div class=\"docs-a1\">\n\n```ts\nimport {\n  NxStatusIconComponent,\n  NxStatusIconSize,\n  NxStatusIconType,\n} from '@allianz/ng-aquila/icon';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Status icon Example\n */\n\n@Component({\n  selector: 'status-icon-sizes-example',\n  templateUrl: './status-icon-sizes-example.html',\n  styleUrls: ['./status-icon-sizes-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxStatusIconComponent],\n})\nexport class StatusIconSizesExampleComponent {\n  protected readonly types: NxStatusIconType[] = [\n    'positive',\n    'warning',\n    'info',\n    'critical',\n  ];\n  protected readonly sizes: NxStatusIconSize[] = ['s', 'm', 'l', 'xl', '2xl'];\n}\n\n```\n```html\n<div class=\"grid\">\n  <span></span>\n  @for (size of sizes; track size) {\n    <span class=\"header\">{{ size }}</span>\n  }\n  @for (type of types; track type) {\n    <span>{{ type }}</span>\n    @for (size of sizes; track size) {\n      <span>\n        <!-- type can be \"positive\", \"warning\", \"info\", \"critical\" -->\n        <!-- size can be \"s\", \"m\", \"l\", \"xl\", \"2xl\" -->\n        <nx-status-icon [type]=\"type\" [size]=\"size\"></nx-status-icon>\n      </span>\n    }\n  }\n</div>\n\n```\n\n"
      },
      {
        "heading": "contained",
        "level": 4,
        "content": "Status icons can be displayed inside a filled, circular surface by setting the `contained` input. Contained status icons are available in sizes `s`, `m`, `l`, `xl` and `2xl`.\n\n\n```ts\nimport {\n  NxStatusIconComponent,\n  NxStatusIconSize,\n  NxStatusIconType,\n} from '@allianz/ng-aquila/icon';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Status icon contained Example\n */\n@Component({\n  selector: 'status-icon-contained-example',\n  templateUrl: './status-icon-contained-example.html',\n  styleUrls: ['./status-icon-contained-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxStatusIconComponent, NxSwitcherComponent, FormsModule],\n})\nexport class StatusIconContainedExampleComponent {\n  protected readonly inverse = signal(false);\n  protected readonly types: NxStatusIconType[] = [\n    'positive',\n    'warning',\n    'info',\n    'critical',\n  ];\n  protected readonly sizes: NxStatusIconSize[] = ['s', 'm', 'l', 'xl', '2xl'];\n}\n\n```\n```html\n<nx-switcher [(ngModel)]=\"inverse\">Inverse</nx-switcher>\n\n<div class=\"grid\" [class.grid--inverse]=\"inverse()\">\n  <span></span>\n  @for (size of sizes; track size) {\n    <span class=\"header\" [class.inverse-label]=\"inverse()\">{{ size }}</span>\n  }\n  @for (type of types; track type) {\n    <span [class.inverse-label]=\"inverse()\">{{ type }}</span>\n    @for (size of sizes; track size) {\n      <span>\n        <!-- type can be \"positive\", \"warning\", \"info\", \"critical\" -->\n        <!-- size can be \"s\", \"m\", \"l\", \"xl\", \"2xl\" -->\n        <nx-status-icon\n          [type]=\"type\"\n          [size]=\"size\"\n          contained\n          [inverse]=\"inverse()\"\n        ></nx-status-icon>\n      </span>\n    }\n  }\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 4,
        "content": "For placement on dark or inverse surfaces, set the `inverse` input. It can be combined with `contained`.\n\n\n```ts\nimport {\n  NxStatusIconComponent,\n  NxStatusIconType,\n} from '@allianz/ng-aquila/icon';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Status icon inverse Example\n */\n@Component({\n  selector: 'status-icon-inverse-example',\n  templateUrl: './status-icon-inverse-example.html',\n  styleUrls: ['./status-icon-inverse-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxStatusIconComponent],\n})\nexport class StatusIconInverseExampleComponent {\n  protected readonly types: NxStatusIconType[] = [\n    'positive',\n    'warning',\n    'info',\n    'critical',\n  ];\n}\n\n```\n```html\n<div class=\"inverse\">\n  <div class=\"row\">\n    <span class=\"row-label\">Plain</span>\n    @for (type of types; track type) {\n      <!-- use inverse on dark / inverse surfaces -->\n      <nx-status-icon [type]=\"type\" size=\"l\" inverse></nx-status-icon>\n    }\n  </div>\n  <div class=\"row\">\n    <span class=\"row-label\">Contained</span>\n    @for (type of types; track type) {\n      <nx-status-icon [type]=\"type\" size=\"l\" contained inverse></nx-status-icon>\n    }\n  </div>\n</div>\n\n```\n\n</div>\n"
      },
      {
        "heading": "icon catalogue",
        "level": 3,
        "content": "<div class=\"docs-private\">\n"
      },
      {
        "heading": "functional icons",
        "level": 4,
        "content": "Functional icons should use __sizes `s | m`__\n\nTo use the icons shown here, please make sure to import the `AllianzIconModule` (see [General usage of Allianz icons](./documentation/icon/overview#general-usage-of-icons)).\n\n<!-- example(icon-list-functional, { \"privateExample\": true, \"hideStackblitzButton\": true }) -->\n"
      },
      {
        "heading": "product icons",
        "level": 4,
        "content": "Product icons should use __sizes `l | xl | 2xl`__\n\nTo use the icons shown here, please make sure to import the `AllianzIconModule` (see [General usage of Allianz icons](./documentation/icon/overview#general-usage-of-icons)).\n\n<!-- example(icon-list-product, { \"privateExample\": true, \"hideStackblitzButton\": true }) -->\n</div>\n"
      },
      {
        "heading": "essential icons",
        "level": 4,
        "content": "The library ships with a set of necessary icons that are used in the components themselves. You can override them with a custom SVG or by specifying a certain class from an icon font.\n\nHere you can see the list of the necessary icons:\n\n\n```ts\nimport { DEFAULT_ICONS, NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Essential Icons Example\n */\n@Component({\n  selector: 'icon-essential-icons-example',\n  templateUrl: './icon-essential-icons-example.html',\n  styleUrls: ['./icon-essential-icons-example.css'],\n  imports: [NxIconComponent],\n})\nexport class IconEssentialIconsExampleComponent {\n  iconList = Object.keys(DEFAULT_ICONS);\n}\n\n```\n```html\n<ul class=\"iconlist\">\n  @for (icon of iconList; track icon) {\n    <li class=\"iconlist__item\">\n      <nx-icon [name]=\"icon\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n      <span>{{ icon }}</span>\n    </li>\n  }\n</ul>\n\n```\n\n"
      },
      {
        "heading": "overriding essential icons",
        "level": 4,
        "content": "For the components to use your desired icons for the essential icons list you can override them with the icon registry.\n\n\n```ts\nimport { NxIconComponent, NxIconRegistry } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n// play-circle-fill from https://remixicon.com/\nconst playSvg =\n  '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path fill=\"none\" d=\"M0 0h24v24H0z\"/><path d=\"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM10.622 8.415a.4.4 0 0 0-.622.332v6.506a.4.4 0 0 0 .622.332l4.879-3.252a.4.4 0 0 0 0-.666l-4.88-3.252z\"/></svg>';\n\n/**\n * @title Essential Icon Override Example\n */\n@Component({\n  selector: 'icon-essential-override-example',\n  templateUrl: './icon-essential-override-example.html',\n  styleUrls: ['./icon-essential-override-example.css'],\n  providers: [\n    // we only use the provider here to get a scoped instance of the NxIconRegistry\n    // only for this example that the rest of the documentation examples are not affected\n    NxIconRegistry,\n  ],\n  imports: [NxIconComponent],\n})\nexport class IconEssentialOverrideExampleComponent {\n  constructor(\n    readonly iconRegistry: NxIconRegistry,\n    sanitizer: DomSanitizer,\n  ) {\n    // override it with another SVG\n    this.iconRegistry.addSvgIconLiteral(\n      'play',\n      sanitizer.bypassSecurityTrustHtml(playSvg),\n    );\n\n    // override an icon with a font, here we take font awesome\n    // we register the font first and override the 'calendar' icon\n    // of ng-aquila with the 'calendar-week' icon of font awesome\n    this.iconRegistry.registerFont('fa', 'fas', 'fa-');\n    this.iconRegistry.addFontIcon('calendar', 'calendar-week', 'fa');\n  }\n}\n\n```\n```html\n<ul class=\"iconlist\">\n  <li class=\"iconlist__item\">\n    <nx-icon name=\"play\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n    <span>Play with SVG</span>\n  </li>\n  <li class=\"iconlist__item\">\n    <nx-icon name=\"calendar\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n    <span>Calendar from FontAwesome</span>\n  </li>\n</ul>\n\n```\n\n"
      },
      {
        "heading": "register icons service",
        "level": 3,
        "content": "Custom icons can be registered via the `NxIconRegistry` injectable service. With the `NxIconRegistry` you can associate icon names with SVG, URL and HTML strings and define a CSS font class.\n\n💡 When registering multiple font sets,\nyou can use `font` attribute to specify font set (`<nx-icon font=\"FONT_SET_NAME\" name=\"ICON_NAME\">`)\n\n💡 If your application enforces Trusted Types through a Content Security Policy, SVG icons are parsed through the `ng-aquila` Trusted Types policy, which you need to allow in your CSP. See the <a href=\"./guides/trusted-types\">Trusted Types guide</a> for the required configuration.\n\n<div class=\"docs-private\">\n💡 Allianz iconfont set name is **ndbx-icons**.\n</div>\n\n\n```ts\nimport { NxIconComponent, NxIconRegistry } from '@allianz/ng-aquila/icon';\nimport { Component } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @title Register Icons Example\n */\n@Component({\n  selector: 'icon-registry-example',\n  templateUrl: './icon-registry-example.html',\n  styleUrls: ['./icon-registry-example.css'],\n  imports: [NxIconComponent],\n})\nexport class IconRegistryExampleComponent {\n  constructor(\n    private readonly nxIconRegistry: NxIconRegistry,\n    domSanitizer: DomSanitizer,\n  ) {\n    this.nxIconRegistry.addSvgIconLiteral(\n      'search',\n      domSanitizer.bypassSecurityTrustHtml(\n        '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" width=\"100%\" height=\"100%\" viewBox=\"0 0 24 24\"><g data-name=\"Layer 2\"><g data-name=\"search\"><rect width=\"24\" height=\"24\" opacity=\"0\"/><path d=\"M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z\"/></g></g></svg>',\n      ),\n    );\n\n    this.nxIconRegistry.addSvgIcon(\n      'setting',\n      domSanitizer.bypassSecurityTrustResourceUrl('assets/icons/settings.svg'),\n    );\n\n    this.nxIconRegistry.registerFont('fa', 'fa', 'fa-');\n  }\n}\n\n```\n```html\n<div>\n  <h4 class=\"nx-margin-bottom-xs\">Registered SVG icon literal</h4>\n  <nx-icon name=\"search\" size=\"m\" aria-hidden=\"true\"></nx-icon>\n\n  <h4 class=\"nx-margin-top-s nx-margin-bottom-xs\">Registered SVG icon URL</h4>\n  <nx-icon name=\"setting\" size=\"m\" aria-hidden=\"true\"></nx-icon>\n\n  <h4 class=\"nx-margin-top-s nx-margin-bottom-xs\">\n    Registered icon as CSS class (here from font awesome)\n  </h4>\n  <nx-icon name=\"feather\" font=\"fa\" size=\"m\" aria-hidden=\"true\"></nx-icon>\n</div>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "One important accessibility attribute for icons is `aria-label`, which is read by the screenreader when the user has focused the element. For standalone icons, like icon buttons or links, it is mandatory to add the `aria-label` value according to your use case. If the icon is just decorative to an already existing label it needs to be hidden from assistive technologies by adding `aria-hidden=\"true\"` instead.\n\n-   When using a variable for the `aria-label` use an attribute binding:\n\n```html\n<nx-icon [attr.aria-label]=\"myAriaLabelVariable\"></nx-icon>\n```\n\n-   In other cases you can simply assign the `aria-label` attribute:\n\n```html\n<nx-icon aria-label=\"My icon description string\"></nx-icon>`\n```\n\n-   Within an element that already has a label:\n\n```html\n<button nxButton>\n    <nx-icon aria-hidden=\"true\" name=\"plus\"></nx-icon>\n    Add item\n</button>\n```\n\nYou can find more information on the `aria-label` attribute [here](https://www.w3.org/TR/wai-aria/#aria-label).\n"
      }
    ]
  },
  {
    "name": "image.md",
    "title": "Images",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "ngoptimizedimage",
        "level": 3,
        "content": "You have the possibility to use optimized images with the [new Angular Image Directive capabilities](https://developer.chrome.com/blog/angular-image-directive/). In order to take advantage of `NgOptimizedImage`, make sure to [import it into your module](https://angular.io/api/common/NgOptimizedImage#description).\n\n```ts\nimport { NgOptimizedImage } from '@angular/common';\n```\n\n"
      },
      {
        "heading": "default images",
        "level": 3,
        "content": "In general, the `<img>` element will always be contained in a `<figure>` element with a `nxFigure` attribute. Modifiers, which affect the visual appearance and behaviour of the image, are applied as input to the `nxFigure` attribute. These include modifiers for the aspect ratio as well as the general shape of the image, as detailed below.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { NgOptimizedImage } from '@angular/common';\nimport { Component } from '@angular/core';\n\n/**\n * @title Default styling example\n */\n@Component({\n  selector: 'image-default-example',\n  templateUrl: './image-default-example.html',\n  styleUrls: ['./image-default-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFigureComponent,\n    NgOptimizedImage,\n  ],\n})\nexport class ImageDefaultExampleComponent {}\n\n```\n```html\n<div class=\"image-overview\">\n  <div nxLayout=\"grid maxwidth\">\n    <div nxRow>\n      <div nxCol=\"12\">\n        <figure nxFigure>\n          <img\n            ngSrc=\"docs-assets/images/casey-horner-night-unsplash.jpg\"\n            alt=\"The night sky, photo made by Casey Horner\"\n            width=\"1920\"\n            height=\"627\"\n          />\n        </figure>\n      </div>\n    </div>\n    <div nxRow>\n      <div nxCol=\"6\">\n        <figure nxFigure>\n          <img\n            ngSrc=\"docs-assets/images/gabriele-diwald-rain-unsplash.jpg\"\n            alt=\"A window with raindrops, photo made by Gabriele Diwald\"\n            width=\"640\"\n            height=\"428\"\n          />\n        </figure>\n      </div>\n      <div nxCol=\"6\">\n        <figure nxFigure>\n          <img\n            ngSrc=\"docs-assets/images/anusha-barwa-cat-dog-unsplash.jpg\"\n            alt=\"A cat looking at a dog, photo made by Anusha Barwa\"\n            width=\"640\"\n            height=\"643\"\n          />\n        </figure>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "fixed ratios",
        "level": 3,
        "content": "These are cropped versions of the image with a given aspect ratio. The following ratios are supported:\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { NgOptimizedImage } from '@angular/common';\nimport { Component } from '@angular/core';\n\n/**\n * @title Fixed ratio styling example\n */\n@Component({\n  selector: 'image-fixed-ratios-example',\n  templateUrl: './image-fixed-ratios-example.html',\n  styleUrls: ['./image-fixed-ratios-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxCopytextComponent,\n    NxFigureComponent,\n    NgOptimizedImage,\n  ],\n})\nexport class ImageFixedRatiosExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"4\">\n      <p nxCopytext class=\"nx-margin-bottom-0\">1:1 (\"1by1\")</p>\n      <figure nxFigure=\"1by1\">\n        <img\n          ngSrc=\"docs-assets/images/adli-wahid-eagle-unsplash.jpg\"\n          alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n          fill\n        />\n      </figure>\n    </div>\n    <div nxCol=\"4\">\n      <p nxCopytext class=\"nx-margin-bottom-0\">1.8:1 (\"1dot8by1\")</p>\n      <figure nxFigure=\"1dot8by1\">\n        <img\n          ngSrc=\"docs-assets/images/adli-wahid-eagle-unsplash.jpg\"\n          alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n          fill\n        />\n      </figure>\n    </div>\n    <div nxCol=\"4\">\n      <p nxCopytext class=\"nx-margin-bottom-0\">1.2:1 (\"1dot2by1\")</p>\n      <figure nxFigure=\"1dot2by1\">\n        <img\n          ngSrc=\"docs-assets/images/adli-wahid-eagle-unsplash.jpg\"\n          alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n          fill\n        />\n      </figure>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <p nxCopytext class=\"nx-margin-top-m nx-margin-bottom-0\">\n        1:1.1 (\"1by1dot1\")\n      </p>\n      <figure nxFigure=\"1by1dot1\">\n        <img\n          ngSrc=\"docs-assets/images/adli-wahid-eagle-unsplash.jpg\"\n          alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n          fill\n        />\n      </figure>\n    </div>\n    <div nxCol=\"6\">\n      <p nxCopytext class=\"nx-margin-top-m nx-margin-bottom-0\">\n        2.6:1 (\"2dot6by1\")\n      </p>\n      <figure nxFigure=\"2dot6by1\">\n        <img\n          ngSrc=\"docs-assets/images/adli-wahid-eagle-unsplash.jpg\"\n          alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n          fill\n        />\n      </figure>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "attributes",
        "level": 3,
        "content": "Since you use the native `<img>` element, you have access to the wide variety of attributes of it. For instance, you can use the `srcset` attribute to provide a list of sources with pixel density descriptors as in the following example, so that the client browser can select the most suitable source in any given situation.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { Component } from '@angular/core';\n\n/**\n * @title Images Attribute styling example\n */\n@Component({\n  selector: 'image-attribute-example',\n  templateUrl: './image-attribute-example.html',\n  styleUrls: ['./image-attribute-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFigureComponent,\n  ],\n})\nexport class ImageAttributeExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <figure nxFigure=\"1by1\">\n        <img\n          src=\"//via.placeholder.com/320?text=1x\"\n          srcset=\"\n            //via.placeholder.com/640/?text=2x 2x,\n            //via.placeholder.com/960/?text=3x 3x\n          \"\n          alt=\"This is just a placeholder image\"\n        />\n      </figure>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "rounded images",
        "level": 3,
        "content": "Images can be cropped to a round shape.\n\n\n```ts\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxFigureComponent } from '@allianz/ng-aquila/image';\nimport { NgOptimizedImage } from '@angular/common';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rounded styling example\n */\n@Component({\n  selector: 'image-rounded-example',\n  templateUrl: './image-rounded-example.html',\n  styleUrls: ['./image-rounded-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFigureComponent,\n    NgOptimizedImage,\n  ],\n})\nexport class ImageRoundedExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <figure nxFigure=\"rounded\">\n        <img\n          ngSrc=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n          alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n          fill\n        />\n      </figure>\n    </div>\n    <div nxCol=\"4\">\n      <figure nxFigure=\"rounded\">\n        <img\n          ngSrc=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n          alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n          fill\n        />\n      </figure>\n    </div>\n    <div nxCol=\"2\">\n      <figure nxFigure=\"rounded\">\n        <img\n          ngSrc=\"docs-assets/images/vidar-nordli-mathisen-owl-unsplash.jpg\"\n          alt=\"A photo of an owl, made by Vidar Nordli-Mathisen\"\n          fill\n        />\n      </figure>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "indicator.md",
    "title": "Indicator",
    "category": "components",
    "alias": [
      "badge"
    ],
    "sections": [
      {
        "heading": "variants",
        "level": 3,
        "content": "The indicator renders as one of three variants, picked automatically from its\ncontent — there is no input for it:\n\n- **countless** — an empty indicator, rendered as a plain dot\n- **count** — a number, rendered with text inside\n- **icon** — a projected icon, rendered as a circle\n\nOnly text longer than one character gets horizontal padding and grows into a\npill. A projected `nx-icon` is sized by the indicator, so it scales with the\nindicator size and needs no `size` of its own.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n/**\n * @title Indicator example\n */\n@Component({\n  selector: 'indicator-example',\n  templateUrl: './indicator-example.html',\n  styleUrls: ['./indicator-example.css'],\n  imports: [NxIndicatorComponent, NxIconComponent],\n})\nexport class IndicatorExampleComponent {}\n\n```\n```html\n<nx-indicator></nx-indicator>\n<nx-indicator>1</nx-indicator>\n<nx-indicator>99+</nx-indicator>\n<nx-indicator>\n  <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n</nx-indicator>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "sizes",
        "level": 3,
        "content": "Use the `size` input to pick one of the sizes. Default size is `m`.\n\nAvailable sizes: `s | m | 800 | 1000 | 1200 | 1400 | 1600 | 1800 | 2000`\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxIndicatorComponent,\n  NxIndicatorSize,\n} from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Indicator sizes\n */\n@Component({\n  selector: 'indicator-sizes-example',\n  templateUrl: './indicator-sizes-example.html',\n  styleUrls: ['./indicator-sizes-example.css'],\n  imports: [NxIndicatorComponent, NxIconComponent],\n})\nexport class IndicatorSizesExampleComponent {\n  readonly sizes: NxIndicatorSize[] = [\n    's',\n    'm',\n    '800',\n    '1000',\n    '1200',\n    '1400',\n    '1600',\n    '1800',\n    '2000',\n  ];\n}\n\n```\n```html\n@for (size of sizes; track size) {\n  <div class=\"docs-indicator-size\">\n    <span class=\"docs-indicator-size__label\">{{ size }}</span>\n    <nx-indicator [size]=\"size\"></nx-indicator>\n    <nx-indicator [size]=\"size\">1</nx-indicator>\n    <nx-indicator [size]=\"size\">99+</nx-indicator>\n    <nx-indicator [size]=\"size\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n    </nx-indicator>\n  </div>\n}\n\n```\n\n"
      },
      {
        "heading": "sizing inside other components",
        "level": 4,
        "content": "A component that hosts an indicator can size it, so it scales with the host instead of\nhaving to be sized by hand. To do that, the host implements `NxIndicatorContext` and\nprovides itself under `NX_INDICATOR_CONTEXT`:\n\n```ts\n@Component({                                                                                                                                                                                                                                                                                                              \n    selector: 'my-host',                                                                                                                                                                                                                                                                                                    \n    providers: [{ provide: NX_INDICATOR_CONTEXT, useExisting: forwardRef(() => MyHost) }],                                                                                                                                                                                                                                  \n  })                                                                                                                                                                                                                                                                                                                        \n  export class MyHost implements NxIndicatorContext {                                                                                                                                                                                                                                                                       \n    readonly indicatorSize = signal<NxIndicatorSize>('1600');                                                                                                                                                                                                                                                               \n  } \n```\n\nThe context owns the size: an indicator inside such a host follows it and its own `size`\ninput is ignored.\n"
      },
      {
        "heading": "color types",
        "level": 3,
        "content": "Use the `type` input to set the signal color. Default type is `critical`.\n\nAvailable types: `critical | warning | positive | info`\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxIndicatorComponent,\n  NxIndicatorType,\n} from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Indicator color types and variants\n */\n@Component({\n  selector: 'indicator-types-example',\n  templateUrl: './indicator-types-example.html',\n  styleUrls: ['./indicator-types-example.css'],\n  imports: [NxIndicatorComponent, NxIconComponent],\n})\nexport class IndicatorTypesExampleComponent {\n  readonly types: NxIndicatorType[] = [\n    'critical',\n    'warning',\n    'positive',\n    'info',\n  ];\n}\n\n```\n```html\n@for (type of types; track type) {\n  <div class=\"docs-indicator-type\">\n    <span class=\"docs-indicator-type__label\">{{ type }}</span>\n    <nx-indicator [type]=\"type\"></nx-indicator>\n    <nx-indicator [type]=\"type\">1</nx-indicator>\n    <nx-indicator [type]=\"type\">99+</nx-indicator>\n    <nx-indicator [type]=\"type\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n    </nx-indicator>\n  </div>\n}\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "positioning",
        "level": 3,
        "content": "Use the `position` input to place the indicator in one of the corners of its container:\n`top-start | top-end | bottom-start | bottom-end`. The indicator is aligned with the top or\nbottom edge of the container and sits just outside it. \n\nAdd the `overlap` input to pull it back inwards so it sits partly on top of the container \n\nCorner positions rely on absolute positioning, so the container needs `position: relative`.\n\n\n```ts\nimport {\n  NxIndicatorComponent,\n  NxIndicatorPosition,\n} from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Indicator corner positions and overlap\n */\n@Component({\n  selector: 'indicator-positions-example',\n  templateUrl: './indicator-positions-example.html',\n  styleUrls: ['./indicator-positions-example.css'],\n  imports: [NxIndicatorComponent],\n})\nexport class IndicatorPositionsExampleComponent {\n  readonly positions: NxIndicatorPosition[] = [\n    'top-start',\n    'top-end',\n    'bottom-start',\n    'bottom-end',\n  ];\n}\n\n```\n```html\n<div class=\"docs-indicator-positions\">\n  <span></span>\n  <span class=\"docs-indicator-positions__head\">default (count)</span>\n  <span class=\"docs-indicator-positions__head\">overlap (count)</span>\n  <span class=\"docs-indicator-positions__head\">overlap (countless)</span>\n\n  @for (position of positions; track position) {\n    <span class=\"docs-indicator-positions__label\">{{ position }}</span>\n    <div class=\"docs-indicator-positions__box\">\n      <nx-indicator [position]=\"position\">3</nx-indicator>\n    </div>\n    <div class=\"docs-indicator-positions__box\">\n      <nx-indicator [position]=\"position\" overlap>3</nx-indicator>\n    </div>\n    <div class=\"docs-indicator-positions__box\">\n      <nx-indicator [position]=\"position\" overlap></nx-indicator>\n    </div>\n  }\n</div>\n\n```\n\n\nNote that `position` is optional: leave it out and the indicator stays a plain inline element\nthat you can place entirely with your own css.\n"
      },
      {
        "heading": "usage inside other components",
        "level": 3,
        "content": "The indicator can be placed inside other components. You are free to position the indicator as needed with css or use `position` input to turn on one of our positioning presets. Note, that since most of our presets rely on absolute positioning, you might need to add `position: relative` style to the container element of indicator for best results. Here are a few examples.\n\nThe legacy values `over-text`, `over-icon`, `after-text` and `with-overlap` still work, but\nprefer a corner position with `overlap` for new code. They cannot be combined with a corner\nposition: if you pass both, the legacy value is ignored.\n"
      },
      {
        "heading": "action",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\ninterface Action {\n  icon: string;\n  label: string;\n  notification?: boolean;\n  notificationCount?: number;\n}\n\n/**\n * @title Indicator Example\n */\n@Component({\n  selector: 'action-indicator-example',\n  styleUrls: ['./action-indicator-example.css'],\n  templateUrl: './action-indicator-example.html',\n  imports: [\n    NxActionComponent,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxIndicatorComponent,\n  ],\n})\nexport class ActionIndicatorExampleComponent {\n  actions: Action[] = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      notification: false,\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      notification: true,\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      notification: true,\n      notificationCount: 105,\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      notification: true,\n      notificationCount: 4,\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n    },\n  ];\n\n  selectedAction: Action = this.actions[0];\n\n  onSelect(action: Action) {\n    this.selectedAction = action;\n  }\n\n  getIndicatorText(notificationCount: number) {\n    if (!notificationCount) {\n      return '';\n    }\n    return notificationCount > 99 ? '99+' : notificationCount;\n  }\n\n  getAriaLabel(\n    label: string,\n    notificationCount = '',\n    hasNotification?: boolean,\n  ) {\n    if (hasNotification) {\n      return `${label} ${notificationCount} new notifications available`;\n    }\n\n    return `${label}`;\n  }\n}\n\n```\n```html\n<nav aria-label=\"menu\">\n  @for (action of actions; track action) {\n    <button\n      nxAction\n      (click)=\"onSelect(action)\"\n      [selected]=\"action === selectedAction\"\n      [attr.aria-label]=\"\n        getAriaLabel(\n          action.label,\n          $any(action.notificationCount),\n          action.notification\n        )\n      \"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      <span class=\"label-content\">\n        {{ action.label }}\n        @if (action.notification) {\n          <nx-indicator position=\"top-end\">{{\n            getIndicatorText($any(action.notificationCount))\n          }}</nx-indicator>\n        }\n      </span>\n    </button>\n  }\n</nav>\n\n```\n\n"
      },
      {
        "heading": "context menu",
        "level": 4,
        "content": "<div class=\"docs-ndbx\">\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Context Menu with indicators\n */\n@Component({\n  selector: 'context-menu-indicator-example',\n  templateUrl: './context-menu-indicator-example.html',\n  styleUrls: ['./context-menu-indicator-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIndicatorComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuIndicatorExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Settings<nx-indicator\n        position=\"over-text with-overlap\"\n        aria-label=\"new notifications available'\"\n      ></nx-indicator>\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Downloads<nx-indicator\n        position=\"over-text with-overlap\"\n        aria-label=\"1 new notification available\"\n        >1</nx-indicator\n      >\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Help<nx-indicator\n        position=\"over-text with-overlap\"\n        aria-label=\"more than 99 notifications available\"\n        >99+</nx-indicator\n      >\n    </span>\n  </button>\n</nx-context-menu>\n\n<button\n  nxIconButton=\"tertiary small\"\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Context Menu with indicators\n */\n@Component({\n  selector: 'context-menu-indicator-a1-example',\n  templateUrl: './context-menu-indicator-a1-example.html',\n  styleUrls: ['./context-menu-indicator-a1-example.css'],\n  imports: [\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n    NxIndicatorComponent,\n    NxPlainButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxIconComponent,\n  ],\n})\nexport class ContextMenuIndicatorA1ExampleComponent {}\n\n```\n```html\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Settings<nx-indicator\n        position=\"top-end\"\n        aria-label=\"new notifications available\"\n      ></nx-indicator>\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Downloads<nx-indicator\n        position=\"top-end\"\n        aria-label=\"1 new notification available\"\n        >1</nx-indicator\n      >\n    </span>\n  </button>\n  <button nxContextMenuItem type=\"button\">\n    <span class=\"button-content\">\n      Help<nx-indicator\n        position=\"top-end\"\n        aria-label=\"more than 99 notifications available\"\n        >99+</nx-indicator\n      >\n    </span>\n  </button>\n</nx-context-menu>\n\n<button\n  nxPlainButton\n  [nxContextMenuTriggerFor]=\"menu\"\n  aria-label=\"Open menu\"\n  type=\"button\"\n>\n  <nx-icon aria-hidden=\"true\" name=\"ellipsis-h\"></nx-icon>\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "icon button",
        "level": 4,
        "content": "\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Icon button with indicators\n */\n@Component({\n  selector: 'button-icon-indicator-example',\n  templateUrl: './button-icon-indicator-example.html',\n  styleUrls: ['./button-icon-indicator-example.css'],\n  imports: [NxIconButtonComponent, NxIconComponent, NxIndicatorComponent],\n})\nexport class ButtonIconIndicatorExampleComponent {}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary small-medium\"\n  aria-label=\"notifications, new notifications available\"\n  type=\"button\"\n  class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n  <nx-indicator position=\"over-icon\"></nx-indicator>\n</button>\n\n<button\n  nxIconButton=\"tertiary small-medium\"\n  aria-label=\"notifications, 1 new notification available\"\n  type=\"button\"\n  class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n  <nx-indicator position=\"over-icon\">1</nx-indicator>\n</button>\n\n<button\n  nxIconButton=\"tertiary small-medium\"\n  aria-label=\"notifications, more than 99 notifications available\"\n  type=\"button\"\n  class=\"nx-margin-bottom-0\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n  <nx-indicator position=\"over-icon\">99+</nx-indicator>\n</button>\n\n```\n\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "avatar",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxAvatarComponent,\n  NxAvatarIndicatorDirective,\n} from '@allianz/ng-aquila/avatar';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Indicator example\n */\n@Component({\n  selector: 'avatar-indicator-example',\n  templateUrl: './avatar-indicator-example.html',\n  styleUrls: ['./avatar-indicator-example.css'],\n  imports: [\n    NxAvatarComponent,\n    NxAvatarIndicatorDirective,\n    NxIconComponent,\n    NxIndicatorComponent,\n  ],\n})\nexport class AvatarIndicatorExampleComponent {}\n\n```\n```html\n<div class=\"container\">\n  <button\n    nxAvatar\n    size=\"s\"\n    aria-label=\"Mercedes Deutsch\"\n    class=\"nx-margin-right-s\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n    <nx-indicator nxAvatarIndicator>\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n    </nx-indicator>\n  </button>\n\n  <button\n    nxAvatar\n    size=\"m\"\n    aria-label=\"Mercedes Deutsch\"\n    class=\"nx-margin-right-s\"\n  >\n    <span aria-hidden=\"true\">MD</span>\n    <nx-indicator nxAvatarIndicator type=\"positive\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n    </nx-indicator>\n  </button>\n\n  <button nxAvatar size=\"l\" aria-label=\"user\" class=\"nx-margin-right-s\">\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    <nx-indicator nxAvatarIndicator type=\"warning\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon\n    ></nx-indicator>\n  </button>\n\n  <button nxAvatar size=\"xl\" aria-label=\"user\">\n    <nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    <nx-indicator nxAvatarIndicator type=\"info\">\n      <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon\n    ></nx-indicator>\n  </button>\n</div>\n\n```\n\n\n</div>\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "tabs",
        "level": 4,
        "content": "Please note that **this is an Expert styling option**. This means that the indicator position is currently only defined for internal applications and not for applications that are client facing.\n\n\n```ts\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport {\n  NxTabComponent,\n  NxTabGroupComponent,\n  NxTabLabelDirective,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tab group with indicators\n */\n@Component({\n  selector: 'tabs-with-indicator-example',\n  templateUrl: './tabs-with-indicator-example.html',\n  styleUrls: ['./tabs-with-indicator-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxTabLabelDirective,\n    NxIndicatorComponent,\n  ],\n})\nexport class TabsWithIndicatorExampleComponent {\n  tabs = [\n    {\n      label: 'First tab',\n      notification: false,\n    },\n    {\n      label: 'Second tab',\n      notification: true,\n    },\n    {\n      label: 'Third tab',\n      notification: true,\n      notificationCount: 2,\n    },\n    {\n      label: 'Fourth tab',\n      notification: true,\n      notificationCount: 105,\n      disabled: true,\n    },\n  ];\n\n  getIndicatorText(notificationCount: number) {\n    if (!notificationCount) {\n      return '';\n    }\n    return notificationCount > 99 ? '99+' : notificationCount;\n  }\n\n  getAriaLabel(notificationCount: number) {\n    if (!notificationCount) {\n      return 'new notifications available';\n    }\n    return notificationCount > 99\n      ? 'more than 99 new notifications available'\n      : notificationCount + ' new notifications available';\n  }\n}\n\n```\n```html\n<nx-tab-group appearance=\"expert\">\n  @for (tab of tabs; track tab) {\n    <nx-tab>\n      <ng-template nxTabLabel>\n        <span class=\"tab-header-content\">\n          {{ tab.label }}\n          @if (tab.notification) {\n            <nx-indicator\n              position=\"top-end\"\n              [attr.aria-label]=\"getAriaLabel(tab.notificationCount!)\"\n              >{{ getIndicatorText(tab.notificationCount!) }}</nx-indicator\n            >\n          }\n        </span>\n      </ng-template>\n      <p class=\"nx-margin-top-s\">Content of {{ tab.label }}</p>\n    </nx-tab>\n  }\n</nx-tab-group>\n\n```\n\n\nThis is also possible with the navigation bar:\n\n\n```ts\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport {\n  NxTabLinkDirective,\n  NxTabNavBarComponent,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Tabs Navbar with Indicators\n */\n@Component({\n  selector: 'tabs-nav-bar-with-indicator-example',\n  templateUrl: './tabs-nav-bar-with-indicator-example.html',\n  styleUrls: ['./tabs-nav-bar-with-indicator-example.css'],\n  imports: [\n    NxTabNavBarComponent,\n    NxTabLinkDirective,\n    RouterLink,\n    NxIndicatorComponent,\n  ],\n})\nexport class TabsNavBarWithIndicatorExampleComponent {\n  links = [\n    {\n      label: 'First tab',\n      path: '...',\n      notification: false,\n    },\n    {\n      label: 'Second tab',\n      path: '...',\n      notification: true,\n    },\n    {\n      label: 'Third tab',\n      path: '...',\n      notification: true,\n      notificationCount: 5,\n    },\n  ];\n\n  currentLink = this.links[0];\n\n  setActiveLink(link: any) {\n    this.currentLink = link;\n  }\n\n  getAriaLabel(notificationCount: number) {\n    if (!notificationCount) {\n      return 'new notifications available';\n    }\n    return `${notificationCount} new notifications available`;\n  }\n}\n\n```\n```html\n<nx-tab-nav-bar appearance=\"expert\">\n  @for (link of links; track link) {\n    <a\n      nxTabLink\n      (click)=\"setActiveLink(link)\"\n      [active]=\"currentLink.label === link.label\"\n      [routerLink]=\"link.path\"\n    >\n      <span class=\"link-content\">\n        {{ link.label }}\n        @if (link.notification) {\n          <nx-indicator\n            position=\"top-end\"\n            [attr.aria-label]=\"getAriaLabel(link.notificationCount!)\"\n            >{{ link.notificationCount }}</nx-indicator\n          >\n        }\n      </span>\n    </a>\n  }\n</nx-tab-nav-bar>\n\n```\n\n\n</div>\n\n</br>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "Per [WCAG 1.4.1 Use of Color](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html), color must not be the only way of distinguishing information. The indicator itself is accessible, but it can be used in a way that isn't:\n\n- **Only one indicator type (with the same content) used across the UI** — this is accessible, since the information is communicated by the presence or absence of the indicator, not by its color.\n- **Different types or different content used side by side** (e.g. different icons, or icons mixed with text) — this relies on color alone to distinguish meaning and creates an accessibility issue for people with color blindness or low\nvision. `aria-label`/`aria-description` alone do not fix this, since they only help users of screen readers.\n\nIf you need to distinguish between multiple indicator states, add a non-color cue such as accompanying text, a tooltip, or a popover with additional information.\n\n</div>\n"
      }
    ]
  },
  {
    "name": "info-icon.md",
    "title": "Info Icon",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic usage",
        "level": 3,
        "content": "\n```ts\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Info Icon Example\n */\n@Component({\n  selector: 'info-icon-example',\n  templateUrl: './info-icon-example.html',\n  styleUrls: ['./info-icon-example.css'],\n  imports: [NxInfoIconComponent],\n})\nexport class InfoIconExampleComponent {}\n\n```\n```html\n<nx-info-icon\n  buttonAriaLabel=\"Additional information\"\n  popoverDirection=\"bottom\"\n  popoverWidth=\"300px\"\n>\n  <span>\n    This is an info icon with a popover. Click the icon to see additional\n    information. Sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut\n    labore et dolore magna aliquyam erat, sed diam voluptua.\n  </span>\n</nx-info-icon>\n\n<nx-info-icon\n  buttonAriaLabel=\"Additional information\"\n  popoverDirection=\"bottom\"\n  popoverWidth=\"300px\"\n  disabled\n>\n  <span> This is a disabled info icon with a popover. </span>\n</nx-info-icon>\n\n```\n\n"
      },
      {
        "heading": "inline usage",
        "level": 3,
        "content": "\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Info Icon Inline Example\n */\n@Component({\n  selector: 'info-icon-inline-example',\n  templateUrl: './info-icon-inline-example.html',\n  styleUrls: ['./info-icon-inline-example.css'],\n  imports: [NxInfoIconComponent, NxHeadlineComponent],\n})\nexport class InfoIconInlineExampleComponent {}\n\n```\n```html\n<h3 nxHeadline=\"subsection-medium\">\n  Headline Subsection (medium)\n  <nx-info-icon\n    buttonAriaLabel=\"Help\"\n    popoverDirection=\"top\"\n    popoverMaxWidth=\"250px\"\n  >\n    <span>This popover appears on top with a maximum width of 250px.</span>\n  </nx-info-icon>\n</h3>\n<h3 nxHeadline=\"subsection-small\">\n  Headline Subsection (small)\n  <nx-info-icon\n    buttonAriaLabel=\"Help\"\n    popoverDirection=\"top\"\n    popoverMaxWidth=\"250px\"\n  >\n    <span>This popover appears on top with a maximum width of 250px.</span>\n  </nx-info-icon>\n</h3>\n<h4 nxHeadline=\"subsection-xsmall\">\n  Headline Subsection (xsmall)\n  <nx-info-icon\n    buttonAriaLabel=\"Help\"\n    popoverDirection=\"top\"\n    popoverMaxWidth=\"250px\"\n  >\n    <span>This popover appears on top with a maximum width of 250px.</span>\n  </nx-info-icon>\n</h4>\n<p>\n  Paragraph text\n  <nx-info-icon\n    buttonAriaLabel=\"Help\"\n    popoverDirection=\"top\"\n    popoverMaxWidth=\"250px\"\n  >\n    <span>This popover appears on top with a maximum width of 250px.</span>\n  </nx-info-icon>\n</p>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "Set `inverse` to use the icon on a dark or colored background.\n\n\n```ts\nimport {\n  NxLabelComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Info Icon Inverse Example\n */\n@Component({\n  selector: 'info-icon-inverse-example',\n  templateUrl: './info-icon-inverse-example.html',\n  styleUrls: ['./info-icon-inverse-example.css'],\n  imports: [NxLabelComponent, NxLabelInfoDirective, NxInfoIconComponent],\n})\nexport class InfoIconInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-label inverse>\n    Inverse\n    <nx-info-icon nxLabelInfo inverse popoverMaxWidth=\"250px\">\n      The inverse icon is meant for dark or colored backgrounds.\n    </nx-info-icon>\n  </nx-label>\n\n  <nx-label inverse>\n    Disabled\n    <nx-info-icon nxLabelInfo inverse disabled>\n      You should not see this.\n    </nx-info-icon>\n  </nx-label>\n</div>\n\n```\n\n"
      },
      {
        "heading": "modal popover",
        "level": 3,
        "content": "\n```ts\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Info Icon Modal Example\n */\n@Component({\n  selector: 'info-icon-modal-example',\n  templateUrl: './info-icon-modal-example.html',\n  styleUrls: ['./info-icon-modal-example.css'],\n  imports: [NxInfoIconComponent],\n})\nexport class InfoIconModalExampleComponent {}\n\n```\n```html\n<nx-info-icon\n  buttonAriaLabel=\"Important information\"\n  popoverDirection=\"right\"\n  popoverWidth=\"100%\"\n  popoverMaxWidth=\"100%\"\n  [popoverModal]=\"true\"\n>\n  <span>\n    This popover has a width of `100%` and a max-width of `100%`. Sadipscing\n    elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna\n    aliquyam erat, sed diam voluptua. Sadipscing elitr, sed diam nonumy eirmod\n    tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\n  </span>\n</nx-info-icon>\n\n```\n\n"
      },
      {
        "heading": "closeable popover",
        "level": 3,
        "content": "Set `popoverCloseable` to show a close button inside the popover.\n\n\n```ts\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { Component } from '@angular/core';\n\n/**\n * @title Info Icon Closeable Example\n */\n@Component({\n  selector: 'info-icon-closeable-example',\n  templateUrl: './info-icon-closeable-example.html',\n  styleUrls: ['./info-icon-closeable-example.css'],\n  imports: [NxInfoIconComponent],\n})\nexport class InfoIconCloseableExampleComponent {}\n\n```\n```html\n<nx-info-icon buttonAriaLabel=\"Important information\" [popoverCloseable]=\"true\">\n  <span>\n    This popover has a close button. Sadipscing elitr, sed diam nonumy eirmod\n    tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\n  </span>\n</nx-info-icon>\n\n```\n\n"
      },
      {
        "heading": "scroll strategy",
        "level": 3,
        "content": "The Info Icon component uses the [Popover component](./documentation/popover/overview) internally. The scroll strategy is set to `close` by default, which means the popover will automatically close when the user scrolls. For further Information, refer to the [Popover global settings documentation](./documentation/popover/overview#global-settings-1).\n"
      }
    ]
  },
  {
    "name": "input.md",
    "title": "Input Field",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "overview",
        "level": 3,
        "content": "**Important:** You will almost never use the `nxInput` directive without a [formfield](./documentation/formfield/overview) as you won't get any chrome or labels.\n\nTherefore, the Input Module gives you access to the NxInputDirective which is required to use the [formfield component](./documentation/formfield/overview).\n\nAs `nxInput` is only a directive, you will get the full angular support for input elements like ngModel and reactive forms. You can also pass all attributes native to the input element.\n\nIf convenient for your use case, feel free to use this directive in combination with a textarea.\n\nThere is, however, one caveat: We currently block unsupported input types like file, select, button and the like. For more details, see further down.\n"
      },
      {
        "heading": "without formfields",
        "level": 4,
        "content": "As mentioned in the introduction, you won't get any chrome or labels when using inputs without formfields. Hence it will look like this (dashed border so you can see them):\n\n\n```ts\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Input field without formfield example\n */\n@Component({\n  selector: 'input-without-formfield-example',\n  templateUrl: './input-without-formfield-example.html',\n  styleUrls: ['./input-without-formfield-example.css'],\n  imports: [NxInputDirective],\n})\nexport class InputWithoutFormfieldExampleComponent {}\n\n```\n```html\nText Input:\n<input nxInput />\nTextarea:\n<textarea nxInput></textarea>\n\n```\n\n"
      },
      {
        "heading": "examples",
        "level": 3,
        "content": "Most of the native input field types are supported. You are not allowed to use non-text inputs like checkbox, file or hidden - those will throw an error.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic input field example\n */\n@Component({\n  selector: 'input-example',\n  templateUrl: './input-example.html',\n  styleUrls: ['./input-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective, NxErrorComponent],\n})\nexport class InputExampleComponent {\n  urlRegex = '(https?://)?([\\\\da-z.-]+)\\\\.([a-z.]{2,6})[/\\\\w .-]*/?';\n}\n\n```\n```html\n<div class=\"l-grid\">\n  <div class=\"l-grid__row\">\n    <div class=\"l-grid__column-6\">\n      <nx-formfield label=\"Text\">\n        <input nxInput type=\"text\" />\n      </nx-formfield>\n    </div>\n\n    <div class=\"l-grid__column-6\">\n      <nx-formfield label=\"Password\">\n        <input nxInput type=\"password\" />\n      </nx-formfield>\n    </div>\n\n    <div class=\"l-grid__column-6\">\n      <nx-formfield label=\"E-Mail\">\n        <input nxInput type=\"email\" ngModel email />\n        <nx-error nxFormfieldError>\n          <strong>Error: </strong>Please type in a valid email address\n        </nx-error>\n      </nx-formfield>\n    </div>\n\n    <div class=\"l-grid__column-6\">\n      <nx-formfield label=\"URL\">\n        <input nxInput type=\"url\" ngModel [pattern]=\"urlRegex\" />\n        <nx-error nxFormfieldError>\n          <strong>Error: </strong>Please type in a valid URL\n        </nx-error>\n      </nx-formfield>\n    </div>\n    <div class=\"l-grid__column-12\">\n      <nx-formfield label=\"Textarea\">\n        <textarea nxInput type=\"text\"></textarea>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "expert: appearance",
        "level": 3,
        "content": "With `appearance=\"expert\"` you can change the styling of the card to expert.\n\nPlease note that this is an **Expert option**. This means that it is only intended for internal applications and not for applications that are client facing.\n\n\n```ts\nimport {\n  NxErrorComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport {\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Appearance example\n */\n@Component({\n  selector: 'formfield-appearance-example',\n  templateUrl: './formfield-appearance-example.html',\n  styleUrls: ['./formfield-appearance-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldPrefixDirective,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxDatefieldDirective,\n    FormsModule,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxDatepickerComponent,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxInfoIconComponent,\n    NxLabelInfoDirective,\n  ],\n})\nexport class FormfieldAppearanceExampleComponent {\n  currentDate: Date | null = null;\n\n  @ViewChild('inputToCount', { read: NxInputDirective, static: true })\n  input!: NxInputDirective;\n\n  count = 0;\n\n  onInput() {\n    this.count = this.input.value.length;\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        appearance=\"outline\"\n        label=\"Prefilled field\"\n        floatLabel=\"always\"\n      >\n        <input nxInput value=\"prefilled\" />\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Readonly field\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <span nxFormfieldPrefix>$</span>\n        <input nxInput readonly value=\"500\" />\n        <nx-info-icon nxLabelInfo popoverMaxWidth=\"300px\">\n          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,\n          nostrum. Obcaecati cupiditate numquam, fugit illo incidunt molestiae\n          ipsam perferendis officia accusamus. Enim magnam recusandae velit\n          accusamus ipsa. Nemo, eius exercitationem?\n        </nx-info-icon>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Dropdown Label\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <nx-dropdown>\n          <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n          <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Label\" appearance=\"outline\" floatLabel=\"always\">\n        <input nxInput disabled value=\"Disabled input\" />\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Birthday\" appearance=\"outline\" floatLabel=\"always\">\n        <input\n          nxDatefield\n          nxInput\n          [datepicker]=\"myDatepicker\"\n          [(ngModel)]=\"currentDate\"\n          nxAriaLabel=\"Enter the date of your Birthday\"\n        />\n        <nx-datepicker-toggle\n          [for]=\"myDatepicker\"\n          nxFormfieldSuffix\n        ></nx-datepicker-toggle>\n        <nx-datepicker #myDatepicker></nx-datepicker>\n        <span nxFormfieldHint> mm/dd/yyyy </span>\n        <nx-error nxFormfieldError>\n          <strong>Error: </strong>Please type in a valid Date in the Format\n          mm/dd/yyyy or use the calendar to select a Date.\n        </nx-error>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"6\">\n      <nx-formfield\n        appearance=\"outline\"\n        floatLabel=\"always\"\n        label=\"Textarea Label\"\n        optionalLabel=\"Optional\"\n      >\n        <textarea nxInput type=\"text\"></textarea>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield\n        label=\"Character count\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <input nxInput #inputToCount maxlength=\"15\" (input)=\"onInput()\" />\n        <span nxFormfieldHint>\n          @if (count === 0) {\n            <span> max. 15 characters </span>\n          }\n          @if (count > 0) {\n            <span> {{ 15 - count }} characters remaining </span>\n          }\n        </span>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "input mode",
        "level": 3,
        "content": "Make sure to use the native `inputmode` HTML attribute to take advantage of the users' devices virtual keyboards with the right configuration.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Input field inputMode example\n */\n@Component({\n  selector: 'input-mode-example',\n  templateUrl: './input-mode-example.html',\n  styleUrls: ['./input-mode-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxInputDirective,\n  ],\n})\nexport class InputModeExampleComponent {\n  inputMode = 'text';\n}\n\n```\n```html\n<nx-formfield label=\"With virtual keyboard\">\n  <nx-dropdown [(value)]=\"inputMode\" placeholder=\"Select input mode\">\n    <nx-dropdown-item value=\"text\"></nx-dropdown-item>\n    <nx-dropdown-item value=\"decimal\"></nx-dropdown-item>\n    <nx-dropdown-item value=\"tel\"></nx-dropdown-item>\n    <nx-dropdown-item value=\"search\"></nx-dropdown-item>\n    <nx-dropdown-item value=\"email\"></nx-dropdown-item>\n    <nx-dropdown-item value=\"url\"></nx-dropdown-item>\n    <nx-dropdown-item value=\"none\"></nx-dropdown-item>\n  </nx-dropdown>\n</nx-formfield>\n\n<nx-formfield [label]=\"inputMode\">\n  <input nxInput type=\"text\" [attr.inputmode]=\"inputMode\" />\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "textarea autoresize",
        "level": 4,
        "content": "You can resize `<textarea>` elements by using the `cdkTextareaAutosize` directive from the CDK `@angular/cdk/text-field` module. More information on this directive can be found [here](https://material.angular.io/cdk/text-field/overview#automatically-resizing-a-code-lt-textarea-gt-code-).\n\n**Please make sure you have imported the text-field-prebuilt stylesheet**\n\n```css\n@import '@angular/cdk/text-field-prebuilt.css';\n```\n\n\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { CdkTextareaAutosize } from '@angular/cdk/text-field';\nimport { Component } from '@angular/core';\n\n/**\n * @title Textarea with autoresize example\n */\n@Component({\n  selector: 'input-autoresize-example',\n  templateUrl: './input-autoresize-example.html',\n  styleUrls: ['./input-autoresize-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective, CdkTextareaAutosize],\n})\nexport class InputAutoresizeExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Textarea with autoresizing\">\n  <textarea nxInput cdkTextareaAutosize></textarea>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "forbidden types",
        "level": 4,
        "content": "Here comes the full list of input field types that you are not allowed to use with this directive:\n\n-   button\n-   checkbox\n-   file\n-   hidden\n-   image\n-   radio\n-   range\n-   reset\n-   submit\n"
      },
      {
        "heading": "ngmodel & reactive",
        "level": 4,
        "content": "As you are using the native input field, you will get the full support for ngModel, reactive form and template driven forms.\n"
      },
      {
        "heading": "standalone",
        "level": 4,
        "content": "\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standalone example\n */\n@Component({\n  selector: 'input-standalone-example',\n  templateUrl: './input-standalone-example.html',\n  styleUrls: ['./input-standalone-example.css'],\n  imports: [NxFormfieldComponent, NxInputDirective],\n})\nexport class InputStandaloneExampleComponent {}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input nxInput #standaloneInput />\n</nx-formfield>\nCurrent Value: {{ standaloneInput.value }}\n\n```\n\n"
      },
      {
        "heading": "ngmodel",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template-driven example with ngModel\n */\n@Component({\n  selector: 'input-template-driven-example',\n  templateUrl: './input-template-driven-example.html',\n  styleUrls: ['./input-template-driven-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxErrorComponent,\n  ],\n})\nexport class InputTemplateDrivenExampleComponent {\n  currentExampleValue = '';\n}\n\n```\n```html\n<nx-formfield label=\"Label\">\n  <input required nxInput [(ngModel)]=\"currentExampleValue\" />\n  <nx-error nxFormfieldError>\n    <strong>Please note:</strong> this field is required!\n  </nx-error>\n</nx-formfield>\nCurrent Value: {{ currentExampleValue }}\n\n```\n\n"
      },
      {
        "heading": "reactive",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive example\n */\n@Component({\n  selector: 'input-reactive-example',\n  templateUrl: './input-reactive-example.html',\n  styleUrls: ['./input-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxFormfieldErrorDirective,\n    NxInputDirective,\n    JsonPipe,\n    NxErrorComponent,\n  ],\n})\nexport class InputReactiveExampleComponent {\n  testForm: FormGroup = new FormGroup({\n    textfield: new FormControl('', {\n      validators: Validators.required,\n    }),\n  });\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-formfield label=\"Label\">\n    <input nxInput formControlName=\"textfield\" />\n    <nx-error nxFormfieldError>\n      <strong>Please note:</strong> this field is required!\n    </nx-error>\n  </nx-formfield>\n</form>\n\nForm value: {{ testForm.value | json }}<br />\nForm status: {{ testForm.status | json }}\n\n```\n\n"
      },
      {
        "heading": "password visibility toggle",
        "level": 3,
        "content": "In order to hide/show characters on inputs of type password you can use the `nx-password-toggle` component in combination with a `nxFormFieldSuffix` as shown in the example below. The input field has to be passed as a `control` to the `nx-password-toggle` component.\n\n**Important:** When using a formfield with a visibility toggle please pass an `aria-label` to the password toggle via the `ariaLabel` input. If you don't set it explicitly it will have 'Show password' as default value. As the default is in English, in almost all cases you should explicitly set the label.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxInputDirective,\n  NxPasswordToggleComponent,\n} from '@allianz/ng-aquila/input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Password visibility toggle example\n */\n@Component({\n  selector: 'formfield-password-visibility-example',\n  templateUrl: './formfield-password-visibility-example.html',\n  styleUrls: ['./formfield-password-visibility-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxPasswordToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class FormfieldPasswordVisibilityExampleComponent {\n  inputValue!: string;\n}\n\n```\n```html\n<nx-formfield label=\"Password\">\n  <input\n    required\n    nxInput\n    #testInput\n    type=\"password\"\n    nxAriaLabel=\"Enter password\"\n    [(ngModel)]=\"inputValue\"\n  />\n  <nx-password-toggle\n    [control]=\"testInput\"\n    ariaLabel=\"Your custom show password label\"\n    nxFormfieldSuffix\n  ></nx-password-toggle>\n  <nx-error nxFormfieldError>\n    <b>Please note: </b> you have to fill in your password to continue.\n  </nx-error>\n</nx-formfield>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "layout.md",
    "title": "Layout",
    "category": "general",
    "alias": [],
    "sections": [
      {
        "heading": "margins",
        "level": 3,
        "content": "The margins are intended to help you layout components shipped with this library. Setting such margins is needed since the components we ship are usually agnostic to any layout, putting you in control of laying out the components the way needed for your application's user experience.\n\nThey can be integrated through the angular JSON `angular[-cli].json` or by importing it in your styles `style.scss` file.\n\nUse this path to import it via your angular-cli.json file:\n\n```ts\n\"styles\": [\n  \"node_modules/@allianz/ng-aquila/css/utilities.css\"\n]\n```\n\nIf you don't use the Angular CLI or just prefer another place you can use this css import instead:\n\n```css\n@import '@allianz/ng-aquila/css/utilities.css';\n```\n"
      },
      {
        "heading": "margin sizes",
        "level": 4,
        "content": "We provide you with following margin sizes:\n\n<!-- example(margin-sizes, { \"hideHeader\": true }) -->\n"
      },
      {
        "heading": "usage",
        "level": 4,
        "content": "We also provide you with helper classes for all these sizes, which follow the pattern `.nx-margin-{direction}-{size}`.\n\nThe `direction` property is one of the following:\n\n-   **left** - sets `margin-left`\n-   **right** - sets `margin-right`\n-   **top** - sets `margin-top`\n-   **bottom** - sets `margin-bottom`\n-   **x** - sets `margin-left` and `margin-right`\n-   **y** - sets `margin-top` and `margin-bottom`\n-   blank - sets a margin on all sides of the element\n\nThereby, `size` has to be matching one of the sizes defined in the table above.\n\nAn example of the margin helper classes usage can be found in the example below.\n\n\n```ts\nimport { Component } from '@angular/core';\n\n/**\n * @title Margin sizes example\n */\n@Component({\n  selector: 'margin-usage-example',\n  templateUrl: './margin-usage-example.html',\n  styleUrls: ['./margin-usage-example.css'],\n  standalone: true,\n})\nexport class MarginUsageExampleComponent {}\n\n```\n```html\n<div class=\"color-container\">\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-top-s margin-box\">\n      Container with 16px margin top.\n    </div>\n  </div>\n\n  <br />\n\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-bottom-s margin-box\">\n      Container with 16px margin bottom.\n    </div>\n  </div>\n\n  <br />\n\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-y-s margin-box\">\n      Container with 16px margin top and bottom.\n    </div>\n  </div>\n\n  <br />\n\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-left-s margin-box\">\n      Container with 16px margin left.\n    </div>\n  </div>\n\n  <br />\n\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-right-s margin-box\">\n      Container with 16px margin right.\n    </div>\n  </div>\n\n  <br />\n\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-x-s margin-box\">\n      Container with 16px margin left and right.\n    </div>\n  </div>\n\n  <br />\n\n  <div class=\"wrapper\">\n    <div class=\"nx-margin-s margin-box\">Container with 16px margin.</div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "breakpoints and viewport",
        "level": 3,
        "content": "Our library provides a set of tools for reacting to different viewports. For simple hiding elements on certain breakpoints you can use our utility classes. For more sophisticated use cases there is a viewport service. It provides three methods: `min`, `max` and `between` for subscribing to particular viewport breakpoints.\n"
      },
      {
        "heading": "hide elements on specific breakpoints using css classes",
        "level": 4,
        "content": "We provide a set of utility classes that can be used to hide elements on certain viewport sizes.\n\nRemember that you can combine CSS classes on the same element. So for example, if you wanted an element to show on small and large desktops, but be hidden on tablets and mobile, you could do something like the following.\n\n```html\n<p class=\"nx-hidden-xs nx-hidden-s nx-hidden-m\">Hidden on tablet and smaller</p>\n```\n\n**Available classes:**\n\n<!-- example(hidden-classes, { \"hideHeader\": true }) -->\n"
      },
      {
        "heading": "breakpoints",
        "level": 4,
        "content": "The following viewport breakpoints are available:\n\n```ts\n/** Available breakpoints to subscribe to. */\nexport enum NxBreakpoints {\n    BREAKPOINT_XSMALL = 0,\n    BREAKPOINT_SMALL = 320,\n    BREAKPOINT_MEDIUM = 704,\n    BREAKPOINT_LARGE = 992,\n    BREAKPOINT_XLARGE = 1280,\n    BREAKPOINT_2XLARGE = 1472,\n    BREAKPOINT_3XLARGE = 1760,\n}\n```\n\nYou can react to changes in the viewport in your components the following way:\n\n```ts\nimport { NxViewportService, NxBreakpoints } from '@allianz/ng-aquila/utils';\nshowComponentX: boolean;\n\nconstructor(private viewportService: NxViewportService) {\n  this.viewportService.max(NxBreakpoints.BREAKPOINT_LARGE)\n    .subscribe(isMaximumLarge => this.showComponentX = isMaximumLarge);\n}\n```\n"
      },
      {
        "heading": "basic viewport subscription",
        "level": 4,
        "content": "The example below shows a sidebar, which is expanded from 704px (BREAKPOINT_MEDIUM) on and otherwise closed.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxSidebarComponent,\n  NxSidebarComponent as NxSidebarComponent_1,\n} from '@allianz/ng-aquila/sidebar';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport { Component, OnDestroy, OnInit, viewChild } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * @title Viewport Change example\n */\n@Component({\n  selector: 'viewport-change-example',\n  templateUrl: './viewport-change-example.html',\n  styleUrls: ['./viewport-change-example.css'],\n  imports: [\n    NxSidebarComponent_1,\n    NxActionComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n  ],\n})\nexport class ViewportChangeExampleComponent implements OnInit, OnDestroy {\n  readonly sidebar = viewChild.required<NxSidebarComponent>('sidebar');\n\n  readonly actions = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      query: { a: 4 },\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n      query: { a: 5 },\n    },\n  ];\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(private readonly viewportService: NxViewportService) {}\n\n  ngOnInit(): void {\n    this.viewportService\n      .min(NxBreakpoints.BREAKPOINT_MEDIUM)\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((isGreaterThanMedium) => {\n        const sidebar = this.sidebar();\n        if (isGreaterThanMedium && !sidebar.open) {\n          sidebar.expand();\n        } else if (!isGreaterThanMedium) {\n          // don't trigger unneeded close() and expand()\n          if (sidebar.open) {\n            sidebar.close();\n          }\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\nChange the size of the window in order to see how this side navigation is closed\nand expanded according to the viewport:\n<br />\n<br />\n<nx-sidebar class=\"my-sidebar\" resizeable #sidebar>\n  @for (action of actions; track action) {\n    <button\n      nxAction\n      routerLink=\"./\"\n      [queryParams]=\"action.query\"\n      routerLinkActive=\"is-selected\"\n      type=\"button\"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      {{ action.label }}\n    </button>\n  }\n</nx-sidebar>\n\n```\n\n"
      },
      {
        "heading": "advanced: custom throttletime",
        "level": 4,
        "content": "Per default, the viewport service catches window resize events with an interval of 200ms. If this default throttle time does not serve your needs you can change it by passing it as a parameter to the methods `min`, `max` and `between`:\n\n```ts\nthis.viewportService\n    .between(NxBreakpoints.BREAKPOINT_XSMALL, NxBreakpoints.BREAKPOINT_MEDIUM, 500)\n    .subscribe(isMaximumLarge => (this.showComponentX = isMaximumLarge));\n```\n"
      }
    ]
  },
  {
    "name": "licence-plate.md",
    "title": "Licence Plate",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "validation (germany)",
        "level": 2,
        "content": "The validator directive `nxLicencePlate` provides validation for:\n\n-   `de_standard`: german standard licence plate\n-   `de_season`: german seasonal licence plate\n-   `de_special`: german seasonal licence plate\n-   `euro`: choose for euro licence plate and supply your own pattern\n-   `other`: choose for any other licence plate and supply your own pattern\n\nErrors will be added to the control under the name `nxLicencePlateError`.\n"
      },
      {
        "heading": "standard type (germany)",
        "level": 3,
        "content": "The german `de_standard` type handles the generally german licence plate, including the historical and the electric vehicle licence plates. Examples: `M-AB 1234`, `M-AB 1234E` and `M-AB 1234H`. It is recommended to use the hint feature for this component, as a format is specified.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate standard (Germany)\n */\n@Component({\n  selector: 'licence-plate-standard-example',\n  templateUrl: 'licence-plate-standard-example.html',\n  styleUrls: ['licence-plate-standard-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class LicencePlateStandardExampleComponent {\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input nxInput nxLicensePlate=\"de_standard\" [(ngModel)]=\"value\" />\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "seasonal type (germany)",
        "level": 3,
        "content": "The german `de_seasonal` licence plate field is identical to the standard type but shows also the start and end date of the registration. Examples: `M-AB 1234`, `M-AB 1234E` and `M-AB 1234H` with filled `startDate` and `endDate` attributes. It is recommended to use the hint feature for this component, as a format is specified.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateSeasonSuffixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate seasonal (Germany)\n */\n@Component({\n  selector: 'licence-plate-seasonal-example',\n  templateUrl: 'licence-plate-seasonal-example.html',\n  styleUrls: ['licence-plate-seasonal-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxLicencePlateSeasonSuffixComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class LicencePlateSeasonalExampleComponent {\n  startMonth!: number;\n  endMonth!: number;\n  monthsOfYearList: { month: number; monthName: string }[] = [\n    { month: 1, monthName: 'January' },\n    { month: 2, monthName: 'February' },\n    { month: 3, monthName: 'March' },\n    { month: 4, monthName: 'April' },\n    { month: 5, monthName: 'May' },\n    { month: 6, monthName: 'June' },\n    { month: 7, monthName: 'July' },\n    { month: 8, monthName: 'August' },\n    { month: 9, monthName: 'September' },\n    { month: 10, monthName: 'October' },\n    { month: 11, monthName: 'November' },\n    { month: 12, monthName: 'December' },\n  ];\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"Start date\">\n        <nx-dropdown [(value)]=\"startMonth\">\n          @for (date of monthsOfYearList; track date) {\n            <nx-dropdown-item [value]=\"date.month\">\n              {{ date.monthName }}\n            </nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n      <nx-formfield label=\"End date\">\n        <nx-dropdown [(value)]=\"endMonth\">\n          @for (date of monthsOfYearList; track date) {\n            <nx-dropdown-item [value]=\"date.month\">\n              {{ date.monthName }}\n            </nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input nxInput nxLicensePlate=\"de_season\" [(ngModel)]=\"value\" />\n        <nx-licence-plate-season-suffix\n          nxFormfieldSuffix\n          [startMonth]=\"startMonth\"\n          [endMonth]=\"endMonth\"\n        ></nx-licence-plate-season-suffix>\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "special type (germany)",
        "level": 3,
        "content": "The german `de_special` licence plate field treats specific purposes, such as military or diplomatic licence plate numbers. Examples: `Y-687 548`, `B-12-345`, `0-123-1` and `0-17-1A`. It is recommended to use the hint feature for this component, as a format is specified.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate special (Germany)\n */\n@Component({\n  selector: 'licence-plate-special-example',\n  templateUrl: 'licence-plate-special-example.html',\n  styleUrls: ['licence-plate-special-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class LicencePlateSpecialExampleComponent {\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input nxInput nxLicensePlate=\"de_special\" [(ngModel)]=\"value\" />\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "additional licence plate types",
        "level": 2,
        "content": "The following licence plate types are used within an international or unknown context and provide no standard regular expression format (pattern). Please keep in mind that you need to specify your own regular expression pattern for the individual case you implement with these two types.\n"
      },
      {
        "heading": "euro type",
        "level": 3,
        "content": "For other european countries (e.g. France and Spain) the validation can be disabled by choosing the `euro` type. This type enforces no format so you need to specify a regular expression with attribute `pattern` to specify a format for the specific country. In case you specify a pattern, it is also recommended to use the hint feature for this component to explain the format to the user.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldPrefixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate euro\n */\n@Component({\n  selector: 'licence-plate-euro-example',\n  templateUrl: 'licence-plate-euro-example.html',\n  styleUrls: ['licence-plate-euro-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class LicencePlateEuroExampleComponent {\n  country = 'A';\n  countriesList: { country: string; countryName: string }[] = [\n    { country: 'A', countryName: 'Austria' },\n    { country: 'B', countryName: 'Belgium' },\n    { country: 'BG', countryName: 'Bulgaria' },\n    { country: 'HR', countryName: 'Croatia' },\n    { country: 'CY', countryName: 'Cyprus' },\n    { country: 'CZ', countryName: 'Czech Republic' },\n    { country: 'DK', countryName: 'Denmark' },\n    { country: 'EST', countryName: 'Estonia' },\n    { country: 'FIN', countryName: 'Finland' },\n    { country: 'F', countryName: 'France' },\n    { country: 'GR', countryName: 'Greece' },\n    { country: 'H', countryName: 'Hungary' },\n    { country: 'IRL', countryName: 'Ireland' },\n    { country: 'I', countryName: 'Italy' },\n    { country: 'LV', countryName: 'Latvia' },\n    { country: 'LT', countryName: 'Lithuania' },\n    { country: 'L', countryName: 'Luxembourg' },\n    { country: 'M', countryName: 'Malta' },\n    { country: 'NL', countryName: 'Netherlands' },\n    { country: 'N', countryName: 'Norway' },\n    { country: 'PL', countryName: 'Poland' },\n    { country: 'P', countryName: 'Portugal' },\n    { country: 'RO', countryName: 'Romania' },\n    { country: 'SK', countryName: 'Slovakia' },\n    { country: 'SLO', countryName: 'Slovenia' },\n    { country: 'E', countryName: 'Spain' },\n    { country: 'S', countryName: 'Sweden' },\n    { country: 'UA', countryName: 'Ukraine' },\n  ];\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"Country\">\n        <nx-dropdown [(value)]=\"country\">\n          @for (country of countriesList; track country) {\n            <nx-dropdown-item [value]=\"country.country\">\n              {{ country.countryName }}\n            </nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix>{{\n          country\n        }}</nx-licence-plate-euro-prefix>\n        <input nxInput nxLicensePlate=\"euro\" [(ngModel)]=\"value\" />\n        <nx-error nxFormfieldError\n          >Please enter a valid license plate number.</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "other type",
        "level": 3,
        "content": "The `other` type handles all unknown number formats and provides no format or nationality code. This type enforces no format so you need to specify a regular expression with attribute `pattern` to specify a format. In case you specify a pattern, it is also recommended to use the hint feature for this component to explain the format to the user.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxLicencePlateValidatorDirective } from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate other\n */\n@Component({\n  selector: 'licence-plate-other-example',\n  templateUrl: 'licence-plate-other-example.html',\n  styleUrls: ['licence-plate-other-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class LicencePlateOtherExampleComponent {\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <input nxInput nxLicensePlate=\"other\" [(ngModel)]=\"value\" />\n        <nx-error nxFormfieldError\n          >Please enter a license plate number.</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "ngmodel",
        "level": 2,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateSeasonSuffixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate ngModel\n */\n@Component({\n  selector: 'licence-plate-ngmodel-example',\n  templateUrl: 'licence-plate-ngmodel-example.html',\n  styleUrls: ['licence-plate-ngmodel-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxLicencePlateSeasonSuffixComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class LicencePlateNgmodelExampleComponent {\n  model = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input nxInput nxLicensePlate=\"de_standard\" [(ngModel)]=\"model\" />\n        <nx-licence-plate-season-suffix\n          nxFormfieldSuffix\n          [startMonth]=\"1\"\n          [endMonth]=\"10\"\n        ></nx-licence-plate-season-suffix>\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow class=\"example-controls\">\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <pre>Licence plate value: {{ model }}</pre>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "reactive",
        "level": 2,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateValidatorDirective,\n  nxLicensePlateValidator,\n} from '@allianz/ng-aquila/licence-plate';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n} from '@angular/forms';\n\n/**\n * @title Licence plate reactive form\n */\n@Component({\n  selector: 'licence-plate-reactive-example',\n  templateUrl: 'licence-plate-reactive-example.html',\n  styleUrls: ['licence-plate-reactive-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    NxLicencePlateValidatorDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    JsonPipe,\n  ],\n})\nexport class LicencePlateReactiveExampleComponent {\n  licencePlateForm: FormGroup;\n\n  constructor() {\n    this.licencePlateForm = new FormGroup({\n      licencePlateInput: new FormControl(\n        '',\n        nxLicensePlateValidator('de_standard'),\n      ),\n    });\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <form [formGroup]=\"licencePlateForm\">\n        <nx-formfield label=\"License Plate\">\n          <nx-licence-plate-euro-prefix nxFormfieldPrefix\n            >D</nx-licence-plate-euro-prefix\n          >\n          <input\n            nxInput\n            nxLicensePlate=\"de_standard\"\n            formControlName=\"licencePlateInput\"\n          />\n          <span nxFormfieldHint>Format: M-AA 1234</span>\n          <nx-error nxFormfieldError\n            >Please enter a license plate number in the format \"M-AA\n            1234\".</nx-error\n          >\n        </nx-formfield>\n      </form>\n    </div>\n  </div>\n  <div nxRow class=\"example-controls nx-margin-top-s\">\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <pre>\n        Licence plate value: {{\n          licencePlateForm.get('licencePlateInput')?.value | json\n        }}\n      </pre>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 2,
        "content": "By adding the `disabled` attribute you can set the licence plate into disabled mode.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateSeasonSuffixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate standard disabled (Germany)\n */\n@Component({\n  selector: 'licence-plate-disabled-example',\n  templateUrl: 'licence-plate-disabled-example.html',\n  styleUrls: ['licence-plate-disabled-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxLicencePlateSeasonSuffixComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxCheckboxComponent,\n  ],\n})\nexport class LicencePlateDisabledExampleComponent {\n  disabled = true;\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,6\" colOffset=\"0,0,1,3\">\n      <nx-formfield label=\"License Plate\">\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input\n          nxInput\n          nxLicensePlate=\"de_standard\"\n          [disabled]=\"disabled\"\n          [(ngModel)]=\"value\"\n        />\n        <nx-licence-plate-season-suffix\n          nxFormfieldSuffix\n          [startMonth]=\"1\"\n          [endMonth]=\"10\"\n        ></nx-licence-plate-season-suffix>\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n\n      <nx-checkbox\n        class=\"nx-margin-top-s\"\n        name=\"disabled\"\n        [(ngModel)]=\"disabled\"\n      >\n        Disabled\n      </nx-checkbox>\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert",
        "level": 2,
        "content": "You will automatically get the expert version of this component by using the `NxExpertModule` see the [Expert documentation](./documentation/config). In case you can not use this module, you need to switch the settings of the licence plate manually by using the `appearance` and `floatLabel` properties.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateSeasonSuffixComponent,\n  NxLicencePlateType,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate expert\n */\n@Component({\n  selector: 'licence-plate-expert-example',\n  templateUrl: 'licence-plate-expert-example.html',\n  styleUrls: ['licence-plate-expert-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxLicencePlateSeasonSuffixComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    JsonPipe,\n  ],\n})\nexport class LicencePlateExpertExampleComponent {\n  licencePlateModel: {\n    type: NxLicencePlateType;\n    country: string;\n    value: string;\n    startDate: number;\n    endDate: number;\n  } = {\n    type: 'de_standard',\n    country: 'D',\n    value: '',\n    startDate: 1,\n    endDate: 2,\n  };\n\n  licencePlateTypes: { type: string; typeName: string }[] = [\n    { type: 'de_standard', typeName: 'Standard (Germany)' },\n    { type: 'de_season', typeName: 'Seasonal (Germany)' },\n    { type: 'de_special', typeName: 'Special (Germany)' },\n    { type: 'euro', typeName: 'Euro' },\n    { type: 'other', typeName: 'Other' },\n  ];\n\n  monthsOfYearList: { month: number; monthName: string }[] = [\n    { month: 1, monthName: 'January ' },\n    { month: 2, monthName: 'February' },\n    { month: 3, monthName: 'March' },\n    { month: 4, monthName: 'April' },\n    { month: 5, monthName: 'May' },\n    { month: 6, monthName: 'June' },\n    { month: 7, monthName: 'July' },\n    { month: 8, monthName: 'August' },\n    { month: 9, monthName: 'September ' },\n    { month: 10, monthName: 'October' },\n    { month: 11, monthName: 'November' },\n    { month: 12, monthName: 'December' },\n  ];\n  countriesList: { country: string; countryName: string }[] = [\n    { country: 'A', countryName: 'Austria' },\n    { country: 'B', countryName: 'Belgium' },\n    { country: 'BG', countryName: 'Bulgaria' },\n    { country: 'HR', countryName: 'Croatia' },\n    { country: 'CY', countryName: 'Cyprus' },\n    { country: 'CZ', countryName: 'Czech Republic' },\n    { country: 'DK', countryName: 'Denmark' },\n    { country: 'EST', countryName: 'Estonia' },\n    { country: 'FIN', countryName: 'Finland' },\n    { country: 'F', countryName: 'France' },\n    { country: 'GR', countryName: 'Greece' },\n    { country: 'H', countryName: 'Hungary' },\n    { country: 'IRL', countryName: 'Ireland' },\n    { country: 'I', countryName: 'Italy' },\n    { country: 'LV', countryName: 'Latvia' },\n    { country: 'LT', countryName: 'Lithuania' },\n    { country: 'L', countryName: 'Luxembourg' },\n    { country: 'M', countryName: 'Malta' },\n    { country: 'NL', countryName: 'Netherlands' },\n    { country: 'N', countryName: 'Norway' },\n    { country: 'PL', countryName: 'Poland' },\n    { country: 'P', countryName: 'Portugal' },\n    { country: 'RO', countryName: 'Romania' },\n    { country: 'SK', countryName: 'Slovakia' },\n    { country: 'SLO', countryName: 'Slovenia' },\n    { country: 'E', countryName: 'Spain' },\n    { country: 'S', countryName: 'Sweden' },\n    { country: 'UA', countryName: 'Ukraine' },\n  ];\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,4\" colOffset=\"0,0,1,4\">\n      <nx-formfield\n        label=\"Licence plate types\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <nx-dropdown\n          placeholder=\"Choose a type\"\n          [(value)]=\"licencePlateModel.type\"\n        >\n          @for (type of licencePlateTypes; track type) {\n            <nx-dropdown-item [value]=\"type.type\">{{\n              type.typeName\n            }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n\n      @if (licencePlateModel.type === 'de_season') {\n        <div>\n          <nx-formfield\n            label=\"Start date\"\n            appearance=\"outline\"\n            floatLabel=\"always\"\n          >\n            <nx-dropdown [(value)]=\"licencePlateModel.startDate\">\n              @for (date of monthsOfYearList; track date) {\n                <nx-dropdown-item [value]=\"date.month\">\n                  {{ date.monthName }}\n                </nx-dropdown-item>\n              }\n            </nx-dropdown>\n          </nx-formfield>\n          <nx-formfield\n            label=\"End date\"\n            appearance=\"outline\"\n            floatLabel=\"always\"\n          >\n            <nx-dropdown [(value)]=\"licencePlateModel.endDate\">\n              @for (date of monthsOfYearList; track date) {\n                <nx-dropdown-item [value]=\"date.month\">\n                  {{ date.monthName }}\n                </nx-dropdown-item>\n              }\n            </nx-dropdown>\n          </nx-formfield>\n        </div>\n      }\n      @if (licencePlateModel.type === 'euro') {\n        <div>\n          <nx-formfield\n            label=\"Country\"\n            appearance=\"outline\"\n            floatLabel=\"always\"\n          >\n            <nx-dropdown [(value)]=\"licencePlateModel.country\">\n              @for (country of countriesList; track country) {\n                <nx-dropdown-item [value]=\"country.country\">\n                  {{ country.countryName }}\n                </nx-dropdown-item>\n              }\n            </nx-dropdown>\n          </nx-formfield>\n        </div>\n      }\n\n      <nx-formfield\n        label=\"License Plate\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        @if (licencePlateModel.type !== 'other') {\n          <nx-licence-plate-euro-prefix nxFormfieldPrefix>\n            {{ licencePlateModel.country }}\n          </nx-licence-plate-euro-prefix>\n        }\n        <input\n          nxInput\n          [nxLicensePlate]=\"licencePlateModel.type\"\n          [ngModel]=\"licencePlateModel.value\"\n        />\n        @if (licencePlateModel.type === 'de_season') {\n          <nx-licence-plate-season-suffix\n            nxFormfieldSuffix\n            [startMonth]=\"licencePlateModel.startDate\"\n            [endMonth]=\"licencePlateModel.endDate\"\n          ></nx-licence-plate-season-suffix>\n        }\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n<div nxLayout=\"grid maxwidth\" class=\"nx-margin-top-s\">\n  <div nxRow class=\"example-controls\">\n    <div nxCol=\"12,12,10,4\" colOffset=\"0,0,1,4\">\n      <pre>Licence plate model value: {{ licencePlateModel | json }}</pre>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "states",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxLicencePlateEuroPrefixComponent,\n  NxLicencePlateSeasonSuffixComponent,\n  NxLicencePlateValidatorDirective,\n} from '@allianz/ng-aquila/licence-plate';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Licence plate expert states\n */\n@Component({\n  selector: 'licence-plate-expert-states-example',\n  templateUrl: 'licence-plate-expert-states-example.html',\n  styleUrls: ['licence-plate-expert-states-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxLicencePlateEuroPrefixComponent,\n    NxFormfieldPrefixDirective,\n    NxInputDirective,\n    FormsModule,\n    NxLicencePlateValidatorDirective,\n    NxLicencePlateSeasonSuffixComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxCheckboxComponent,\n  ],\n})\nexport class LicencePlateExpertStatesExampleComponent {\n  disabled = false;\n  readonly = false;\n  value = '';\n}\n\n```\n```html\n<div nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12,12,10,4\" colOffset=\"0,0,1,4\">\n      <nx-formfield\n        label=\"License Plate\"\n        appearance=\"outline\"\n        floatLabel=\"always\"\n      >\n        <nx-licence-plate-euro-prefix nxFormfieldPrefix\n          >D</nx-licence-plate-euro-prefix\n        >\n        <input\n          nxInput\n          nxLicensePlate=\"de_standard\"\n          [disabled]=\"disabled\"\n          [readonly]=\"readonly\"\n          [(ngModel)]=\"value\"\n        />\n        <nx-licence-plate-season-suffix\n          nxFormfieldSuffix\n          [startMonth]=\"1\"\n          [endMonth]=\"10\"\n        ></nx-licence-plate-season-suffix>\n        <span nxFormfieldHint>Format: M-AA 1234</span>\n        <nx-error nxFormfieldError\n          >Please enter a license plate number in the format \"M-AA\n          1234\".</nx-error\n        >\n      </nx-formfield>\n\n      <nx-checkbox\n        class=\"nx-margin-top-s\"\n        name=\"disabled\"\n        [(ngModel)]=\"disabled\"\n      >\n        Disabled\n      </nx-checkbox>\n      <nx-checkbox\n        class=\"nx-margin-top-s\"\n        name=\"readonly\"\n        [(ngModel)]=\"readonly\"\n      >\n        Readonly\n      </nx-checkbox>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "link.md",
    "title": "Link",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "default",
        "level": 3,
        "content": "\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Default link example\n */\n@Component({\n  selector: 'link-default-example',\n  templateUrl: './link-default-example.html',\n  styleUrls: ['./link-default-example.css'],\n  imports: [NxLinkComponent, RouterLink],\n})\nexport class LinkDefaultExampleComponent {}\n\n```\n```html\n<nx-link>\n  <a routerLink=\"/documentation\">link</a>\n</nx-link>\n\n<br />\n\n<nx-link>\n  <a [routerLink]=\"null\" aria-disabled=\"true\" disabled tabindex=\"-1\"\n    >disabled</a\n  >\n</nx-link>\n\n```\n\n"
      },
      {
        "heading": "sizes",
        "level": 3,
        "content": "With the `[size]` property you can apply different sizes.\n\n\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Sizes example\n */\n@Component({\n  selector: 'link-size-example',\n  templateUrl: './link-size-example.html',\n  styleUrls: ['./link-size-example.css'],\n  imports: [NxLinkComponent, RouterLink],\n})\nexport class LinkSizeExampleComponent {}\n\n```\n```html\n<nx-link size=\"xsmall\">\n  <a routerLink=\"/documentation\">xsmall link</a>\n</nx-link>\n\n<br />\n\n<nx-link size=\"small\">\n  <a routerLink=\"/documentation\">small link</a>\n</nx-link>\n\n<br />\n\n<nx-link size=\"large\">\n  <a routerLink=\"/documentation\">large link</a>\n</nx-link>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "types",
        "level": 3,
        "content": "For One Allianz, you can select the color type via the `[type]` property.\n\n\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Types example\n */\n@Component({\n  selector: 'link-type-example',\n  templateUrl: './link-type-example.html',\n  styleUrls: ['./link-type-example.css'],\n  imports: [NxLinkComponent, RouterLink],\n})\nexport class LinkTypeExampleComponent {}\n\n```\n```html\n<nx-link>\n  <a routerLink=\"/documentation\">primary link</a>\n</nx-link>\n\n<br />\n\n<nx-link type=\"secondary\">\n  <a routerLink=\"/documentation\">secondary link</a>\n</nx-link>\n\n```\n\n"
      },
      {
        "heading": "prominence",
        "level": 3,
        "content": "You can set the prominence of the link by selecting the `[prominence]` property.\n\n\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Prominence example\n */\n@Component({\n  selector: 'link-prominence-example',\n  templateUrl: './link-prominence-example.html',\n  styleUrls: ['./link-prominence-example.css'],\n  imports: [NxLinkComponent, RouterLink],\n})\nexport class LinkProminenceExampleComponent {}\n\n```\n```html\n<p>By default, the prominence property is set to `default`:</p>\n<nx-link>\n  <a routerLink=\"/documentation\">default link</a>\n</nx-link>\n<br />\n<br />\n<p>\n  You can change the prominence property to `subtle`. <br />\n  Hover over the links below to see the difference in appearance:\n</p>\n<nx-link prominence=\"subtle\">\n  <a routerLink=\"/documentation\">subtle link</a>\n</nx-link>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "with icons",
        "level": 3,
        "content": "\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Link with icon example\n */\n@Component({\n  selector: 'link-icons-example',\n  templateUrl: './link-icons-example.html',\n  styleUrls: ['./link-icons-example.css'],\n  imports: [NxLinkComponent, RouterLink, NxIconComponent],\n})\nexport class LinkIconsExampleComponent {}\n\n```\n```html\n<p>\n  You can put icons inside of a link, be it by using the respective CSS classes\n  or the nx-icon component.\n</p>\n\n<div>\n  <nx-link>\n    <a routerLink=\"/documentation\">\n      <nx-icon name=\"arrow-right\" aria-hidden=\"true\"></nx-icon>\n      Link\n    </a>\n  </nx-link>\n</div>\n\n<p>You can also put the icon on the right side with the icon-right option:</p>\n\n<div>\n  <nx-link nxStyle=\"icon-right\">\n    <a routerLink=\"/documentation\"\n      ><nx-icon name=\"arrow-right\" aria-hidden=\"true\"></nx-icon> Next</a\n    >\n  </nx-link>\n</div>\n\n<p>\n  If you want to use a link with an icon and no text, you need to add an\n  icon-only option to remove unnecessary margins:\n</p>\n\n<div>\n  <nx-link nxStyle=\"icon-only\">\n    <a routerLink=\"/documentation\" aria-label=\"Next\"\n      ><nx-icon name=\"arrow-right\" aria-hidden=\"true\"></nx-icon\n    ></a>\n  </nx-link>\n</div>\n\n```\n\n"
      },
      {
        "heading": "black",
        "level": 3,
        "content": "\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Black link example\n */\n@Component({\n  selector: 'link-black-example',\n  templateUrl: './link-black-example.html',\n  styleUrls: ['./link-black-example.css'],\n  imports: [NxLinkComponent, RouterLink],\n})\nexport class LinkBlackExampleComponent {}\n\n```\n```html\n<nx-link nxStyle=\"black\">\n  <a routerLink=\"/documentation\">link</a>\n</nx-link>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'link-negative-example',\n  templateUrl: './link-negative-example.html',\n  styleUrls: ['./link-negative-example.css'],\n  imports: [NxLinkComponent, RouterLink],\n})\nexport class LinkNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-link nxStyle=\"negative\">\n    <a routerLink=\"/documentation\">link</a>\n  </nx-link>\n</div>\n\n```\n\n"
      },
      {
        "heading": "multiple modifiers",
        "level": 3,
        "content": "As mentioned earlier, multiple modifiers can be combined.\n\nHere's an example of a negative link with icon on the right side:\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Multiple modifiers example\n */\n@Component({\n  selector: 'link-multiple-example',\n  templateUrl: './link-multiple-example.html',\n  styleUrls: ['./link-multiple-example.css'],\n  imports: [NxLinkComponent, RouterLink, NxIconComponent],\n})\nexport class LinkMultipleExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-link nxStyle=\"negative icon-right\">\n    <a routerLink=\"/documentation\"\n      ><nx-icon name=\"user-o\" aria-hidden=\"true\"></nx-icon> Link</a\n    >\n  </nx-link>\n</div>\n\n```\n\n"
      },
      {
        "heading": "link within text",
        "level": 3,
        "content": "A link with `nxStyle=\"text\"` inherits the size and the line height of its text parent.\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Link within text example\n */\n@Component({\n  selector: 'link-within-text-example',\n  templateUrl: './link-within-text-example.html',\n  styleUrls: ['./link-within-text-example.css'],\n  imports: [NxCopytextComponent, NxLinkComponent, RouterLink],\n})\nexport class LinkWithinTextExampleComponent {}\n\n```\n```html\n<p nxCopytext=\"large\">\n  Lorem ipsum dolor sit amet,\n  <nx-link nxStyle=\"text\"><a routerLink=\"/documentation\">link</a></nx-link>\n  tempore voluptate voluptates.\n</p>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "list.md",
    "title": "List",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "default (unordered) list",
        "level": 4,
        "content": "\n```ts\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Unordered list example\n */\n@Component({\n  selector: 'list-unordered-example',\n  templateUrl: './list-unordered-example.html',\n  styleUrls: ['./list-unordered-example.css'],\n  imports: [NxListComponent],\n})\nexport class ListUnorderedExampleComponent {}\n\n```\n```html\n<ul nxList>\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n```\n\n"
      },
      {
        "heading": "simple ordered list",
        "level": 4,
        "content": "\n```ts\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Ordered list example\n */\n@Component({\n  selector: 'list-ordered-example',\n  templateUrl: './list-ordered-example.html',\n  styleUrls: ['./list-ordered-example.css'],\n  imports: [NxListComponent],\n})\nexport class ListOrderedExampleComponent {}\n\n```\n```html\n<ol nxList>\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ol>\n\n```\n\n"
      },
      {
        "heading": "ordered list with circles",
        "level": 4,
        "content": "\n```ts\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Ordered list with circles example\n */\n@Component({\n  selector: 'list-circles-example',\n  templateUrl: './list-circles-example.html',\n  styleUrls: ['./list-circles-example.css'],\n  imports: [NxListComponent],\n})\nexport class ListCirclesExampleComponent {}\n\n```\n```html\n<ol nxList=\"ordered-circle\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ol>\n\n```\n\n"
      },
      {
        "heading": "lists with icons",
        "level": 4,
        "content": "Custom icons are supported by means of the nxListIcon directive, which can be configured to display individual icons for each item of the list.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Lists with icons examples\n */\n@Component({\n  selector: 'list-icons-example',\n  templateUrl: './list-icons-example.html',\n  styleUrls: ['./list-icons-example.css'],\n  imports: [NxListComponent, NxListIconComponent],\n})\nexport class ListIconsExampleComponent {}\n\n```\n```html\n<ul nxList class=\"nx-margin-bottom-2m\">\n  <li nxListIcon=\"check\">Apples</li>\n  <li nxListIcon=\"close\">Oranges</li>\n  <li nxListIcon=\"exclamation-triangle\">Bananas</li>\n  <li>Normal</li>\n</ul>\n\n<ol nxList class=\"nx-margin-bottom-2m\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li nxListIcon=\"exclamation-triangle\">Bananas</li>\n</ol>\n\n<ol nxList=\"ordered-circle\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li nxListIcon=\"exclamation-triangle\">Bananas</li>\n</ol>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "list sizes",
        "level": 3,
        "content": "You can use the attribute `size` to set the size of the list. It can be one of these values: `s`, `m`. When it is not set, the list uses the size given in the `nxList` string, which defaults to `normal`.\n\n\n```ts\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title List sizes example\n */\n@Component({\n  selector: 'list-sizes-example',\n  templateUrl: './list-sizes-example.html',\n  styleUrls: ['./list-sizes-example.css'],\n  imports: [NxListComponent],\n})\nexport class ListSizesExampleComponent {}\n\n```\n```html\n<h3 class=\"nx-margin-bottom-s\">Size s</h3>\n<ul nxList size=\"s\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n<h3 class=\"nx-margin-bottom-s nx-margin-top-2m\">Size m</h3>\n<ul nxList size=\"m\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "list with different copytext sizes",
        "level": 3,
        "content": "The size can be one of these values: `xsmall`, `small`, `normal`. The default value is `normal`.\n\n\n```ts\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title List sizes copytext example\n */\n@Component({\n  selector: 'list-copytext-example',\n  templateUrl: './list-copytext-example.html',\n  styleUrls: ['./list-copytext-example.css'],\n  imports: [NxListComponent],\n})\nexport class ListCopytextExampleComponent {}\n\n```\n```html\n<h4 nxHeadline=\"subsection-small\">xsmall list:</h4>\n<ul nxList=\"xsmall\" class=\"nx-margin-bottom-2m\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n<h4 nxHeadline=\"subsection-small\">small list:</h4>\n<ul nxList=\"small\" class=\"nx-margin-bottom-2m\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n<h4 nxHeadline=\"subsection-small\">normal list:</h4>\n<ul nxList=\"normal\">\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n```\n\n\n</div>\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "list types",
        "level": 3,
        "content": "You can use the attribute `type` to apply predefined primary or secondary styles to your lists. The default value is `primary`.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title List type example\n */\n@Component({\n  selector: 'list-type-example',\n  templateUrl: './list-type-example.html',\n  styleUrls: ['./list-type-example.css'],\n  imports: [NxListComponent, NxListIconComponent],\n})\nexport class ListTypeExampleComponent {}\n\n```\n```html\n<h3 class=\"nx-margin-bottom-s\">Primary List</h3>\n<ul nxList>\n  <li>Primary list item with default dot</li>\n  <li nxListIcon=\"check\">Item with icon</li>\n</ul>\n\n<ol nxList=\"ordered-circle\" class=\"nx-margin-top-m\">\n  <li>Primary ordered list</li>\n  <li>With circle style</li>\n</ol>\n\n<h3 class=\"nx-margin-bottom-s nx-margin-top-2m\">Secondary List</h3>\n<ul nxList type=\"secondary\">\n  <li>Secondary list item with default dot</li>\n  <li nxListIcon=\"check\">Item with icon</li>\n</ul>\n\n<ol nxList=\"ordered-circle\" type=\"secondary\" class=\"nx-margin-top-m\">\n  <li>Secondary ordered list</li>\n  <li>With circle style</li>\n</ol>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "condensed list",
        "level": 3,
        "content": "By using attribute `condensed`, you can activate the condensed mode of the list. Use the style tokens to set the spacing. The normal list remains the same in `condensed` mode.\n\n\n```ts\nimport { NxHeadlineModule } from '@allianz/ng-aquila/headline';\nimport { NxListModule } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Condensed list example\n */\n@Component({\n  selector: 'list-condensed-example',\n  templateUrl: './list-condensed-example.html',\n  styleUrls: ['./list-condensed-example.css'],\n  imports: [NxHeadlineModule, NxListModule],\n})\nexport class ListCondensedExampleComponent {}\n\n```\n```html\n<h4 nxHeadline=\"subsection-small\">xsmall list:</h4>\n<ul nxList=\"xsmall\" class=\"nx-margin-bottom-2m\" condensed>\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n<h4 nxHeadline=\"subsection-small\">small list:</h4>\n<ul nxList=\"small\" class=\"nx-margin-bottom-2m\" condensed>\n  <li>Apples</li>\n  <li>Oranges</li>\n  <li>Bananas</li>\n</ul>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "inverse styling",
        "level": 3,
        "content": "Use the attribute `inverse` for lists on a dark background. When it is not set, the list follows the surface it is placed on (see `nxSurface`). The `negative` modifier of the `nxList` attribute is deprecated in favour of `inverse`.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse styling example\n */\n@Component({\n  selector: 'list-inverse-example',\n  templateUrl: './list-inverse-example.html',\n  styleUrls: ['./list-inverse-example.css'],\n  imports: [NxListComponent, NxListIconComponent],\n})\nexport class ListInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h3 class=\"nx-margin-bottom-s\">Primary List</h3>\n  <ul nxList inverse class=\"nx-margin-bottom-2m\">\n    <li nxListIcon=\"check\">Apples</li>\n    <li>Normal</li>\n  </ul>\n\n  <ol nxList inverse class=\"nx-margin-bottom-2m\">\n    <li>Apples</li>\n    <li>Oranges</li>\n  </ol>\n\n  <ol nxList=\"ordered-circle\" inverse class=\"nx-margin-bottom-2m\">\n    <li>Apples</li>\n    <li>Oranges</li>\n  </ol>\n\n  <h3 class=\"nx-margin-bottom-s\">Secondary List</h3>\n  <ol nxList=\"ordered-circle\" inverse type=\"secondary\">\n    <li>Apples</li>\n    <li>Oranges</li>\n  </ol>\n</div>\n\n```\n\n"
      },
      {
        "heading": "custom color of list items",
        "level": 3,
        "content": "You can change the color of the list item circles by overwriting the default color as shown in the example below.\n\n**Please make sure that your color scheme is in line with branding.**\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Custom list item color example\n */\n@Component({\n  selector: 'list-custom-color-example',\n  templateUrl: './list-custom-color-example.html',\n  styleUrls: ['./list-custom-color-example.css'],\n  imports: [NxListComponent, NxListIconComponent],\n})\nexport class ListCustomColorExampleComponent {}\n\n```\n```html\n<ul class=\"list--custom-color\" nxList=\"ordered-circle\">\n  <li>Apples</li>\n  <li nxListIcon=\"check\">Bananas</li>\n</ul>\n<ol nxList=\"ordered-circle\" class=\"nx-margin-top-s\">\n  <li>Strawberries</li>\n</ol>\n\n```\n\n"
      },
      {
        "heading": "list nesting",
        "level": 4,
        "content": "Lists can be nested within each other. You can combine simple ordered, circle ordered, unordered, and icon lists, including mixed types where different list styles are nested inside one another.\n\nNested ordered lists are numbered by level, using the dot as a level separator: a top level item reads `1.`, its children `1.1` and `1.2`. The trailing dot only appears on the top level, so nested items read `1.1` rather than `1.1.`. The `ordered-circle` variant always shows a plain number without a dot, as the number is displayed inside a circle.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { Component } from '@angular/core';\n\n/**\n * @title Nested lists\n */\n@Component({\n  selector: 'list-nesting-example',\n  templateUrl: './list-nesting-example.html',\n  styleUrls: ['./list-nesting-example.css'],\n  imports: [NxListComponent, NxListIconComponent],\n})\nexport class ListNestingExampleComponent {}\n\n```\n```html\n<div class=\"list-nesting-grid\">\n  <!-- Simple Ordered List -->\n  <div class=\"list-nesting-grid__item\">\n    <h3>Simple Ordered List</h3>\n    <ol nxList>\n      <li>\n        First item\n        <ol nxList>\n          <li>Nested item</li>\n          <li>Nested item</li>\n        </ol>\n      </li>\n      <li>Second item</li>\n      <li>Third item</li>\n    </ol>\n  </div>\n\n  <!-- Circle Ordered List -->\n  <div class=\"list-nesting-grid__item\">\n    <h3>Circle Ordered List</h3>\n    <ol nxList=\"ordered-circle\">\n      <li>\n        First item\n        <ol nxList=\"ordered-circle\">\n          <li>Nested item</li>\n          <li>Nested item</li>\n        </ol>\n      </li>\n      <li>Second item</li>\n      <li>Third item</li>\n    </ol>\n  </div>\n\n  <!-- Unordered List -->\n  <div class=\"list-nesting-grid__item\">\n    <h3>Unordered List</h3>\n    <ul nxList>\n      <li>\n        First item\n        <ul nxList>\n          <li>Nested item</li>\n          <li>Nested item</li>\n        </ul>\n      </li>\n      <li>Second item</li>\n      <li>Third item</li>\n    </ul>\n  </div>\n\n  <!-- Icon List -->\n  <div class=\"list-nesting-grid__item\">\n    <h3>Icon List</h3>\n    <ul nxList>\n      <li nxListIcon=\"check\">\n        First item\n        <ul nxList>\n          <li nxListIcon=\"check\">Nested item</li>\n          <li nxListIcon=\"check\">Nested item</li>\n        </ul>\n      </li>\n      <li nxListIcon=\"check\">Second item</li>\n      <li nxListIcon=\"check\">Third item</li>\n    </ul>\n  </div>\n\n  <!-- Mixed -->\n  <div class=\"list-nesting-grid__item\">\n    <h3>Mixed List</h3>\n    <ol nxList=\"ordered-circle\">\n      <li>\n        First item\n        <ol nxList>\n          <li>Nested item</li>\n          <li>Nested item</li>\n        </ol>\n      </li>\n      <li>Second item</li>\n      <li>Third item</li>\n    </ol>\n  </div>\n\n  <!-- Mixed -->\n  <div class=\"list-nesting-grid__item\">\n    <h3>Mixed List</h3>\n    <ul nxList>\n      <li>\n        First item\n        <ul nxList>\n          <li nxListIcon=\"check\">Nested item</li>\n          <li nxListIcon=\"check\">Nested item</li>\n        </ul>\n      </li>\n      <li>Second item</li>\n      <li>Third item</li>\n    </ul>\n  </div>\n</div>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "mask.md",
    "title": "Input Mask",
    "category": "components",
    "alias": [
      "input mask",
      "masked input"
    ],
    "sections": [
      {
        "heading": "overview",
        "level": 3,
        "content": "Input masks can be used to provide guidance to users when inputing long strings or numbers. Masks are often used for inputs like dates, long numbers and IBAN. The mask can be applied through `nxMask`.\n\nThe mask formatting is defined though a combination of the following values and additional separators:\n\n-   **0**: digits (0 to 9 numbers)\n-   **A**: letters (uppercase and lowercase), digits\n-   **S**: letters (uppercase and lowercase)\n\nThus, if you write `000-AAA` this specifies a mask that consists of three numbers and then three letters, with a separator in the middle.\n\n**Please note** that language specific characters (e.g. 'ä', 'ö', 'ü') are currently not supported.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport { Component } from '@angular/core';\n\n/**\n * @title Mask example\n */\n@Component({\n  selector: 'mask-example',\n  templateUrl: './mask-example.html',\n  styleUrls: ['./mask-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class MaskExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Time\">\n        <input nxInput nxMask=\"00:00:00\" />\n        <span nxFormfieldHint> Mask: 00:00:00 </span>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"ID\">\n        <input nxInput nxMask=\"SS-AAAAA\" />\n        <span nxFormfieldHint> Mask: SS-AAAAA </span>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Birthday\">\n        <input nxInput nxMask=\"00/00/0000\" />\n        <span nxFormfieldHint> Mask: 00/00/0000 </span>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "iban mask",
        "level": 3,
        "content": "`nxIbanMask` provides a mask for IBANs. The IBAN mask directive does some basic validation (e.g. regarding length and correctly placed characters), but is not able to verify if valid bank codes and account numbers are used. Lowercase letters are automatically converted to uppercase.\n\n**Important:** To use this, the peer dependency [ibantools](https://github.com/Simplify/ibantools) is needed.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxIbanMaskDirective, NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n} from '@angular/forms';\n\n/**\n * @title IBAN mask example\n */\n@Component({\n  selector: 'iban-mask-example',\n  templateUrl: './iban-mask-example.html',\n  styleUrls: ['./iban-mask-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    NxIbanMaskDirective,\n    NxButtonComponent,\n    JsonPipe,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class IbanMaskExampleComponent {\n  validatedMaskForm: FormGroup = new FormGroup({\n    maskInput: new FormControl('', {}),\n  });\n}\n\n```\n```html\n<form [formGroup]=\"validatedMaskForm\">\n  <nx-formfield label=\"IBAN\">\n    <input nxInput nxMask nxIbanMask formControlName=\"maskInput\" />\n    <nx-error nxFormfieldError> Error: Invalid format. </nx-error>\n  </nx-formfield>\n  <button nxButton=\"primary small\" type=\"submit\" class=\"nx-margin-bottom-s\">\n    submit\n  </button>\n</form>\n\nForm value: {{ validatedMaskForm.value | json }}<br />\nTestform: {{ validatedMaskForm.status | json }}<br />\nValidation errors: {{ validatedMaskForm.get('maskInput')?.errors | json }}<br />\n\n<p><strong>Try to enter some test IBANs:</strong></p>\n<p>\n  <strong>Germany:</strong> DE89 3704 0044 0532 0130 00<br />\n  <strong>Norway:</strong> NO93 8601 1117 947<br />\n  <strong>Malta:</strong> MT84 MALT 0110 0001 2345 MTLC AST0 01S\n</p>\n\n```\n\n"
      },
      {
        "heading": "custom separators",
        "level": 3,
        "content": "The default separators are `/`, `(`, `)`, `.`, `:`, `-`, `+`, `,` and space.\n\nWith `separators` you can set custom separators.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport { Component } from '@angular/core';\n\n/**\n * @title Custom separators example\n */\n@Component({\n  selector: 'mask-separators-example',\n  templateUrl: './mask-separators-example.html',\n  styleUrls: ['./mask-separators-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    NxFormfieldHintDirective,\n  ],\n})\nexport class MaskSeparatorsExampleComponent {\n  mask = '00-00 [00]';\n  separators = ['-', '[', ']', ' '];\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Masked input\">\n        <input nxInput [nxMask]=\"mask\" [separators]=\"separators\" />\n        <span nxFormfieldHint> Mask: {{ mask }} </span>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "drop separators in ngmodel",
        "level": 3,
        "content": "By default the value of your binding (ngModel/reactive forms) will include the separator characters of the mask. If you want to drop separators in this value, you can use the `dropSpecialCharacters` input.\n\nAn alternative way to get the value without separators is calling the `getUnmaskedValue()` function.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Drop special characters example\n */\n@Component({\n  selector: 'mask-drop-characters-example',\n  templateUrl: './mask-drop-characters-example.html',\n  styleUrls: ['./mask-drop-characters-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    FormsModule,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class MaskDropCharactersExampleComponent {\n  dateTimeDropped = '020618';\n  dateTimeValue = '020618';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Special characters dropped\">\n        <input\n          nxInput\n          nxMask=\"00/00/00 00:00:00\"\n          [(ngModel)]=\"dateTimeDropped\"\n          dropSpecialCharacters=\"true\"\n        />\n        <span nxFormfieldHint> 00/00/00 00:00:00 </span>\n        <nx-error nxFormfieldError> Error: Invalid format. </nx-error>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <p>Current value: {{ dateTimeDropped }}</p>\n    </div>\n  </div>\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Not dropped (default)\">\n        <input\n          nxInput\n          nxMask=\"00/00/00 00:00:00\"\n          [(ngModel)]=\"dateTimeValue\"\n          dropSpecialCharacters=\"false\"\n        />\n        <span nxFormfieldHint> 00/00/00 00:00:00 </span>\n        <nx-error nxFormfieldError> Error: Invalid format. </nx-error>\n      </nx-formfield>\n    </div>\n    <div nxCol=\"6\">\n      <p>Current value: {{ dateTimeValue }}</p>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "validation",
        "level": 3,
        "content": "Per default the mask is validated. It will send a `nxMaskLengthError`, if the lengths of input value and given mask do not match. The error carries `length` (how many characters the mask expects) and `actual` (how many were entered); both counts exclude separator characters, so they match what the user actually has to type.\n\nThe validation can be turned off via the `[validateMask]` input. In both cases you can add your custom validators (e.g. `required`) for the input.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Validation example\n */\n@Component({\n  selector: 'mask-validation-example',\n  templateUrl: './mask-validation-example.html',\n  styleUrls: ['./mask-validation-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxHeadlineComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    NxFormfieldHintDirective,\n    NxButtonComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    JsonPipe,\n  ],\n})\nexport class MaskValidationExampleComponent {\n  validatedMaskForm: FormGroup = new FormGroup({\n    maskInput: new FormControl('', {\n      validators: [Validators.required],\n    }),\n  });\n\n  unvalidatedMaskForm: FormGroup = new FormGroup({\n    maskInput2: new FormControl('', {}),\n  });\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <h4 nxHeadline=\"subsection-xsmall\">With mask validation</h4>\n\n      <form [formGroup]=\"validatedMaskForm\">\n        <nx-formfield label=\"Time\">\n          <input nxInput nxMask=\"00:00:00\" formControlName=\"maskInput\" />\n          <span nxFormfieldHint> Mask: 00:00:00 </span>\n          @if (validatedMaskForm.get('maskInput')?.hasError('required')) {\n            <nx-error nxFormfieldError> This field is required. </nx-error>\n          }\n          @if (\n            validatedMaskForm.get('maskInput')?.hasError('nxMaskLengthError')\n          ) {\n            <nx-error nxFormfieldError> Please enter a valid length. </nx-error>\n          }\n        </nx-formfield>\n        <button\n          nxButton=\"primary small\"\n          type=\"submit\"\n          class=\"nx-margin-bottom-s\"\n        >\n          submit\n        </button>\n      </form>\n\n      Form value: {{ validatedMaskForm.value | json }}<br />\n      Testform: {{ validatedMaskForm.status | json }} <br />\n      Validation errors: {{ validatedMaskForm.get('maskInput')?.errors | json }}\n    </div>\n    <div nxCol=\"6\">\n      <h4 nxHeadline=\"subsection-xsmall\">Without mask validation</h4>\n\n      <form [formGroup]=\"unvalidatedMaskForm\">\n        <nx-formfield label=\"Time\">\n          <input\n            nxInput\n            nxMask=\"00:00:00\"\n            formControlName=\"maskInput2\"\n            validateMask=\"false\"\n          />\n          <span nxFormfieldHint> Mask: 00:00:00 </span>\n        </nx-formfield>\n        <button\n          nxButton=\"primary small\"\n          type=\"submit\"\n          class=\"nx-margin-bottom-s\"\n        >\n          submit\n        </button>\n      </form>\n\n      Form value: {{ unvalidatedMaskForm.value | json }}<br />\n      Testform: {{ unvalidatedMaskForm.status | json }}\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "case sensitivity",
        "level": 3,
        "content": "Optionally you can use the `nxConvertTo` input to automatically capitalize or lower the mask input value.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { MaskConversionTypes, NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Set case example\n */\n@Component({\n  selector: 'mask-case-example',\n  templateUrl: './mask-case-example.html',\n  styleUrls: ['./mask-case-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxRadioGroupComponent,\n    FormsModule,\n    NxRadioComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class MaskCaseExampleComponent {\n  modelVal!: string;\n  templateModel: MaskConversionTypes = 'upper';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-radio-group [(ngModel)]=\"templateModel\">\n        <nx-radio value=\"upper\" class=\"nx-margin-bottom-m\">Upper case</nx-radio>\n        <nx-radio value=\"lower\">Lower case</nx-radio>\n      </nx-radio-group>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"Input\">\n        <input\n          nxInput\n          nxMask=\"AAAA\"\n          [nxConvertTo]=\"templateModel\"\n          [(ngModel)]=\"modelVal\"\n        />\n        <span nxFormfieldHint> Mask: AAAA </span>\n        <nx-error nxFormfieldError> Error: Invalid format. </nx-error>\n      </nx-formfield>\n      Model value: {{ modelVal }}<br />\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "deactivate mask",
        "level": 3,
        "content": "You can optionally deactivate the mask controls using `deactivateMask` property. Activating this option will return the mask value as is without any validations.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxMaskDirective } from '@allianz/ng-aquila/mask';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Mask Deactivate example\n */\n@Component({\n  selector: 'mask-deactivate-example',\n  templateUrl: './mask-deactivate-example.html',\n  styleUrls: ['./mask-deactivate-example.css'],\n  imports: [\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxRadioGroupComponent,\n    FormsModule,\n    NxRadioComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxMaskDirective,\n    NxFormfieldHintDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n  ],\n})\nexport class MaskDeactivateExampleComponent {\n  modelVal = 'SSAAAAA';\n  templateModel = 'deactivate';\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"6\">\n      <nx-radio-group [(ngModel)]=\"templateModel\">\n        <nx-radio value=\"activate\" class=\"nx-margin-bottom-m\"\n          >Activate</nx-radio\n        >\n        <nx-radio value=\"deactivate\">De-activate</nx-radio>\n      </nx-radio-group>\n    </div>\n    <div nxCol=\"6\">\n      <nx-formfield label=\"ID\">\n        <input\n          nxInput\n          nxMask=\"SS-AAAAA\"\n          [deactivateMask]=\"templateModel === 'deactivate' ? true : false\"\n          [(ngModel)]=\"modelVal\"\n        />\n        <span nxFormfieldHint>\n          Mask: SS-AAAAA (mask deactivated:\n          {{ templateModel === 'deactivate' ? true : false }})\n        </span>\n        <nx-error nxFormfieldError> Error: Invalid format. </nx-error>\n      </nx-formfield>\n      Model value: {{ modelVal }}<br />\n    </div>\n  </div>\n</div>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "menu.md",
    "title": "Menu",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "menu button",
        "level": 2,
        "content": "The `[nxMenuButton]` component is meant to be ether a top level link or a expandable item that reveals the next navigation level. A `[nxMenuButton]` can also contain a icon that is placed in front of the label. The icon needs to be marked with the `[nxMenuButtonIcon]` directive. When marked as 'expandable' the button will display a chevron icon to indicate its `expanded` state.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMenuButtonComponent,\n  NxMenuButtonIconDirective,\n} from '@allianz/ng-aquila/menu';\nimport { Component } from '@angular/core';\n\n/**\n * @title Menu button variations\n */\n@Component({\n  selector: 'menu-button-example',\n  templateUrl: 'menu-button-example.html',\n  styleUrls: ['menu-button-example.css'],\n  imports: [NxMenuButtonComponent, NxIconComponent, NxMenuButtonIconDirective],\n})\nexport class MenuButtonExampleComponent {\n  primaryExpanded = false;\n  secondaryExpanded = false;\n}\n\n```\n```html\n<button nxMenuButton menuButtonType=\"root\" type=\"button\">\n  <nx-icon name=\"file\" size=\"s\" nxMenuButtonIcon aria-hidden=\"true\"></nx-icon>\n  Option 1 (root level)\n</button>\n\n<button\n  nxMenuButton\n  menuButtonType=\"root\"\n  expandable\n  [expanded]=\"primaryExpanded\"\n  (click)=\"primaryExpanded = !primaryExpanded\"\n  type=\"button\"\n>\n  <nx-icon name=\"file\" size=\"s\" nxMenuButtonIcon aria-hidden=\"true\"></nx-icon>\n  Option 2 (root level, expandable)\n</button>\n\n<button nxMenuButton menuButtonType=\"nested\" type=\"button\">\n  Option 2.1 (nested level)\n</button>\n\n<button\n  nxMenuButton\n  menuButtonType=\"nested\"\n  expandable\n  [expanded]=\"secondaryExpanded\"\n  (click)=\"secondaryExpanded = !secondaryExpanded\"\n  type=\"button\"\n>\n  Option 2.2 (nested level, expandable)\n</button>\n\n```\n\n"
      },
      {
        "heading": "menu link",
        "level": 2,
        "content": "Every menu has a number of links. Those are usually displayed below an expanded `[nxMenuButton]` button. The `[nxMenuLink]` directive can be applied to a `<a>` tag to get the correct styling.\n\n**Please note that the `[nxMenuLink]` should be used inside an `<nx-menu>` component.**\n\n\n```ts\nimport { NxMenuLinkDirective } from '@allianz/ng-aquila/menu';\nimport { Component } from '@angular/core';\n\n/**\n * @title Menu links\n */\n@Component({\n  selector: 'menu-link-example',\n  templateUrl: 'menu-link-example.html',\n  styleUrls: ['menu-link-example.css'],\n  imports: [NxMenuLinkDirective],\n})\nexport class MenuLinkExampleComponent {}\n\n```\n```html\n<a nxMenuLink href=\"javascript:void(0)\">Menu link A</a>\n\n<a nxMenuLink href=\"javascript:void(0)\">Menu link B</a>\n\n<a nxMenuLink href=\"javascript:void(0)\">Menu link C</a>\n\n```\n\n"
      },
      {
        "heading": "menu item",
        "level": 2,
        "content": "**Please note that the`[nxMenuItem]` should be used inside an `<nx-menu>` component.**\n\nThe `[nxMenuItem]` is used to structure sections within the menu. It can contain a series of `[nxMenuLink]` aswell as any other content. The item supports two different indentation levels, e.g. menues with icons in the buttons can use the large indentation while others can use the default.\n\n\n```ts\nimport {\n  NxMenuButtonComponent,\n  NxMenuItemDirective,\n  NxMenuLinkDirective,\n} from '@allianz/ng-aquila/menu';\nimport { Component } from '@angular/core';\n\ninterface MenuChild {\n  label: string;\n}\n\ninterface MenuItem {\n  label: string;\n  expanded?: boolean;\n  children?: MenuChild[];\n}\n\n/**\n * @title Menu item\n */\n@Component({\n  selector: 'menu-item-example',\n  templateUrl: 'menu-item-example.html',\n  styleUrls: ['menu-item-example.css'],\n  imports: [NxMenuButtonComponent, NxMenuItemDirective, NxMenuLinkDirective],\n})\nexport class MenuItemExampleComponent {\n  menuData: MenuItem[] = [\n    {\n      label: 'Option 1',\n      expanded: false,\n      children: [\n        {\n          label: 'Option 1.1',\n        },\n        {\n          label: 'Option 1.2',\n        },\n        {\n          label: 'Option 1.3',\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      expanded: false,\n      children: [\n        {\n          label: 'Option 2.1',\n        },\n        {\n          label: 'Option 2.2',\n        },\n        {\n          label: 'Option 2.3',\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n    },\n  ];\n\n  onClick(item: any) {\n    item.expanded = !item.expanded;\n  }\n}\n\n```\n```html\n@for (item of menuData; track item) {\n  <button\n    nxMenuButton\n    (click)=\"onClick(item)\"\n    menuButtonType=\"root\"\n    [expandable]=\"!!item.children\"\n    nxMenuItem\n    [expanded]=\"item.expanded\"\n    type=\"button\"\n  >\n    {{ item.label }}\n  </button>\n  @if (item.children && item.expanded) {\n    <div nxMenuItem>\n      @for (child of item.children; track child) {\n        <a nxMenuLink href=\"javascript:void(0)\">{{ child.label }}</a>\n      }\n    </div>\n  }\n}\n\n```\n\n\nHere is an example using the large indentation with buttons including icons:\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMenuButtonComponent,\n  NxMenuButtonIconDirective,\n  NxMenuItemDirective,\n  NxMenuLinkDirective,\n} from '@allianz/ng-aquila/menu';\nimport { Component } from '@angular/core';\n\ninterface MenuChild {\n  label: string;\n}\n\ninterface MenuItem {\n  label: string;\n  expanded?: boolean;\n  icon: string;\n  children?: MenuChild[];\n}\n\n/**\n * @title Menu item with large indentation and button icons\n */\n@Component({\n  selector: 'menu-item-with-icons-example',\n  templateUrl: 'menu-item-with-icons-example.html',\n  styleUrls: ['menu-item-with-icons-example.css'],\n  imports: [\n    NxMenuButtonComponent,\n    NxMenuItemDirective,\n    NxIconComponent,\n    NxMenuButtonIconDirective,\n    NxMenuLinkDirective,\n  ],\n})\nexport class MenuItemWithIconsExampleComponent {\n  menuData: MenuItem[] = [\n    {\n      label: 'Option 1',\n      expanded: false,\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 1.1',\n        },\n        {\n          label: 'Option 1.2',\n        },\n        {\n          label: 'Option 1.3',\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 2.1',\n        },\n        {\n          label: 'Option 2.2',\n        },\n        {\n          label: 'Option 2.3',\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n      icon: 'user-o',\n    },\n  ];\n\n  onClick(item: MenuItem) {\n    item.expanded = !item.expanded;\n  }\n}\n\n```\n```html\n@for (item of menuData; track item) {\n  <button\n    nxMenuButton\n    (click)=\"onClick(item)\"\n    menuButtonType=\"root\"\n    [expandable]=\"!!item.children\"\n    nxMenuItem\n    [expanded]=\"item.expanded\"\n    type=\"button\"\n  >\n    <nx-icon\n      nxMenuButtonIcon\n      [name]=\"item.icon\"\n      size=\"s\"\n      aria-hidden=\"true\"\n    ></nx-icon>\n    {{ item.label }}\n  </button>\n  @if (item.children && item.expanded) {\n    <div nxMenuItem=\"l\">\n      @for (child of item.children; track child) {\n        <a nxMenuLink href=\"javascript:void(0)\">{{ child.label }}</a>\n      }\n    </div>\n  }\n}\n\n```\n\n"
      },
      {
        "heading": "menu container",
        "level": 2,
        "content": "The `<nx-menu>` component provides a collapsible container that covers the whole viewport below the header. It can contain any content, but usually combinations of at least `[nxMenuLink]`, `[nxMenuItem]` and `[nxMenuButton]`. The component can be toggled via the `toggle()` function. Here is a full example using a burger button to open the menu and the `<nx-tree>` to render the nested items.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxMenuButtonComponent,\n  NxMenuButtonIconDirective,\n  NxMenuComponent,\n  NxMenuItemDirective,\n  NxMenuLinkDirective,\n} from '@allianz/ng-aquila/menu';\nimport {\n  NxFlatTreeControl,\n  NxFlatTreeNode,\n  NxTreeComponent,\n  NxTreeFlatDataSource,\n  NxTreeNode,\n  NxTreeNodeActionItem,\n  NxTreeNodeComponent,\n  NxTreeNodeDefDirective,\n  NxTreeNodeToggleDirective,\n} from '@allianz/ng-aquila/tree';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * This interface defines a single node of the trees data structure.\n */\nexport interface MyTreeNode extends NxTreeNode {\n  children?: MyTreeNode[];\n  label?: string;\n  icon?: string;\n  query?: any;\n}\n\n/** Flat node with expandable and level information */\ninterface MyFlatTreeNode extends NxFlatTreeNode {\n  label?: string;\n  query?: any;\n  icon?: string;\n}\n\n/**\n * @title Complete menu example\n */\n@Component({\n  selector: 'menu-example',\n  templateUrl: './menu-example.html',\n  styleUrls: ['menu-example.css'],\n  imports: [\n    NxPlainButtonComponent,\n    NxIconComponent,\n    NxMenuComponent,\n    NxTreeComponent,\n    NxTreeNodeDefDirective,\n    NxTreeNodeComponent,\n    NxMenuItemDirective,\n    NxMenuLinkDirective,\n    NxTreeNodeActionItem,\n    RouterLink,\n    NxMenuButtonComponent,\n    NxTreeNodeToggleDirective,\n    NxMenuButtonIconDirective,\n    NxButtonComponent,\n  ],\n})\nexport class MenuExampleComponent {\n  navigationData: MyTreeNode[] = [\n    {\n      label: 'Option 1',\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 1.1',\n          children: [\n            {\n              label: 'Option 1.2.1',\n              query: { a: '1.1.1' },\n            },\n            {\n              label: 'Option 1.1.2',\n              query: { a: '1.1.2' },\n            },\n            {\n              label: 'Option 1.1.3',\n              query: { a: '1.1.3' },\n            },\n          ],\n        },\n        {\n          label: 'Option 1.2',\n          children: [\n            {\n              label: 'Option 1.2.1',\n              query: { a: '1.2.1' },\n            },\n            {\n              label: 'Option 1.2.2',\n              query: { a: '1.2.2' },\n            },\n            {\n              label: 'Option 1.2.3',\n              query: { a: '1.2.3' },\n            },\n          ],\n        },\n        {\n          label: 'Option 1.3',\n          children: [\n            {\n              label: 'Option 1.3.1',\n              query: { a: '1.3.1' },\n            },\n            {\n              label: 'Option 1.3.2',\n              query: { a: '1.3.2' },\n            },\n            {\n              label: 'Option 1.3.3',\n              query: { a: '1.3.3' },\n            },\n          ],\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      icon: 'user-o',\n      children: [\n        {\n          label: 'Option 2.1',\n          children: [\n            {\n              label: 'Option 2.2.1',\n              query: { a: '2.1.1' },\n            },\n            {\n              label: 'Option 2.1.2',\n              query: { a: '2.1.2' },\n            },\n            {\n              label: 'Option 2.1.3',\n              query: { a: '2.1.3' },\n            },\n          ],\n        },\n        {\n          label: 'Option 2.2',\n          children: [\n            {\n              label: 'Option 2.2.1',\n              query: { a: '2.2.1' },\n            },\n            {\n              label: 'Option 2.2.2',\n              query: { a: '2.2.2' },\n            },\n            {\n              label: 'Option 2.2.3',\n              query: { a: '2.2.3' },\n            },\n          ],\n        },\n        {\n          label: 'Option 2.3',\n          children: [\n            {\n              label: 'Option 2.3.1',\n              query: { a: '2.3.1' },\n            },\n            {\n              label: 'Option 2.3.2',\n              query: { a: '2.3.2' },\n            },\n            {\n              label: 'Option 2.3.3',\n              query: { a: '2.3.3' },\n            },\n          ],\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n      icon: 'user-o',\n      children: [\n        {\n          label: 'Option 3.1',\n          query: { a: '3.1' },\n        },\n        {\n          label: 'Option 3.2',\n          query: { a: '3.2' },\n        },\n        {\n          label: 'Option 3.3',\n          query: { a: '3.3' },\n        },\n      ],\n    },\n  ];\n\n  _dataSource: NxTreeFlatDataSource<MyTreeNode, MyFlatTreeNode>;\n\n  _treeControl: NxFlatTreeControl<MyFlatTreeNode>;\n\n  constructor() {\n    this._treeControl = new NxFlatTreeControl();\n    this._dataSource = new NxTreeFlatDataSource(\n      this._treeControl,\n      this.navigationData,\n    );\n  }\n\n  _hasChild = (_: number, node: NxFlatTreeNode) => node.expandable;\n  _isLink = (_: number, node: MyFlatTreeNode) => node.query;\n}\n\n```\n```html\n<button nxPlainButton (click)=\"menu.toggle()\" aria-label=\"open menu\">\n  <nx-icon name=\"bars\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<nx-menu #menu>\n  <nx-tree [dataSource]=\"_dataSource\" [treeControl]=\"_treeControl\">\n    <nx-tree-node *nxTreeNodeDef=\"let node; when: _isLink\" nxMenuItem=\"l\">\n      <a\n        nxMenuLink\n        nxTreeNodeActionItem\n        routerLink=\"./\"\n        [queryParams]=\"node.query\"\n      >\n        {{ node.label }}\n      </a>\n    </nx-tree-node>\n    <nx-tree-node *nxTreeNodeDef=\"let node; when: _hasChild\">\n      <button\n        nxMenuButton\n        nxTreeNodeToggle\n        nxTreeNodeActionItem\n        [nxMenuItem]=\"node.icon ? 's' : 'l'\"\n        expandable\n        [expanded]=\"_treeControl.isExpanded(node)\"\n        [menuButtonType]=\"node.level === 0 ? 'root' : 'nested'\"\n        type=\"button\"\n      >\n        @if (node.icon) {\n          <nx-icon nxMenuButtonIcon [name]=\"node.icon\" size=\"s\"></nx-icon>\n        }\n        {{ node.label }}\n      </button>\n    </nx-tree-node>\n  </nx-tree>\n\n  <button nxButton (click)=\"menu.toggle()\" class=\"close-menu\" type=\"button\">\n    close menu\n  </button>\n</nx-menu>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "message.md",
    "title": "Notifications",
    "category": "components",
    "alias": [
      "message banner",
      "toast",
      "snackbar",
      "alert",
      "info",
      "error",
      "warning",
      "success",
      "notification",
      "message"
    ],
    "sections": [
      {
        "heading": "message",
        "level": 3,
        "content": "Use this component to present a contextual message with different color coding. You can pass in any content you consider appropriate.\n\nBy default, the message is rendered inside a filled, bordered surface. Set the `contained` input to `false` to render it as plain icon and text instead, without a background or border.\n"
      },
      {
        "heading": "contexts",
        "level": 4,
        "content": "Available contexts: `info | positive | warning | critical`. The context drives the colors and the\nicon, and is shared by the toast and the banner below.\n\n<div class=\"docs-deprecation-warning\">\n<code>error</code> and <code>success</code> are deprecated aliases of <code>critical</code> and <code>positive</code>. They still work, but use the new names for new code.\n</div>\n\n\n```ts\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Plain message example\n */\n@Component({\n  selector: 'message-plain-example',\n  templateUrl: './message-plain-example.html',\n  styleUrls: ['./message-plain-example.css'],\n  imports: [NxMessageComponent],\n})\nexport class MessagePlainExampleComponent {}\n\n```\n```html\n<nx-message context=\"info\" [contained]=\"false\" class=\"nx-margin-bottom-xs\">\n  Lorem ipsum dolor sit amet consectetur adipisicing elit.\n</nx-message>\n<nx-message context=\"critical\" [contained]=\"false\" class=\"nx-margin-bottom-xs\">\n  Lorem ipsum dolor sit amet consectetur adipisicing elit.\n</nx-message>\n<nx-message context=\"positive\" [contained]=\"false\" class=\"nx-margin-bottom-xs\">\n  Lorem ipsum dolor sit amet consectetur adipisicing elit.\n</nx-message>\n<nx-message context=\"warning\" [contained]=\"false\">\n  Lorem ipsum dolor sit amet consectetur adipisicing elit.\n</nx-message>\n\n```\n\n"
      },
      {
        "heading": "contained message",
        "level": 3,
        "content": "Per default (or by explicitly setting `contained` to `true`), the message is rendered inside a filled, bordered surface, colored according to its context.\n\n<div class=\"docs-hide-a1\">\n\nBesides the message component you can also use `<nx-error>` for error messages. The NxErrorComponent has a different look in expert applications (for a global configuration please have a look at the [expert module](./documentation/config/overview)). We recommend using _nx-error_, especially for use cases where you need to support both styles.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Contained message example\n */\n@Component({\n  selector: 'message-contained-example',\n  templateUrl: './message-contained-example.html',\n  styleUrls: ['./message-contained-example.css'],\n  imports: [NxHeadlineComponent, NxMessageComponent, NxErrorComponent],\n})\nexport class MessageContainedExampleComponent {}\n\n```\n```html\n<nx-message context=\"info\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio odit\n  voluptas assumenda iure ab quaerat aliquid harum facere rerum excepturi\n  accusantium commodi vel libero, nesciunt maxime minus exercitationem iste\n  quod.\n</nx-message>\n\n<nx-message context=\"positive\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio odit\n  voluptas assumenda iure ab quaerat aliquid harum facere rerum excepturi\n  accusantium commodi vel libero, nesciunt maxime minus exercitationem iste\n  quod.\n</nx-message>\n\n<nx-message context=\"warning\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio odit\n  voluptas assumenda iure ab quaerat aliquid harum facere rerum excepturi\n  accusantium commodi vel libero, nesciunt maxime minus exercitationem iste\n  quod.\n</nx-message>\n\n<h5 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n  Using nx-message:\n</h5>\n\n<nx-message context=\"critical\">\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio odit\n  voluptas assumenda iure ab quaerat aliquid harum facere rerum excepturi\n  accusantium commodi vel libero, nesciunt maxime minus exercitationem iste\n  quod.\n</nx-message>\n\n<br />\n\n<h5 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">\n  Using nx-error:\n</h5>\n\n<nx-error class=\"nx-margin-bottom-xs\">\n  This is an error message for a customer facing application (B2C).\n</nx-error>\n\n<nx-error appearance=\"text\">\n  This is an error message for an internal application (B2B/B2E).\n</nx-error>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "contexts",
        "level": 4,
        "content": "The contained message supports the same contexts as the plain message.\n\n\n```ts\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Message contexts example\n */\n@Component({\n  selector: 'message-contexts-example',\n  templateUrl: './message-contexts-example.html',\n  styleUrls: ['./message-contexts-example.css'],\n  imports: [NxMessageComponent],\n})\nexport class MessageContextsExampleComponent {}\n\n```\n```html\n<nx-message context=\"info\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">Info context:</span><br />\n  Place your notification message here.\n</nx-message>\n\n<nx-message context=\"positive\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">Positive context:</span><br />\n  Place your notification message here.\n</nx-message>\n\n<nx-message context=\"warning\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">Warning context:</span><br />\n  Place your notification message here.\n</nx-message>\n\n<nx-message context=\"critical\">\n  <span class=\"nx-font-weight-bold\">Critical context:</span><br />\n  Place your notification message here.\n</nx-message>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "context icon",
        "level": 4,
        "content": "Every context renders an icon in front of the content by default (`showContextIcon` defaults to `true`).\nSet `showContextIcon` to `false` to leave it out.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Message context icon example\n */\n@Component({\n  selector: 'message-show-context-icon-example',\n  templateUrl: './message-show-context-icon-example.html',\n  styleUrls: ['./message-show-context-icon-example.css'],\n  imports: [NxMessageComponent, NxButtonComponent],\n})\nexport class MessageShowContextIconExampleComponent {\n  showContextIcon = true;\n}\n\n```\n```html\n<nx-message context=\"positive\" class=\"nx-margin-bottom-xs\">\n  <span class=\"nx-font-weight-bold\">With context icon:</span><br />\n  The icon is shown by default.\n</nx-message>\n\n<nx-message\n  context=\"positive\"\n  [showContextIcon]=\"false\"\n  class=\"nx-margin-bottom-m\"\n>\n  <span class=\"nx-font-weight-bold\">Without context icon:</span><br />\n  Set <code>showContextIcon</code> to <code>false</code> to leave the icon out.\n</nx-message>\n\n<nx-message\n  context=\"info\"\n  [showContextIcon]=\"showContextIcon\"\n  class=\"nx-margin-bottom-xs\"\n>\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Place your notification message here.\n</nx-message>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  (click)=\"showContextIcon = !showContextIcon\"\n>\n  {{ showContextIcon ? 'Hide' : 'Show' }} context icon\n</button>\n\n```\n\n"
      },
      {
        "heading": "closable",
        "level": 4,
        "content": "You can add a close icon to the message component by using the `closable` input. A `(close)` event is emitted when the user clicks on the close icon.\n\nThe close button is only rendered on a contained message. Combining `closable` with `contained=\"false\"` leaves the message plain and without a close button.\n\nWhen using a closable message please set an `aria-label` on the close button via the `closeButtonLabel` property. If you don't set the `aria-label` explicitly it will have **'Close dialog'** as default value. As the default is in English, in almost all cases you should explicitly set the label.\n\nWhen displaying notifications we recommend that you use `aria-live` combined with the [LiveAnnouncer](https://material.angular.io/cdk/a11y/api) in order to be accessibility compliant.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Closable example\n */\n@Component({\n  selector: 'message-closable-example',\n  templateUrl: './message-closable-example.html',\n  styleUrls: ['./message-closable-example.css'],\n  imports: [NxMessageComponent, NxButtonComponent],\n})\nexport class MessageClosableExampleComponent {\n  closed = false;\n}\n\n```\n```html\n@if (!closed) {\n  <nx-message\n    context=\"info\"\n    closable=\"true\"\n    (close)=\"closed = true\"\n    class=\"nx-margin-bottom-xs\"\n  >\n    <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio odit\n    voluptas assumenda iure ab quaerat aliquid harum facere rerum excepturi\n    accusantium commodi vel libero, nesciunt maxime minus exercitationem iste\n    quod.\n  </nx-message>\n}\n@if (closed) {\n  <p>A close event was emitted!</p>\n}\n<button nxButton (click)=\"closed = !closed\" type=\"button\">Toggle closed</button>\n\n```\n\n"
      },
      {
        "heading": "toast message",
        "level": 3,
        "content": "Message Toast is a small popup **which should only contain success or informative messages**. It has a title, that should be short and descriptive. A Message Toast appears center-aligned from the bottom of the application. Per default it disappears after 3 seconds, but please keep in mind that the show duration should be set dependent on the length of the message.\n\nThe `NxMessageToastModule` provides a service for displaying these Message Toasts: `NxMessageToastService`.\n\n**Please make sure you have imported the cdk-a11y and cdk-overlay stylesheets** as shown below, so that the message toasts get displayed correctly:\n\n```scss\n@import '@angular/cdk/overlay-prebuilt.css';\n@import '@angular/cdk/a11y-prebuilt.css';\n```\n"
      },
      {
        "heading": "showing a message toast",
        "level": 4,
        "content": "The `NxMessageToastService` offers multiple options for showing a message toast: by passing a text string, a template or a component.\n\n```ts\n// Simple message toast with a custom text\nlet toastRef: NxMessageToastRef = messageToastService.open('My message toast text');\n\n// Message toast with a custom template\nlet toastRef: NxMessageToastRef = messageToastService.openFromTemplate(myTemplateRef);\n\n// Message toast from a custom component\nlet toastRef: NxMessageToastRef = messageToastService.openFromComponent(myComponent);\n```\n\nIn all cases a `NxMessageToastRef` is returned. It can be used for closing the message toast or subscribing to its closing. This behaviour is shown in the following examples.\n\nIf using `openFromComponent` you can access data from the component by injecting the `NX_MESSAGE_TOAST_COMPONENT_DATA` token:\n\n```ts\nimport { Component, Inject } from '@angular/core';\nimport { NX_MESSAGE_TOAST_COMPONENT_DATA } from '@allianz/ng-aquila/message-toast';\n\n@Component({\n    selector: 'your-message-toast',\n    template: 'passed in {{ data.name }}',\n})\nexport class YourMessageToast {\n    constructor(@Inject(NX_MESSAGE_TOAST_COMPONENT_DATA) readonly data: any) {}\n}\n```\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMessageToastRef,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n  selector: 'simple-message-toast',\n  standalone: true,\n  template: `<div class=\"u-text-center\">\n    <h3>Message from a component</h3>\n    <p>This text comes from the SimpleMessageToastComponent.</p>\n  </div>`,\n})\nexport class SimpleMessageToastComponent {}\n\n/**\n * @title Opening example\n */\n@Component({\n  selector: 'message-toast-opening-example',\n  templateUrl: './message-toast-opening-example.html',\n  styleUrls: ['./message-toast-opening-example.css'],\n  providers: [NxMessageToastService],\n  imports: [NxButtonComponent],\n})\nexport class MessageToastOpeningExampleComponent {\n  readonly toastText = 'A success message toast with a custom text.';\n\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  componentMessageToastRef?: NxMessageToastRef;\n\n  constructor(private readonly messageToastService: NxMessageToastService) {}\n\n  openFromText() {\n    this.messageToastService.open(this.toastText, {\n      context: 'positive',\n      duration: 5000,\n    });\n  }\n\n  openFromTemplate() {\n    this.messageToastService.openFromTemplate(this.templateRef, {\n      announcementMessage:\n        'You see an info message. It will disappear in 3000 ms.',\n    });\n  }\n\n  openFromComponent(): void {\n    this.componentMessageToastRef = this.messageToastService.openFromComponent(\n      SimpleMessageToastComponent,\n      {\n        duration: 5000,\n      },\n    );\n  }\n}\n\n```\n```html\n<button nxButton (click)=\"openFromText()\" class=\"nx-margin-right-s\">\n  open from text\n</button>\n<button nxButton (click)=\"openFromTemplate()\" class=\"nx-margin-right-s\">\n  open from template\n</button>\n<button nxButton (click)=\"openFromComponent()\">open from component</button>\n\n<ng-template #template>\n  <strong>Information</strong> <br />\n  You see an info message toast (from a template). It will disappear in 3000 ms.\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "configuration",
        "level": 4,
        "content": "Every message toast is opened with a default `NxMessageToastConfig` value. You can pass your own configuration as a second optional argument when opening a message toast. By passing your custom configuration you can change the context of the message toast and set a duration. For more information on the configurable parameters check out the [notifcation API](./documentation/notifications/api).\n\nIn the following example the toast message does not close automatically, but in a programmatic way. By pasing a `duration: 0` via the toast message config the toast won't close automatically,\n\n```ts\nexport const myCustomOptions: NxMessageToastConfig = {\n    duration: 0,\n    context: 'positive',\n    announcementMessage: 'Yay, you see a positive message toast',\n};\n\nlet toastRef = messageToastService.open('My message toast text.', myCustomOptions);\n```\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMessageToastConfig,\n  NxMessageToastRef,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\nexport const myCustomConfig: NxMessageToastConfig = {\n  duration: 0,\n  context: 'positive',\n  announcementMessage: 'Yay, you see a success message toast',\n};\n\n/**\n * @title Custom Settings example\n */\n@Component({\n  selector: 'message-toast-custom-settings-example',\n  templateUrl: './message-toast-custom-settings-example.html',\n  styleUrls: ['./message-toast-custom-settings-example.css'],\n  providers: [NxMessageToastService],\n  imports: [NxButtonComponent],\n})\nexport class MessageToastCustomSettingsExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  toastRef!: NxMessageToastRef;\n\n  constructor(private readonly messageToastService: NxMessageToastService) {}\n\n  open() {\n    this.toastRef = this.messageToastService.openFromTemplate(\n      this.templateRef,\n      myCustomConfig,\n    );\n  }\n\n  close() {\n    if (this.toastRef) {\n      this.toastRef.dismiss();\n    }\n  }\n}\n\n```\n```html\n<button nxButton (click)=\"open()\" class=\"nx-margin-right-xs\">\n  open message toast\n</button>\n<button nxButton (click)=\"close()\">close message toast</button>\n\n<ng-template #template>\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Yay, you see a success message toast. Great job!\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "contexts",
        "level": 4,
        "content": "Toasts support `info | positive | warning | critical` (the deprecated `success` alias also works). Unlike `nx-message`, toasts do not support `regular` or the deprecated `error`.\n\nThe context icon is shown by default (`showContextIcon: true`). Set `showContextIcon` to `false` in the config to\nleave it out.\n\n**Accessibility:** Any warning or critical message toast needs a permanent representation on the\npage, and it must be connected to the error-causing element via `aria-describedby` where applicable.\nA message toast is a temporary element, so having important information in a toast alone is an\naccessibility issue.\n\n<div class=\"docs-hide-ndbx\">\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMessageToastContext,\n  NxMessageToastService,\n} from '@allianz/ng-aquila/message';\nimport { Component, inject } from '@angular/core';\n\n/**\n * @title Message toast contexts example\n */\n@Component({\n  selector: 'message-toast-contexts-example',\n  templateUrl: './message-toast-contexts-example.html',\n  styleUrls: ['./message-toast-contexts-example.css'],\n  providers: [NxMessageToastService],\n  imports: [NxButtonComponent],\n})\nexport class MessageToastContextsExampleComponent {\n  readonly contexts: NxMessageToastContext[] = [\n    'info',\n    'positive',\n    'warning',\n    'critical',\n  ];\n\n  showContextIcon = true;\n\n  private readonly messageToastService = inject(NxMessageToastService);\n\n  open(context: NxMessageToastContext) {\n    this.messageToastService.open(`A ${context} message toast.`, {\n      context,\n      showContextIcon: this.showContextIcon,\n      duration: 3000,\n      announcementMessage: `A ${context} message toast.`,\n    });\n  }\n}\n\n```\n```html\n@for (context of contexts; track context) {\n  <button\n    nxButton=\"primary small\"\n    type=\"button\"\n    class=\"nx-margin-right-xs nx-margin-bottom-xs\"\n    (click)=\"open(context)\"\n  >\n    {{ context }}\n  </button>\n}\n\n<br />\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  (click)=\"showContextIcon = !showContextIcon\"\n>\n  {{ showContextIcon ? 'Hide' : 'Show' }} context icon\n</button>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "global configuration",
        "level": 4,
        "content": "You can also overwrite the default message toast options by using the `NX_MESSAGE_TOAST_DEFAULT_CONFIG` injection token as shown in the code snippet below:\n\n```ts\n@NgModule({\n  providers: [\n    {\n      provide: NX_MESSAGE_TOAST_DEFAULT_CONFIG,\n      useValue: { duration: 7000, context: 'info' }\n    }\n  ]\n})\n```\n"
      },
      {
        "heading": "wrapper id",
        "level": 5,
        "content": "All message toasts of an app are rendered inside one `aria-live` wrapper element, which carries the id `nx-toast-message-region` by default. Every independently bootstrapped Angular app creates its own wrapper, so when several apps run on the same page (e.g. in a micro frontend setup) that id ends up on more than one element, which breaks `aria-labelledby` / `aria-describedby` relationships for screen readers.\n\nIn that case give each app its own id via the `wrapperId` of the global configuration:\n\n```ts\n{\n  provide: NX_MESSAGE_TOAST_DEFAULT_CONFIG,\n  useValue: { wrapperId: 'my-app-toast-message-region' }\n}\n```\n"
      },
      {
        "heading": "aria-live and politeness",
        "level": 5,
        "content": "Message toasts are announced via an `aria-live` region. By default, their politeness level is set to `polite`. This can be changed by overwriting the `politeness` in the message toast configuration. The `polite` value is recommended, as then the toast messages are not presented while the user is active on the page (e.g. while the user is listening to the text of another element), but at the next opportunity (e.g. when the user pauses typing).\n"
      },
      {
        "heading": "announcement messages",
        "level": 5,
        "content": "If there is no `announcementMessage` specified the screen reader will read the content of the message toast. **Please pay attention that some screen readers don't read the text out loud when a message toast is opened from a template**. In these cases you **must** define an `announcementMessage` in order to guarantee compatibility with all screen readers.\n"
      },
      {
        "heading": "a11y styles",
        "level": 5,
        "content": "**Please make sure you have imported the cdk-a11y styles**, so that `aria-live` messages don't get displayed on the webpage. The message toasts use the Cdk LiveAnnouncer, which needs these styles to work properly. It is best to import them in your global application stylesheets as follows:\n\n```scss\n@import '@angular/cdk/a11y-prebuilt.css';\n```\n\nYou can find more information on aria-live regions and the available politeness values [here](https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-live).\n"
      },
      {
        "heading": "banner message",
        "level": 3,
        "content": "The notification banner is a static element that shifts the content of the page down in order to communicate information to the user. Per default, message banners have a close icon button in the top right, which can be disabled by the `closable` input.\n\nAnalogously to the Inline Notification, a message banner emits a `close` event when being closed by the close icon button. The example below shows how the `close` event can be used for hiding a message banner.\n"
      },
      {
        "heading": "contexts",
        "level": 4,
        "content": "Banners support the same [contexts](#contexts) as `nx-message`, including the deprecated `error` and\n`success` aliases, except for `regular`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxMessageBannerComponent } from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Notification banner example\n */\n@Component({\n  selector: 'message-banner-example',\n  templateUrl: './message-banner-example.html',\n  styleUrls: ['./message-banner-example.css'],\n  imports: [NxMessageBannerComponent, NxButtonComponent],\n})\nexport class MessageBannerExampleComponent {\n  infoBanner = true;\n  positiveBanner = true;\n  warningBanner = true;\n  criticalBanner = true;\n\n  get allBannersVisible(): boolean {\n    return (\n      this.infoBanner &&\n      this.positiveBanner &&\n      this.warningBanner &&\n      this.criticalBanner\n    );\n  }\n\n  showAllBanners() {\n    this.infoBanner = true;\n    this.positiveBanner = true;\n    this.warningBanner = true;\n    this.criticalBanner = true;\n  }\n}\n\n```\n```html\n@if (infoBanner) {\n  <nx-message-banner\n    closeButtonLabel=\"Close info message banner\"\n    (close)=\"infoBanner = false\"\n    class=\"nx-margin-bottom-xs\"\n  >\n    <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n    You are logged in as Max Mustermann.\n  </nx-message-banner>\n}\n@if (positiveBanner) {\n  <nx-message-banner\n    context=\"positive\"\n    closeButtonLabel=\"Close positive message banner\"\n    (close)=\"positiveBanner = false\"\n    class=\"nx-margin-bottom-xs\"\n  >\n    <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n    Your changes have been saved.\n  </nx-message-banner>\n}\n@if (warningBanner) {\n  <nx-message-banner\n    context=\"warning\"\n    closeButtonLabel=\"Close warning message banner\"\n    (close)=\"warningBanner = false\"\n    class=\"nx-margin-bottom-xs\"\n  >\n    <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n    Your password expires in three days!\n  </nx-message-banner>\n}\n@if (criticalBanner) {\n  <nx-message-banner\n    context=\"critical\"\n    closeButtonLabel=\"Close critical message banner\"\n    (close)=\"criticalBanner = false\"\n    class=\"nx-margin-bottom-xs\"\n  >\n    <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n    The object could not be found.\n  </nx-message-banner>\n}\n\n<button\n  [disabled]=\"allBannersVisible\"\n  nxButton\n  type=\"button\"\n  (click)=\"showAllBanners()\"\n>\n  Show all message banners\n</button>\n\n```\n\n"
      },
      {
        "heading": "context icon",
        "level": 4,
        "content": "Banners follow the theme when `showContextIcon` is not set: no icon under A1, an icon under the other\nthemes. Set `showContextIcon` explicitly to override that in either direction.\n"
      },
      {
        "heading": "closable",
        "level": 4,
        "content": "Banners are closable by default. Set `closable` to `false` for a banner the user cannot dismiss —\nthe close button is left out and the reserved inline-end padding goes with it.\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "actions",
        "level": 4,
        "content": "Project action buttons into a banner with the `nxMessageBannerActions` directive. The\n`actionLayout` input decides where they go: \n- `horizontal` (default) places them on the same line as\nthe content, next to the close button\n- `vertical` puts them on their own line below the content.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  BANNER_ACTION_LAYOUT,\n  NxMessageBannerActions,\n  NxMessageBannerComponent,\n} from '@allianz/ng-aquila/message';\nimport { Component } from '@angular/core';\n\n/**\n * @title Notification banner configuration example\n */\n@Component({\n  selector: 'message-banner-configuration-example',\n  templateUrl: './message-banner-configuration-example.html',\n  styleUrls: ['./message-banner-configuration-example.css'],\n  imports: [\n    NxMessageBannerComponent,\n    NxMessageBannerActions,\n    NxButtonComponent,\n    NxPlainButtonComponent,\n  ],\n})\nexport class MessageBannerConfigurationExampleComponent {\n  showContextIcon = true;\n  closable = true;\n  actionLayout: BANNER_ACTION_LAYOUT = 'horizontal';\n\n  toggleLayout() {\n    this.actionLayout =\n      this.actionLayout === 'horizontal' ? 'vertical' : 'horizontal';\n  }\n}\n\n```\n```html\n<nx-message-banner\n  context=\"info\"\n  [showContextIcon]=\"showContextIcon\"\n  [closable]=\"closable\"\n  [actionLayout]=\"actionLayout\"\n  closeButtonLabel=\"Close message banner\"\n  class=\"nx-margin-bottom-m\"\n>\n  <span class=\"nx-font-weight-bold\">Notification title:</span><br />\n  Place your notification message here.\n\n  <div nxMessageBannerActions>\n    <button nxPlainButton size=\"m\" type=\"button\">Button</button>\n  </div>\n</nx-message-banner>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"showContextIcon = !showContextIcon\"\n>\n  {{ showContextIcon ? 'Hide' : 'Show' }} context icon\n</button>\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"closable = !closable\"\n>\n  {{ closable ? 'Hide' : 'Show' }} close button\n</button>\n<button nxButton=\"secondary small\" type=\"button\" (click)=\"toggleLayout()\">\n  Switch to\n  {{ actionLayout === 'horizontal' ? 'vertical' : 'horizontal' }} actions\n</button>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "modal.md",
    "title": "Modal",
    "category": "components",
    "alias": [
      "dialog",
      "popup"
    ],
    "sections": [
      {
        "heading": "modal opening",
        "level": 3,
        "content": "A modal can be opened by using the `open` method of the service and passing an optional configuration object as a second parameter as shown below. The return object of the open function is a reference to the opened modal, which can be used for closing the modal or subscribing to its closing events.\n\n```ts\nconst myDialogData: MyDialogData = { /* some data */ };\n\nconst myDialogRef: NxModalRef<MyDialogComponent, MyDialogResult> = this.dialogService.open(MyDialogComponent, {\n    width: '600px',\n    data: myDialogData,\n});\n\n// always support undefined result type for easily closable dialogs\nmyDialogRef.beforeClosed().subscribe(result => {\n    console.log(`Dialog result: ${result}`);\n});\n\n// result parameter is optional, defaults to undefined\nmyDialogRef.close('some dialog result');\n```\n\nThe example below shows how the modal dialog can be opened **with a template** and **with a component**.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxDialogService, NxModalRef } from '@allianz/ng-aquila/modal';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n  selector: 'simple-modal',\n  standalone: true,\n  template: `<div class=\"u-text-center\">\n    <h3>Modal Dialog from a component</h3>\n    <p>Any content can be included in a modal view and styled as necessary.</p>\n  </div>`,\n})\nexport class SimpleModalComponent {}\n\n/**\n * @title Modal opening example\n */\n@Component({\n  selector: 'modal-opening-example',\n  templateUrl: './modal-opening-example.html',\n  styleUrls: ['./modal-opening-example.css'],\n  imports: [NxButtonComponent, NxHeadlineComponent, NxCopytextComponent],\n})\nexport class ModalOpeningExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n  @ViewChild('template2') templateRef2!: TemplateRef<any>;\n\n  templateDialogRef?: NxModalRef<any>;\n  componentDialogRef?: NxModalRef<SimpleModalComponent>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openFromTemplate(): void {\n    this.templateDialogRef = this.dialogService.open(this.templateRef, {\n      ariaLabel: 'A simple dialog',\n    });\n  }\n\n  openFromComponent(): void {\n    this.componentDialogRef = this.dialogService.open(SimpleModalComponent, {\n      ariaLabel: 'A simple dialog',\n      showCloseIcon: true,\n    });\n  }\n\n  closeTemplateDialog() {\n    this.templateDialogRef?.close();\n  }\n}\n\n```\n```html\n<button nxButton class=\"nx-margin-right-xs\" (click)=\"openFromTemplate()\">\n  open from template\n</button>\n<button nxButton (click)=\"openFromComponent()\">open from component</button>\n\n<ng-template #template>\n  <div class=\"centered-content\">\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Modal from a template\n    </h3>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n    <div class=\"two-button-container\">\n      <button\n        nxButton=\"secondary\"\n        (click)=\"closeTemplateDialog()\"\n        class=\"nx-margin-right-s\"\n      >\n        Cancel\n      </button>\n      <button nxButton (click)=\"closeTemplateDialog()\">Proceed</button>\n    </div>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "modal closing",
        "level": 3,
        "content": "You can close a dialog in three different ways:\n\n-   set `NxModalConfig.closeIconButton` to `true` to show a standard close button, returning `undefined` as result.\n-   call `NxModalRef.close()` programatically, optionally with a result parameter. Returns `undefined` by default.\n-   use `nxModalClose` directive on an action button, optionally with a result input. Returns `undefined` by default.\n\nThe dialog result can be observed by subscribing to `NxModalRef.beforeClosed()` and `NxModalRef.afterClosed()` observables.\n\nThe three different closing variants are demonstrated in the example below:\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n  NxModalRef,\n} from '@allianz/ng-aquila/modal';\nimport {\n  ChangeDetectorRef,\n  Component,\n  TemplateRef,\n  ViewChild,\n} from '@angular/core';\n\ntype MyDialogResult = 'proceed' | 'cancel';\n\n/**\n * @title Modal closing example\n */\n@Component({\n  selector: 'modal-closing-example',\n  templateUrl: './modal-closing-example.html',\n  styleUrls: ['./modal-closing-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxModalContentDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxModalCloseDirective,\n  ],\n})\nexport class ModalClosingExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  dialogRef?: NxModalRef<any, MyDialogResult | undefined>; // cancel and backdrop click return undefined\n\n  actionResult?: MyDialogResult;\n\n  constructor(\n    private readonly dialogService: NxDialogService,\n    private readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  openFromTemplate(): void {\n    this.dialogRef = this.dialogService.open(this.templateRef, {\n      ariaLabel: 'A simple modal',\n      showCloseIcon: true,\n    });\n\n    this.dialogRef.afterClosed().subscribe((result) => {\n      this.actionResult = result;\n      this._cdr.markForCheck();\n    });\n  }\n\n  closeDialog(result: MyDialogResult): void {\n    this.dialogRef?.close(result);\n  }\n}\n\n```\n```html\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"openFromTemplate()\"\n>\n  open modal\n</button>\n\n<br />\n\nThe user clicked on: {{ actionResult }}\n\n<ng-template #template>\n  <div nxModalContent>\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Modal from a template\n    </h3>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      (click)=\"closeDialog('cancel')\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      nxModalClose=\"proceed\"\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "closing behaviour",
        "level": 3,
        "content": "By default, the modal will close if the user clicks on the backdrop or hits the ESC key. These options can be disabled by using the `disableClose` parameter of the `NxModalConfig` as shown in the example below:\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n} from '@allianz/ng-aquila/modal';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n/**\n * @title Closing behaviour example\n */\n@Component({\n  selector: 'modal-closing-behaviour-example',\n  templateUrl: './modal-closing-behaviour-example.html',\n  styleUrls: ['./modal-closing-behaviour-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxModalContentDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxModalCloseDirective,\n  ],\n})\nexport class ModalClosingBehaviourExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openFromTemplate(): void {\n    this.dialogService.open(this.templateRef, {\n      ariaLabel: 'A simple modal',\n      disableClose: true,\n    });\n  }\n}\n\n```\n```html\n<button nxButton class=\"nx-margin-right-xs\" (click)=\"openFromTemplate()\">\n  open modal\n</button>\n\n<br />\n\n<ng-template #template>\n  <div nxModalContent>\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      No close on click outside\n    </h3>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This modal view will not close on click outside or ESC. You need to use\n      the action buttons.\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      nxModalClose\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      nxModalClose\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "modal content directives",
        "level": 3,
        "content": "You can separate the dialog body into dialog content and dialog actions by using the directives `nxModalContent` and `nxModalActions`. `nxModalActions` is container for action buttons placed at the bottom of the dialog. `nxModalTitle` can be used to put the title above or inside the `nxModalContent`. Placed inside `nxModalContent` the headline will scroll with the content, placed on top it will stay fixed. The example below shows how to apply them for a Dialog with a disclaimer look.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n  NxModalRef,\n  NxModalTitleComponent,\n} from '@allianz/ng-aquila/modal';\nimport { ChangeDetectorRef, Component, TemplateRef } from '@angular/core';\n\ntype MyDialogResult = 'agree' | 'disagree';\n\n/**\n * @title Modal with content and actions example\n */\n@Component({\n  selector: 'modal-content-actions-example',\n  templateUrl: './modal-content-actions-example.html',\n  styleUrls: ['./modal-content-actions-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxModalContentDirective,\n    NxModalTitleComponent,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxModalCloseDirective,\n  ],\n})\nexport class ModalContentActionsExampleComponent {\n  dialogRef?: NxModalRef<any, MyDialogResult | undefined>; // cancel and backdrop click return undefined\n\n  actionResult?: MyDialogResult;\n\n  constructor(\n    private readonly dialogService: NxDialogService,\n    private readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  openFromTemplate(templateRef: TemplateRef<any>): void {\n    this.dialogRef = this.dialogService.open(templateRef, {\n      ariaLabel: 'A modal with content and actions sections',\n      showCloseIcon: true,\n    });\n\n    this.dialogRef.afterClosed().subscribe((result) => {\n      this.actionResult = result;\n      this._cdr.markForCheck();\n    });\n  }\n}\n\n```\n```html\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"openFromTemplate(contentTitle)\"\n>\n  open content title dialog\n</button>\n\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"openFromTemplate(topTitle)\"\n>\n  open top title dialog\n</button>\n<br />\n\nThe user clicked on: {{ actionResult }}\n\n<ng-template #contentTitle>\n  <div nxModalContent tabindex=\"0\">\n    <h3 nxModalTitle class=\"nx-modal-margin-bottom\">Modal with Disclaimer</h3>\n    <p nxCopytext class=\"nx-margin-bottom-s nx-font-weight-bold\">\n      Conditions and Disclaimer\n    </p>\n    <p nxCopytext class=\"nx-margin-bottom-m\">\n      Some copy text that describes what this overlay is all about. This text\n      provides the user with additional information and lorem ipsum dolor is\n      max. three lines long.\n    </p>\n    <p nxCopytext class=\"nx-margin-bottom-s nx-font-weight-bold\">\n      In case of an accident\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      nxModalClose=\"disagree\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Disagree\n    </button>\n    <button\n      nxModalClose=\"agree\"\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n    >\n      Agree\n    </button>\n  </div>\n</ng-template>\n\n<ng-template #topTitle>\n  <h3 nxModalTitle class=\"nx-modal-margin-bottom\">Modal with Disclaimer</h3>\n  <div nxModalContent tabindex=\"0\">\n    <p nxCopytext class=\"nx-margin-bottom-s nx-font-weight-bold\">\n      Conditions and Disclaimer\n    </p>\n    <p nxCopytext class=\"nx-margin-bottom-m\">\n      Some copy text that describes what this overlay is all about. This text\n      provides the user with additional information and lorem ipsum dolor is\n      max. three lines long.\n    </p>\n    <p nxCopytext class=\"nx-margin-bottom-s nx-font-weight-bold\">\n      In case of an accident\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      nxModalClose=\"disagree\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Disagree\n    </button>\n    <button\n      nxModalClose=\"agree\"\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n    >\n      Agree\n    </button>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "fixed width",
        "level": 3,
        "content": "By default the width of the modal dialog is `736px`. You can change this behavior by setting the `width` property in the `NxModalConfig`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxDialogService } from '@allianz/ng-aquila/modal';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n/**\n * @title Fixed width example\n */\n@Component({\n  selector: 'modal-fixed-width-example',\n  templateUrl: './modal-fixed-width-example.html',\n  styleUrls: ['./modal-fixed-width-example.css'],\n  imports: [NxButtonComponent, NxCopytextComponent],\n})\nexport class ModalFixedWidthExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openFromTemplate(): void {\n    this.dialogService.open(this.templateRef, {\n      showCloseIcon: true,\n      ariaLabel: 'A modal with fixed width',\n      width: '350px',\n    });\n  }\n}\n\n```\n```html\n<button nxButton (click)=\"openFromTemplate()\">open fixed width modal</button>\n\n<ng-template #template>\n  <p nxCopytext>I am a modal dialog with a smaller width of 350px.</p>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "modal with status",
        "level": 3,
        "content": "Below is an example of how to create a modal with status by using the `nxModalTitle`\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxStatusIconType } from '@allianz/ng-aquila/icon';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalAppearance,\n  NxModalContentDirective,\n  NxModalRef,\n  NxModalTitleComponent,\n} from '@allianz/ng-aquila/modal';\nimport { ChangeDetectionStrategy, Component, TemplateRef } from '@angular/core';\n\n/**\n * @title Modal status example\n */\n@Component({\n  selector: 'modal-status-example',\n  templateUrl: './modal-status-example.html',\n  styleUrls: ['./modal-status-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxButtonComponent,\n    NxModalTitleComponent,\n    NxModalContentDirective,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n  ],\n})\nexport class ModalStatusExampleComponent {\n  dialogRef?: NxModalRef<any>;\n\n  status!: NxStatusIconType;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  open(\n    status: NxStatusIconType,\n    appearance: NxModalAppearance,\n    template: TemplateRef<any>,\n  ): void {\n    this.status = status;\n    this.dialogRef = this.dialogService.open(template, {\n      ariaLabel: 'A simple modal',\n      showCloseIcon: true,\n      appearance,\n    });\n  }\n}\n\n```\n```html\n<div>Default</div>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('positive', 'default', template)\"\n>\n  positive\n</button>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('info', 'default', template)\"\n>\n  info\n</button>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('critical', 'default', template)\"\n>\n  critical\n</button>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('warning', 'default', template)\"\n>\n  warning\n</button>\n<div>Expert</div>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('positive', 'expert', expertTemplate)\"\n>\n  positive\n</button>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('info', 'expert', expertTemplate)\"\n>\n  info\n</button>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('critical', 'expert', expertTemplate)\"\n>\n  critical\n</button>\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open('warning', 'expert', expertTemplate)\"\n>\n  warning\n</button>\n\n<ng-template #template>\n  <h2 nxModalTitle [status]=\"status\">Modal heading</h2>\n  <div nxModalContent>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions class=\"status-action\">\n    <button\n      (click)=\"dialogRef?.close()\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n      (click)=\"dialogRef?.close()\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n<ng-template #expertTemplate>\n  <h2 nxModalTitle [status]=\"status\">Modal heading</h2>\n  <div nxModalContent>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions class=\"status-action\">\n    <button\n      (click)=\"dialogRef?.close()\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small-medium secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small-medium\"\n      type=\"button\"\n      (click)=\"dialogRef?.close()\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "modal with custom icon in header",
        "level": 3,
        "content": "Below is an example of how to add a custom icon in the modal header by placing an `nx-icon` inside the `nxModalTitle`. The default title layout stacks the icon above the heading; to place it in front of the heading, override the title's `flex-direction` to `row` (as the example does with its `.custom-icon-title--inline` class).\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalContentDirective,\n  NxModalRef,\n  NxModalTitleComponent,\n} from '@allianz/ng-aquila/modal';\nimport { ChangeDetectionStrategy, Component, TemplateRef } from '@angular/core';\n\n/**\n * @title Modal with custom icon in header example\n */\n@Component({\n  selector: 'modal-custom-icon-example',\n  templateUrl: './modal-custom-icon-example.html',\n  styleUrls: ['./modal-custom-icon-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxButtonComponent,\n    NxModalTitleComponent,\n    NxModalContentDirective,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxIconComponent,\n  ],\n})\nexport class ModalCustomIconExampleComponent {\n  dialogRef?: NxModalRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  open(template: TemplateRef<any>): void {\n    this.dialogRef = this.dialogService.open(template, {\n      ariaLabel: 'A simple modal',\n      showCloseIcon: true,\n    });\n  }\n}\n\n```\n```html\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open(template)\"\n>\n  Open modal with custom icon\n</button>\n<button nxButton class=\"nx-margin-bottom-m\" (click)=\"open(inlineTemplate)\">\n  Open modal with icon in front of heading\n</button>\n\n<ng-template #template>\n  <h2 nxModalTitle>\n    <nx-icon name=\"certificate-papers\" size=\"2xl\" aria-hidden=\"true\"></nx-icon>\n    Modal heading\n  </h2>\n  <div nxModalContent>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      (click)=\"dialogRef?.close()\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n      (click)=\"dialogRef?.close()\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n<ng-template #inlineTemplate>\n  <h2 nxModalTitle class=\"custom-icon-title--inline\">\n    <nx-icon name=\"certificate-papers\" size=\"2xl\" aria-hidden=\"true\"></nx-icon>\n    Modal heading\n  </h2>\n  <div nxModalContent>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      (click)=\"dialogRef?.close()\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n      (click)=\"dialogRef?.close()\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1\">\n\nIn NDBX, use `size=\"auto\"` so the icon follows the heading's font size. The fixed icon sizes are illustrative sizes there (`xl` and `2xl` are both 96px).\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalContentDirective,\n  NxModalRef,\n  NxModalTitleComponent,\n} from '@allianz/ng-aquila/modal';\nimport { ChangeDetectionStrategy, Component, TemplateRef } from '@angular/core';\n\n/**\n * @title Modal with custom icon in header (NDBX) example\n */\n@Component({\n  selector: 'modal-custom-icon-ndbx-example',\n  templateUrl: './modal-custom-icon-ndbx-example.html',\n  styleUrls: ['./modal-custom-icon-ndbx-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxButtonComponent,\n    NxModalTitleComponent,\n    NxModalContentDirective,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxIconComponent,\n  ],\n})\nexport class ModalCustomIconNdbxExampleComponent {\n  dialogRef?: NxModalRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  open(template: TemplateRef<any>): void {\n    this.dialogRef = this.dialogService.open(template, {\n      ariaLabel: 'A simple modal',\n      showCloseIcon: true,\n    });\n  }\n}\n\n```\n```html\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"open(template)\"\n>\n  Open modal with custom icon\n</button>\n<button nxButton class=\"nx-margin-bottom-m\" (click)=\"open(inlineTemplate)\">\n  Open modal with icon in front of heading\n</button>\n\n<ng-template #template>\n  <h2 nxModalTitle>\n    <nx-icon name=\"ai-suggestion\" size=\"auto\" aria-hidden=\"true\"></nx-icon>\n    Modal heading\n  </h2>\n  <div nxModalContent>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      (click)=\"dialogRef?.close()\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n      (click)=\"dialogRef?.close()\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n<ng-template #inlineTemplate>\n  <h2 nxModalTitle class=\"custom-icon-title--inline\">\n    <nx-icon name=\"ai-suggestion\" size=\"auto\" aria-hidden=\"true\"></nx-icon>\n    Modal heading\n  </h2>\n  <div nxModalContent>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This content is placed within the <code>nx-modal-container</code>\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      (click)=\"dialogRef?.close()\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n      (click)=\"dialogRef?.close()\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "fullscreen",
        "level": 3,
        "content": "Set `fullscreen` to `true` to show the modal in fullscreen. When using `fullscreen` the `width`, `height`, `maxWidth` and `maxHeight` are overwritten and any `position` overrides are ignored.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n} from '@allianz/ng-aquila/modal';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n/**\n * @title Fullscreen example\n */\n@Component({\n  selector: 'modal-fullscreen-example',\n  templateUrl: './modal-fullscreen-example.html',\n  styleUrls: ['./modal-fullscreen-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxModalContentDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxModalCloseDirective,\n  ],\n})\nexport class ModalFullscreenExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openFromTemplate(): void {\n    this.dialogService.open(this.templateRef, {\n      fullscreen: true,\n      showCloseIcon: true,\n      ariaLabel: 'A fullscreen modal',\n    });\n  }\n}\n\n```\n```html\n<button nxButton (click)=\"openFromTemplate()\">open fullscreen modal</button>\n\n<ng-template #template>\n  <div nxModalContent tabindex=\"0\">\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Modal with Disclaimer\n    </h3>\n\n    <p nxCopytext class=\"nx-margin-bottom-s nx-font-weight-bold\">\n      Conditions and Disclaimer\n    </p>\n    <p nxCopytext class=\"nx-margin-bottom-m\">\n      Some copy text that describes what this overlay is all about. This text\n      provides the user with additional information and lorem ipsum dolor is\n      max. three lines long.\n    </p>\n    <p nxCopytext class=\"nx-margin-bottom-s nx-font-weight-bold\">\n      In case of an accident\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n    <p nxCopytext class=\"nx-modal-margin-bottom\">\n      Some copy text that describes what this overlay is all about. Tdiam nonumy\n      eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n      voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem\n      ipsum dolor sit amet, consetetur sadipscing et justo duo dolores et ea\n      rebum. Lorem ipsum dolor sit amet, consetetur sadipscing Some copy text\n      that describes what this overlay is all about. Tdiam nonumy eirmod tempor\n      invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\n      vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor\n      sit amet, consetetur sadipscing et justo duo dolores et ea rebum.\n    </p>\n  </div>\n  <div nxModalActions>\n    <button\n      nxModalClose=\"disagree\"\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Disagree\n    </button>\n    <button\n      nxModalClose=\"agree\"\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n    >\n      Agree\n    </button>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "configuration",
        "level": 3,
        "content": "Every dialog is opened with a default configuration. By passing a second parameter (`NxModalConfig` object) when opening a modal you can overwrite this configuration. Configurable are settings such as the dialog width and height, closing on backdrop click, adding additional classses to the dialog container etc. For more details on all configurable properties check out the `NxModalConfig` documentation [here](./documentation/modal/api#NxModalConfig).\n\nYou can also share data with your dialog via the configuration object:\n\n```ts\nlet dialogRef = dialog.open(YourDialog, {\n    data: { name: 'Max Mustermann' },\n});\n```\n\nIn your dialog you can access this data by injecting the `NX_MODAL_DATA` token:\n\n```ts\nimport { Component, Inject } from '@angular/core';\nimport { NX_MODAL_DATA } from '@allianz/ng-aquila/modal';\n\n@Component({\n    selector: 'your-dialog',\n    template: 'passed in {{ data.name }}',\n})\nexport class YourDialog {\n    constructor(@Inject(NX_MODAL_DATA) readonly data: any) {}\n}\n```\n\nIf you are using a template for the content of your dialog the data object will be available implicitly in your template as shown in the example below:\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxDialogService, NxModalRef } from '@allianz/ng-aquila/modal';\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\ninterface MyDialogData {\n  name: string;\n}\n\n/**\n * @title Data injection example\n */\n@Component({\n  selector: 'modal-data-injection-example',\n  templateUrl: './modal-data-injection-example.html',\n  styleUrls: ['./modal-data-injection-example.css'],\n  imports: [NxButtonComponent, NxHeadlineComponent, NxCopytextComponent],\n})\nexport class ModalDataInjectionExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  dialogRef?: NxModalRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openFromTemplate(): void {\n    const myDialogData: MyDialogData = { name: 'Max Mustermann' };\n\n    this.dialogRef = this.dialogService.open(this.templateRef, {\n      showCloseIcon: true,\n      ariaLabel: 'A modal with injected data',\n      data: myDialogData,\n    });\n  }\n}\n\n```\n```html\n<button nxButton class=\"nx-margin-right-xs\" (click)=\"openFromTemplate()\">\n  open modal with injected data\n</button>\n\n<ng-template #template let-data>\n  <div>\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Modal with injected data\n    </h3>\n    <p nxCopytext>Injected data: {{ data.name }}</p>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "injector, providers and component bindings",
        "level": 3,
        "content": "Use `injector` to set the parent injector of the modal and its content. It takes precedence over `viewContainerRef.injector`.\n\nUse `providers` to add providers to the injector of the modal content without creating a child injector. They can override `NxModalRef`, `NX_MODAL_DATA`, `NxModalContainer`. In a template modal, providers can't depend on other services (`deps`, `inject()`) unless `injector` is passed. \n\n<div class=\"docs-info\">\n  <strong>Note: </strong>\n  When the modal closes, <code>ngOnDestroy</code> runs on everything the providers hand out, including an existing service passed with <code>useValue</code> or <code>useExisting</code>. To share an existing service with the modal, pass <code>injector</code> instead.\n</div>\n\nUse `bindings` to apply `inputBinding`, `outputBinding` and `twoWayBinding` when the content component is created.\n\nAlternatively, set inputs after opening with `setInput()` on `NxModalRef.componentRef`, Don't combine the two: `setInput()` and `inputBinding` or `twoWayBinding`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n} from '@allianz/ng-aquila/modal';\nimport {\n  Component,\n  inject,\n  InjectionToken,\n  Injector,\n  input,\n  inputBinding,\n  model,\n  output,\n  outputBinding,\n  signal,\n  TemplateRef,\n  twoWayBinding,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nconst COVERAGE = new InjectionToken<string>('COVERAGE');\n\n@Component({\n  selector: 'modal-component-bindings-content',\n  template: `\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      {{ coverage }} policy {{ policyNumber() }}\n    </h3>\n    <div nxModalContent>\n      <nx-formfield label=\"Policy holder\">\n        <input nxInput [(ngModel)]=\"holder\" />\n      </nx-formfield>\n    </div>\n    <div nxModalActions>\n      <button\n        nxButton=\"secondary\"\n        nxModalClose\n        type=\"button\"\n        class=\"nx-margin-right-s\"\n      >\n        Cancel\n      </button>\n      <button\n        nxButton\n        nxModalClose\n        type=\"button\"\n        [disabled]=\"!holder()\"\n        (click)=\"confirmed.emit(policyNumber())\"\n      >\n        Confirm\n      </button>\n    </div>\n  `,\n  imports: [\n    NxButtonComponent,\n    FormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxHeadlineComponent,\n    NxModalContentDirective,\n    NxModalActionsDirective,\n    NxModalCloseDirective,\n  ],\n})\nexport class ModalComponentBindingsContentComponent {\n  readonly policyNumber = input.required<string>();\n  readonly holder = model('');\n  readonly confirmed = output<string>();\n\n  protected readonly coverage = inject(COVERAGE);\n}\n\n/**\n * @title Injector, providers and component bindings example\n */\n@Component({\n  selector: 'modal-component-bindings-example',\n  templateUrl: './modal-component-bindings-example.html',\n  imports: [\n    NxButtonComponent,\n    NxCopytextComponent,\n    ModalComponentBindingsContentComponent,\n  ],\n  providers: [{ provide: COVERAGE, useValue: 'Basic' }],\n})\nexport class ModalComponentBindingsExampleComponent {\n  private readonly dialogService = inject(NxDialogService);\n  private readonly injector = inject(Injector);\n\n  readonly policyNumber = signal('AZ-12345');\n  readonly holder = signal('');\n  readonly confirmedPolicy = signal<string | null>(null);\n\n  open(): void {\n    this.dialogService.open(ModalComponentBindingsContentComponent, {\n      injector: this.injector,\n      // Takes precedence over the COVERAGE from `injector`.\n      providers: [{ provide: COVERAGE, useValue: 'Premium' }],\n      bindings: [\n        inputBinding('policyNumber', this.policyNumber),\n        twoWayBinding('holder', this.holder),\n        outputBinding<string>('confirmed', (policy) =>\n          this.confirmedPolicy.set(policy),\n        ),\n      ],\n    });\n  }\n\n  openWithComponentRef(): void {\n    const modalRef = this.dialogService.open(\n      ModalComponentBindingsContentComponent,\n      {\n        injector: this.injector,\n      },\n    );\n    // Not combinable with inputBinding / twoWayBinding on the same modal.\n    modalRef.componentRef!.setInput('policyNumber', this.policyNumber());\n    modalRef.componentRef!.setInput('holder', this.holder());\n    modalRef.componentInstance.confirmed.subscribe((policy) =>\n      this.confirmedPolicy.set(policy),\n    );\n  }\n\n  openTemplate(template: TemplateRef<unknown>): void {\n    this.dialogService.open(template, {\n      providers: [{ provide: COVERAGE, useValue: 'Premium' }],\n      // injector: undefined\n    });\n  }\n}\n\n```\n```html\n<button nxButton class=\"nx-margin-right-xs\" (click)=\"open()\">\n  open modal with bindings\n</button>\n<button\n  nxButton=\"secondary\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"openWithComponentRef()\"\n>\n  open modal with componentRef\n</button>\n<button nxButton=\"secondary\" (click)=\"openTemplate(policyTemplate)\">\n  open template modal with providers\n</button>\n\n<p nxCopytext class=\"nx-margin-top-s\">\n  Policy holder (two-way): {{ holder() || '-' }}\n</p>\n<p nxCopytext>Confirmed policy: {{ confirmedPolicy() ?? '-' }}</p>\n\n<ng-template #policyTemplate>\n  <modal-component-bindings-content\n    [policyNumber]=\"policyNumber()\"\n    [(holder)]=\"holder\"\n    (confirmed)=\"confirmedPolicy.set($event)\"\n  />\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "You can also overwrite the default dialog configuration by using the `NX_MODAL_DEFAULT_OPTIONS` injection token as shown in the code snippet below. Only the options you set are overridden; all other `NxModalConfig` defaults (such as `role` or `hasBackdrop`) are preserved.\n\n```ts\n@NgModule({\n  providers: [\n    {\n      provide: NX_MODAL_DEFAULT_OPTIONS,\n      useValue: { width: '600px', showCloseIcon: true },\n    },\n  ],\n})\nexport class AppModule {}\n```\n\nOptions passed directly to `NxDialogService.open()` take precedence over the provided defaults:\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NX_MODAL_DEFAULT_OPTIONS,\n  NxDialogService,\n  NxModalRef,\n} from '@allianz/ng-aquila/modal';\nimport { Component, inject, TemplateRef, ViewChild } from '@angular/core';\n\n/**\n * @title Global default options example\n */\n@Component({\n  selector: 'modal-default-options-example',\n  templateUrl: './modal-default-options-example.html',\n  styleUrls: ['./modal-default-options-example.css'],\n  imports: [NxButtonComponent, NxHeadlineComponent, NxCopytextComponent],\n  // Provide app-wide defaults for every modal opened from this injector.\n  // Only the options you set are overridden; all other NxModalConfig defaults\n  // (e.g. role: 'dialog', hasBackdrop: true) are preserved.\n  //\n  // In a real app you provide NX_MODAL_DEFAULT_OPTIONS at the root (e.g. in\n  // your AppModule / bootstrap providers) so the root NxDialogService picks it\n  // up. Because NxDialogService is providedIn: 'root', we also provide it here\n  // so this self-contained example gets an instance that reads the defaults\n  // from this component's injector.\n  providers: [\n    NxDialogService,\n    {\n      provide: NX_MODAL_DEFAULT_OPTIONS,\n      useValue: {\n        width: '600px',\n        showCloseIcon: true,\n      },\n    },\n  ],\n})\nexport class ModalDefaultOptionsExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  dialogRef?: NxModalRef<any>;\n\n  private readonly dialogService = inject(NxDialogService);\n\n  // No per-call config needed: the dialog picks up the provided defaults\n  // (600px wide, close icon shown) on top of the built-in NxModalConfig defaults.\n  openWithDefaults(): void {\n    this.dialogRef = this.dialogService.open(this.templateRef);\n  }\n\n  // Per-call config still wins over the provided defaults.\n  openWithOverride(): void {\n    this.dialogRef = this.dialogService.open(this.templateRef, {\n      width: '400px',\n    });\n  }\n\n  closeDialog(): void {\n    this.dialogRef?.close();\n  }\n}\n\n```\n```html\n<button nxButton class=\"nx-margin-right-xs\" (click)=\"openWithDefaults()\">\n  open with defaults\n</button>\n<button nxButton=\"secondary\" (click)=\"openWithOverride()\">\n  open with per-call override\n</button>\n\n<ng-template #template>\n  <div class=\"u-text-center\">\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Modal with global default options\n    </h3>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      This dialog uses the <code>width</code> and\n      <code>showCloseIcon</code> values provided through the\n      <code>NX_MODAL_DEFAULT_OPTIONS</code> token, while all other defaults\n      (such as the dialog <code>role</code>) are preserved.\n    </p>\n    <button nxButton (click)=\"closeDialog()\">Close</button>\n  </div>\n</ng-template>\n\n```\n\n\nIf you want to use a custom scroll strategy, you can use the `NX_MODAL_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n```ts\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n    return () => overlay.scrollStrategies.close();\n}\n\n@NgModule({\n  /* ... */\n  providers: [{\n    provide: NX_MODAL_SCROLL_STRATEGY,\n    useFactory: scrollStrategyFactory,\n    deps: [Overlay],\n  }],\n})\nexport class AppModule {}\n```\n\nAlternatively, the `NX_MODAL_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n\nIf you want to allow exceptions for setting inert attribute, you can use the `INERT_EXCEPTION_SELECTORS` injection token with a provider.\n\n```ts\n@NgModule({\n  /* ... */\n  providers: [{\n    provide: INERT_EXCEPTION_SELECTORS,\n    useValue : ['#onetrust-consent-sdk','#your-id-selector','.your-class-selector']\n  }],\n})\nexport class AppModule {}\n```\n"
      },
      {
        "heading": "directionality",
        "level": 3,
        "content": "By default all dialogs are rendered with `ltr` direction. If you need the dialog to use your application locale direction, for example when you need to support RTL scripts, you can use the `direction` configuration property.\n\nTo get your app direction we recommend using [Directionality](https://material.angular.io/cdk/bidi/overview) from Angular CDK.\n\n<!-- example(modal-with-direction)> -->\n\n\n ### Block modal closing\nThe following example demonstrates the usage of the `shouldClose` and `closeDenied` APIs to create a modal that displays a popover notification when attempting to close the modal with unsaved data.\n \n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n  NxModalRef,\n} from '@allianz/ng-aquila/modal';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  TemplateRef,\n  ViewChild,\n} from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n} from '@angular/forms';\nimport { delay } from 'rxjs/operators';\n\ntype MyDialogResult = 'proceed' | 'cancel';\n\n/**\n * @title Modal with unsaved changes and popover example\n */\n@Component({\n  selector: 'modal-unsaved-example',\n  templateUrl: './modal-unsaved-example.html',\n  styleUrls: ['./modal-unsaved-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxButtonComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxModalContentDirective,\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxModalActionsDirective,\n    NxPopoverTriggerDirective,\n    NxModalCloseDirective,\n    NxPopoverComponent,\n    NxIconComponent,\n  ],\n})\nexport class ModalUnsavedExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  formGroup: FormGroup = new FormGroup({ text: new FormControl('') });\n\n  dialogRef?: NxModalRef<any, MyDialogResult | undefined>; // cancel and backdrop click return undefined\n\n  showPopoverFlag = false;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openModal(): void {\n    this.dialogRef = this.dialogService.open(this.templateRef, {\n      showCloseIcon: true,\n      disableClose: false,\n      shouldClose: (modalResult: MyDialogResult) => {\n        if (modalResult === 'proceed') {\n          return true;\n        }\n        return !this.formGroup.dirty;\n      },\n    });\n    this.dialogRef.closeDenied.pipe(delay(100)).subscribe(() => {\n      this.showPopover();\n    });\n  }\n\n  onSubmit(): void {\n    this.formGroup.reset();\n  }\n\n  showPopover(): void {\n    this.showPopoverFlag = true;\n  }\n\n  closePopover(): void {\n    this.showPopoverFlag = false;\n  }\n\n  discard(): void {\n    this.formGroup.reset();\n    this.closePopover();\n    this.dialogRef?.close();\n  }\n}\n\n```\n```html\n<button\n  nxButton\n  class=\"nx-margin-right-xs nx-margin-bottom-m\"\n  (click)=\"openModal()\"\n>\n  open modal\n</button>\n\n<ng-template #template>\n  <form [formGroup]=\"formGroup\" (ngSubmit)=\"onSubmit()\">\n    <div nxModalContent>\n      <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n        Form in a modal\n      </h3>\n      <nx-formfield label=\"Text\">\n        <input nxInput type=\"text\" formControlName=\"text\" />\n      </nx-formfield>\n    </div>\n\n    <div nxModalActions>\n      <button\n        class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n        nxButton=\"small secondary\"\n        type=\"button\"\n        #cancelButton\n        (click)=\"dialogRef?.close()\"\n        [nxPopoverTriggerFor]=\"cancelPopover\"\n        [(nxPopoverShow)]=\"showPopoverFlag\"\n        nxPopoverDirection=\"top\"\n        nxPopoverTrigger=\"manual\"\n        closeOnClickOutside=\"true\"\n        nxPopoverModal=\"true\"\n      >\n        Cancel\n      </button>\n      <button\n        nxModalClose=\"proceed\"\n        class=\"nx-margin-bottom-0\"\n        nxButton=\"small\"\n        type=\"submit\"\n      >\n        Save\n      </button>\n    </div>\n\n    <nx-popover #cancelPopover>\n      <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-font-weight-semibold\">\n        <nx-icon\n          name=\"exclamation-circle\"\n          class=\"nx-margin-right-2xs\"\n        ></nx-icon>\n        <span>Unsaved changes</span>\n      </h4>\n      <p class=\"nx-margin-bottom-2m\">\n        Are you sure you want to discard your changes?\n      </p>\n\n      <div class=\"action-buttons nx-margin-top-3m\">\n        <button\n          nxButton=\"secondary danger small-medium\"\n          type=\"button\"\n          class=\"nx-margin-right-s\"\n          (click)=\"discard()\"\n        >\n          Discard\n        </button>\n        <button\n          nxButton=\"secondary small-medium\"\n          type=\"button\"\n          (click)=\"closePopover()\"\n        >\n          Keep editing\n        </button>\n      </div>\n    </nx-popover>\n  </form>\n</ng-template>\n\n```\n\n\n\n ### Autofocus\n The `autofocus` property allows you to control which element receives focus when a modal is opened. The following options are available:\n\n- `dialog` or `false`: Focuses on the modal dialog itself.\n- `first-tabbable` or `true`: Focuses on the first tabbable element, such as a button (this is the default behavior).\n- `first-header`: Focuses on the first header element (e.g., `h1`, `h2`, `h3`).\n- Custom CSS selectors: You can specify a custom element to focus using a selector like `div` or `.element`.\n \n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  AutoFocusTarget,\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalCloseDirective,\n  NxModalContentDirective,\n} from '@allianz/ng-aquila/modal';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  TemplateRef,\n  ViewChild,\n} from '@angular/core';\n\n/**\n * @title Modal autofocus Example\n */\n@Component({\n  selector: 'modal-autofocus-example',\n  imports: [\n    NxButtonComponent,\n    NxModalContentDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxModalActionsDirective,\n    NxModalCloseDirective,\n  ],\n  templateUrl: './modal-autofocus-example.html',\n  styleUrl: './modal-autofocus-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalAutofocusExampleComponent {\n  @ViewChild('template') templateRef!: TemplateRef<any>;\n\n  constructor(private readonly dialogService: NxDialogService) {}\n\n  openFromTemplate(focus: AutoFocusTarget | string): void {\n    this.dialogService.open(this.templateRef, {\n      autoFocus: focus,\n      showCloseIcon: true,\n    });\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"small\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"openFromTemplate('dialog')\"\n>\n  dialog (false)\n</button>\n<button\n  nxButton=\"small\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"openFromTemplate('first-tabbable')\"\n>\n  first-tabbable (true) - default\n</button>\n<button\n  nxButton=\"small\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"openFromTemplate('first-heading')\"\n>\n  first-heading\n</button>\n<button\n  nxButton=\"small\"\n  class=\"nx-margin-right-xs\"\n  (click)=\"openFromTemplate('.custom-content')\"\n>\n  custom selector\n</button>\n\n<ng-template #template>\n  <div nxModalContent>\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Autofocus when the modal is opened\n    </h3>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      Elements inside this modal will receive focus based on the value of the\n      autofocus property.\n    </p>\n    <p class=\"custom-content\">Custom selector</p>\n  </div>\n  <div nxModalActions>\n    <button\n      nxModalClose\n      class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n      nxButton=\"small secondary\"\n      type=\"button\"\n    >\n      Cancel\n    </button>\n    <button\n      nxModalClose\n      class=\"nx-margin-bottom-0\"\n      nxButton=\"small\"\n      type=\"button\"\n    >\n      Proceed\n    </button>\n  </div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "By default, each modal has `role=\"dialog\"` on the root element. The role can be changed to `alertdialog` via the `NxModalConfig`.\n\nThe aria-label, aria-labelledby, and aria-describedby attributes of the modal as well as the aria-label of the optional close button can be set via the `NxModalConfig` as well. It is recommended to at least give a modal an aria-label or aria-labelledby attribute. (**Note:** `aria-label` or `aria-labelledby` is required for _Voiceover_. )\n\nWhen a dialog opens, the first focusable element will be focused. The CdkOverlay used in the dialog traps the focus in itself in order to prevent users from interacting with elements in the background. Per default, the focus will be given back to the element which has been focused before the opening of the dialog.\n\nPressing the escape key will close the dialog per default. You can disable this behaviour by setting the `disabledClose` option to false in the `NxModalConfig`, but it is recommended to keep it on as it is the expected behaviour of a modal dialog.\n"
      },
      {
        "heading": "scrollable areas and long content",
        "level": 4,
        "content": "Non interactive scrollable areas and long content in size restricted containers can be problematic for keyboard users. [Have a look into our general accessibility guide on that.](/documentation/accessibility/overview#scroll-containers-and-keyboard-navigation) TLDR: setting `tabindex=\"0\"` on the scrollable container is a valid workaround until this will be supported natively by browsers.\n"
      },
      {
        "heading": "using modals with web components / shadowdom",
        "level": 3,
        "content": "When using modals in components with `ViewEncapsulation.ShadowDom` or building Web Components, you need special configuration. See the [Web Components & ShadowDOM guide](./documentation/web-components/overview) for a complete example and detailed instructions.\n"
      },
      {
        "heading": "deprecated modal component",
        "level": 3,
        "content": "The example below shows the previous implementation of the modal dialog, which is already deprecated and should not be used.\n\nFor using it you have to import the `NxModalModule` as follows:\n\n```ts\nimport { NxModalModule } from '@allianz/ng-aquila/modal';\n\n@NgModule({\n    imports: [\n        NxModalModule.forRoot()\n  ]\n})\n```\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxModalComponent,\n  NxOpenModalOnClickDirective,\n} from '@allianz/ng-aquila/modal';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic use case example\n */\n@Component({\n  selector: 'modal-basic-example',\n  templateUrl: './modal-basic-example.html',\n  styleUrls: ['./modal-basic-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxOpenModalOnClickDirective,\n    NxModalComponent,\n  ],\n})\nexport class ModalBasicExampleComponent {}\n\n```\n```html\n<button #basicModalButton nxButton=\"primary\" type=\"button\">Show Modal</button>\n\n<ng-template #basicModalBody>\n  <div class=\"u-text-center\">\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Basic Modal Dialog\n    </h3>\n    <p nxCopytext=\"small\" class=\"nx-modal-margin-bottom\">\n      Any content can be included in a modal view and styled as necessary. This\n      example shows some arbitrary components (<code>nxHeadline</code>,\n      <code>nxCopytext</code> and <code>nx-formfield</code>) and styling\n      (<code>u-text-center</code>).\n    </p>\n    <nx-formfield label=\"First Name\">\n      <input nxInput />\n    </nx-formfield>\n\n    <nx-formfield label=\"Last Name\">\n      <input nxInput />\n    </nx-formfield>\n\n    <nx-formfield label=\"Car brand\">\n      <nx-dropdown>\n        <nx-dropdown-item value=\"BMW\"></nx-dropdown-item>\n        <nx-dropdown-item value=\"Audi\"></nx-dropdown-item>\n        <nx-dropdown-item value=\"Volvo\"></nx-dropdown-item>\n        <nx-dropdown-item value=\"Mini\"></nx-dropdown-item>\n      </nx-dropdown>\n    </nx-formfield>\n  </div>\n</ng-template>\n\n<nx-modal\n  #basicModal\n  [modalBody]=\"basicModalBody\"\n  *nxOpenModalOnClick=\"basicModalButton\"\n>\n</nx-modal>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "natural-language-form.md",
    "title": "Natural Language Form",
    "category": "components",
    "alias": [
      "text form",
      "inline field"
    ],
    "sections": [
      {
        "heading": "module",
        "level": 3,
        "content": "We have a hard dependency on NxPopover (to display error messages) so make sure to import the OverlayModule and its css as described in [NxPopover](./documentation/popover/overview).\n\nA Natural Language Form is a composition of your usual set of html elements and 'Words' (`NxWordComponent`).\n\nWords are wrappers for `NxFormfieldControl` components like [NxInput](./documentation/input/overview) and [NxDropdown](./documentation/dropdown/overview) and provide the necessary functionality to use them inline, with appropriate styling and a functionality to show errors in a popover. A word has the ability to grow and shrink while maintaining a minimal width which can be chosen by you.\n"
      },
      {
        "heading": "basic example",
        "level": 4,
        "content": "Here is a simple example. You can trigger the error by touching and blurring the field as it's set to be required. Each word will display an error message in a popover if any is given through the directive nxError.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxNaturalLanguageFormComponent,\n  NxWordComponent,\n} from '@allianz/ng-aquila/natural-language-form';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Basic example\n */\n@Component({\n  selector: 'natural-language-form-basic-example',\n  templateUrl: './natural-language-form-basic-example.html',\n  styleUrls: ['./natural-language-form-basic-example.css'],\n  imports: [\n    NxNaturalLanguageFormComponent,\n    NxWordComponent,\n    NxInputDirective,\n    FormsModule,\n    NxErrorComponent,\n  ],\n})\nexport class NaturalLanguageFormBasicExampleComponent {}\n\n```\n```html\n<nx-natural-language-form>\n  Here is a word\n  <nx-word label=\"Provide any input\">\n    <input nxInput ngModel required />\n  </nx-word>\n  <nx-error> <b>Error:</b> Please fill in any value. </nx-error>\n  with some following copy.\n</nx-natural-language-form>\n\n```\n\n"
      },
      {
        "heading": "extended",
        "level": 4,
        "content": "A Natural Language Form can contain an unlimited amount of words. You can pass in all inputs that you can already use with a [NxFormfield](./documentation/formfield/overview) which are at the moment [NxInput](./documentation/input/overview) and [NxDropdown](./documentation/dropdown/overview). If you want to create your own input, you have to implement the abstract class `NxFormfieldControl`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxNaturalLanguageFormComponent,\n  NxWordComponent,\n} from '@allianz/ng-aquila/natural-language-form';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Extended example\n */\n@Component({\n  selector: 'natural-language-form-extended-example',\n  templateUrl: './natural-language-form-extended-example.html',\n  styleUrls: ['./natural-language-form-extended-example.css'],\n  imports: [\n    FormsModule,\n    NxNaturalLanguageFormComponent,\n    ReactiveFormsModule,\n    NxWordComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxInputDirective,\n    NxButtonComponent,\n    JsonPipe,\n    NxErrorComponent,\n  ],\n})\nexport class NaturalLanguageFormExtendedExampleComponent {\n  readonly naturalForm = this.fb.group({\n    who: new FormControl('', [Validators.required]),\n    city: new FormControl('', [Validators.required]),\n    spots: new FormControl('', [\n      Validators.pattern('[0-9]*'),\n      Validators.required,\n    ]),\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  validate() {\n    Object.values(this.naturalForm.controls).forEach((control) => {\n      control?.markAsTouched({ onlySelf: true });\n    });\n  }\n}\n\n```\n```html\n<form>\n  <nx-natural-language-form [formGroup]=\"naturalForm\">\n    <span>I want to be</span>\n    <nx-word\n      size=\"long\"\n      label=\"Your profession\"\n      describedBy=\"profession-error-required\"\n    >\n      <nx-dropdown formControlName=\"who\">\n        <nx-dropdown-item value=\"student\">a Student</nx-dropdown-item>\n        <nx-dropdown-item value=\"philosopher\">a Philosopher</nx-dropdown-item>\n        <nx-dropdown-item value=\"sailor\">a Sailor</nx-dropdown-item>\n      </nx-dropdown>\n    </nx-word>\n\n    <span>and visit the city of</span>\n\n    <nx-word\n      size=\"short\"\n      label=\"City to visit\"\n      describedBy=\"city-error-required\"\n    >\n      <input nxInput formControlName=\"city\" />\n    </nx-word>\n    <span>and see</span>\n    <nx-word\n      size=\"regular\"\n      label=\"Number of spots to visit\"\n      describedBy=\"error-headline spots-error-required spots-error-pattern\"\n    >\n      <input nxInput formControlName=\"spots\" />\n    </nx-word>\n    <span> nice spots.</span>\n    <nx-error>\n      <span id=\"error-headline\"><b>Invalid or missing input:</b></span>\n      <ul class=\"nx-margin-left-m\">\n        @if (\n          naturalForm.controls.who.hasError('required') &&\n          naturalForm.controls.who.touched\n        ) {\n          <li id=\"profession-error-required\">Profession is required.</li>\n        }\n        @if (\n          naturalForm.controls.city.hasError('required') &&\n          naturalForm.controls.city.touched\n        ) {\n          <li id=\"city-error-required\">The city is required.</li>\n        }\n        @if (\n          naturalForm.controls.spots.hasError('required') &&\n          naturalForm.controls.spots.touched\n        ) {\n          <li id=\"spots-error-required\">\n            Number of Spots to visit is required.\n          </li>\n        }\n        @if (\n          naturalForm.controls.spots.hasError('pattern') &&\n          naturalForm.controls.spots.touched\n        ) {\n          <li id=\"spots-error-pattern\">\n            Number of Spots to visit has to be a number.\n          </li>\n        }\n      </ul>\n    </nx-error>\n  </nx-natural-language-form>\n\n  <button nxButton (click)=\"validate()\" type=\"submit\">submit</button>\n</form>\n\n<p>\n  Form value: {{ naturalForm.value | json }}<br />\n  Form status: {{ naturalForm.status | json }}\n</p>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 4,
        "content": "\n```ts\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxNaturalLanguageFormComponent,\n  NxWordComponent,\n} from '@allianz/ng-aquila/natural-language-form';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'natural-language-form-negative-example',\n  templateUrl: './natural-language-form-negative-example.html',\n  styleUrls: ['./natural-language-form-negative-example.css'],\n  imports: [NxNaturalLanguageFormComponent, NxWordComponent, NxInputDirective],\n})\nexport class NaturalLanguageFormNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-natural-language-form negativeStyles=\"true\">\n    Here is a word\n    <nx-word label=\"Always a label\"> <input nxInput />. </nx-word>\n  </nx-natural-language-form>\n</div>\n\n```\n\n"
      },
      {
        "heading": "sizes",
        "level": 4,
        "content": "The default size of the Natural Language Form is `large`. You can change this via the `[size]` input as shown below.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxNaturalLanguageFormComponent,\n  NxWordComponent,\n} from '@allianz/ng-aquila/natural-language-form';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Size example\n */\n@Component({\n  selector: 'natural-language-form-sizes-example',\n  templateUrl: './natural-language-form-sizes-example.html',\n  styleUrls: ['./natural-language-form-sizes-example.css'],\n  imports: [\n    NxNaturalLanguageFormComponent,\n    NxWordComponent,\n    NxInputDirective,\n    FormsModule,\n    ReactiveFormsModule,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxErrorComponent,\n  ],\n})\nexport class NaturalLanguageFormSizesExampleComponent {\n  readonly largeForm = this.fb.group({\n    job: new FormControl('', [Validators.required]),\n    what: new FormControl('', [Validators.required]),\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form>\n  <nx-natural-language-form [formGroup]=\"largeForm\">\n    This is a large NLF: My profession is\n    <nx-word label=\"Your Profession\" describedBy=\"error-profession-required\">\n      <input formControlName=\"job\" nxInput />\n    </nx-word>\n    and I want to insure my\n    <nx-word\n      size=\"long\"\n      label=\"The object to insure\"\n      describedBy=\"error-object-to-insure\"\n    >\n      <nx-dropdown formControlName=\"what\">\n        <nx-dropdown-item value=\"car\">Car</nx-dropdown-item>\n        <nx-dropdown-item value=\"house\">House</nx-dropdown-item>\n        <nx-dropdown-item value=\"boat\">Boat</nx-dropdown-item>\n      </nx-dropdown>\n    </nx-word>\n    .\n    <nx-error>\n      <span id=\"error-headline\"><b>Invalid or missing input:</b></span>\n      <ul class=\"nx-margin-left-m\">\n        @if (\n          largeForm.controls.job.hasError('required') &&\n          largeForm.controls.job.touched\n        ) {\n          <li id=\"error-profession-required\">Profession is required.</li>\n        }\n        @if (\n          largeForm.controls.what.hasError('required') &&\n          largeForm.controls.what.touched\n        ) {\n          <li id=\"error-object-to-insure\">The object to insure is required</li>\n        }\n      </ul>\n    </nx-error>\n  </nx-natural-language-form>\n</form>\n\n<nx-natural-language-form size=\"small\">\n  This is a small NLF: My profession is\n  <nx-word\n    label=\"Your Profession\"\n    describedBy=\"error-profession-required-small-nlf\"\n  >\n    <input nxInput ngModel required #professionInput=\"ngModel\" />\n  </nx-word>\n  and I want to insure my\n  <nx-word\n    size=\"long\"\n    label=\"Always a label\"\n    describedBy=\"error-object-to-insure-small-nlf\"\n  >\n    <nx-dropdown required ngModel #objectToInsure=\"ngModel\">\n      <nx-dropdown-item value=\"car\">Car</nx-dropdown-item>\n      <nx-dropdown-item value=\"house\">House</nx-dropdown-item>\n      <nx-dropdown-item value=\"boat\">Boat</nx-dropdown-item>\n    </nx-dropdown>\n  </nx-word>\n  .\n  <nx-error>\n    <span id=\"error-headline\"><b>Invalid or missing input:</b></span>\n    <ul class=\"nx-margin-left-m\">\n      @if (professionInput.hasError('required') && professionInput.touched) {\n        <li id=\"error-profession-required-small-nlf\" #error>\n          Profession is required.\n        </li>\n      }\n      @if (objectToInsure.hasError('required') && objectToInsure.touched) {\n        <li id=\"error-object-to-insure-small-nlf\">\n          The object to insure is required\n        </li>\n      }\n    </ul>\n  </nx-error>\n</nx-natural-language-form>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "It's important to provide a label for any `nx-word` to help users of assistive tools to understand what input is expected.\n"
      },
      {
        "heading": "error messages",
        "level": 4,
        "content": "Error messages should be shown collectively end each individual input should refer to just the error message that is relevant for the specific input.\nUnfortunately, it is not possible to handle that in the component itself, so it must be handled during the implementation of your individual page.\n"
      }
    ]
  },
  {
    "name": "notification-panel.md",
    "title": "Notification panel",
    "category": "components",
    "alias": [
      "popover"
    ],
    "sections": [
      {
        "heading": "clickable items",
        "level": 2,
        "content": "In this variation each notification is completely clickable and will trigger a routing event. Try to avoid additional interactive elements inside each notification. For this use case see the next example [Notifications with actions](./documentation/notification-panel/overview#notifications-with-actions).\n\n\n```ts\nimport {\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxNotificationItemContentDirective,\n  NxNotificationItemHeaderDirective,\n  NxNotificationItemMetadataDirective,\n  NxNotificationPanelComponent,\n  NxNotificationPanelItemComponent,\n  NxNotificationPanelTriggerDirective,\n} from '@allianz/ng-aquila/notification-panel';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Notification Panel\n */\n@Component({\n  selector: 'notification-panel-clickable-example',\n  templateUrl: './notification-panel-clickable-example.html',\n  styleUrls: ['./notification-panel-clickable-example.css'],\n  imports: [\n    NxIconButtonComponent,\n    NxNotificationPanelTriggerDirective,\n    NxIconComponent,\n    NxNotificationPanelComponent,\n    NxNotificationItemHeaderDirective,\n    NxCopytextComponent,\n    NxPlainButtonComponent,\n    NxNotificationPanelItemComponent,\n    RouterLink,\n    NxNotificationItemMetadataDirective,\n    NxNotificationItemContentDirective,\n  ],\n})\nexport class NotificationPanelClickableExampleComponent {}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary\"\n  size=\"s\"\n  [nxNotificationPanelTriggerFor]=\"panel1\"\n  title=\"Notifications\"\n  aria-label=\"Notifications\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<ng-template #panel1>\n  <nx-notification-panel>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Unread</h3>\n      <button nxPlainButton size=\"s\" variant=\"secondary\" type=\"button\">\n        Mark all as read\n      </button>\n    </nx-notification-header>\n\n    <a nxNotificationPanelItem routerLink=\"#clickable-notification1\">\n      <nx-notification-item-metadata\n        >Tasks &middot; 5 minutes ago\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\">Frank Loyd</span> - created new\n        offer\n      </nx-notification-item-content>\n    </a>\n    <a nxNotificationPanelItem routerLink=\"#clickable-notification2\">\n      <nx-notification-item-metadata\n        >Offers &middot; 11:45\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\">Susi Müller</span> - Offer status\n        has changed\n      </nx-notification-item-content>\n    </a>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Read</h3>\n    </nx-notification-header>\n    <a nxNotificationPanelItem read routerLink=\"#clickable-notification3\">\n      <nx-notification-item-metadata\n        >Offers &middot; Yesterday\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\">Mary London</span> - Note created\n      </nx-notification-item-content>\n    </a>\n  </nx-notification-panel>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "mixing clickable with informational notifications",
        "level": 2,
        "content": "For the use case that you want to mix clickable and non-clickable notifications you can either omit the `href` attribute on the `anchor` tag or use `[routerLink]=\"null\"` or use a div. An anchor without an href is considered as a normal text element by assistive technology. Please note there is an issue at Angular that `[routerLink]=\"null\"` adds a href to the current route and is not removing it. See: https://github.com/angular/angular/issues/13980 but the router will not do anything if the route is the same.\n\n\n```ts\nimport {\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxNotificationItemContentDirective,\n  NxNotificationItemHeaderDirective,\n  NxNotificationItemMetadataDirective,\n  NxNotificationPanelComponent,\n  NxNotificationPanelItemComponent,\n  NxNotificationPanelTriggerDirective,\n} from '@allianz/ng-aquila/notification-panel';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Notification Panel\n */\n@Component({\n  selector: 'notification-panel-mixed-example',\n  templateUrl: './notification-panel-mixed-example.html',\n  styleUrls: ['./notification-panel-mixed-example.css'],\n  imports: [\n    NxIconButtonComponent,\n    NxNotificationPanelTriggerDirective,\n    NxIconComponent,\n    NxNotificationPanelComponent,\n    NxNotificationItemHeaderDirective,\n    NxCopytextComponent,\n    NxPlainButtonComponent,\n    NxNotificationPanelItemComponent,\n    RouterLink,\n    NxNotificationItemMetadataDirective,\n    NxNotificationItemContentDirective,\n  ],\n})\nexport class NotificationPanelMixedExampleComponent {}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary\"\n  size=\"s\"\n  [nxNotificationPanelTriggerFor]=\"panel1\"\n  title=\"Notifications\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<ng-template #panel1>\n  <nx-notification-panel>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Unread</h3>\n      <button nxPlainButton size=\"s\" variant=\"secondary\" type=\"button\">\n        Mark all as read\n      </button>\n    </nx-notification-header>\n\n    <a nxNotificationPanelItem routerLink=\"#clickable-notification1\">\n      <nx-notification-item-metadata>\n        <nx-icon\n          size=\"s\"\n          class=\"nx-margin-right-2xs\"\n          name=\"lock-o\"\n          aria-hidden=\"true\"\n        ></nx-icon\n        >File lock release &middot; 16:53\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\"\n          >The file you tried to edit (XY12345) is now available.</span\n        >\n      </nx-notification-item-content>\n    </a>\n    <a nxNotificationPanelItem clickable=\"false\" [routerLink]=\"null\">\n      <nx-notification-item-metadata>\n        <nx-icon\n          size=\"s\"\n          class=\"nx-margin-right-2xs\"\n          name=\"phone-o\"\n          aria-hidden=\"true\"\n        ></nx-icon\n        >Callback &middot; 11:35\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\"\n          >Please call back James Erwin at 15:00</span\n        >\n      </nx-notification-item-content>\n    </a>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Read</h3>\n    </nx-notification-header>\n    <div nxNotificationPanelItem read routerLink=\"#clickable-notification3\">\n      <nx-notification-item-metadata\n        >Offers &middot; Yesterday\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\">Mary London</span> - Note created\n      </nx-notification-item-content>\n    </div>\n  </nx-notification-panel>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "notifications with actions",
        "level": 2,
        "content": "If you need more actions inside a notification set the property `clickable` to false and add your interactive elements to the content. Examples for these actions are links, delete buttons or context menus. Instead of `div`s you could also use anchor elements without a href or use the element selector `nx-notification-panel-item`.\n\n\n```ts\nimport {\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxNotificationItemActionsDirective,\n  NxNotificationItemContentDirective,\n  NxNotificationItemHeaderDirective,\n  NxNotificationItemMetadataDirective,\n  NxNotificationPanelComponent,\n  NxNotificationPanelItemComponent,\n  NxNotificationPanelTriggerDirective,\n} from '@allianz/ng-aquila/notification-panel';\nimport { Component } from '@angular/core';\n\n/**\n * @title Notification Panel\n */\n@Component({\n  selector: 'notification-panel-actions-example',\n  templateUrl: './notification-panel-actions-example.html',\n  styleUrls: ['./notification-panel-actions-example.css'],\n  imports: [\n    NxIconButtonComponent,\n    NxNotificationPanelTriggerDirective,\n    NxIconComponent,\n    NxNotificationPanelComponent,\n    NxNotificationItemHeaderDirective,\n    NxCopytextComponent,\n    NxPlainButtonComponent,\n    NxNotificationPanelItemComponent,\n    NxNotificationItemMetadataDirective,\n    NxNotificationItemContentDirective,\n    NxNotificationItemActionsDirective,\n    NxLinkComponent,\n  ],\n})\nexport class NotificationPanelActionsExampleComponent {}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary\"\n  size=\"s\"\n  class=\"nx-margin-0\"\n  [nxNotificationPanelTriggerFor]=\"panel1\"\n  title=\"Notifications\"\n  aria-label=\"Notifications\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<ng-template #panel1>\n  <nx-notification-panel>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Unread</h3>\n      <button nxPlainButton size=\"s\" variant=\"secondary\" type=\"button\">\n        Mark all as read\n      </button>\n    </nx-notification-header>\n\n    <a nxNotificationPanelItem clickable=\"false\" [attr.href]=\"null\">\n      <nx-notification-item-metadata>\n        <nx-icon\n          size=\"s\"\n          class=\"nx-margin-right-2xs\"\n          name=\"lock-o\"\n          aria-hidden=\"true\"\n        ></nx-icon\n        >File lock release &middot; 16:53\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\"\n          >The file you tried to edit (XY12345) is now available.</span\n        >\n      </nx-notification-item-content>\n      <nx-notification-item-actions>\n        <nx-link><a href=\"#file-link\">Edit file</a></nx-link>\n        <button\n          nxPlainButton\n          size=\"s\"\n          type=\"button\"\n          title=\"Delete\"\n          aria-label=\"Delete\"\n        >\n          <nx-icon name=\"trash-o\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      </nx-notification-item-actions>\n    </a>\n    <div nxNotificationPanelItem clickable=\"false\">\n      <nx-notification-item-metadata>\n        <nx-icon\n          size=\"s\"\n          class=\"nx-margin-right-2xs\"\n          name=\"phone-o\"\n          aria-hidden=\"true\"\n        ></nx-icon\n        >Callback &middot; 11:35\n      </nx-notification-item-metadata>\n      <nx-notification-item-content class=\"inline-delete\">\n        <span class=\"nx-font-weight-semibold\"\n          >Please call back James Erwin at 15:00</span\n        >\n        <button\n          nxPlainButton\n          size=\"s\"\n          class=\"\"\n          type=\"button\"\n          title=\"Delete\"\n          aria-label=\"Delete\"\n        >\n          <nx-icon name=\"trash-o\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      </nx-notification-item-content>\n    </div>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Read</h3>\n    </nx-notification-header>\n    <div nxNotificationPanelItem read clickable=\"false\">\n      <nx-notification-item-metadata\n        >Offers &middot; Yesterday\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\">Mary London</span> - Note created\n      </nx-notification-item-content>\n    </div>\n  </nx-notification-panel>\n</ng-template>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "empty state",
        "level": 2,
        "content": "If there are no notifications to show, you can display a message instead of the list.\nTry adding/removing notifications to see the empty state in action.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxNotificationItemContentDirective,\n  NxNotificationItemHeaderDirective,\n  NxNotificationItemMetadataDirective,\n  NxNotificationPanelComponent,\n  NxNotificationPanelItemComponent,\n  NxNotificationPanelTriggerDirective,\n} from '@allianz/ng-aquila/notification-panel';\nimport { NxBodyTextComponent } from '@allianz/ng-aquila/text';\nimport {\n  afterNextRender,\n  Component,\n  ElementRef,\n  inject,\n  Injector,\n  signal,\n  viewChild,\n  viewChildren,\n} from '@angular/core';\n\ninterface ExampleNotification {\n  id: number;\n  category: string;\n  age: string;\n  text: string;\n}\n\n/**\n * @title Empty state\n */\n@Component({\n  selector: 'notification-panel-empty-example',\n  templateUrl: './notification-panel-empty-example.html',\n  styleUrls: ['./notification-panel-empty-example.css'],\n  imports: [\n    NxIconButtonComponent,\n    NxButtonComponent,\n    NxPlainButtonComponent,\n    NxNotificationPanelTriggerDirective,\n    NxIconComponent,\n    NxNotificationPanelComponent,\n    NxNotificationPanelItemComponent,\n    NxNotificationItemHeaderDirective,\n    NxNotificationItemMetadataDirective,\n    NxNotificationItemContentDirective,\n    NxCopytextComponent,\n    NxHeadlineComponent,\n    NxBodyTextComponent,\n  ],\n})\nexport class NotificationPanelEmptyExampleComponent {\n  readonly notifications = signal<ExampleNotification[]>([]);\n  private _nextId = 0;\n  private readonly _injector = inject(Injector);\n  private readonly _removeButtons = viewChildren<\n    string,\n    ElementRef<HTMLElement>\n  >('removeButton', { read: ElementRef });\n  private readonly _emptyState = viewChild<string, ElementRef<HTMLElement>>(\n    'emptyState',\n    { read: ElementRef },\n  );\n\n  addNotification() {\n    this.notifications.update((notifications) => [\n      ...notifications,\n      {\n        id: this._nextId++,\n        category: 'Offers',\n        age: 'just now',\n        text: 'A new offer has been created for your account.',\n      },\n    ]);\n  }\n\n  removeNotification(index: number) {\n    this.notifications.update((notifications) =>\n      notifications.filter((_, i) => i !== index),\n    );\n\n    // The focused remove button is destroyed, so hand focus to the next one or the empty state.\n    afterNextRender(\n      () => {\n        const buttons = this._removeButtons();\n        const target = buttons.length\n          ? buttons[Math.min(index, buttons.length - 1)]\n          : this._emptyState();\n        target?.nativeElement.focus();\n      },\n      { injector: this._injector },\n    );\n  }\n\n  // Nothing else in the empty panel is tabbable, so keep focus here like the populated panel does.\n  keepFocusInEmptyState(event: KeyboardEvent) {\n    if (event.key === 'Tab') {\n      event.preventDefault();\n    }\n  }\n}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary\"\n  size=\"s\"\n  [nxNotificationPanelTriggerFor]=\"panel1\"\n  title=\"Notifications\"\n  aria-label=\"Notifications\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<button\n  nxButton=\"secondary\"\n  size=\"s\"\n  class=\"nx-margin-left-s\"\n  (click)=\"addNotification()\"\n  type=\"button\"\n>\n  Add notification\n</button>\n\n<ng-template #panel1>\n  <nx-notification-panel>\n    @if (notifications().length) {\n      <nx-notification-header>\n        <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">\n          Notifications\n        </h3>\n        <button nxPlainButton size=\"s\" variant=\"secondary\" type=\"button\">\n          Mark all as read\n        </button>\n      </nx-notification-header>\n      @for (\n        notification of notifications();\n        track notification.id;\n        let i = $index\n      ) {\n        <div nxNotificationPanelItem clickable=\"false\">\n          <nx-notification-item-metadata>\n            <nx-icon\n              size=\"s\"\n              class=\"nx-margin-right-2xs\"\n              name=\"calendar\"\n              aria-hidden=\"true\"\n            ></nx-icon\n            >{{ notification.category }} &middot; {{ notification.age }}\n          </nx-notification-item-metadata>\n          <nx-notification-item-content class=\"inline-delete\">\n            <span>{{ notification.text }}</span>\n            <button\n              #removeButton\n              nxPlainButton\n              size=\"s\"\n              type=\"button\"\n              title=\"Remove\"\n              aria-label=\"Remove\"\n              (click)=\"removeNotification(i)\"\n            >\n              <nx-icon name=\"trash-o\" aria-hidden=\"true\"></nx-icon>\n            </button>\n          </nx-notification-item-content>\n        </div>\n      }\n    } @else {\n      <div\n        #emptyState\n        class=\"notification-panel-empty\"\n        role=\"status\"\n        tabindex=\"-1\"\n        cdkFocusInitial\n        (keydown)=\"keepFocusInEmptyState($event)\"\n        aria-labelledby=\"empty-title\"\n        aria-describedby=\"empty-text\"\n      >\n        <nx-icon\n          name=\"product-energy\"\n          contained=\"true\"\n          emphasis=\"true\"\n          size=\"2xl\"\n          aria-hidden=\"true\"\n        ></nx-icon>\n        <div class=\"notification-panel-empty__message\">\n          <h3 id=\"empty-title\" nxHeadline size=\"m\">You're up to date.</h3>\n          <p id=\"empty-text\" nxBodyText type=\"secondary\" class=\"nx-margin-0\">\n            No new notifications right now.\n          </p>\n        </div>\n      </div>\n    }\n  </nx-notification-panel>\n</ng-template>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "global settings",
        "level": 2,
        "content": "If you want to use a custom scroll strategy, you can use the `NX_NOTIFICATION_PANEL_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport {\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NX_NOTIFICATION_PANEL_SCROLL_STRATEGY,\n  NxNotificationItemActionsDirective,\n  NxNotificationItemContentDirective,\n  NxNotificationItemHeaderDirective,\n  NxNotificationItemMetadataDirective,\n  NxNotificationPanelComponent,\n  NxNotificationPanelItemComponent,\n  NxNotificationPanelTriggerDirective,\n} from '@allianz/ng-aquila/notification-panel';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'notification-panel-scroll-strategy-provider-example',\n  templateUrl: './notification-panel-scroll-strategy-provider-example.html',\n  styleUrls: ['./notification-panel-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_NOTIFICATION_PANEL_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [\n    NxIconButtonComponent,\n    NxNotificationPanelTriggerDirective,\n    NxIconComponent,\n    NxNotificationPanelComponent,\n    NxNotificationItemHeaderDirective,\n    NxCopytextComponent,\n    NxPlainButtonComponent,\n    NxNotificationPanelItemComponent,\n    NxNotificationItemMetadataDirective,\n    NxNotificationItemContentDirective,\n    NxNotificationItemActionsDirective,\n    NxLinkComponent,\n  ],\n})\nexport class NotificationPanelScrollStrategyProviderExampleComponent {}\n\n```\n```html\n<button\n  nxIconButton=\"tertiary\"\n  size=\"s\"\n  class=\"nx-margin-0\"\n  [nxNotificationPanelTriggerFor]=\"panel1\"\n  title=\"Notifications\"\n  aria-label=\"Notifications\"\n>\n  <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n</button>\n\n<ng-template #panel1>\n  <nx-notification-panel>\n    <nx-notification-header>\n      <h3 nxCopytext=\"medium\" class=\"nx-font-weight-semibold\">Unread</h3>\n      <button nxPlainButton variant=\"secondary\" size=\"s\" type=\"button\">\n        Mark all as read\n      </button>\n    </nx-notification-header>\n\n    <a nxNotificationPanelItem clickable=\"false\" [attr.href]=\"null\">\n      <nx-notification-item-metadata>\n        <nx-icon\n          size=\"s\"\n          class=\"nx-margin-right-2xs\"\n          name=\"lock-o\"\n          aria-hidden=\"true\"\n        ></nx-icon\n        >File lock release &middot; 16:53\n      </nx-notification-item-metadata>\n      <nx-notification-item-content>\n        <span class=\"nx-font-weight-semibold\"\n          >The file you tried to edit (XY12345) is now available.</span\n        >\n      </nx-notification-item-content>\n      <nx-notification-item-actions>\n        <nx-link><a href=\"#file-link\">Edit file</a></nx-link>\n        <button\n          nxPlainButton\n          size=\"s\"\n          type=\"button\"\n          title=\"Delete\"\n          aria-label=\"Delete\"\n        >\n          <nx-icon name=\"trash-o\" aria-hidden=\"true\"></nx-icon>\n        </button>\n      </nx-notification-item-actions>\n    </a>\n  </nx-notification-panel>\n</ng-template>\n\n```\n\n\nAlternatively, the `NX_NOTIFICATION_PANEL_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      },
      {
        "heading": "accessibility",
        "level": 2,
        "content": "Don't forget to add an title aria-label to the trigger button. Use an anchor tag if the whole notification is supposed to be clickable. A good way to help screen reader users is to add a wrapper around the triggering button defining an region, e.g. `region=\"Notifications\"`. That helps screen reader users to quickly access the trigger button from anywhere in the page.\n"
      },
      {
        "heading": "keyboard support",
        "level": 3,
        "content": "ENTER - opens the overlay panel\n\nESC - Closes the overlay panel\n\nTAB - Tab through the notification items and its focusable children if there are any\n\nUP ARROW / RIGHT ARROW - Move focus to the next notification item.\n\nDOWN ARROW / LEFT ARROW - Move focus to the previous notification item.\n"
      }
    ]
  },
  {
    "name": "number-stepper.md",
    "title": "Number Stepper",
    "category": "components",
    "alias": [
      "number input",
      "range",
      "counter",
      "quantity"
    ],
    "sections": [
      {
        "heading": "examples",
        "level": 3,
        "content": "This component has two sizes - `s` and `m`. The default size is `s`.\n\n\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Number Stepper Sizes\n */\n@Component({\n  selector: 'number-stepper-sizes-example',\n  templateUrl: './number-stepper-sizes-example.html',\n  styleUrls: ['./number-stepper-sizes-example.css'],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperSizesExampleComponent {}\n\n```\n```html\n<nx-number-stepper\n  size=\"m\"\n  inputAriaLabel=\"Number of travellers\"\n></nx-number-stepper>\n<br />\n<nx-number-stepper\n  size=\"s\"\n  inputAriaLabel=\"Number of travellers\"\n></nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "standalone",
        "level": 4,
        "content": "\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Standalone example\n */\n@Component({\n  selector: 'number-stepper-standalone-example',\n  templateUrl: './number-stepper-standalone-example.html',\n  styleUrls: ['./number-stepper-standalone-example.css'],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperStandaloneExampleComponent {}\n\n```\n```html\n<nx-number-stepper label=\"Number of travellers\" size=\"m\" name=\"testStepper\">\n</nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "custom label",
        "level": 4,
        "content": "You can use custom markup by omitting the `label` attribute and provide your markup inside the element, e.g. to show a tooltip. If `label` is set the custom content will not be rendered.\nUse a `<nx-label>` or `<label>` inside your custom markup. That way the label will be automatically connected to the input field via `for` to improve accessibility.\n\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Custom label example\n */\n@Component({\n  selector: 'number-stepper-custom-label-example',\n  templateUrl: './number-stepper-custom-label-example.html',\n  styleUrls: ['./number-stepper-custom-label-example.css'],\n  imports: [\n    NxNumberStepperComponent,\n    NxIconComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    NxIconButtonComponent,\n  ],\n})\nexport class NumberStepperCustomLabelExampleComponent {}\n\n```\n```html\n<nx-number-stepper\n  size=\"m\"\n  name=\"testStepper\"\n  inputAriaLabel=\"Number of travellers\"\n>\n  <label>Number of travellers</label>\n  <button\n    class=\"nx-margin-left-2xs\"\n    nxFormfieldAppendix\n    nxIconButton=\"tertiary small\"\n    nxPopoverDirection=\"top\"\n    [nxPopoverTriggerFor]=\"popover\"\n    nxPopoverTrigger=\"click\"\n    type=\"button\"\n    aria-label=\"More information\"\n    nx-margin-left-2xs\n  >\n    <nx-icon name=\"info-circle-o\" size=\"s\" aria-hidden=\"true\"> </nx-icon>\n  </button>\n</nx-number-stepper>\n<nx-popover #popover>\n  <div><span>Custom help text as popover</span></div>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "leading zero (number formatting)",
        "level": 4,
        "content": "By default, numbers have a preceeding zero. You can disable this by setting the `leadingZero` property to false as shown in the example below.\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Number Formatting example\n */\n@Component({\n  selector: 'number-stepper-formatting-example',\n  templateUrl: './number-stepper-formatting-example.html',\n  styleUrls: ['./number-stepper-formatting-example.css'],\n  imports: [NxCopytextComponent, NxNumberStepperComponent],\n})\nexport class NumberStepperFormattingExampleComponent {}\n\n```\n```html\n<p nxCopytext=\"large\" class=\"label\">With leading zero:</p>\n<nx-number-stepper\n  size=\"s\"\n  inputAriaLabel=\"Number of travellers\"\n></nx-number-stepper>\n<br />\n<p nxCopytext=\"large\" class=\"label\">Without leading zero:</p>\n<nx-number-stepper\n  size=\"s\"\n  leadingZero=\"false\"\n  inputAriaLabel=\"Number of travellers\"\n></nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "prefix and suffix",
        "level": 4,
        "content": "You can add a prefix/suffix at the beginning or at the end of the number input by using `nx-number-stepper-prefix` or `nx-number-stepper-suffix` as shown in the example below.\n\n\n```ts\nimport {\n  NxNumberStepperComponent,\n  NxNumberStepperPrefixDirective,\n  NxNumberStepperSuffixDirective,\n} from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Prefix and Suffix\n */\n@Component({\n  selector: 'number-stepper-additions-example',\n  templateUrl: './number-stepper-additions-example.html',\n  styleUrls: ['./number-stepper-additions-example.css'],\n  imports: [\n    NxNumberStepperComponent,\n    NxNumberStepperSuffixDirective,\n    NxNumberStepperPrefixDirective,\n  ],\n})\nexport class NumberStepperAdditionsExampleComponent {}\n\n```\n```html\n<nx-number-stepper\n  resize=\"true\"\n  leadingZero=\"false\"\n  inputAriaLabel=\"Sum of Expenses\"\n>\n  <nx-number-stepper-suffix>$</nx-number-stepper-suffix>\n</nx-number-stepper>\n<br />\n<nx-number-stepper\n  size=\"m\"\n  resize=\"true\"\n  leadingZero=\"false\"\n  inputAriaLabel=\"Sum of Expenses\"\n>\n  <nx-number-stepper-prefix>€</nx-number-stepper-prefix>\n</nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "simple binding",
        "level": 4,
        "content": "\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Simple binding example\n */\n@Component({\n  selector: 'number-stepper-simple-binding-example',\n  templateUrl: './number-stepper-simple-binding-example.html',\n  styleUrls: ['./number-stepper-simple-binding-example.css'],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperSimpleBindingExampleComponent {\n  number = 1;\n}\n\n```\n```html\n<nx-number-stepper\n  size=\"m\"\n  [(value)]=\"number\"\n  step=\"2\"\n  inputAriaLabel=\"Number of travellers\"\n>\n</nx-number-stepper>\n\n<p>Value is: {{ number }}</p>\n\n```\n\n"
      },
      {
        "heading": "template-driven with ngmodel",
        "level": 4,
        "content": "\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template-driven example with ngModel\n */\n@Component({\n  selector: 'number-stepper-template-driven-example',\n  templateUrl: './number-stepper-template-driven-example.html',\n  styleUrls: ['./number-stepper-template-driven-example.css'],\n  imports: [FormsModule, NxNumberStepperComponent],\n})\nexport class NumberStepperTemplateDrivenExampleComponent {\n  number = 3;\n}\n\n```\n```html\n<form>\n  <nx-number-stepper\n    label=\"Number of travellers\"\n    [(ngModel)]=\"number\"\n    size=\"m\"\n    name=\"testStepper\"\n  >\n  </nx-number-stepper>\n\n  <p>Current value: {{ number }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "reactive",
        "level": 4,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive example\n */\n@Component({\n  selector: 'number-stepper-reactive-example',\n  templateUrl: './number-stepper-reactive-example.html',\n  styleUrls: ['./number-stepper-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxNumberStepperComponent,\n    JsonPipe,\n    NxErrorComponent,\n  ],\n})\nexport class NumberStepperReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    stepperTestReactive: 3,\n  });\n  readonly testFormRequired = this.fb.group({\n    stepperTestReactive: [\n      3,\n      { nonNullable: true, validators: [Validators.required] },\n    ],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-number-stepper\n    label=\"Number of travellers\"\n    size=\"m\"\n    formControlName=\"stepperTestReactive\"\n    [step]=\"1\"\n    [min]=\"-3\"\n    [max]=\"20\"\n  >\n    @if (\n      testForm.controls['stepperTestReactive'].errors &&\n      testForm.controls['stepperTestReactive'].errors.nxNumberStepperStepError\n    ) {\n      <nx-error> Value is not a valid step </nx-error>\n    }\n    @if (\n      testForm.controls['stepperTestReactive'].errors &&\n      testForm.controls['stepperTestReactive'].errors.nxNumberStepperFormatError\n    ) {\n      <nx-error> Not a valid number </nx-error>\n    }\n  </nx-number-stepper>\n\n  <p>Form value: {{ testForm.value | json }}</p>\n  <p>Form status: {{ testForm.status }}</p>\n  <p>\n    Form errors: {{ testForm.controls['stepperTestReactive'].errors | json }}\n  </p>\n</form>\n\n<form [formGroup]=\"testFormRequired\" class=\"nx-margin-top-l\">\n  <nx-number-stepper\n    label=\"Number of travellers (required)\"\n    size=\"m\"\n    formControlName=\"stepperTestReactive\"\n    [step]=\"1\"\n    [min]=\"-3\"\n    [max]=\"20\"\n  >\n    @if (\n      testFormRequired.controls['stepperTestReactive'].errors &&\n      testFormRequired.controls['stepperTestReactive'].errors\n        .nxNumberStepperStepError\n    ) {\n      <nx-error> Value is not a valid step </nx-error>\n    }\n    @if (\n      testFormRequired.controls['stepperTestReactive'].errors &&\n      testFormRequired.controls['stepperTestReactive'].errors\n        .nxNumberStepperFormatError\n    ) {\n      <nx-error> Not a valid number </nx-error>\n    }\n    @if (\n      testFormRequired.controls['stepperTestReactive'].errors &&\n      testFormRequired.controls['stepperTestReactive'].errors.required\n    ) {\n      <nx-error> Number of travellers is required. </nx-error>\n    }\n  </nx-number-stepper>\n\n  <p>Form value: {{ testFormRequired.value | json }}</p>\n  <p>Form status: {{ testFormRequired.status }}</p>\n  <p>\n    Form errors:\n    {{ testFormRequired.controls['stepperTestReactive'].errors | json }}\n  </p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "floating point support",
        "level": 4,
        "content": "Floating point numbers are fully supported and can be enabled by setting the step size to a decimal number\n\n\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Floating point example\n */\n@Component({\n  selector: 'number-stepper-floating-point-example',\n  templateUrl: './number-stepper-floating-point-example.html',\n  styleUrls: ['./number-stepper-floating-point-example.css'],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperFloatingPointExampleComponent {\n  number = 0;\n}\n\n```\n```html\n<nx-number-stepper\n  size=\"m\"\n  step=\"0.5\"\n  min=\"0.5\"\n  inputAriaLabel=\"Distance in meters\"\n></nx-number-stepper>\n<br />\n<nx-number-stepper\n  size=\"m\"\n  step=\"0.03\"\n  min=\"0.06\"\n  inputAriaLabel=\"Distance in meters\"\n></nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 4,
        "content": "\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling example\n */\n@Component({\n  selector: 'number-stepper-negative-example',\n  templateUrl: './number-stepper-negative-example.html',\n  styleUrls: ['./number-stepper-negative-example.css'],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-number-stepper\n    size=\"m\"\n    negative=\"true\"\n    label=\"Number of travellers\"\n    class=\"nx-margin-bottom-s\"\n  ></nx-number-stepper>\n  <nx-number-stepper\n    size=\"s\"\n    negative=\"true\"\n    label=\"Number of travellers\"\n  ></nx-number-stepper>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 4,
        "content": "You can fully disable user input on the number stepper component by setting `disabled` property to `true`.\n\n\n```ts\nimport {\n  NxNumberStepperComponent,\n  NxNumberStepperPrefixDirective,\n  NxNumberStepperSuffixDirective,\n} from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Disabling through nxDisabled property example\n */\n@Component({\n  selector: 'number-stepper-disabled-explicit-example',\n  templateUrl: './number-stepper-disabled-explicit-example.html',\n  styleUrls: ['./number-stepper-disabled-explicit-example.css'],\n  imports: [\n    NxNumberStepperComponent,\n    NxNumberStepperSuffixDirective,\n    NxNumberStepperPrefixDirective,\n  ],\n})\nexport class NumberStepperDisabledExplicitExampleComponent {}\n\n```\n```html\n<nx-number-stepper size=\"m\" [disabled]=\"true\" inputAriaLabel=\"Sum of Expenses\">\n  <nx-number-stepper-suffix>$</nx-number-stepper-suffix>\n</nx-number-stepper>\n<br />\n<nx-number-stepper size=\"s\" [disabled]=\"true\" inputAriaLabel=\"Sum of Expenses\">\n  <nx-number-stepper-prefix>€</nx-number-stepper-prefix>\n</nx-number-stepper>\n\n```\n\n\nThe number stepper will also be disabled as part of a disabled form.\n\n\n```ts\nimport {\n  NxNumberStepperComponent,\n  NxNumberStepperPrefixDirective,\n  NxNumberStepperSuffixDirective,\n} from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n} from '@angular/forms';\n\n/**\n * @title Disabled as part of disabled form example\n */\n@Component({\n  selector: 'number-stepper-disabled-implicit-example',\n  templateUrl: './number-stepper-disabled-implicit-example.html',\n  styleUrls: ['./number-stepper-disabled-implicit-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxNumberStepperComponent,\n    NxNumberStepperSuffixDirective,\n    NxNumberStepperPrefixDirective,\n  ],\n})\nexport class NumberStepperDisabledImplicitExampleComponent {\n  fb = new FormGroup({\n    amount: new FormControl({ value: '', disabled: true }),\n  });\n}\n\n```\n```html\n<form [formGroup]=\"fb\">\n  <nx-number-stepper\n    formControlName=\"amount\"\n    size=\"m\"\n    inputAriaLabel=\"Sum of Expenses\"\n  >\n    <nx-number-stepper-suffix>$</nx-number-stepper-suffix>\n  </nx-number-stepper>\n  <br />\n  <nx-number-stepper\n    formControlName=\"amount\"\n    size=\"s\"\n    inputAriaLabel=\"Sum of Expenses\"\n  >\n    <nx-number-stepper-prefix>€</nx-number-stepper-prefix>\n  </nx-number-stepper>\n</form>\n\n```\n\n"
      },
      {
        "heading": "validation",
        "level": 3,
        "content": "The directive registers itself as a validator and will append one of the following errors:\n\n-   `nxNumberStepperStepError` when the value is not a valid step. E.g. for nxMin=0 and nxStep=2 the value 1 is not a valid step\n-   `nxNumberStepperFormatError` when the value contains invalid characters, e.g. letters\n\nAs usual you can use this error key to distinguish from other errors. Try it below: Enter 1 or type in any letter to see the errors.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Validation example\n */\n@Component({\n  selector: 'number-stepper-validation-example',\n  templateUrl: './number-stepper-validation-example.html',\n  styleUrls: ['./number-stepper-validation-example.css'],\n  imports: [\n    NxNumberStepperComponent,\n    FormsModule,\n    NxMessageComponent,\n    NxErrorComponent,\n    NxLabelComponent,\n  ],\n})\nexport class NumberStepperValidationExampleComponent {\n  number = 0;\n}\n\n```\n```html\n<nx-number-stepper\n  size=\"m\"\n  [(ngModel)]=\"number\"\n  #stepperValidModel=\"ngModel\"\n  step=\"2\"\n  ariaDescribedBy=\"customHint\"\n>\n  <nx-label>Custom Label</nx-label>\n  @if (\n    stepperValidModel.errors &&\n    stepperValidModel.errors.nxNumberStepperStepError\n  ) {\n    <nx-error> That's not a valid step </nx-error>\n  }\n  @if (\n    stepperValidModel.errors &&\n    stepperValidModel.errors.nxNumberStepperFormatError\n  ) {\n    <nx-error> That's not a valid number </nx-error>\n  }\n</nx-number-stepper>\n\n@if (!stepperValidModel.errors) {\n  <nx-message context=\"info\" class=\"nx-margin-top-s\" id=\"customHint\">\n    This is a hint. This message will disappear once you get an error from\n    parsing or when the input is missing altogether.\n  </nx-message>\n}\n\n```\n\n"
      },
      {
        "heading": "auto resizing",
        "level": 3,
        "content": "When working with larger numbers or decimals the input width might be too small to properly show the current number. By enabling `resize=\"true\"` the input automatically grows and shrinks to the width of the input value including border and padding.\n\n\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Auto resizing example\n */\n@Component({\n  selector: 'number-stepper-auto-resizing-example',\n  templateUrl: './number-stepper-auto-resizing-example.html',\n  styleUrls: ['./number-stepper-auto-resizing-example.css'],\n  imports: [NxNumberStepperComponent, FormsModule],\n})\nexport class NumberStepperAutoResizingExampleComponent {\n  number = 1000;\n}\n\n```\n```html\n<nx-number-stepper\n  [(ngModel)]=\"number\"\n  resize=\"true\"\n  size=\"m\"\n  step=\"1000\"\n  max=\"10000000\"\n  inputAriaLabel=\"Number of Kilometers\"\n>\n</nx-number-stepper>\n<br />\n<nx-number-stepper\n  resize=\"true\"\n  size=\"m\"\n  step=\"0.03\"\n  min=\"0.06\"\n  inputAriaLabel=\"Distance in Meters\"\n></nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If the component owns the focus, you can increment by pressing the ARROW-UP button and decrement by pressing the ARROW-DOWN button.\n\nThe increment and decrement buttons need to have an `aria-label` for a11y support. By default they have english aria-labels, to translate them you can subclass the `NxNumberStepperIntl` and provide it in your module as shown in the [Localization example](./documentation/number-stepper/overview#localization). If you want to set these aria-labels separately for a certain number stepper you can use the inputs `incrementAriaLabel` and `decrementAriaLabel`. These inputs take precedence over `NxNumberStepperIntl`.\n\nIn addition, the input of the number stepper should also have an `aria-label` attribute, which can be set only via the input `inputAriaLabel`.\n\n**Please make sure to use either `[label]` or `inputAriaLabel`** to set the label on the number-stepper. In case you use a [custom label](./documentation/number-stepper/overview#custom-label), you should also use an additional `inputAriaLabel`.\n\nThe example below shows the usage of the above mentioned `aria-label` inputs.\n\n\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Number Stepper Accessiblity Example\n */\n@Component({\n  selector: 'number-stepper-a11y-example',\n  templateUrl: './number-stepper-a11y-example.html',\n  styleUrls: ['./number-stepper-a11y-example.css'],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperAccessibilityExampleComponent {}\n\n```\n```html\n<nx-number-stepper\n  inputAriaLabel=\"Number of travellers\"\n  incrementAriaLabel=\"Increase number of travellers\"\n  decrementAriaLabel=\"Decrease number of travellers\"\n>\n  <label>Number of travellers</label>\n</nx-number-stepper>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 4,
        "content": "\n```ts\nimport {\n  NxNumberStepperComponent,\n  NxNumberStepperIntl,\n} from '@allianz/ng-aquila/number-stepper';\nimport { Component, Injectable } from '@angular/core';\n\n@Injectable()\nexport class MyIntl extends NxNumberStepperIntl {\n  decrementAriaLabel = 'verringern';\n  incrementAriaLabel = 'erhöhen';\n}\n\n/**\n * @title Localization Example\n */\n@Component({\n  selector: 'number-stepper-localize-example',\n  templateUrl: './number-stepper-localize-example.html',\n  styleUrls: ['./number-stepper-localize-example.css'],\n  providers: [{ provide: NxNumberStepperIntl, useClass: MyIntl }],\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperLocalizeExampleComponent {}\n\n```\n```html\n<nx-number-stepper></nx-number-stepper>\n\n```\n\n\n ### Readonly input field\nYou can use the `[inputFieldReadonly]` attribute to prevent manual input of values in the input field. Use `[readonly]` to prevent input on both the buttons and the input field.\n\n\n```ts\nimport { NxNumberStepperComponent } from '@allianz/ng-aquila/number-stepper';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n  selector: 'number-stepper-readonly-input-example',\n  templateUrl: './number-stepper-readonly-input-example.html',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxNumberStepperComponent],\n})\nexport class NumberStepperReadonlyInputExampleComponent {}\n\n```\n```html\n<nx-number-stepper\n  size=\"m\"\n  step=\"20\"\n  [readonly]=\"true\"\n  class=\"nx-margin-bottom-m\"\n>\n  <label>Readonly</label>\n</nx-number-stepper>\n\n<nx-number-stepper size=\"m\" step=\"20\" [inputFieldReadonly]=\"true\">\n  <label>Readonly input field</label>\n</nx-number-stepper>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "overlay.md",
    "title": "Overlay",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "purpose",
        "level": 3,
        "content": "The overlay service provides reusable functionality to open any kind of content in an overlay panel that is attached to another element. Components that open these overlay panels in the library are e.g. the dropdown, context menu or the autocomplete. While these serve specific purposes this service can be used to create custom menus or autocomplete style components.\n"
      },
      {
        "heading": "features",
        "level": 3,
        "content": "Here are some features and advantages you get by using the service\n\n-   Style consistency of the overlay\n-   Access to the defined positioning logic of overlays including the fallback logic\n-   Focus trap into the overlay for better accessibility\n-   Configurable backdrops and closing behavior\n"
      },
      {
        "heading": "angular cdk",
        "level": 3,
        "content": "Under the hood the service is using the [CDK overlay](https://material.angular.io/cdk/overlay/overview). You can learn more about position and scroll strategies in the CDK documentation.\n\nThe CDK is required by a number of modules such as message toast, popover or dropdown as they use the overlay component. If you intend to use those, please make sure you have imported the cdk-a11y and cdk-overlay stylesheets, so that everything gets displayed correctly:\n\n```scss\n@import '@angular/cdk/overlay-prebuilt.css';\n@import '@angular/cdk/a11y-prebuilt.css';\n```\n\nIf you create a new project, the best way to add the necessary styles would be by running `ng add @allianz/ngx-ndbx`.\n\nIf you migrate an existing project, make sure to add these to your global styles or into the styles option in the angular.json.\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "It is important to notice that the content that gets put into the overlay has to implement the specific accessibility patterns it needs. The service only takes care of accessibility features around the content, like closing or focus trapping. As an example a dropdown or autocomplete has to implement the role listbox, the context menu in contrast implements role menu. The role can be either set on the overlay wrapper directly via the configuration or can come from the content component.\n"
      },
      {
        "heading": "focus trap and keyboard navigation",
        "level": 4,
        "content": "By default the focus gets trapped into the overlay that keyboard and screen reader users can navigate inside the content. Pressing escape closes the overlay. The focus trap can be turned off via the configuration for tooltip style patterns that only serve optional content that is presented differently to the user via a live region or with aria-describedby.\n"
      },
      {
        "heading": "positioning",
        "level": 3,
        "content": "You can use the predefined directions `top`, `top-start`, `top-end`, `bottom`, `bottom-start`, `bottom-end`, `left` or `right` which all have fallback positions if the overlay doesn't fit into the direction.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxOverlayDirection,\n  NxOverlayRef,\n  NxOverlayService,\n} from '@allianz/ng-aquila/overlay';\nimport { CdkOverlayOrigin } from '@angular/cdk/overlay';\nimport { Component, ElementRef, TemplateRef, ViewChild } from '@angular/core';\n\n/**\n * @title Notification Panel\n */\n@Component({\n  selector: 'overlay-positioning-example',\n  templateUrl: './overlay-positioning-example.html',\n  styleUrls: ['./overlay-positioning-example.css'],\n  imports: [NxButtonComponent, CdkOverlayOrigin, NxCopytextComponent],\n})\nexport class OverlayPositioningExampleComponent {\n  currentOverlay!: NxOverlayRef<any>;\n\n  @ViewChild(TemplateRef) template!: TemplateRef<any>;\n\n  constructor(readonly nxOverlay: NxOverlayService) {}\n\n  open(element: ElementRef, direction: NxOverlayDirection) {\n    if (this.currentOverlay) {\n      this.currentOverlay.close();\n    }\n    this.currentOverlay = this.nxOverlay.open(this.template, element, {\n      width: 150,\n      height: 200,\n      direction,\n    });\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  (click)=\"open(btn1.elementRef, 'top')\"\n  cdkOverlayOrigin\n  #btn1=\"cdkOverlayOrigin\"\n>\n  Open to top\n</button>\n<button\n  nxButton=\"primary small\"\n  (click)=\"open(btn2.elementRef, 'bottom')\"\n  cdkOverlayOrigin\n  #btn2=\"cdkOverlayOrigin\"\n>\n  Open to bottom\n</button>\n<button\n  nxButton=\"primary small\"\n  (click)=\"open(btn3.elementRef, 'left')\"\n  cdkOverlayOrigin\n  #btn3=\"cdkOverlayOrigin\"\n>\n  Open to the left\n</button>\n<button\n  nxButton=\"primary small\"\n  (click)=\"open(btn4.elementRef, 'right')\"\n  cdkOverlayOrigin\n  #btn4=\"cdkOverlayOrigin\"\n>\n  Open to the right\n</button>\n\n<ng-template #template>\n  <div class=\"my-overlay-content nx-margin-bottom-0\" nxCopytext>Hi there!</div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "limiting fallbacks",
        "level": 3,
        "content": "Depending on the requirements of your overlay you can limit the fallbacks the overlay can choose by setting the `fallbackOrientation` option in the configuration. By default the overlay will choose fallbacks clockwise from the starting direction.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxOverlayConfig,\n  NxOverlayDirection,\n  NxOverlayRef,\n  NxOverlayService,\n} from '@allianz/ng-aquila/overlay';\nimport { CdkOverlayOrigin } from '@angular/cdk/overlay';\nimport { Component, ElementRef, TemplateRef, ViewChild } from '@angular/core';\n\n/**\n * @title Notification Panel\n */\n@Component({\n  selector: 'overlay-limiting-fallbacks-example',\n  templateUrl: './overlay-limiting-fallbacks-example.html',\n  styleUrls: ['./overlay-limiting-fallbacks-example.css'],\n  imports: [NxButtonComponent, CdkOverlayOrigin],\n})\nexport class OverlayLimitingFallbacksExampleComponent {\n  fallbacks: NxOverlayDirection[] = ['top', 'bottom'];\n  config: NxOverlayConfig = {\n    width: 250,\n    height: 250,\n    fallbackOrientation: 'vertical',\n    direction: 'left',\n  };\n\n  currentOverlay!: NxOverlayRef<any>;\n\n  @ViewChild(TemplateRef) template!: TemplateRef<any>;\n\n  constructor(readonly nxOverlay: NxOverlayService) {}\n\n  open(element: ElementRef) {\n    if (this.currentOverlay) {\n      this.currentOverlay.close();\n    }\n    this.currentOverlay = this.nxOverlay.open(\n      this.template,\n      element,\n      this.config,\n    );\n  }\n}\n\n```\n```html\n<p class=\"nx-margin-top-0\">\n  The following overlay is only allowed to fallback vertically, so only top and\n  bottom.\n</p>\n\n<button\n  nxButton=\"primary\"\n  (click)=\"open(btn1.elementRef)\"\n  cdkOverlayOrigin\n  #btn1=\"cdkOverlayOrigin\"\n>\n  Open\n</button>\n\n<ng-template #template>\n  <div style=\"width: 100%; height: 100%\">Hi there!</div>\n</ng-template>\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "If you want to use a custom scroll strategy, you can use the `NX_OVERLAY_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n```ts\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n    return () => overlay.scrollStrategies.close();\n}\n\n@NgModule({\n  /* ... */\n  providers: [{\n    provide: NX_OVERLAY_SCROLL_STRATEGY,\n    useFactory: scrollStrategyFactory,\n    deps: [Overlay],\n  }],\n}\nexport class AppModule {}\n```\n\nAlternatively, the `NX_OVERLAY_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      }
    ]
  },
  {
    "name": "page-search.md",
    "title": "Page Search",
    "category": "components",
    "alias": [
      "search field",
      "search",
      "search bar"
    ],
    "sections": [
      {
        "heading": "autocomplete",
        "level": 3,
        "content": "The following example displays two autocomplete component:\n\n\n```ts\nimport {\n  NxAutocompleteComponent,\n  NxAutocompleteTriggerDirective,\n} from '@allianz/ng-aquila/autocomplete';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldPrefixDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxPageSearchComponent } from '@allianz/ng-aquila/page-search';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Component, Injectable } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n  providedIn: 'root',\n})\nexport class WikipediaService {\n  private readonly WIKIPEDIA_URL = 'https://en.wikipedia.org/w/api.php';\n\n  constructor(private readonly client: HttpClient) {}\n\n  search(term: string): Observable<any[]> {\n    const url = searchUrl(term, this.WIKIPEDIA_URL);\n    return this.client\n      .jsonp(url, 'callback')\n      .pipe(\n        map((response: any) =>\n          response[1].map((item: any) => ({ value: item })),\n        ),\n      );\n\n    function searchUrl(searchTeam: string, base: string) {\n      const params = new HttpParams()\n        .append('action', 'opensearch')\n        .append('search', encodeURIComponent(searchTeam))\n        .append('format', 'json');\n      return `${base}?${params.toString()}`;\n    }\n  }\n}\n\n/**\n * @title Autocomplete Example\n */\n@Component({\n  selector: 'page-search-autocomplete-example',\n  templateUrl: './page-search-autocomplete-example.html',\n  styleUrls: ['./page-search-autocomplete-example.css'],\n  providers: [WikipediaService],\n  imports: [\n    NxPageSearchComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxAutocompleteTriggerDirective,\n    FormsModule,\n    NxAutocompleteComponent,\n    NxFormfieldPrefixDirective,\n    NxIconComponent,\n    NxFormfieldSuffixDirective,\n  ],\n})\nexport class PageSearchAutocompleteExampleComponent {\n  searchFunction: (term: string) => Observable<string[]>;\n\n  searchTerm1 = '';\n  searchTerm2 = '';\n\n  constructor(readonly wikipediaService: WikipediaService) {\n    this.searchFunction = (term: string) =>\n      wikipediaService\n        .search(term)\n        .pipe(map((items: any) => items.map((item: any) => item.value)));\n  }\n}\n\n```\n```html\n<nx-page-search\n  buttonLabel=\"Search\"\n  buttonLayout=\"12,12,12,4\"\n  contentLayout=\"12,12,12,8\"\n  aria-label=\"Search autocomplete example\"\n>\n  <div nxLayout=\"grid nopadding\">\n    <div nxRow>\n      <div nxCol=\"12,12,6,6\">\n        <nx-formfield>\n          <input\n            nxInput\n            [nxAutocomplete]=\"auto1\"\n            [nxAutocompleteItems]=\"searchFunction\"\n            [(ngModel)]=\"searchTerm1\"\n            type=\"search\"\n          />\n          <nx-autocomplete #auto1=\"nxAutocomplete\"></nx-autocomplete>\n          <span nxFormfieldPrefix>\n            <nx-icon name=\"search\" size=\"s\"></nx-icon>\n          </span>\n          @if (searchTerm1) {\n            <span\n              nxFormfieldSuffix\n              aria-hidden=\"true\"\n              (click)=\"searchTerm1 = ''\"\n            >\n              <nx-icon name=\"close\" size=\"s\"></nx-icon>\n            </span>\n          }\n        </nx-formfield>\n      </div>\n      <div nxCol=\"12,12,6,6\">\n        <nx-formfield>\n          <input\n            nxInput\n            [nxAutocomplete]=\"auto2\"\n            [nxAutocompleteItems]=\"searchFunction\"\n            [(ngModel)]=\"searchTerm2\"\n            type=\"search\"\n          />\n          <nx-autocomplete #auto2=\"nxAutocomplete\"></nx-autocomplete>\n          <span nxFormfieldPrefix>\n            <nx-icon name=\"search\" size=\"s\"></nx-icon>\n          </span>\n          @if (searchTerm2) {\n            <span\n              nxFormfieldSuffix\n              aria-hidden=\"true\"\n              (click)=\"searchTerm2 = ''\"\n            >\n              <nx-icon name=\"close\" size=\"s\"></nx-icon>\n            </span>\n          }\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</nx-page-search>\n\n```\n\n"
      },
      {
        "heading": "simple input",
        "level": 3,
        "content": "The following example displays a single input as content:\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxPageSearchComponent } from '@allianz/ng-aquila/page-search';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Simple input example\n */\n@Component({\n  selector: 'page-search-input-example',\n  templateUrl: './page-search-input-example.html',\n  styleUrls: ['./page-search-input-example.css'],\n  imports: [\n    NxPageSearchComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldSuffixDirective,\n    NxIconComponent,\n  ],\n})\nexport class PageSearchInputExampleComponent {\n  searchTerm = '';\n}\n\n```\n```html\n<nx-page-search\n  buttonLabel=\"Search\"\n  buttonLayout=\"12,12,12,4\"\n  contentLayout=\"12,12,12,8\"\n  aria-label=\"Search input example\"\n>\n  <div nxLayout=\"grid nopadding\">\n    <div nxRow>\n      <div nxCol=\"12\">\n        <nx-formfield>\n          <input\n            nxInput\n            placeholder=\"Enter Keyword\"\n            [(ngModel)]=\"searchTerm\"\n            type=\"search\"\n          />\n          @if (searchTerm) {\n            <span\n              nxFormfieldSuffix\n              aria-hidden=\"true\"\n              (click)=\"searchTerm = ''\"\n            >\n              <nx-icon name=\"close\" size=\"s\"></nx-icon>\n            </span>\n          }\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</nx-page-search>\n\n```\n\n"
      },
      {
        "heading": "button click",
        "level": 3,
        "content": "You can listen to the button click as displayed in the following example:\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxPageSearchComponent } from '@allianz/ng-aquila/page-search';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Button click example\n */\n@Component({\n  selector: 'page-search-click-example',\n  templateUrl: './page-search-click-example.html',\n  styleUrls: ['./page-search-click-example.css'],\n  imports: [\n    NxPageSearchComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldSuffixDirective,\n    NxIconComponent,\n  ],\n})\nexport class PageSearchClickExampleComponent {\n  valuesByClick: string[] = [];\n  searchTerm = '';\n\n  onButtonClick(value: string) {\n    this.valuesByClick.push(value);\n  }\n}\n\n```\n```html\n<nx-page-search\n  buttonLabel=\"Search\"\n  (buttonClick)=\"onButtonClick(clickExampleInput.value)\"\n  buttonLayout=\"12,12,12,4\"\n  contentLayout=\"12,12,12,8\"\n  aria-label=\"Search click example\"\n>\n  <div nxLayout=\"grid nopadding\">\n    <div nxRow>\n      <div nxCol=\"12\">\n        <nx-formfield>\n          <input\n            #clickExampleInput\n            nxInput\n            placeholder=\"Enter Keyword\"\n            [(ngModel)]=\"searchTerm\"\n            type=\"search\"\n          />\n          @if (searchTerm) {\n            <span\n              nxFormfieldSuffix\n              aria-hidden=\"true\"\n              (click)=\"searchTerm = ''\"\n            >\n              <nx-icon name=\"close\" size=\"s\"></nx-icon>\n            </span>\n          }\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</nx-page-search>\n<br />\n@for (value of valuesByClick; track value) {\n  <div>Value at click: {{ value }}</div>\n}\n\n```\n\n"
      },
      {
        "heading": "hidden search button",
        "level": 3,
        "content": "You can hide the search button:\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxPageSearchComponent } from '@allianz/ng-aquila/page-search';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Hidden search button example\n */\n@Component({\n  selector: 'page-search-hidden-example',\n  templateUrl: './page-search-hidden-example.html',\n  styleUrls: ['./page-search-hidden-example.css'],\n  imports: [\n    NxPageSearchComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxFormfieldSuffixDirective,\n    NxIconComponent,\n  ],\n})\nexport class PageSearchHiddenExampleComponent {\n  searchTerm = '';\n}\n\n```\n```html\n<nx-page-search\n  buttonLabel=\"Search\"\n  [hideSearchButton]=\"true\"\n  aria-label=\"Search hidden example\"\n>\n  <div nxLayout=\"grid nopadding\">\n    <div nxRow>\n      <div nxCol=\"12\">\n        <nx-formfield>\n          <input\n            nxInput\n            placeholder=\"Enter Keyword\"\n            [(ngModel)]=\"searchTerm\"\n            type=\"search\"\n          />\n          @if (searchTerm) {\n            <span\n              nxFormfieldSuffix\n              aria-hidden=\"true\"\n              (click)=\"searchTerm = ''\"\n            >\n              <nx-icon name=\"close\" size=\"s\"></nx-icon>\n            </span>\n          }\n        </nx-formfield>\n      </div>\n    </div>\n  </div>\n</nx-page-search>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "pagination.md",
    "title": "Pagination",
    "category": "components",
    "alias": [
      "pager",
      "paginator"
    ],
    "sections": [
      {
        "heading": "advanced pagination",
        "level": 3,
        "content": "**Important:** If you use the advanced pagination, please translate the labels that are used by screen readers as shown in the [localization example](./documentation/pagination/overview#localization).\n\n\n```ts\nimport { NxPaginationComponent } from '@allianz/ng-aquila/pagination';\nimport { Component } from '@angular/core';\n\n/**\n * @title Advanced Pagination Example\n */\n@Component({\n  selector: 'pagination-advanced-example',\n  templateUrl: './pagination-advanced-example.html',\n  styleUrls: ['./pagination-advanced-example.css'],\n  imports: [NxPaginationComponent],\n})\nexport class PaginationAdvancedExampleComponent {\n  count = 210;\n  page = 1;\n  perPage = 10;\n\n  prevPage() {\n    this.page--;\n  }\n\n  nextPage() {\n    this.page++;\n  }\n\n  goToPage(n: number) {\n    this.page = n;\n  }\n}\n\n```\n```html\n<nx-pagination\n  [count]=\"count\"\n  [page]=\"page\"\n  [perPage]=\"perPage\"\n  type=\"advanced\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n  ariaLabel=\"Advanced example pagination\"\n>\n</nx-pagination>\n\n```\n\n"
      },
      {
        "heading": "configuring the navigation controls",
        "level": 4,
        "content": "The first, previous, next and last controls are configurable:\n\n-   `firstLastControls`, `prevNextControls` — how each control pair is rendered: `icon` (default), `label`, which shows the `IPaginationTexts` label instead of the icon, or `hidden`.\n-   `controlsPosition` — `around` (default), or `start` / `end` to group all controls on one side.\n-   `alignment` — `start` (default), or `space-between` to stretch the pagination across the container width and pin the controls to its edges.\n\n\n```ts\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport {\n  NxPaginationAlignment,\n  NxPaginationComponent,\n  NxPaginationControlDisplay,\n  NxPaginationControlsPosition,\n} from '@allianz/ng-aquila/pagination';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Configurable Advanced Pagination Example\n */\n@Component({\n  selector: 'pagination-advanced-controls-example',\n  templateUrl: './pagination-advanced-controls-example.html',\n  styleUrls: ['./pagination-advanced-controls-example.css'],\n  imports: [\n    NxPaginationComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxFormfieldComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n  ],\n})\nexport class PaginationAdvancedControlsExampleComponent {\n  readonly controlsPositions: NxPaginationControlsPosition[] = [\n    'around',\n    'start',\n    'end',\n  ];\n\n  readonly alignments: NxPaginationAlignment[] = ['start', 'space-between'];\n\n  readonly controlDisplays: NxPaginationControlDisplay[] = [\n    'icon',\n    'label',\n    'hidden',\n  ];\n\n  readonly controlsPosition = signal<NxPaginationControlsPosition>('around');\n  readonly alignment = signal<NxPaginationAlignment>('start');\n  readonly firstLastControls = signal<NxPaginationControlDisplay>('icon');\n  readonly prevNextControls = signal<NxPaginationControlDisplay>('icon');\n\n  readonly count = 210;\n  readonly perPage = 10;\n  readonly page = signal(4);\n\n  prevPage() {\n    this.page.update((page) => page - 1);\n  }\n\n  nextPage() {\n    this.page.update((page) => page + 1);\n  }\n\n  goToPage(n: number) {\n    this.page.set(n);\n  }\n}\n\n```\n```html\n<div nxLayout=\"grid nopadding\" class=\"nx-margin-bottom-m options\">\n  <div nxRow>\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"firstLastControls\">\n        <nx-dropdown [(value)]=\"firstLastControls\">\n          @for (item of controlDisplays; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"prevNextControls\">\n        <nx-dropdown [(value)]=\"prevNextControls\">\n          @for (item of controlDisplays; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"controlsPosition\">\n        <nx-dropdown [(value)]=\"controlsPosition\">\n          @for (item of controlsPositions; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"alignment\">\n        <nx-dropdown [(value)]=\"alignment\">\n          @for (item of alignments; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n<nx-pagination\n  [count]=\"count\"\n  [page]=\"page()\"\n  [perPage]=\"perPage\"\n  type=\"advanced\"\n  [firstLastControls]=\"firstLastControls()\"\n  [prevNextControls]=\"prevNextControls()\"\n  [controlsPosition]=\"controlsPosition()\"\n  [alignment]=\"alignment()\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n  ariaLabel=\"Configurable advanced pagination\"\n>\n</nx-pagination>\n\n```\n\n"
      },
      {
        "heading": "simple pagination",
        "level": 3,
        "content": "\n```ts\nimport { NxPaginationComponent } from '@allianz/ng-aquila/pagination';\nimport { Component } from '@angular/core';\n\n/**\n * @title Simple Pagination Example\n */\n@Component({\n  selector: 'pagination-simple-example',\n  templateUrl: './pagination-simple-example.html',\n  styleUrls: ['./pagination-simple-example.css'],\n  imports: [NxPaginationComponent],\n})\nexport class PaginationSimpleExampleComponent {\n  page = 1;\n  count = 210;\n  perPage = 10;\n\n  prevPage() {\n    this.page--;\n  }\n\n  nextPage() {\n    this.page++;\n  }\n\n  goToPage(n: number) {\n    this.page = n;\n  }\n}\n\n```\n```html\n<nx-pagination\n  [count]=\"count\"\n  [page]=\"page\"\n  [perPage]=\"perPage\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n>\n</nx-pagination>\n\n```\n\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "slider pagination",
        "level": 3,
        "content": "The pagination can be used for a slider using `type=\"slider\"`. **Important:** Maximum 6 slides are supported.\n\n\n```ts\nimport { NxPaginationComponent } from '@allianz/ng-aquila/pagination';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Pagination Example\n */\n@Component({\n  selector: 'pagination-slider-example',\n  templateUrl: './pagination-slider-example.html',\n  styleUrls: ['./pagination-slider-example.css'],\n  imports: [NxPaginationComponent],\n})\nexport class PaginationSliderExampleComponent {\n  activeSlide = 1;\n  slides = 6;\n\n  prevPage() {\n    this.activeSlide--;\n  }\n\n  nextPage() {\n    this.activeSlide++;\n  }\n\n  goToPage(n: number) {\n    this.activeSlide = n;\n  }\n}\n\n```\n```html\n<nx-pagination\n  [count]=\"slides\"\n  [page]=\"activeSlide\"\n  [perPage]=\"1\"\n  type=\"slider\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n>\n</nx-pagination>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "localization",
        "level": 3,
        "content": "In order to localize the component you have to implement the interface `IPaginationTexts` and provide your implementation with the `NX_PAGINATION_TEXTS` injection token.\n\nPay attention that `IPaginationTexts` has two optional attributes: `first` and `last` used for the first and last arrows of the advanced pagination.\n\n\n```ts\nimport {\n  IPaginationTexts,\n  NX_PAGINATION_TEXTS,\n  NxPaginationComponent,\n} from '@allianz/ng-aquila/pagination';\nimport { Component } from '@angular/core';\n\nconst myPaginationTexts: IPaginationTexts = {\n  previous: 'myPreviousText',\n  next: 'myNextText',\n  ofLabel: 'myOf',\n  ariaLabel: 'myAriaLabelText',\n};\n\n/**\n * @title Localization Example\n */\n@Component({\n  selector: 'pagination-localize-example',\n  templateUrl: './pagination-localize-example.html',\n  styleUrls: ['./pagination-localize-example.css'],\n  providers: [{ provide: NX_PAGINATION_TEXTS, useValue: myPaginationTexts }],\n  imports: [NxPaginationComponent],\n})\nexport class PaginationLocalizeExampleComponent {\n  page = 1;\n  count = 210;\n  perPage = 10;\n\n  prevPage() {\n    this.page--;\n  }\n\n  nextPage() {\n    this.page++;\n  }\n\n  goToPage(n: number) {\n    this.page = n;\n  }\n}\n\n```\n```html\n<nx-pagination\n  [count]=\"count\"\n  [page]=\"page\"\n  [perPage]=\"perPage\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n  ariaLabel=\"Localize example pagination\"\n>\n</nx-pagination>\n\n```\n\n\n\n```ts\nimport {\n  IPaginationTexts,\n  NX_PAGINATION_TEXTS,\n  NxPaginationComponent,\n} from '@allianz/ng-aquila/pagination';\nimport { Component } from '@angular/core';\n\nconst myPaginationTexts: IPaginationTexts = {\n  previous: 'myPreviousText',\n  next: 'myNextText',\n  ofLabel: 'myOf',\n  ariaLabel: 'myAriaLabelText',\n  last: 'myLastText',\n  first: 'myFirstText',\n};\n\n/**\n * @title Localization - Advanced Pagination\n */\n@Component({\n  selector: 'pagination-localize-advanced-example',\n  templateUrl: './pagination-localize-advanced-example.html',\n  styleUrls: ['./pagination-localize-advanced-example.css'],\n  providers: [{ provide: NX_PAGINATION_TEXTS, useValue: myPaginationTexts }],\n  imports: [NxPaginationComponent],\n})\nexport class PaginationLocalizeAdvancedExampleComponent {\n  page = 1;\n  count = 210;\n  perPage = 10;\n\n  prevPage() {\n    this.page--;\n  }\n\n  nextPage() {\n    this.page++;\n  }\n\n  goToPage(n: number) {\n    this.page = n;\n  }\n}\n\n```\n```html\n<nx-pagination\n  [count]=\"count\"\n  type=\"advanced\"\n  [page]=\"page\"\n  [perPage]=\"perPage\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n  ariaLabel=\"Localize advanced example pagination\"\n>\n</nx-pagination>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If you have multiple paginations on the same page you have to consider the `Landmarks should have a unique role or role/label/title combination` rule. You can achieve this by adding a unique `ariaLabel` to the `nx-pagination` component. You can either use the `ariaLabel` input directly or wrap the pagination in a component and provide the `NX_PAGINATION_TEXTS` token.\n\n\n```ts\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { NxPaginationComponent } from '@allianz/ng-aquila/pagination';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\n\n/**\n * @title A11y Example\n */\n@Component({\n  selector: 'pagination-a11y-example',\n  templateUrl: './pagination-a11y-example.html',\n  styleUrls: ['./pagination-a11y-example.css'],\n  imports: [\n    NxMessageComponent,\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxPaginationComponent,\n  ],\n})\nexport class PaginationA11yExampleComponent {\n  page = 1;\n  count = 210;\n  perPage = 10;\n\n  prevPage() {\n    this.page--;\n  }\n\n  nextPage() {\n    this.page++;\n  }\n\n  goToPage(n: number) {\n    this.page = n;\n  }\n}\n\n```\n```html\n<nx-message context=\"warning\">\n  This example intends to show how to set explicit\n  <code>ariaLabels</code> when you have multiple paginations, try it with a\n  screenreader or look at the html code how the <code>ariaLabel</code> inputs\n  are set. The example is not supposed to show how to have a working pagination\n  on a table.\n</nx-message>\n\n<p>\n  The following pagination gets the aria label set to \"Cars table pagination\"\n</p>\n\n<table nxTable style=\"table-layout: fixed\">\n  <thead>\n    <tr nxTableRow>\n      <th nxHeaderCell>Car</th>\n      <th nxHeaderCell>Price</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr nxTableRow>\n      <td nxTableCell>Porsche</td>\n      <td nxTableCell>72500</td>\n    </tr>\n  </tbody>\n</table>\n\n<div class=\"pagination nx-margin-top-s\">\n  <nx-pagination\n    [count]=\"count\"\n    [page]=\"page\"\n    [perPage]=\"perPage\"\n    (goPrev)=\"prevPage()\"\n    (goNext)=\"nextPage()\"\n    (goPage)=\"goToPage($event)\"\n    ariaLabel=\"Cars table pagination\"\n  >\n  </nx-pagination>\n</div>\n\n<p>\n  The following pagination gets the aria label set to \"Customers table\n  pagination\"\n</p>\n\n<table nxTable class=\"nx-margin-top-m\" style=\"table-layout: fixed\">\n  <thead>\n    <tr nxTableRow>\n      <th nxHeaderCell>Name</th>\n      <th nxHeaderCell>ID</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr nxTableRow>\n      <td nxTableCell>Max Mustermann</td>\n      <td nxTableCell>12345</td>\n    </tr>\n  </tbody>\n</table>\n<div class=\"pagination nx-margin-top-s\">\n  <nx-pagination\n    [count]=\"count\"\n    [page]=\"page\"\n    [perPage]=\"perPage\"\n    (goPrev)=\"prevPage()\"\n    (goNext)=\"nextPage()\"\n    (goPage)=\"goToPage($event)\"\n    ariaLabel=\"Customers table pagination\"\n  >\n  </nx-pagination>\n</div>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "patterns.md",
    "title": "Patterns",
    "category": "general",
    "alias": [
      "patterns"
    ],
    "sections": [
      {
        "heading": "soft character limit  ",
        "level": 2,
        "content": "<div class=\"tag-list docs-private\"> <div class=\"tag approved-tag\">NDBX Approved</div> <div class=\"tag active-tag\">a11y checked</div></div>\n\n\nSometimes it might be required to allow users to input or paste more text then a the input or text area allows before they submut a form. [The standard `maxlength`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/maxlength) will cut of any text that extends the permitted length. \nA soft character limit enables a user to paste any text and cleanup the text before submitting. In this example the Text Area takes care of \n- showing remaining / exceeded characters\n- announcing number of remaining / exceeded by screen reader\n- validading input length \n- showing an error message if expected format is not met after edit\n\n<!-- example(text-area-character-limit, { \"hideStackblitzButton\": true }) -->\n"
      },
      {
        "heading": "ai suggestions for input fields ",
        "level": 2,
        "content": "<div class=\"tag-list docs-private\">  <div class=\"tag approved-tag\">NDBX Approved</div> </div>\n\nHint: the sparkle icon is not yet available in the icons library. But you still can <nx-link><a href=\"documentation/icon/overview#register-icons-service\">register a custom icon in your App</a></nx-link>.\n\n<!-- example(ai-autofill, { \"hideStackblitzButton\": true }) -->\n\n"
      },
      {
        "heading": "bypass blocks ",
        "level": 2,
        "content": "<div class=\"tag-list docs-private\"> <div class=\"tag active-tag\">a11y example</div> </div>\n\n🧪 To test this example properly,  <nx-link><a href=\"examples/a11y-skip-to-data-description\">please test in full screen</a></nx-link> and then TAB from the start of the page 🧪\n\n[Bypass Blocks](https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks) can help keyboard users and users of assistive tools to navigate to relevant content quickly and skip repetitive elements like headers, navigation etc.\n\nThere are different ways to achieve that like anchor links (e.g. `<a href=\"#id-of-html-element\">`). This example uses Angulars fragmented routing. \n\n<!-- example(a11y-skip-to-data-description, { \"hideStackblitzButton\": true }) -->\n"
      },
      {
        "heading": "fetch items on filter input  ",
        "level": 2,
        "content": "<div class=\"tag-list docs-private\"> <div class=\"tag active-tag\">technical example ⚙️</div> </div>\n\n<!-- example(dropdown-fetch-on-filter, { \"hideStackblitzButton\": true }) -->\n"
      },
      {
        "heading": "contained list",
        "level": 2,
        "content": "<div class=\"tag-list\"> <div class=\"tag approved-tag\">NDBX approved</div> </div>\n\nStyling option for list like presentations.\n\n__Important:__ Do __not__ nest interactive elements like buttons into clickable List Items. That will result in unexpected UX for Users and [accessibility violations](https://www.accessibilitychecker.org/wcag-guides/ensure-interactive-controls-are-not-nested-as-they-are-not-always-announced-by-screen-readers-or-can-cause-focus-problems-for-assistive-technologies/). \n\n__Hint:__ There are many use cases for Contained Lists with clickable List Items. Make sure to use the right pattern for your use case like using anchors and encapsulating it into a `<nav>` container if you're using it for navigation. \n\n\n\n<!-- example(contained-list, { \"hideStackblitzButton\": true }) -->\n\n"
      },
      {
        "heading": "search field",
        "level": 2,
        "content": "<div class=\"tag-list docs-private\"> <div class=\"tag active-tag\">technical example ⚙️</div> </div>\n\nUse these examples to replace the deprecated <nx-link><a href=\"./documentation/page-search/overview\">Page Search</a></nx-link>. They combine `nxInput` or `nxAutocomplete` with an `nx-formfield`, a search icon in `nxFormfieldPrefix` and a search button in `nxFormfieldAppendix`.\n\n- Wrap the field in a `<form role=\"search\">`. This keeps the search landmark that Page Search added, and users can submit with Enter.\n- If you use more than one search on a page, give each one a unique `aria-label`.\n- The input has no visible label, so it needs an `aria-label`.\n"
      },
      {
        "heading": "input",
        "level": 3,
        "content": "<!-- example(search-field-input, { \"hideStackblitzButton\": true }) -->\n"
      },
      {
        "heading": "autocomplete",
        "level": 3,
        "content": "<!-- example(search-field-autocomplete, { \"hideStackblitzButton\": true }) -->\n\n<style>\n    body{\n        --grid-max-width: 1337px;\n    }\n    .component-overview__header {\n        font-size: 3rem;\n        font-weight: 600;\n        background: linear-gradient(45deg, var(--success), var(--header-link-active-color));\n        -webkit-background-clip: text;\n        -webkit-text-fill-color: transparent;\n        background-clip: text; /* For Firefox */\n        color: transparent;\n        margin-bottom: 42px;\n    }\n\n    .component-overview__navigation {\n        display: none;\n    }\n\n    .docs-markdown--h2{\n        background: linear-gradient(45deg, var(--success), var(--header-link-active-color));\n        -webkit-background-clip: text;\n        -webkit-text-fill-color: transparent;\n        background-clip: text; /* For Firefox */\n        color: transparent;\n        display: inline-block;\n    }\n\n    .emphasis-text {\n        font-weight: 600;\n        color: #122b54;\n    }\n\n    .tag {\n        font-size: var(--badge-font-size);\n        line-height: var(--badge-line-height);\n        font-weight: var(--badge-font-weight);\n        letter-spacing: var(--badge-letter-spacing);\n        display: inline-block;\n        padding: 0 8px;\n        white-space: nowrap;\n        border-radius: 12px;\n        min-width: 24px;\n        -webkit-text-fill-color: var(--badge-color);\n        color: var(--badge-color);\n        position: relative;\n        bottom: 7px;\n        margin-left: 8px;\n    }\n\n    .tag-list {\n        display: inline-block;\n        margin-left: 8px;\n    }\n\n    .approved-tag {\n        background-color: var(--badge-positive-background-color);   \n    }\n\n    .active-tag {\n        background-color: var(--badge-active-background-color);\n    }\n\n    ..nxv-example-viewer__header {\n        background-color: \n    }\n\n</style>"
      }
    ]
  },
  {
    "name": "phone-input.md",
    "title": "Phone Input",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "dependencies",
        "level": 2,
        "content": "The phone input component depends on the `i18n-iso-countries` package. Please install it, e.g. for npm run `npm install i18n-iso-countries --save`.\n\nThe phone input is implemented as an `NxFormfieldControl` so you can use it like an input or dropdown inside the formfield component.\n"
      },
      {
        "heading": "retail",
        "level": 2,
        "content": "The retail version with a placeholder. Please note: the floating label is fixed to the top currently for the phone input. This is only visible if you do not use a placeholder value.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Retail variation */\n@Component({\n  selector: 'phone-input-retail-example',\n  templateUrl: 'phone-input-retail-example.html',\n  styleUrls: ['./phone-input-retail-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n  ],\n})\nexport class PhoneInputRetailExampleComponent {\n  value = '';\n}\n\n```\n```html\n<nx-formfield>\n  <nx-formfield-label>Private mobile phone number</nx-formfield-label>\n  <nx-phone-input\n    [(ngModel)]=\"value\"\n    required\n    placeholder=\"89 123456\"\n  ></nx-phone-input>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "initial selected country",
        "level": 2,
        "content": "You can set the initial country code via the `countryCode` input. The input expects an internal country code like `DE`, `US` or `AT`. If there is already a number in the input field changing `countryCode` programmatically has no effect.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selected country example\n */\n@Component({\n  selector: 'phone-input-country-code-example',\n  templateUrl: 'phone-input-country-code-example.html',\n  styleUrls: ['./phone-input-country-code-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n  ],\n})\nexport class PhoneInputCountryCodeExampleComponent {\n  value = '';\n}\n\n```\n```html\n<nx-formfield>\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input countryCode=\"FR\"></nx-phone-input>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "forms",
        "level": 2,
        "content": "When using `ngModel` or reactive forms the component expects the control value to be in the format of `+<country-calling-code><local number>`, e.g. `+4989123456` as the initial value. It is important that the country calling code is in the beginning of the string that the component can parse it correctly.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Phone input usage in forms\n */\n@Component({\n  selector: 'phone-input-forms-example',\n  templateUrl: 'phone-input-forms-example.html',\n  styleUrls: ['./phone-input-forms-example.css'],\n  imports: [\n    NxHeadlineComponent,\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n    ReactiveFormsModule,\n  ],\n})\nexport class PhoneInputFormsExampleComponent {\n  value = '';\n  formGroup: FormGroup;\n\n  constructor() {\n    this.formGroup = new FormGroup({\n      phone: new FormControl('', Validators.required),\n    });\n  }\n}\n\n```\n```html\n<p nxHeadline=\"subsection-xsmall\" class=\"nx-font-weight-semibold\">\n  Template driven\n</p>\n<nx-formfield>\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input [(ngModel)]=\"value\" required></nx-phone-input>\n</nx-formfield>\n\n<p nxHeadline=\"subsection-xsmall\" class=\"nx-font-weight-semibold\">\n  Reactive forms\n</p>\n<form [formGroup]=\"formGroup\">\n  <nx-formfield>\n    <nx-formfield-label>Phone number</nx-formfield-label>\n    <nx-phone-input formControlName=\"phone\"></nx-phone-input>\n  </nx-formfield>\n</form>\n\n```\n\n"
      },
      {
        "heading": "parsed value",
        "level": 2,
        "content": "The model value is one string. If you need its parts separately, for example to store the calling code and the line number in different fields, read the `parsedValue` signal. It returns the current value of the component as an object like `{ callingCode: '+49', countryCode: 'DE', number: '89123456' }`. It is `null` while there is no line number or the value cannot be parsed. With `updateOn: 'blur'` or `'submit'` the form control gets the value later than `parsedValue` changes.\n\nUsers can also type or paste a number that starts with `+` and a calling code into the line number field, e.g. `+49 89 123456`. The model value already uses that calling code while typing. On blur the component selects the matching country in the dropdown and keeps only the line number in the field. If several countries share the calling code, like `+1`, the selected country stays when it matches. Without a selected country, the country from the `countryCode` input stays when it matches. Otherwise the first country with that code is selected.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n  NxFormfieldNoteDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxMessageComponent } from '@allianz/ng-aquila/message';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { JsonPipe } from '@angular/common';\nimport { Component, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Parsed value example */\n@Component({\n  selector: 'phone-input-parsed-value-example',\n  templateUrl: 'phone-input-parsed-value-example.html',\n  styleUrls: ['./phone-input-parsed-value-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxFormfieldNoteDirective,\n    NxMessageComponent,\n    NxPhoneInputComponent,\n    FormsModule,\n    JsonPipe,\n  ],\n})\nexport class PhoneInputParsedValueExampleComponent {\n  readonly phoneInput = viewChild.required(NxPhoneInputComponent);\n\n  value = '+4989123456';\n}\n\n```\n```html\n<nx-formfield>\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input [(ngModel)]=\"value\"></nx-phone-input>\n  <nx-message context=\"info\" nxFormfieldNote>\n    Model value: {{ value | json }}<br />\n    Parsed value: {{ phoneInput().parsedValue() | json }}\n  </nx-message>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 2,
        "content": "By adding the `disabled` attribute you can set the phone input into disabled mode. Alternatively you can disable the form control via the reactive forms form control.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Disabled example\n */\n@Component({\n  templateUrl: 'phone-input-disabled-example.html',\n  styleUrls: ['./phone-input-disabled-example.css'],\n  selector: 'phone-input-disabled-example',\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n  ],\n})\nexport class PhoneInputDisabledExampleComponent {\n  value = '+4989123456';\n}\n\n```\n```html\n<nx-formfield>\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input [(ngModel)]=\"value\" disabled></nx-phone-input>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "validation",
        "level": 2,
        "content": "The component only validates that it can represent the value. It sets a `nxPhoneInputParse` error when a value cannot be split into a calling code and a line number, for example a number set programmatically without a leading `+` and calling code. Such a value stays in the input as it was set. Like every other error it is only displayed once the control is touched or the form is submitted.\n\nWhile no country can be resolved this way, the country dropdown shows a globe icon instead of a calling code, and `countryCode` returns an empty string. The globe disappears once the value resolves to a country — either by picking one from the dropdown or by setting a parseable value; it only reappears when another unparseable value is set.\n\nThe component does not check whether the number is a real, dialable number for the selected country. That needs the libphonenumber-js dependency, which is quite heavy, so we keep it out to keep the bundle size impact low. If you need this check, install libphonenumber-js and use the last two fields of the example below as a starting point.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  AbstractControl,\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n  ValidatorFn,\n  Validators,\n} from '@angular/forms';\nimport { NumberType, parsePhoneNumber } from 'libphonenumber-js/max';\n\nexport type PhoneNumberType = 'landline' | 'mobile';\n\nconst MOBILE_TYPES: NumberType[] = ['MOBILE', 'FIXED_LINE_OR_MOBILE'];\n\nconst LANDLINE_TYPES: NumberType[] = [\n  'FIXED_LINE',\n  'FIXED_LINE_OR_MOBILE',\n  'PERSONAL_NUMBER',\n];\n\n/**\n * Validates phone numbers. International numbers are accepted if they contain a country code.\n * @param type (optional) Type of number, can be `mobile` or `landline`\n */\nexport function phoneNumberValidator(type?: PhoneNumberType): ValidatorFn {\n  return (control: AbstractControl): { [key: string]: any } | null => {\n    let valid = false;\n    // if the number is packed in an object, the entered value is the `original`field\n    const value =\n      typeof control.value === 'object'\n        ? control.value.original\n        : control.value;\n    let typeValid = true;\n\n    try {\n      if (value != null) {\n        const parsed = parsePhoneNumber(value);\n        const parsedType = parsed.getType();\n\n        if (type === 'mobile') {\n          typeValid = MOBILE_TYPES.includes(parsedType);\n        } else if (type === 'landline') {\n          typeValid = LANDLINE_TYPES.includes(parsedType);\n        }\n\n        valid = parsed.isValid() && typeValid;\n      }\n    } catch (e) {}\n\n    return valid\n      ? null\n      : {\n          phoneNumber: { value, typeValid },\n        };\n  };\n}\n\n/** @title Phone input validation */\n@Component({\n  selector: 'phone-input-validation-example',\n  templateUrl: 'phone-input-validation-example.html',\n  styleUrls: ['./phone-input-validation-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    JsonPipe,\n  ],\n})\nexport class PhoneInputValidationExampleComponent {\n  parseControl = new FormControl('+4989123456', Validators.required);\n  phoneControl = new FormControl('', [\n    Validators.required,\n    phoneNumberValidator('landline'),\n  ]);\n  mobilePhoneControl = new FormControl('', [\n    Validators.required,\n    phoneNumberValidator('mobile'),\n  ]);\n\n  setValue(value: string) {\n    this.parseControl.setValue(value);\n    // errors are only displayed once the control is touched or the form is submitted\n    this.parseControl.markAsTouched();\n  }\n}\n\n```\n```html\n<nx-formfield>\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input [formControl]=\"parseControl\" #phoneInput></nx-phone-input>\n  @if (parseControl.hasError('required')) {\n    <nx-error nxFormfieldError> Please enter a phone number. </nx-error>\n  }\n  @if (parseControl.hasError('nxPhoneInputParse')) {\n    <nx-error nxFormfieldError> Please select a country code. </nx-error>\n  }\n</nx-formfield>\n\n<div class=\"example-buttons\">\n  <button\n    nxButton=\"secondary small\"\n    type=\"button\"\n    (click)=\"setValue('+4989123456')\"\n  >\n    Set \"+4989123456\"\n  </button>\n  <button nxButton=\"secondary small\" type=\"button\" (click)=\"setValue('234')\">\n    Set \"234\"\n  </button>\n  <button nxButton=\"secondary small\" type=\"button\" (click)=\"setValue('')\">\n    Clear\n  </button>\n</div>\n\n<p>\n  Model value: {{ parseControl.value | json }}<br />\n  Errors: {{ parseControl.errors | json }}<br />\n  Country code: {{ phoneInput.countryCode | json }}\n</p>\n\n<nx-formfield>\n  <nx-formfield-label>Landline phone number</nx-formfield-label>\n  <nx-phone-input [formControl]=\"phoneControl\"></nx-phone-input>\n  @if (phoneControl.errors?.phoneNumber) {\n    <nx-error nxFormfieldError> Please provide a valid phone number </nx-error>\n  }\n</nx-formfield>\n\n<nx-formfield>\n  <nx-formfield-label>Mobile phone number</nx-formfield-label>\n  <nx-phone-input [formControl]=\"mobilePhoneControl\"></nx-phone-input>\n  @if (mobilePhoneControl.errors?.phoneNumber) {\n    <nx-error nxFormfieldError>\n      Please provide a valid mobile phone number\n    </nx-error>\n  }\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "formatting",
        "level": 2,
        "content": "Similar to validation the component doesn't provide formatting out of the box to not include the heavy dependency on libphonenumber-js. You can set a custom formatting function via the `inputFormatter` input property. The function is called on the blur event of the input field. To have a clean model the component removes whitespace, parenthesis and dash characters. If you use any kind of additional formatting characters you have to clean these yourself.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Phone Input Formatting */\n@Component({\n  selector: 'phone-input-formatting-example',\n  templateUrl: 'phone-input-formatting-example.html',\n  styleUrls: ['./phone-input-formatting-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n  ],\n})\nexport class PhoneInputFormattingExampleComponent {\n  value = '+49891234567';\n\n  whitespaceFormatter(value: string, countryCode: string) {\n    return value.match(/.{1,2}/g)?.join(' ') || '';\n  }\n}\n\n```\n```html\n<p>\n  The example simply adds a whitespace character after two characters. This is a\n  very simple example. For more advanced formatting you probably want to use\n  libraries that properly parse the phone number to take local area codes or\n  prefixes into account.\n</p>\n\n<nx-formfield>\n  <nx-formfield-label>Telephone number</nx-formfield-label>\n  <nx-phone-input\n    [(ngModel)]=\"value\"\n    name=\"test\"\n    [inputFormatter]=\"whitespaceFormatter\"\n  ></nx-phone-input>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "internationalization",
        "level": 2,
        "content": "To set different translations of the countries and to change texts like the overlay label, line number and area code label you can either override it via inputs `lineNumberLabel`, `areaCodeLabel` in the template or set these via the `NxPhoneInputIntl` class provider.\n\nTo get translations for the countries you can import a different locale from the `i18n-iso-countries` package. Please note: if you provide the `NxPhoneInputIntl` class and use the inputs of the component as well, the input values take precedence.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxPhoneInputComponent,\n  NxPhoneInputIntl,\n} from '@allianz/ng-aquila/phone-input';\nimport { Component, Injectable } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport countries from 'i18n-iso-countries/index.js';\nimport de from 'i18n-iso-countries/langs/de.json';\nimport fr from 'i18n-iso-countries/langs/fr.json';\n\ncountries.registerLocale(de);\n\ncountries.registerLocale(fr);\n\n@Injectable()\nexport class MyPhoneInputIntl extends NxPhoneInputIntl {\n  areaCodeLabel = 'Ländervorwahl';\n  countryNames = countries.getNames('de', { select: 'official' });\n  lineNumberAriaLabel = 'Zeilennummer';\n}\n\n/** @title Phone Input Internationalization */\n@Component({\n  selector: 'phone-input-i18n-example',\n  templateUrl: 'phone-input-i18n-example.html',\n  styleUrls: ['./phone-input-i18n-example.css'],\n  providers: [\n    {\n      provide: NxPhoneInputIntl,\n      useClass: MyPhoneInputIntl,\n    },\n  ],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n  ],\n})\nexport class PhoneInputI18nExampleComponent {\n  value = '';\n\n  frenchCountries = countries.getNames('fr', { select: 'official' });\n\n  overlayLabel = 'my overlay label';\n}\n\n```\n```html\n<p>\n  This phone input uses the NxPhoneInputIntl class with german translations.\n</p>\n<nx-formfield>\n  <nx-formfield-label>Telefonnummer</nx-formfield-label>\n  <nx-phone-input [(ngModel)]=\"value\" required></nx-phone-input>\n</nx-formfield>\n\n<p>\n  Here the inputs are used with french translations overriding the german\n  translations of the MyPhoneInputIntl class.\n</p>\n<nx-formfield>\n  <nx-formfield-label>Numéro de téléphone</nx-formfield-label>\n  <nx-phone-input\n    [countryNames]=\"frenchCountries\"\n    areaCodeLabel=\"Indicatif régional\"\n    lineNumberLabel=\"Numéro de ligne\"\n    [(ngModel)]=\"value\"\n    required\n  ></nx-phone-input>\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "server-side rendering",
        "level": 2,
        "content": "With `i18n-iso-countries` 7.5.0 or later, the package fails in `ng serve` when an app uses server-side rendering (SSR) and imports `i18n-iso-countries` from the package root. Every route then returns a 500 error such as `Cannot find module './langs/br.json'`. Production builds are not affected.\n\nThe phone input itself imports the package in a safe way. To avoid the error in your own code, use one of these options.\n\nImport the browser entry point, as the example above does:\n\n```ts\nimport countries from 'i18n-iso-countries/index.js';\n```\n"
      },
      {
        "heading": "blur/focus events",
        "level": 2,
        "content": "Use (focusOut) to access the blur event which fires when an element has lost focus. Use (focusIn) to access the focus event, which fires when the element has received focus.\n\n\n```ts\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n  NxFormfieldNoteDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Focus in/out example */\n@Component({\n  selector: 'phone-input-focus-out-example',\n  templateUrl: 'phone-input-focus-out-example.html',\n  styleUrls: ['./phone-input-focus-out-example.css'],\n  imports: [\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n    NxFormfieldNoteDirective,\n  ],\n})\nexport class PhoneInputFocusOutExampleComponent {\n  value = '';\n\n  focusing = false;\n\n  onFocusOut() {\n    this.focusing = false;\n  }\n\n  onFocusIn() {\n    this.focusing = true;\n  }\n}\n\n```\n```html\n<nx-formfield>\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input\n    [(ngModel)]=\"value\"\n    placeholder=\"89 123456\"\n    (focusOut)=\"onFocusOut()\"\n    (focusIn)=\"onFocusIn()\"\n  ></nx-phone-input>\n  <nx-message context=\"info\" nxFormfieldNote>\n    Focusing: {{ focusing }}\n  </nx-message>\n</nx-formfield>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert",
        "level": 2,
        "content": "You will automatically get the correct expert version by using the `NxExpertModule`, then you don't have to set the `appearance` and `floatLabel` properties on the formfield, see the [Expert documentation](./documentation/config) for additional information. All other features from above apply also for the expert version.\n\n\n```ts\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldLabelDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxPhoneInputComponent } from '@allianz/ng-aquila/phone-input';\nimport { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Expert variation\n */\n@Component({\n  selector: 'phone-input-expert-example',\n  templateUrl: 'phone-input-expert-example.html',\n  styleUrls: ['./phone-input-expert-example.css'],\n  imports: [\n    NxCheckboxComponent,\n    NxFormfieldComponent,\n    NxFormfieldLabelDirective,\n    NxPhoneInputComponent,\n    FormsModule,\n  ],\n})\nexport class PhoneInputExpertExampleComponent implements OnInit {\n  tel = '+1 123 867593';\n  countryCode = 'FR';\n  readonly = false;\n  disabled = false;\n\n  ngOnInit(): void {\n    setTimeout(() => (this.countryCode = 'AT'));\n  }\n}\n\n```\n```html\n<div class=\"controls\">\n  <nx-checkbox [(checked)]=\"readonly\">Readonly</nx-checkbox>\n  <nx-checkbox [(checked)]=\"disabled\">Disabled</nx-checkbox>\n</div>\n\n<nx-formfield appearance=\"outline\" floatLabel=\"always\">\n  <nx-formfield-label>Phone number</nx-formfield-label>\n  <nx-phone-input\n    [countryCode]=\"countryCode\"\n    [(ngModel)]=\"tel\"\n    [disabled]=\"disabled\"\n    [readonly]=\"readonly\"\n    placeholder=\"123 45678\"\n  >\n  </nx-phone-input>\n</nx-formfield>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "popover.md",
    "title": "Popover",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "global settings",
        "level": 3,
        "content": "If you want to use default settings for all popovers, you can use the `POPOVER_DEFAULT_OPTIONS` injection token. Here global settings for `popoverWidth` and `popoverMaxWidth` can be defined.\n\nIf a certain popover should have another styling, you can overwrite the global default by explicitly defining the property in the template.\n"
      },
      {
        "heading": "ux guidelines",
        "level": 3,
        "content": "If you're building an Expert (internal B2B/B2E) application, you can use both the Popover and the [Tooltip component](./documentation/tooltip/overview#ux-guidelines). If you only need to display a short contextual hint (button hint, info icon, etc.) please consider if the simpler [Tooltip element is better for your use case](./documentation/tooltip/overview#ux-guidelines).\n"
      },
      {
        "heading": "basic popover content",
        "level": 3,
        "content": "You can separate the content in a popover into sections using the following directives: `nxPopoverTitle`, `nxPopoverMainContent`, `nxPopoverActions`\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxPopoverActionsDirective,\n  NxPopoverComponent,\n  NxPopoverMainContentDirective,\n  NxPopoverTitleDirective,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n/**\n * @title Popover Example\n */\n@Component({\n  selector: 'popover-slot-example',\n  templateUrl: './popover-slot-example.html',\n  styleUrls: ['./popover-slot-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    NxHeadlineComponent,\n    NxPopoverActionsDirective,\n    NxPopoverMainContentDirective,\n    NxPopoverTitleDirective,\n    NxCopytextComponent,\n  ],\n})\nexport class PopoverSlotExampleComponent {\n  popoverWidth = '500px';\n  popoverManualOpenFlag = false;\n\n  cancelPopover() {\n    this.popoverManualOpenFlag = !this.popoverManualOpenFlag;\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverExtendedContent\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n  [(nxPopoverShow)]=\"popoverManualOpenFlag\"\n  [nxPopoverWidth]=\"popoverWidth\"\n>\n  Click\n</button>\n\n<nx-popover #popoverExtendedContent>\n  <div nxPopoverTitle>\n    <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">Popover</h3>\n  </div>\n\n  <div nxPopoverMainContent>\n    <p nxCopytext=\"normal\" class=\"nx-margin-bottom-m\">\n      I am an extended popover with a headline and buttons.\n    </p>\n  </div>\n\n  <div nxPopoverActions alignment=\"right\">\n    <button\n      nxButton=\"small secondary\"\n      type=\"button\"\n      (click)=\"popoverManualOpenFlag = !popoverManualOpenFlag\"\n    >\n      Cancel\n    </button>\n    <button\n      nxButton=\"small\"\n      type=\"button\"\n      (click)=\"popoverManualOpenFlag = !popoverManualOpenFlag\"\n    >\n      Proceed\n    </button>\n  </div>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "trigger types",
        "level": 3,
        "content": "It is possible to open the popover by hover, click event or manually. To adjust the trigger type accordingly, set the `nxPopoverTrigger` attribute to click/hover/manual.\n\n-   The popover triggered by hover will close immediately after the mouse exits the trigger.\n-   The popover triggered by click will stay open until the user explicitly closes the the popover.\n-   If set to manual, you have to open and close it manually. Use the public interface (open/close) of the directive or rely on the `nxPopoverShow` attribute.\n-   To learn more about the hover trigger please check the [Hover triggered popover](./documentation/popover/overview#hover-triggered-popover) section.\n\n```ts\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { ENTER, SPACE } from '@angular/cdk/keycodes';\nimport {\n  AfterViewInit,\n  Component,\n  ElementRef,\n  OnDestroy,\n  ViewChild,\n} from '@angular/core';\n\n/**\n * @title Popover Trigger Example\n */\n@Component({\n  selector: 'popover-trigger-example',\n  templateUrl: './popover-trigger-example.html',\n  styleUrls: ['./popover-trigger-example.css'],\n  imports: [\n    NxIconButtonComponent,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n  ],\n})\nexport class PopoverTriggerExampleComponent\n  implements AfterViewInit, OnDestroy\n{\n  popoverManualOpenFlag = false;\n\n  @ViewChild('clickTriggerIcon')\n  _clickTriggerIcon!: ElementRef<HTMLButtonElement>;\n\n  @ViewChild('manualTriggerIcon')\n  _manualTriggerIcon!: ElementRef<HTMLButtonElement>;\n\n  constructor(private readonly _focusMonitor: FocusMonitor) {}\n\n  ngAfterViewInit(): void {\n    this._focusMonitor.monitor(this._clickTriggerIcon);\n    this._focusMonitor.monitor(this._manualTriggerIcon);\n  }\n\n  ngOnDestroy(): void {\n    this._focusMonitor.stopMonitoring(this._clickTriggerIcon);\n    this._focusMonitor.stopMonitoring(this._manualTriggerIcon);\n  }\n\n  handleKeydown(event: KeyboardEvent) {\n    switch (event.keyCode) {\n      case SPACE:\n      case ENTER:\n        this.popoverManualOpenFlag = !this.popoverManualOpenFlag;\n        break;\n      default:\n    }\n  }\n}\n\n```\n```html\n<p>\n  <button\n    nxIconButton=\"tertiary small\"\n    [nxPopoverTriggerFor]=\"popoverClick\"\n    nxPopoverTrigger=\"click\"\n    type=\"button\"\n    #clickTriggerIcon\n    aria-label=\"trigger by click\"\n    class=\"nx-margin-right-3xs\"\n  >\n    <nx-icon name=\"info-circle-o\" size=\"s\" aria-hidden=\"true\"> </nx-icon>\n  </button>\n  Triggered by click\n</p>\n<nx-popover #popoverClick>\n  <span class=\"nx-popover__text\">Trigger by click</span>\n</nx-popover>\n\n<p>\n  <button\n    nxIconButton=\"tertiary small\"\n    type=\"button\"\n    #manualTriggerIcon\n    #popoverTrigger=\"nxPopoverTrigger\"\n    [nxPopoverTriggerFor]=\"popoverManual\"\n    [(nxPopoverShow)]=\"popoverManualOpenFlag\"\n    nxPopoverDirection=\"top\"\n    (click)=\"popoverManualOpenFlag = !popoverManualOpenFlag\"\n    (keydown)=\"handleKeydown($event)\"\n    nxPopoverTrigger=\"manual\"\n    aria-label=\"trigger manually\"\n    class=\"nx-margin-right-3xs\"\n  >\n    <nx-icon name=\"info-circle-o\" size=\"s\" aria-hidden=\"true\"> </nx-icon>\n  </button>\n  Triggered manually\n</p>\n\n<nx-popover #popoverManual>\n  <span>Trigger manually</span>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "closing on document click",
        "level": 3,
        "content": "You can enable the popover to close when the user clicks outside of it by setting the property `closeOnClickOutside` as shown in the example below. Per default the triggers of type `click` and `manual` close on click outside of the popover. The property has no effect if you apply it on a trigger of type `hover`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Closing on document click\n */\n@Component({\n  selector: 'popover-click-outside-example',\n  templateUrl: './popover-click-outside-example.html',\n  styleUrls: ['./popover-click-outside-example.css'],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverClickOutsideExampleComponent {\n  closeOnDocClick = true;\n  popoverManualOpenFlag = false;\n\n  closeOnClickOutside() {\n    this.closeOnDocClick = !this.closeOnDocClick;\n  }\n}\n\n```\n```html\n<p class=\"nx-margin-top-0\">Close on document click: {{ closeOnDocClick }}</p>\n\n<button\n  nxButton=\"primary small\"\n  class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n  [nxPopoverTriggerFor]=\"popoverClick\"\n  nxPopoverTrigger=\"click\"\n  [closeOnClickOutside]=\"closeOnDocClick\"\n  type=\"button\"\n>\n  Click\n</button>\n<nx-popover #popoverClick>\n  <span class=\"nx-popover__text\">Trigger by click</span>\n</nx-popover>\n\n<button\n  #popoverTrigger=\"nxPopoverTrigger\"\n  nxButton=\"primary small\"\n  class=\"nx-margin-bottom-s\"\n  [nxPopoverTriggerFor]=\"popoverManual\"\n  [(nxPopoverShow)]=\"popoverManualOpenFlag\"\n  nxPopoverDirection=\"top\"\n  (click)=\"popoverManualOpenFlag = !popoverManualOpenFlag\"\n  [closeOnClickOutside]=\"closeOnDocClick\"\n  nxPopoverTrigger=\"manual\"\n  type=\"button\"\n>\n  Manual\n</button>\n\n<nx-popover #popoverManual>\n  <span>Trigger manually</span>\n</nx-popover>\n\n<br />\n<button\n  nxButton=\"secondary small\"\n  (click)=\"closeOnClickOutside()\"\n  type=\"button\"\n>\n  Toggle closing on click outside\n</button>\n\n```\n\n"
      },
      {
        "heading": "positioning",
        "level": 3,
        "content": "It is possible to position the popover top/right/bottom/left to the trigger by setting the `nxPopoverDirection` attribute to top/right/bottom/left.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover positioning Example\n */\n@Component({\n  selector: 'popover-positioning-example',\n  templateUrl: './popover-positioning-example.html',\n  styleUrls: ['./popover-positioning-example.css'],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverPositioningExampleComponent {}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  class=\"nx-margin-right-2xs\"\n  [nxPopoverTriggerFor]=\"popoverTopAnchor\"\n  nxPopoverDirection=\"top\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n>\n  Top\n</button>\n<nx-popover #popoverTopAnchor>\n  <span class=\"nx-popover__text\"\n    >A popover pointing to the top side of the target</span\n  >\n</nx-popover>\n\n<button\n  nxButton=\"primary small\"\n  class=\"nx-margin-right-2xs\"\n  [nxPopoverTriggerFor]=\"popoverRightAnchor\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n>\n  Right\n</button>\n<nx-popover #popoverRightAnchor>\n  <span class=\"nx-popover__text\"\n    >A popover pointing right side of the target</span\n  >\n</nx-popover>\n\n<button\n  nxButton=\"primary small\"\n  class=\"nx-margin-right-2xs\"\n  [nxPopoverTriggerFor]=\"popoverBottomAnchor\"\n  nxPopoverDirection=\"bottom\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n>\n  Bottom\n</button>\n<nx-popover #popoverBottomAnchor>\n  <span class=\"nx-popover__text\"\n    >A popover pointing bottom side of the target</span\n  >\n</nx-popover>\n\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverLeftAnchor\"\n  nxPopoverDirection=\"left\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n>\n  Left\n</button>\n<nx-popover #popoverLeftAnchor>\n  <span class=\"nx-popover__text\"\n    >A popover pointing bottom side of the target</span\n  >\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "fallback strategy",
        "level": 3,
        "content": "The positioning of the popover follows a fallback strategy to make sure that the component is displayed correctly in the most common situations. Fallback means that the popover tries to find a fitting position within the window.\n\nThe following table explains the fallback strategy of the popover.\n\n<!-- example(popover-table, { \"hideHeader\": true }) -->\n"
      },
      {
        "heading": "custom content",
        "level": 3,
        "content": "The popover can carry custom content.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover Custom Example\n */\n@Component({\n  selector: 'popover-custom-example',\n  templateUrl: './popover-custom-example.html',\n  styleUrls: ['./popover-custom-example.css'],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverCustomExampleComponent {\n  popoverWidth = '400px';\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverCustomContent\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n  [nxPopoverWidth]=\"popoverWidth\"\n>\n  Click\n</button>\n\n<nx-popover #popoverCustomContent>\n  <img\n    src=\"docs-assets/images/adli-wahid-eagle-unsplash.jpg\"\n    alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n    class=\"popover-demo__img\"\n  />\n</nx-popover>\n\n```\n\n\nThe popover can be used for a guided tour\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover Guide Tour Example\n */\n\n@Component({\n  selector: 'popover-guided-tour-example',\n  templateUrl: './popover-guided-tour-example.html',\n  styleUrls: ['./popover-guided-tour-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    NxHeadlineComponent,\n  ],\n})\nexport class PopoverGuidedTourExampleComponent {\n  popoverWidth = '500px';\n  popoverManualOpenFlag = false;\n\n  cancelPopover() {\n    this.popoverManualOpenFlag = !this.popoverManualOpenFlag;\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverExtendedContent\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n  [(nxPopoverShow)]=\"popoverManualOpenFlag\"\n  [nxPopoverWidth]=\"popoverWidth\"\n>\n  Click\n</button>\n\n<nx-popover #popoverExtendedContent>\n  <div class=\"nx-popover__content-wrapper\">\n    <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n      Extended popover\n    </h3>\n    <p class=\"nx-margin-bottom-m\">\n      I am an extended popover with a headline and buttons.\n    </p>\n    <div class=\"nx-popover__footer\">\n      <div class=\"nx-popover__steps\">Step 1/3</div>\n      <div class=\"nx-popover__buttons\">\n        <button\n          class=\"nx-margin-bottom-0 nx-margin-right-xs\"\n          nxButton=\"small secondary\"\n          type=\"button\"\n          (click)=\"popoverManualOpenFlag = !popoverManualOpenFlag\"\n        >\n          Skip tour\n        </button>\n        <button\n          class=\"nx-margin-bottom-0\"\n          nxButton=\"small\"\n          type=\"button\"\n          (click)=\"popoverManualOpenFlag = !popoverManualOpenFlag\"\n        >\n          Next\n        </button>\n      </div>\n    </div>\n  </div>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "Setting `inverse` on the popover renders it on the attention (inverse) surface, so it reads\nlight-on-dark. The popover also declares that surface to its own content, so adopting components\ninside it (headline, copytext, etc.) adapt to the popover rather than to the surface behind the trigger.\n\nThe popover never picks this up from a [surface](./documentation/surface/overview) around it, so you\ncan keep a light popover even when it is opened from a button on a dark header.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxPopoverComponent,\n  NxPopoverMainContentDirective,\n  NxPopoverTitleDirective,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport { Component } from '@angular/core';\n/**\n * @title Popover Inverse Example\n */\n@Component({\n  selector: 'popover-inverse-example',\n  templateUrl: './popover-inverse-example.html',\n  styleUrls: ['./popover-inverse-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    NxHeadlineComponent,\n    NxPopoverMainContentDirective,\n    NxPopoverTitleDirective,\n    NxCopytextComponent,\n    NxSurface,\n  ],\n})\nexport class PopoverInverseExampleComponent {}\n\n```\n```html\n<div class=\"popover-example\">\n  <div nxSurface=\"default\" class=\"popover-example__surface\">\n    <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n      Default surface, inverse popover\n    </h3>\n\n    <button\n      nxButton=\"primary small\"\n      [nxPopoverTriggerFor]=\"popoverInverse\"\n      nxPopoverDirection=\"right\"\n      nxPopoverTrigger=\"click\"\n      type=\"button\"\n    >\n      Open\n    </button>\n\n    <nx-popover #popoverInverse inverse>\n      <div nxPopoverTitle>\n        <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n          Popover\n        </h3>\n      </div>\n\n      <div nxPopoverMainContent>\n        <p nxCopytext=\"normal\">I am inverse, on a default surface.</p>\n      </div>\n    </nx-popover>\n  </div>\n\n  <div nxSurface=\"attention\" class=\"popover-example__surface\">\n    <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n      Inverse surface, default popover\n    </h3>\n\n    <button\n      nxButton=\"primary small\"\n      [nxPopoverTriggerFor]=\"popoverLight\"\n      nxPopoverDirection=\"right\"\n      nxPopoverTrigger=\"click\"\n      type=\"button\"\n    >\n      Open\n    </button>\n\n    <nx-popover #popoverLight>\n      <div nxPopoverTitle>\n        <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n          Popover\n        </h3>\n      </div>\n\n      <div nxPopoverMainContent>\n        <p nxCopytext=\"normal\">I stay default, on an inverse surface.</p>\n      </div>\n    </nx-popover>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "popover without arrow",
        "level": 3,
        "content": "The popover arrow can be hidden using the `nxPopoverHideArrow`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover Without Arrow Example\n */\n@Component({\n  selector: 'popover-without-arrow-example',\n  templateUrl: './popover-without-arrow-example.html',\n  styleUrls: ['./popover-without-arrow-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    NxHeadlineComponent,\n    NxLinkComponent,\n    NxIconComponent,\n  ],\n})\nexport class PopoverWithoutArrowExampleComponent {\n  popoverWidth = '500px';\n  popoverManualOpenFlag = false;\n  hideArrow = true;\n\n  cancelPopover() {\n    this.popoverManualOpenFlag = !this.popoverManualOpenFlag;\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverWithoutArrow\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  [hidePopoverArrow]=\"hideArrow\"\n  type=\"button\"\n  [(nxPopoverShow)]=\"popoverManualOpenFlag\"\n  [nxPopoverWidth]=\"popoverWidth\"\n>\n  Click\n</button>\n\n<nx-popover #popoverWithoutArrow>\n  <div class=\"nx-popover__content-wrapper\">\n    <div class=\"centered-content\">\n      <h3 nxHeadline=\"subsection-small\" class=\"nx-margin-bottom-s\">\n        Popover without arrow\n      </h3>\n      <p class=\"nx-margin-bottom-m nx-margin-top-0\">\n        I am a popover without an arrow, showing centered content, a headline\n        and a link.\n      </p>\n      <div class=\"nx-popover__footer\">\n        <nx-link>\n          <a routerLink=\"/documentation\">\n            <nx-icon name=\"arrow-right\" aria-hidden=\"true\"></nx-icon>\n            More recommendations\n          </a>\n        </nx-link>\n      </div>\n    </div>\n  </div>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "popover width and maxwidth",
        "level": 3,
        "content": "The popover `width` and `max-width` can be set with the `popoverWidth` and `popoverMaxWidth` inputs. To set the `width` and `max-width` globally use the injection token `POPOVER_DEFAULT_OPTIONS`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n  POPOVER_DEFAULT_OPTIONS,\n  PopoverDefaultOptions,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\nconst myDefaultOptions: PopoverDefaultOptions = {\n  popoverWidth: '800px',\n  popoverMaxWidth: '100%',\n};\n\n/**\n * @title Popover Width Example\n */\n@Component({\n  selector: 'popover-width-example',\n  templateUrl: './popover-width-example.html',\n  styleUrls: ['./popover-width-example.css'],\n  providers: [{ provide: POPOVER_DEFAULT_OPTIONS, useValue: myDefaultOptions }],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverWidthExampleComponent {\n  popoverWidth = '100%';\n  popoverMaxWidth = '100%';\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverProperty\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n  [nxPopoverWidth]=\"popoverWidth\"\n  [nxPopoverMaxWidth]=\"popoverMaxWidth\"\n  class=\"nx-margin-right-2xs\"\n>\n  Property values\n</button>\n\n<nx-popover #popoverProperty>\n  <span class=\"nx-popover__text\"\n    >This popover has a width of `100%` and a max-width of `100%`. Sadipscing\n    elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna\n    aliquyam erat, sed diam voluptua. Sadipscing elitr, sed diam nonumy eirmod\n    tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\n  </span>\n</nx-popover>\n\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverDefault\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n>\n  Default values\n</button>\n\n<nx-popover #popoverDefault>\n  <span class=\"nx-popover__text\"\n    >This popover has a width of `800px` and a max-width of `700px`. Sadipscing\n    elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna\n    aliquyam erat, sed diam voluptua. Sadipscing elitr, sed diam nonumy eirmod\n    tempor invidunt ut labore et dolore magna aliquyam erat, sed diam\n    voluptua.</span\n  >\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "custom lazyloaded content",
        "level": 3,
        "content": "The popovers supports lazyloading when you provide a `ng-template` with the `nxPopoverContent` directive attached. The content of the template will only be instantiated once the popover gets opened. After closing the content will be destroyed again.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverContentDirective,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover lazyload Example\n */\n@Component({\n  selector: 'popover-lazyload-example',\n  templateUrl: './popover-lazyload-example.html',\n  styleUrls: ['./popover-lazyload-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    NxPopoverContentDirective,\n  ],\n})\nexport class PopoverLazyloadExampleComponent {\n  popoverWidth = '400px';\n}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"popoverCustomLazyloadedContent\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  type=\"button\"\n  [nxPopoverWidth]=\"popoverWidth\"\n>\n  click\n</button>\n\n<nx-popover #popoverCustomLazyloadedContent>\n  <ng-template nxPopoverContent>\n    <img\n      src=\"docs-assets/images/adli-wahid-eagle-unsplash-large.jpg\"\n      alt=\"An eagle sitting on a branch and thinking. Photo made by Adli Wahid\"\n      class=\"popover-demo__img\"\n    />\n  </ng-template>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "modal popover",
        "level": 3,
        "content": "It is possible to configure the popover to be modal - just set `nxPopoverTrigger=click` and `nxPopoverModal=true`. Now the popover can be closed via the close icon as well as with the ESC-Key.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component } from '@angular/core';\n\n/**\n * @title Modal Popover Example\n */\n@Component({\n  selector: 'popover-modal-example',\n  templateUrl: './popover-modal-example.html',\n  styleUrls: ['./popover-modal-example.css'],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverModalExampleComponent {}\n\n```\n```html\n<button\n  nxButton=\"primary small\"\n  [nxPopoverTriggerFor]=\"modalPopover\"\n  nxPopoverDirection=\"right\"\n  nxPopoverTrigger=\"click\"\n  nxPopoverModal=\"true\"\n>\n  Modal popover\n</button>\n\n<nx-popover #modalPopover>\n  <span class=\"nx-popover__text\">Modal popover</span>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "scroll strategy",
        "level": 3,
        "content": "The popover implements the two strategies close and reposition to handle the behavior of the popover when the owning container scrolls. The strategy close will automatically close the popover while reposition scrolls the popover with its origin.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { CdkScrollable } from '@angular/cdk/scrolling';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover Scroll Example\n */\n@Component({\n  selector: 'popover-scroll-example',\n  templateUrl: './popover-scroll-example.html',\n  styleUrls: ['./popover-scroll-example.css'],\n  imports: [\n    CdkScrollable,\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n  ],\n})\nexport class PopoverScrollExampleComponent {}\n\n```\n```html\n<span class=\"popover-demo__scroll-panel\" cdkScrollable>\n  <p>\n    sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore\n    magna aliquyam erat, sed diam voluptua.\n  </p>\n  <div>\n    <button\n      nxButton=\"primary small\"\n      [nxPopoverTriggerFor]=\"popoverStrategyClose\"\n      nxPopoverScrollStrategy=\"close\"\n      nxPopoverTrigger=\"click\"\n      type=\"button\"\n      class=\"nx-margin-bottom-s\"\n    >\n      Click\n    </button>\n    <nx-popover #popoverStrategyClose>\n      <span class=\"nx-popover__text\">Close</span>\n    </nx-popover>\n    <br />\n    <button\n      nxButton=\"primary small\"\n      [nxPopoverTriggerFor]=\"popoverStrategyReposition\"\n      nxPopoverScrollStrategy=\"reposition\"\n      nxPopoverTrigger=\"click\"\n      type=\"button\"\n    >\n      Click\n    </button>\n    <nx-popover #popoverStrategyReposition>\n      <span class=\"nx-popover__text\">Reposition</span>\n    </nx-popover>\n  </div>\n</span>\n\n```\n\n"
      },
      {
        "heading": "cdkscrollable",
        "level": 3,
        "content": "To make the popovers behave correctly while scrolling, you have to place the directive cdkScrollable on the scrolling container.\n\n```html\n<div cdkScrollable></div>\n```\n\nThe following examples illustrates the usage of `cdkScrollable`. Make sure to import the `CdkScrollableModule` from `@angular/cdk/scrolling`. The popovers are configured to close on scroll events. If there is no `cdkScrollable` on the container, scrolling leads to unexpected behaviour (left). By adding `cdkScrollable` to the right container, the popover closes as expected (right).\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { CdkScrollable } from '@angular/cdk/scrolling';\nimport { Component } from '@angular/core';\n\n/**\n * @title Popover Scrollable Example\n */\n@Component({\n  selector: 'popover-scrollable-example',\n  templateUrl: './popover-scrollable-example.html',\n  styleUrls: ['./popover-scrollable-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxPopoverTriggerDirective,\n    NxPopoverComponent,\n    CdkScrollable,\n  ],\n})\nexport class PopoverScrollableExampleComponent {}\n\n```\n```html\n<div style=\"display: flex\">\n  <span class=\"popover-demo__scroll-panel\">\n    <p>\n      sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et\n      dolore magna aliquyam erat, sed diam voluptua.\n    </p>\n    <button\n      nxButton=\"primary small\"\n      [nxPopoverTriggerFor]=\"popoverScroll\"\n      nxPopoverTrigger=\"click\"\n      type=\"button\"\n    >\n      Click\n    </button>\n    <nx-popover #popoverScroll>\n      <span class=\"nx-popover__text\">Scroll</span>\n    </nx-popover>\n  </span>\n  <span class=\"popover-demo__scroll-panel\" cdkScrollable>\n    <p>\n      sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et\n      dolore magna aliquyam erat, sed diam voluptua.\n    </p>\n    <button\n      nxButton=\"primary small\"\n      [nxPopoverTriggerFor]=\"popoverScroll2\"\n      nxPopoverTrigger=\"click\"\n      type=\"button\"\n    >\n      Click\n    </button>\n    <nx-popover #popoverScroll2>\n      <span class=\"nx-popover__text\">Scroll</span>\n    </nx-popover>\n  </span>\n</div>\n\n```\n\n"
      },
      {
        "heading": "hover triggered popover",
        "level": 3,
        "content": "The popover triggered by hover will close immediately after the mouse exits the trigger. `nxPopoverCloseable` can't be used with trigger type hover.\n\nPlease note that the popover with hover is only suitable for optional information. The information in the popover is not accessible for all use cases (e.g., touch devices) and is therefore to be used with care - if at all.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport {\n  AfterViewInit,\n  Component,\n  ElementRef,\n  OnDestroy,\n  ViewChild,\n} from '@angular/core';\n\n/**\n * @title Popover Hover Example\n */\n@Component({\n  selector: 'popover-hover-example',\n  templateUrl: './popover-hover-example.html',\n  styleUrls: ['./popover-hover-example.css'],\n  imports: [NxIconComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverHoverExampleComponent implements AfterViewInit, OnDestroy {\n  popoverManualOpenFlag = false;\n\n  @ViewChild('hoverTriggerIcon') _hoverTriggerIcon!: ElementRef<HTMLElement>;\n\n  constructor(private readonly _focusMonitor: FocusMonitor) {}\n\n  ngAfterViewInit(): void {\n    this._focusMonitor.monitor(this._hoverTriggerIcon);\n  }\n\n  ngOnDestroy(): void {\n    this._focusMonitor.stopMonitoring(this._hoverTriggerIcon);\n  }\n}\n\n```\n```html\n<nx-icon\n  #hoverTriggerIcon\n  name=\"refresh\"\n  size=\"s\"\n  [nxPopoverTriggerFor]=\"progress\"\n  nxPopoverDirection=\"top\"\n  nxPopoverTrigger=\"hover\"\n  tabindex=\"0\"\n  role=\"button\"\n  aria-label=\"progress\"\n>\n</nx-icon>\n\n<nx-popover #progress> Your application status is in progress. </nx-popover>\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "If you want to use a custom scroll strategy, you can use the `NX_POPOVER_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NX_POPOVER_SCROLL_STRATEGY,\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'popover-scroll-strategy-provider-example',\n  templateUrl: 'popover-scroll-strategy-provider-example.html',\n  styleUrls: ['popover-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_POPOVER_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverScrollStrategyProviderExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary small\" [nxPopoverTriggerFor]=\"popover\" type=\"button\">\n  Open popover\n</button>\n<nx-popover #popover>\n  <span class=\"nx-popover__text\">A popover</span>\n</nx-popover>\n\n```\n\n\nAlternatively, the `NX_POPOVER_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      },
      {
        "heading": "internationalization",
        "level": 4,
        "content": "To set different translations of the countries and to change texts like the close icon aria label you can set these via the `NxPopoverIntl` class provider.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxPopoverComponent,\n  NxPopoverIntl,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport { Component, Injectable } from '@angular/core';\n\n@Injectable()\nexport class MyPopoverIntl extends NxPopoverIntl {\n  closeIconLabel = 'Schließen';\n}\n\n/** @title Popover Internationalization */\n@Component({\n  selector: 'popover-i18n-example',\n  templateUrl: 'popover-i18n-example.html',\n  styleUrls: ['popover-i18n-example.css'],\n  providers: [\n    {\n      provide: NxPopoverIntl,\n      useClass: MyPopoverIntl,\n    },\n  ],\n  imports: [NxButtonComponent, NxPopoverTriggerDirective, NxPopoverComponent],\n})\nexport class PopoverI18nExampleComponent {}\n\n```\n```html\n<button nxButton=\"primary small\" [nxPopoverTriggerFor]=\"popover\" type=\"button\">\n  Open popover\n</button>\n<nx-popover #popover>\n  <span class=\"nx-popover__text\">A popover</span>\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The assigned trigger will always receive `aria-describedby` property to point screenreaders to the related content in the popover.\n"
      }
    ]
  },
  {
    "name": "price.md",
    "title": "Price",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "overview",
        "level": 3,
        "content": "The Price component displays formatted prices with proper localization and currency formatting. It automatically handles different currency symbols, decimal separators, and thousand separators based on the provided locale using the `Intl.NumberFormat` API.\n\n\n```ts\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic price example\n */\n@Component({\n  selector: 'price-basic-example',\n  templateUrl: './price-basic-example.html',\n  styleUrls: ['./price-basic-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PriceBasicExampleComponent {\n  value = 99.99;\n  currency = 'USD';\n}\n\n```\n```html\n<nx-price\n  [value]=\"value\"\n  [currency]=\"currency\"\n  prefix=\"from\"\n  suffix=\"Monthly\"\n/>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 3,
        "content": "The component automatically formats prices according to the specified locale (defaults to the application's `LOCALE_ID`) and currency (defaults to `USD`).\n\n**Examples:**\n- `en-US` with `USD`: $99.99\n- `de-DE` with `EUR`: 99,99€\n- `en-GB` with `GBP`: £99.99\n\n**Currency Codes:** Use standard ISO 4217 currency codes (USD, EUR, GBP, JPY, etc.).\n\n**Locale Strings:** Use standard locale identifiers (en-US, de-DE, fr-FR, etc.). The locale affects:\n- Decimal separator (`.` vs `,`)\n- Thousand separator (`,` vs `.`)\n- Currency symbol position (before or after the value)\n\n\n```ts\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Price with different locales\n */\n@Component({\n  selector: 'price-locale-example',\n  templateUrl: './price-locale-example.html',\n  styleUrls: ['./price-locale-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PriceLocaleExampleComponent {\n  value = 1234.56;\n}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 class=\"label\">US Dollar (en-US, USD)</h4>\n    <nx-price [value]=\"value\" currency=\"USD\" locale=\"en-US\" />\n  </div>\n  <div class=\"example-item\">\n    <h4 class=\"label\">Euro (de-DE, EUR)</h4>\n    <nx-price [value]=\"value\" currency=\"EUR\" locale=\"de-DE\" />\n  </div>\n  <div class=\"example-item\">\n    <h4 class=\"label\">British Pound (en-GB, GBP)</h4>\n    <nx-price [value]=\"value\" currency=\"GBP\" locale=\"en-GB\" />\n  </div>\n  <div class=\"example-item\">\n    <h4 class=\"label\">Japanese Yen (ja-JP, JPY)</h4>\n    <nx-price [value]=\"value\" currency=\"JPY\" locale=\"ja-JP\" />\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "sizes",
        "level": 3,
        "content": "The price component supports 9 size variants: default is `m` (Medium).\n\n```ts\nimport { NxPriceComponent, type NxPriceSize } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Price size variants\n */\n@Component({\n  selector: 'price-sizes-example',\n  templateUrl: './price-sizes-example.html',\n  styleUrls: ['./price-sizes-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PriceSizesExampleComponent {\n  value = 99.99;\n  currency = 'USD';\n  prefix = 'from';\n  suffix = 'Monthly';\n  sizes: NxPriceSize[] = [\n    's',\n    'm',\n    'l',\n    'xl',\n    '2xl',\n    '3xl',\n    '4xl',\n    '5xl',\n    '6xl',\n  ];\n}\n\n```\n```html\n@for (size of sizes; track size) {\n  <div class=\"nx-margin-bottom-m\">\n    <span class=\"nx-margin-right-m\">{{ size.toUpperCase() }} </span>\n    <nx-price\n      [value]=\"value\"\n      [currency]=\"currency\"\n      [size]=\"size\"\n      [prefix]=\"prefix\"\n      [suffix]=\"suffix\"\n    />\n  </div>\n}\n\n```\n\n"
      },
      {
        "heading": "prefix and suffix",
        "level": 3,
        "content": "Add contextual text before or after the price using `prefix` and `suffix` inputs.\n\n\n```ts\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Price with prefix and suffix\n */\n@Component({\n  selector: 'price-prefix-suffix-example',\n  templateUrl: './price-prefix-suffix-example.html',\n  styleUrls: ['./price-prefix-suffix-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PricePrefixSuffixExampleComponent {\n  value = 29.99;\n  currency = 'USD';\n}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 class=\"label\">With prefix</h4>\n    <nx-price [value]=\"value\" [currency]=\"currency\" prefix=\"from\" />\n  </div>\n  <div class=\"example-item\">\n    <h4 class=\"label\">With suffix</h4>\n    <nx-price [value]=\"value\" [currency]=\"currency\" suffix=\"monthly\" />\n  </div>\n  <div class=\"example-item\">\n    <h4 class=\"label\">With both</h4>\n    <nx-price\n      [value]=\"value\"\n      [currency]=\"currency\"\n      prefix=\"from\"\n      suffix=\"per month\"\n    />\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "superscript formatting",
        "level": 3,
        "content": "Use `superscript` to elevate and reduce the currency symbol and decimal portion for a compact, emphasized price layout. Supported only for sizes `2xl` and larger.\n\n\n```ts\nimport { NxPriceComponent, NxPriceSize } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Superscript formatting example\n */\n@Component({\n  selector: 'price-superscript-example',\n  templateUrl: './price-superscript-example.html',\n  styleUrls: ['./price-superscript-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PriceSuperscriptExampleComponent {\n  readonly value = 2559.49;\n  size: NxPriceSize = '3xl';\n}\n\n```\n```html\n<div class=\"nx-margin-bottom-m\">\n  <span class=\"nx-margin-right-xl\"> Default </span>\n  <nx-price\n    [value]=\"value\"\n    currency=\"USD\"\n    locale=\"en-US\"\n    [size]=\"size\"\n    prefix=\"from\"\n    suffix=\"per month\"\n  />\n</div>\n\n<div class=\"nx-margin-bottom-m\">\n  <span class=\"nx-margin-right-xl\"> Superscript </span>\n  <nx-price\n    [value]=\"value\"\n    currency=\"USD\"\n    locale=\"en-US\"\n    [size]=\"size\"\n    superscript=\"true\"\n    prefix=\"from\"\n    suffix=\"per month\"\n  />\n</div>\n\n<div class=\"nx-margin-bottom-m\">\n  <span class=\"nx-margin-right-xl\"> Superscript </span>\n  <nx-price\n    [value]=\"value\"\n    currency=\"EUR\"\n    locale=\"de-DE\"\n    [size]=\"size\"\n    superscript=\"true\"\n    prefix=\"from\"\n    suffix=\"per month\"\n  />\n</div>\n\n```\n\n"
      },
      {
        "heading": "vertical layout",
        "level": 3,
        "content": "Use `vertical` to stack the prefix, price and suffix.\n\n\n```ts\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Vertical price\n */\n@Component({\n  selector: 'price-vertical-example',\n  templateUrl: './price-vertical-example.html',\n  styleUrls: ['./price-vertical-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PriceVerticalExampleComponent {\n  value = 99.99;\n  currency = 'USD';\n}\n\n```\n```html\n<nx-price\n  [value]=\"value\"\n  [currency]=\"currency\"\n  prefix=\"from\"\n  suffix=\"Monthly\"\n  vertical\n/>\n\n```\n\n"
      },
      {
        "heading": "info icon",
        "level": 3,
        "content": "Project an `nx-info-icon` to show an info icon next to the price. It is placed after the suffix if there is one. In `vertical` mode with a prefix but no suffix it is placed after the prefix. Otherwise it follows the price.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Price with info icon\n */\n@Component({\n  selector: 'price-info-icon-example',\n  templateUrl: './price-info-icon-example.html',\n  styleUrls: ['./price-info-icon-example.css'],\n  imports: [NxPriceComponent, NxInfoIconComponent, NxHeadlineComponent],\n})\nexport class PriceInfoIconExampleComponent {\n  value = 29.99;\n  currency = 'USD';\n}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n      Next to the price\n    </h4>\n    <nx-price [value]=\"value\" [currency]=\"currency\" prefix=\"from\" size=\"3xl\">\n      <nx-info-icon\n        buttonAriaLabel=\"Help\"\n        popoverDirection=\"top\"\n        popoverMaxWidth=\"250px\"\n      >\n        <span>This popover appears on top with a maximum width of 250px.</span>\n      </nx-info-icon>\n    </nx-price>\n  </div>\n  <div class=\"example-item\">\n    <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n      Next to the suffix\n    </h4>\n    <nx-price [value]=\"value\" [currency]=\"currency\" size=\"3xl\" suffix=\"monthly\">\n      <nx-info-icon\n        buttonAriaLabel=\"Help\"\n        popoverDirection=\"top\"\n        popoverMaxWidth=\"250px\"\n      >\n        <span>This popover appears on top with a maximum width of 250px.</span>\n      </nx-info-icon>\n    </nx-price>\n  </div>\n  <div class=\"example-item\">\n    <h4 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n      Next to the prefix (vertical)\n    </h4>\n    <nx-price\n      [value]=\"value\"\n      [currency]=\"currency\"\n      size=\"3xl\"\n      prefix=\"from\"\n      vertical\n    >\n      <nx-info-icon\n        buttonAriaLabel=\"Help\"\n        popoverDirection=\"top\"\n        popoverMaxWidth=\"250px\"\n      >\n        <span>This popover appears on top with a maximum width of 250px.</span>\n      </nx-info-icon>\n    </nx-price>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverse ",
        "level": 3,
        "content": "Use the `inverse` input to apply inverse styling, suitable for dark backgrounds.\n\n\n```ts\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Price with inverse style\n */\n@Component({\n  selector: 'price-inverse-example',\n  templateUrl: './price-inverse-example.html',\n  styleUrls: ['./price-inverse-example.css'],\n  imports: [NxPriceComponent],\n})\nexport class PriceInverseExampleComponent {\n  value = 99.99;\n  currency = 'USD';\n}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4>Default</h4>\n    <nx-price [value]=\"value\" [currency]=\"currency\" />\n  </div>\n  <div class=\"example-item docs-inverse-container\">\n    <h4>Inverse</h4>\n    <nx-price\n      [value]=\"value\"\n      [currency]=\"currency\"\n      [inverse]=\"true\"\n      suffix=\"monthly\"\n      prefix=\"from\"\n    />\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 3,
        "content": "The price supports the `colorScheme` input, which takes `default` or\n`on-accent-attention` for use on an accent-colored surface. When not set, it follows\nthe surface the price is placed on (see `nxSurface`).\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { Component } from '@angular/core';\n\n/**\n * @title Price with on-accent-attention color scheme\n */\n@Component({\n  selector: 'price-accent-attention-example',\n  templateUrl: './price-accent-attention-example.html',\n  styleUrls: ['./price-accent-attention-example.css'],\n  imports: [NxPriceComponent, NxHeadlineComponent],\n})\nexport class PriceAccentAttentionExampleComponent {\n  value = 42;\n  currency = 'USD';\n}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 nxHeadline size=\"s\">Default</h4>\n    <nx-price\n      [value]=\"value\"\n      [currency]=\"currency\"\n      prefix=\"from\"\n      suffix=\"monthly\"\n    />\n  </div>\n  <div class=\"example-item docs-attention-container\">\n    <h4 nxHeadline size=\"s\" colorScheme=\"on-accent-attention\">\n      On-Accent Attention\n    </h4>\n    <nx-price\n      [value]=\"value\"\n      [currency]=\"currency\"\n      colorScheme=\"on-accent-attention\"\n      prefix=\"from\"\n      suffix=\"monthly\"\n    />\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "imposing size from a wrapper",
        "level": 3,
        "content": "A wrapping component (e.g. a card grid or a comparison table header) can provide\n`NX_PRICE_CONTEXT` to own the size of every `nx-price` rendered beneath it, overriding\nthe consumer's `size` input. This keeps prices visually consistent across all usages of\nthat wrapper, even if each usage sets a different `size`.\n\n\n```ts\nimport {\n  NX_PRICE_CONTEXT,\n  NxPriceComponent,\n  type NxPriceContext,\n  type NxPriceSize,\n} from '@allianz/ng-aquila/price';\nimport { Component, input, signal } from '@angular/core';\n\n/**\n * @title Imposing a size via NX_PRICE_CONTEXT\n */\n\n/** Wrapper that owns the size of any `nx-price` rendered inside it, e.g. for a card grid. */\n@Component({\n  selector: 'price-context-card-example',\n  template: `\n    <div class=\"example-card\">\n      <ng-content />\n    </div>\n  `,\n  styleUrls: ['./price-context-example.css'],\n  providers: [\n    {\n      provide: NX_PRICE_CONTEXT,\n      useExisting: PriceContextCardExampleComponent,\n    },\n  ],\n})\nexport class PriceContextCardExampleComponent implements NxPriceContext {\n  readonly priceSize = input<NxPriceSize>('2xl');\n}\n\n@Component({\n  selector: 'price-context-example',\n  templateUrl: './price-context-example.html',\n  styleUrls: ['./price-context-example.css'],\n  imports: [NxPriceComponent, PriceContextCardExampleComponent],\n})\nexport class PriceContextExampleComponent {\n  readonly cardSize = signal<NxPriceSize>('2xl');\n  readonly sizes: NxPriceSize[] = ['m', 'l', 'xl', '2xl', '3xl'];\n}\n\n```\n```html\n<p class=\"nx-margin-bottom-m\">\n  Each card below imposes <code>{{ cardSize() }}</code> via\n  <code>NX_PRICE_CONTEXT</code>, regardless of the <code>size</code> input\n  passed to the price inside it.\n</p>\n\n<div class=\"example-cards\">\n  @for (size of sizes; track size) {\n    <price-context-card-example [priceSize]=\"cardSize()\">\n      <span class=\"example-card-label\">size=\"{{ size }}\"</span>\n      <nx-price [value]=\"99.99\" [size]=\"size\" />\n    </price-context-card-example>\n  }\n</div>\n\n```\n"
      }
    ]
  },
  {
    "name": "product-tile.md",
    "title": "Product Tile",
    "category": "components",
    "alias": [
      "product tile",
      "offer tile",
      "plan tile",
      "pricing tile"
    ],
    "sections": [
      {
        "heading": "carousel",
        "level": 2,
        "content": "A group puts one, two or three tiles side by side depending on the room it has, so a tile never gets too narrow for its title. Add more than fit and the track scrolls: a tile peeks in from either end, the tiles outside fade, and a progress bar appears. It stays a scroll container with snap points, so touch, trackpad and keyboard scrolling keep working - the arrows only shortcut that scroll and show on hover or focus.\n\nTiles on a track share their rows, so headers, prices and actions line up across the group. A promotion bar is one of those rows, so tiles without one show an empty strip.\n\nThe track opens on the tile selected before the first render, centred where there is room.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile Carousel Example\n */\n@Component({\n  selector: 'product-tile-carousel-example',\n  templateUrl: './product-tile-carousel-example.html',\n  standalone: true,\n  imports: [\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileCarouselExampleComponent {\n  // Sublines and feature lists of different lengths, to show the tiles sharing their rows: every\n  // header, price and action lines up across the track however much content sits in the body.\n  readonly products = [\n    {\n      value: 'basic',\n      title: 'Basic',\n      price: 24,\n      subline: 'Third party only',\n      features: ['Third party liability'],\n    },\n    {\n      value: 'comfort',\n      title: 'Comfort',\n      price: 42,\n      subline: 'Everyday cover for your car',\n      features: ['Third party liability', 'Partial coverage'],\n    },\n    {\n      value: 'premium',\n      title: 'Premium',\n      price: 68,\n      subline: 'Everything covered, all year round, wherever you drive',\n      features: [\n        'Third party liability',\n        'Full coverage',\n        '24/7 breakdown service',\n        'Replacement car for 14 days',\n      ],\n    },\n    {\n      value: 'premium-plus',\n      title: 'Premium Plus',\n      price: 92,\n      subline: 'Premium, and a second driver',\n      features: [\n        'Third party liability',\n        'Full coverage',\n        '24/7 breakdown service',\n        'Replacement car for 30 days',\n        'Second driver included',\n        'No deductible',\n      ],\n    },\n    {\n      value: 'business',\n      title: 'Business',\n      price: 128,\n      subline: 'For a fleet of up to ten',\n      features: ['Third party liability', 'Full coverage', 'Fleet management'],\n    },\n  ];\n\n  selectedProduct: string | null = null;\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n>\n  @for (product of products; track product.value) {\n    <nx-product-tile [value]=\"product.value\" [carouselLabel]=\"product.title\">\n      <span nxProductTileTitle>{{ product.title }}</span>\n      <span nxProductTileSubline>{{ product.subline }}</span>\n      <nx-price nxProductTilePrice [value]=\"product.price\" prefix=\"from\" />\n\n      <ul nxList>\n        @for (feature of product.features; track feature) {\n          <li nxListIcon=\"check\">{{ feature }}</li>\n        }\n      </ul>\n\n      <button nxProductTileSelectButton type=\"button\"></button>\n    </nx-product-tile>\n  }\n</nx-product-tile-group>\n\n<p>Selected product: {{ selectedProduct }}</p>\n\n```\n\n"
      },
      {
        "heading": "tab bar",
        "level": 3,
        "content": "Give **every** tile a `carouselLabel` and a tab bar appears above the track, one tab per tile. Tabs highlight whichever tiles are in view, and clicking one brings its tile in. Miss a label on any tile and the bar stays away.\n"
      },
      {
        "heading": "slots",
        "level": 2,
        "content": "`NX_PRODUCT_TILE_IMPORTS` brings the group, the tile, every slot directive and the select button in one go - spread it into a standalone component's `imports`.\n\n| Directive                      | What goes in it                                       |\n| ------------------------------ | ----------------------------------------------------- |\n| `nxProductTileHeaderContent`   | A whole custom header, replacing the four slots below |\n| `nxProductTileEyebrow`         | Small uppercased line above the title                 |\n| `nxProductTileTitle`           | The product name                                      |\n| `nxProductTileSubline`         | One supporting line below the title                   |\n| `nxProductTilePrice`           | An `nx-price`; sized `2xl` by the slot                |\n| `nxProductTileSelectButton`    | The ready-made select button as the action            |\n| `nxProductTileSecondaryAction` | A low-emphasis action below it                        |\n\n\n```ts\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic Product Tile Example\n */\n@Component({\n  selector: 'product-tile-basic-example',\n  templateUrl: './product-tile-basic-example.html',\n  styleUrls: ['./product-tile-basic-example.css'],\n  standalone: true,\n  imports: [\n    NxListComponent,\n    NxListIconComponent,\n    NxPlainButtonComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileBasicExampleComponent {}\n\n```\n```html\n<nx-product-tile-group aria-label=\"Car insurance products\">\n  <nx-product-tile value=\"comfort\">\n    <span nxProductTileEyebrow>Best value</span>\n    <span nxProductTileTitle>Comfort</span>\n    <span nxProductTileSubline>Everyday cover for your car</span>\n    <nx-price nxProductTilePrice [value]=\"42\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Partial coverage</li>\n      <li nxListIcon=\"check\">24/7 breakdown service</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n    <a nxProductTileSecondaryAction nxPlainButton href=\"#\">Compare products</a>\n  </nx-product-tile>\n</nx-product-tile-group>\n\n```\n\n"
      },
      {
        "heading": "custom header",
        "level": 3,
        "content": "`nxProductTileHeaderContent` replaces the eyebrow, title, subline and price slots - those are ignored while it is present. Tiles in one group can mix the two.\n\nIt also stands in for the missing title as the accessible name of the selection control, so keep it to what names the product.\n\nOnly components that read the surface adapt to a painted header, so reach for `nx-headline`, `nx-eyebrow` or `nx-body-text` instead of plain text. Size an `nx-price` here yourself - the slot's `2xl` does not reach it.\n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile With A Custom Header Example\n */\n@Component({\n  selector: 'product-tile-header-content-example',\n  templateUrl: './product-tile-header-content-example.html',\n  styleUrls: ['./product-tile-header-content-example.css'],\n  standalone: true,\n  imports: [\n    NxEyebrowComponent,\n    NxHeadlineComponent,\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileHeaderContentExampleComponent {\n  selectedProduct: string | null = null;\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n  class=\"example__group\"\n>\n  <nx-product-tile\n    value=\"comfort\"\n    colorScheme=\"accent-attention\"\n    accentColor=\"green\"\n  >\n    <div nxProductTileHeaderContent class=\"example__header\">\n      <nx-eyebrow size=\"s\">Recommended</nx-eyebrow>\n      <div class=\"example__headline-row\">\n        <h3 nxHeadline size=\"l\">Comfort</h3>\n        <nx-price size=\"l\" [value]=\"42\" prefix=\"from\" />\n      </div>\n    </div>\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Partial coverage</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n\n  <nx-product-tile value=\"basic\" colorScheme=\"emphasis\">\n    <span nxProductTileEyebrow>Entry</span>\n    <span nxProductTileTitle>Basic</span>\n    <span nxProductTileSubline>The essentials, nothing more</span>\n    <nx-price nxProductTilePrice [value]=\"24\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n</nx-product-tile-group>\n\n```\n\n"
      },
      {
        "heading": "custom body",
        "level": 3,
        "content": "Anything projected without one of the directives above lands in the body, unwrapped and unstyled. Markup order does not matter: the tile places its own slots.\n\n\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { NxBodyTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile With Rich Body Content Example\n */\n@Component({\n  selector: 'product-tile-body-content-example',\n  templateUrl: './product-tile-body-content-example.html',\n  styleUrls: ['./product-tile-body-content-example.css'],\n  standalone: true,\n  imports: [\n    NxBodyTextComponent,\n    NxLinkComponent,\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileBodyContentExampleComponent {\n  selectedProduct: string | null = null;\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n  class=\"example__group\"\n>\n  <nx-product-tile value=\"comfort\" colorScheme=\"emphasis\">\n    <span nxProductTileEyebrow>Recommended</span>\n    <span nxProductTileTitle>Comfort</span>\n    <span nxProductTileSubline>Everyday cover for your car</span>\n    <nx-price nxProductTilePrice [value]=\"42\" prefix=\"from\" />\n\n    <!-- None of this carries a product tile directive, so the tile puts it all in the body. -->\n    <p nxBodyText size=\"s\" class=\"example__intro\">\n      Cancel any time in the first 30 days and we refund the lot.\n    </p>\n\n    <ul nxList class=\"example__list\">\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Partial coverage</li>\n      <li nxListIcon=\"check\">Replacement car for 14 days</li>\n    </ul>\n\n    <dl class=\"example__facts\">\n      <dt>Deductible</dt>\n      <dd>$300</dd>\n      <dt>Coverage</dt>\n      <dd>Worldwide</dd>\n    </dl>\n\n    <nx-link class=\"example__link\"><a href=\"#\">Read the full terms</a></nx-link>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n</nx-product-tile-group>\n\n```\n\n"
      },
      {
        "heading": "color schemes",
        "level": 2,
        "content": "`colorScheme` picks the surface the header is painted with, and its content adapts on its own. `plain` keeps the tile's own background and adds a divider instead. `accentColor` only takes effect with `accent-attention`.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport {\n  NX_PRODUCT_TILE_IMPORTS,\n  NxProductTileColorScheme,\n} from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile Color Schemes Example\n */\n@Component({\n  selector: 'product-tile-color-schemes-example',\n  templateUrl: './product-tile-color-schemes-example.html',\n  standalone: true,\n  imports: [\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileColorSchemesExampleComponent {\n  readonly colorSchemes: NxProductTileColorScheme[] = [\n    'attention',\n    'plain',\n    'emphasis',\n    'accent-attention',\n  ];\n}\n\n```\n```html\n<nx-product-tile-group aria-label=\"Car insurance products\">\n  @for (colorScheme of colorSchemes; track colorScheme) {\n    <nx-product-tile\n      [value]=\"colorScheme\"\n      [colorScheme]=\"colorScheme\"\n      accentColor=\"green\"\n    >\n      <span nxProductTileEyebrow>{{ colorScheme }}</span>\n      <span nxProductTileTitle>Comfort</span>\n      <span nxProductTileSubline>Everyday cover for your car</span>\n      <nx-price nxProductTilePrice [value]=\"42\" prefix=\"from\" />\n\n      <ul nxList>\n        <li nxListIcon=\"check\">Third party liability</li>\n        <li nxListIcon=\"check\">Partial coverage</li>\n      </ul>\n\n      <button nxProductTileSelectButton type=\"button\"></button>\n    </nx-product-tile>\n  }\n</nx-product-tile-group>\n\n```\n\n"
      },
      {
        "heading": "select button",
        "level": 2,
        "content": "`nxProductTileSelectButton` is the action as a button that already knows what it does: `Select`, then `Selected` behind a check mark once picked, secondary while unpicked and primary once picked.\n\n`position=\"top\"` moves it into the header, next to the price.\n\nLabels come from `selectedLabel` and `unselectedLabel`, or from `NxProductTileSelectButtonIntl` for every tile beneath its provider. A label on the button wins.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile Select Button Example\n */\n@Component({\n  selector: 'product-tile-select-button-example',\n  templateUrl: './product-tile-select-button-example.html',\n  standalone: true,\n  imports: [\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileSelectButtonExampleComponent {\n  selectedProduct: string | null = null;\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n>\n  <nx-product-tile value=\"basic\" colorScheme=\"emphasis\">\n    <span nxProductTileTitle>Basic</span>\n    <span nxProductTileSubline>The essentials, nothing more</span>\n    <nx-price nxProductTilePrice [value]=\"24\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n\n  <nx-product-tile\n    value=\"comfort\"\n    colorScheme=\"accent-attention\"\n    accentColor=\"green\"\n  >\n    <span nxProductTileEyebrow>Recommended</span>\n    <span nxProductTileTitle>Comfort</span>\n    <span nxProductTileSubline>Everyday cover for your car</span>\n    <nx-price nxProductTilePrice [value]=\"42\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Partial coverage</li>\n    </ul>\n\n    <button\n      nxProductTileSelectButton\n      type=\"button\"\n      unselectedLabel=\"Take Comfort\"\n      selectedLabel=\"Comfort it is\"\n    ></button>\n  </nx-product-tile>\n\n  <nx-product-tile value=\"premium-top\" colorScheme=\"attention\">\n    <span nxProductTileEyebrow>Button in the header</span>\n    <span nxProductTileTitle>Premium</span>\n    <span nxProductTileSubline>Everything covered, all year</span>\n    <nx-price nxProductTilePrice [value]=\"68\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Full coverage</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\" position=\"top\"></button>\n  </nx-product-tile>\n</nx-product-tile-group>\n\n<p>Selected product: {{ selectedProduct ?? 'none' }}</p>\n\n```\n\n"
      },
      {
        "heading": "promotion",
        "level": 2,
        "content": "`[promotion]` adds a text bar above the header.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile Promotion And Button Position Example\n */\n@Component({\n  selector: 'product-tile-promotion-example',\n  templateUrl: './product-tile-promotion-example.html',\n  standalone: true,\n  imports: [\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTilePromotionExampleComponent {}\n\n```\n```html\n<nx-product-tile-group aria-label=\"Car insurance products\">\n  <nx-product-tile value=\"comfort\" promotion=\"Bestseller\">\n    <span nxProductTileTitle>Comfort</span>\n    <span nxProductTileSubline>Everyday cover for your car</span>\n    <nx-price nxProductTilePrice [value]=\"42\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Partial coverage</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n</nx-product-tile-group>\n\n```\n\n"
      },
      {
        "heading": "price size",
        "level": 2,
        "content": "The `nxProductTilePrice` slot imposes `2xl` through `NX_PRICE_CONTEXT` so prices match across a group. An `nx-price` anywhere else is sized by its own `size` input.\n\nName a `priceSize` to impose your own, or `undefined` to hand the decision back to the price. A nearer provider wins, but it has to sit on a **separate** element - two directives on one element provide into the same injector, where directive order decides.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport {\n  NX_PRICE_CONTEXT,\n  NxPriceComponent,\n  NxPriceContext,\n  NxPriceSize,\n} from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component, Directive, forwardRef, input } from '@angular/core';\n\n/**\n * The `nxProductTilePrice` slot imposes `2xl` through `NX_PRICE_CONTEXT`. Providing the token again\n * closer to the price replaces that: name a size to impose your own, or leave it unset to hand the\n * price's own `size` input back the decision.\n */\n@Directive({\n  selector: '[examplePriceSize]',\n  standalone: true,\n  providers: [\n    {\n      provide: NX_PRICE_CONTEXT,\n      useExisting: forwardRef(() => ExamplePriceSizeDirective),\n    },\n  ],\n})\nexport class ExamplePriceSizeDirective implements NxPriceContext {\n  readonly priceSize = input<NxPriceSize | undefined>(undefined, {\n    alias: 'examplePriceSize',\n  });\n}\n\n/**\n * @title Overriding The Price Size In A Product Tile Example\n */\n@Component({\n  selector: 'product-tile-price-size-example',\n  templateUrl: './product-tile-price-size-example.html',\n  styleUrls: ['./product-tile-price-size-example.css'],\n  standalone: true,\n  imports: [\n    ExamplePriceSizeDirective,\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTilePriceSizeExampleComponent {\n  selectedProduct: string | null = 'comfort';\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n  class=\"example__group\"\n>\n  <nx-product-tile value=\"basic\" colorScheme=\"emphasis\">\n    <span nxProductTileEyebrow>Imposed</span>\n    <span nxProductTileTitle>Basic</span>\n    <span nxProductTileSubline>The tile's own 2xl</span>\n    <nx-price nxProductTilePrice [value]=\"24\" prefix=\"from\" />\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n\n  <nx-product-tile value=\"comfort\" colorScheme=\"emphasis\">\n    <span nxProductTileEyebrow>Overridden</span>\n    <span nxProductTileTitle>Comfort</span>\n    <span nxProductTileSubline>A nearer context imposes l</span>\n    <div nxProductTilePrice>\n      <nx-price examplePriceSize=\"l\" [value]=\"42\" prefix=\"from\" />\n    </div>\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Partial coverage</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n\n  <nx-product-tile value=\"premium\" colorScheme=\"emphasis\">\n    <span nxProductTileEyebrow>Released</span>\n    <span nxProductTileTitle>Premium</span>\n    <span nxProductTileSubline>An empty context, so size wins</span>\n    <div nxProductTilePrice>\n      <nx-price\n        [examplePriceSize]=\"undefined\"\n        size=\"s\"\n        [value]=\"68\"\n        prefix=\"from\"\n      />\n    </div>\n\n    <ul nxList>\n      <li nxListIcon=\"check\">Third party liability</li>\n      <li nxListIcon=\"check\">Full coverage</li>\n    </ul>\n\n    <button nxProductTileSelectButton type=\"button\"></button>\n  </nx-product-tile>\n</nx-product-tile-group>\n\n```\n\n"
      },
      {
        "heading": "selection",
        "level": 2,
        "content": "Tiles are always selectable, and always need a `nx-product-tile-group` - even a single one; a tile without a group throws. The group holds the selected value, works with `[(value)]`, `ngModel` and reactive forms, and accepts a projected `nx-error`. Single-select only.\n\n\n```ts\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selectable Product Tile Group Example\n */\n@Component({\n  selector: 'product-tile-selection-example',\n  templateUrl: './product-tile-selection-example.html',\n  standalone: true,\n  imports: [\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileSelectionExampleComponent {\n  readonly products = [\n    {\n      value: 'basic',\n      title: 'Basic',\n      price: 24,\n      subline: 'Third party only',\n      features: ['Third party liability'],\n    },\n    {\n      value: 'comfort',\n      title: 'Comfort',\n      price: 42,\n      subline: 'Everyday cover for your car',\n      features: ['Third party liability', 'Partial coverage'],\n    },\n    {\n      value: 'premium',\n      title: 'Premium',\n      price: 68,\n      subline: 'Everything covered, all year',\n      features: [\n        'Third party liability',\n        'Full coverage',\n        '24/7 breakdown service',\n      ],\n    },\n    {\n      value: 'business',\n      title: 'Business',\n      price: 128,\n      subline: 'For a fleet of up to ten',\n      features: ['Third party liability', 'Full coverage', 'Fleet management'],\n    },\n    {\n      value: 'business-plus',\n      title: 'Business Plus',\n      price: 184,\n      subline: 'For a fleet of any size',\n      features: [\n        'Third party liability',\n        'Full coverage',\n        'Fleet management',\n        'Named account manager',\n      ],\n    },\n  ];\n\n  // More tiles than fit, with one picked out of view: the track opens on it rather than at its start.\n  selectedProduct: string | null = 'business';\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n>\n  @for (product of products; track product.value) {\n    <nx-product-tile [value]=\"product.value\" [carouselLabel]=\"product.title\">\n      <span nxProductTileTitle>{{ product.title }}</span>\n      <span nxProductTileSubline>{{ product.subline }}</span>\n      <nx-price nxProductTilePrice [value]=\"product.price\" prefix=\"from\" />\n\n      <ul nxList>\n        @for (feature of product.features; track feature) {\n          <li nxListIcon=\"check\">{{ feature }}</li>\n        }\n      </ul>\n\n      <button nxProductTileSelectButton type=\"button\"></button>\n    </nx-product-tile>\n  }\n</nx-product-tile-group>\n\n<p>Selected product: {{ selectedProduct ?? 'none' }}</p>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 2,
        "content": "The group is a `radiogroup` of real radio inputs, each labelled by its tile's title and price. A `nxProductTileSelectButton` is described by the same, so `Select` reads out which product it picks.\n\nName the group with an `aria-label`, or an `aria-labelledby` pointing at a headline above the tiles.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile Group Labelled By A Headline Example\n */\n@Component({\n  selector: 'product-tile-labelled-by-example',\n  templateUrl: './product-tile-labelled-by-example.html',\n  standalone: true,\n  imports: [\n    NxHeadlineComponent,\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileLabelledByExampleComponent {\n  readonly products = [\n    {\n      value: 'basic',\n      title: 'Basic',\n      price: 24,\n      subline: 'Third party only',\n      features: ['Third party liability'],\n    },\n    {\n      value: 'comfort',\n      title: 'Comfort',\n      price: 42,\n      subline: 'Everyday cover for your car',\n      features: ['Third party liability', 'Partial coverage'],\n    },\n    {\n      value: 'premium',\n      title: 'Premium',\n      price: 68,\n      subline: 'Everything covered, all year',\n      features: [\n        'Third party liability',\n        'Full coverage',\n        '24/7 breakdown service',\n      ],\n    },\n  ];\n\n  selectedProduct: string | null = null;\n}\n\n```\n```html\n<h3 nxHeadline=\"subsection-small\" id=\"cover-headline\">Choose your cover</h3>\n\n<nx-product-tile-group\n  aria-labelledby=\"cover-headline\"\n  [(value)]=\"selectedProduct\"\n>\n  @for (product of products; track product.value) {\n    <nx-product-tile [value]=\"product.value\">\n      <span nxProductTileTitle>{{ product.title }}</span>\n      <span nxProductTileSubline>{{ product.subline }}</span>\n      <nx-price nxProductTilePrice [value]=\"product.price\" prefix=\"from\" />\n\n      <ul nxList>\n        @for (feature of product.features; track feature) {\n          <li nxListIcon=\"check\">{{ feature }}</li>\n        }\n      </ul>\n\n      <button nxProductTileSelectButton type=\"button\"></button>\n    </nx-product-tile>\n  }\n</nx-product-tile-group>\n\n```\n\n\nA body that only lists included features needs nothing extra - a list of what the product covers reads fine with a check icon or none. As soon as any tile shows another status, such as a feature that is excluded or only partly covered, the difference has to be spelled out, for screen reader users too. An icon alone is not enough: add the status as text, visible or visually hidden, next to each affected item.\n\nHere a legend explains the icons to everyone who sees them, and a visually hidden `Included:` or `Not included:` gives each item its status for screen readers.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxListComponent, NxListIconComponent } from '@allianz/ng-aquila/list';\nimport { NxPriceComponent } from '@allianz/ng-aquila/price';\nimport { NX_PRODUCT_TILE_IMPORTS } from '@allianz/ng-aquila/product-tile';\nimport { NxBodyTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Product Tile With Feature Status Example\n */\n@Component({\n  selector: 'product-tile-feature-status-example',\n  templateUrl: './product-tile-feature-status-example.html',\n  styleUrls: ['./product-tile-feature-status-example.css'],\n  standalone: true,\n  imports: [\n    NxBodyTextComponent,\n    NxIconComponent,\n    NxListComponent,\n    NxListIconComponent,\n    NxPriceComponent,\n    ...NX_PRODUCT_TILE_IMPORTS,\n  ],\n})\nexport class ProductTileFeatureStatusExampleComponent {\n  readonly features = [\n    'Third party liability',\n    'Partial coverage',\n    'Full coverage',\n    '24/7 breakdown service',\n  ];\n\n  readonly products = [\n    {\n      value: 'basic',\n      title: 'Basic',\n      price: 24,\n      included: ['Third party liability'],\n    },\n    {\n      value: 'comfort',\n      title: 'Comfort',\n      price: 42,\n      included: ['Third party liability', 'Partial coverage'],\n    },\n    { value: 'premium', title: 'Premium', price: 68, included: this.features },\n  ];\n\n  selectedProduct: string | null = null;\n}\n\n```\n```html\n<nx-product-tile-group\n  aria-label=\"Choose your car insurance\"\n  [(value)]=\"selectedProduct\"\n>\n  @for (product of products; track product.value) {\n    <nx-product-tile [value]=\"product.value\">\n      <span nxProductTileTitle>{{ product.title }}</span>\n      <nx-price nxProductTilePrice [value]=\"product.price\" prefix=\"from\" />\n\n      <ul nxList>\n        @for (feature of features; track feature) {\n          @if (product.included.includes(feature)) {\n            <li nxListIcon=\"check\">\n              <span class=\"cdk-visually-hidden\">Included: </span>{{ feature }}\n            </li>\n          } @else {\n            <li nxListIcon=\"close\" class=\"example__excluded\">\n              <span class=\"cdk-visually-hidden\">Not included: </span\n              >{{ feature }}\n            </li>\n          }\n        }\n      </ul>\n\n      <button nxProductTileSelectButton type=\"button\"></button>\n    </nx-product-tile>\n  }\n</nx-product-tile-group>\n\n```\n\n\nThe tab bar's semantics are not settled yet: its tabs are plain buttons without a `role` of their own.\n\nCarousel arrows - and the tab bar's edge buttons - are labelled through `NxProductTileCarouselIntl`:\n\n```ts\nproviders: [\n  {\n    provide: NxProductTileCarouselIntl,\n    useFactory: () => {\n      const intl = new NxProductTileCarouselIntl();\n      intl.previousLabel.set('Vorherige Produkte');\n      intl.nextLabel.set('Nächste Produkte');\n      return intl;\n    },\n  },\n];\n```\n"
      }
    ]
  },
  {
    "name": "progress-indicator.md",
    "title": "Progress Indicator",
    "category": "components",
    "alias": [
      "stepper",
      "wizard",
      "multi step",
      "progress indicator",
      "🧙‍♂️"
    ],
    "sections": [
      {
        "heading": "single progress indicator",
        "level": 2,
        "content": "\n```ts\nimport { NxSingleProgressIndicatorComponent } from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Single Progress Indicator basic example\n */\n@Component({\n  selector: 'single-progress-indicator-basic-example',\n  templateUrl: './single-progress-indicator-basic-example.html',\n  imports: [NxSingleProgressIndicatorComponent],\n})\nexport class SingleProgressIndicatorBasicExampleComponent {}\n\n```\n```html\n<nx-single-progress-indicator\n  [value]=\"1\"\n  [max]=\"4\"\n></nx-single-progress-indicator>\n\n```\n\n\nProject content to replace the default label, e.g. to describe the step instead of just numbering it.\n\n\n```ts\nimport { NxSingleProgressIndicatorComponent } from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Single Progress Indicator custom label example\n */\n@Component({\n  selector: 'single-progress-indicator-custom-label-example',\n  templateUrl: './single-progress-indicator-custom-label-example.html',\n  imports: [NxSingleProgressIndicatorComponent],\n})\nexport class SingleProgressIndicatorCustomLabelExampleComponent {}\n\n```\n```html\n<nx-single-progress-indicator [value]=\"1\" [max]=\"4\"\n  >First of Four Steps: Billing Address</nx-single-progress-indicator\n>\n\n```\n\n\nSet `labelEnd` for a second, right-aligned label, e.g. a hint about what's next.\n\n\n```ts\nimport { NxSingleProgressIndicatorComponent } from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Single Progress Indicator with end label example\n */\n@Component({\n  selector: 'single-progress-indicator-with-end-label-example',\n  templateUrl: './single-progress-indicator-with-end-label-example.html',\n  imports: [NxSingleProgressIndicatorComponent],\n})\nexport class SingleProgressIndicatorWithEndLabelExampleComponent {}\n\n```\n```html\n<nx-single-progress-indicator\n  [value]=\"1\"\n  [max]=\"4\"\n  labelEnd=\"Next step: Shipment Details\"\n>\n  Step 1 of 4\n</nx-single-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "step content",
        "level": 4,
        "content": "The component shows progress only — it holds no step state and renders no step content. Your app owns which step is active and moves between them, which replaces the Legacy variant's `nxStepperPrevious`/`nxStepperNext` directives.\n\nIf a step change swaps the content in place, without a page navigation, announce it via `LiveAnnouncer`: the label is the progressbar's accessible name, and renaming an element is not announced, so the step change is silent for a screen reader user. Steps that are routed pages of their own don't need this — the navigation is announced already.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxSingleProgressIndicatorComponent } from '@allianz/ng-aquila/progress-indicator';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { Component, computed, inject, signal } from '@angular/core';\n\nconst STEPS = [\n  { label: 'Address', content: 'Please enter your address.' },\n  { label: 'Personal details', content: 'Please enter your personal details.' },\n  { label: 'Claim details', content: 'Please describe your claim.' },\n  {\n    label: 'Summary',\n    content: 'Please review your claim before submitting it.',\n  },\n];\n\n/**\n * @title Single Progress Indicator with step content example\n */\n@Component({\n  selector: 'single-progress-indicator-with-content-example',\n  templateUrl: './single-progress-indicator-with-content-example.html',\n  imports: [NxSingleProgressIndicatorComponent, NxButtonComponent],\n})\nexport class SingleProgressIndicatorWithContentExampleComponent {\n  private readonly _liveAnnouncer = inject(LiveAnnouncer);\n\n  protected readonly stepCount = STEPS.length;\n\n  protected readonly activeStep = signal(1);\n\n  protected readonly currentStep = computed(() => STEPS[this.activeStep() - 1]);\n\n  protected previous(): void {\n    this._goToStep(Math.max(1, this.activeStep() - 1));\n  }\n\n  protected next(): void {\n    this._goToStep(Math.min(this.stepCount, this.activeStep() + 1));\n  }\n\n  // Needed because the steps change in place: there is no navigation to announce the change for us.\n  private _goToStep(step: number): void {\n    this.activeStep.set(step);\n    this._liveAnnouncer.announce(\n      `Now on Step ${step}: ${STEPS[step - 1].label}`,\n    );\n  }\n}\n\n```\n```html\n<nx-single-progress-indicator [value]=\"activeStep()\" [max]=\"stepCount\">\n  Step {{ activeStep() }} of {{ stepCount }}: {{ currentStep().label }}\n</nx-single-progress-indicator>\n\n<div class=\"nx-margin-top-s nx-margin-bottom-s\">\n  <p>{{ currentStep().content }}</p>\n</div>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  class=\"nx-margin-right-2xs\"\n  [disabled]=\"activeStep() === 1\"\n  (click)=\"previous()\"\n>\n  Previous\n</button>\n<button\n  nxButton=\"primary small\"\n  type=\"button\"\n  [disabled]=\"activeStep() === stepCount\"\n  (click)=\"next()\"\n>\n  Next\n</button>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 4,
        "content": "Use `colorScheme=\"positive\"` for the positive/success scheme.\n\n\n```ts\nimport { NxSingleProgressIndicatorComponent } from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Single Progress Indicator positive color scheme example\n */\n@Component({\n  selector: 'single-progress-indicator-positive-example',\n  templateUrl: './single-progress-indicator-positive-example.html',\n  imports: [NxSingleProgressIndicatorComponent],\n})\nexport class SingleProgressIndicatorPositiveExampleComponent {}\n\n```\n```html\n<nx-single-progress-indicator\n  [value]=\"4\"\n  [max]=\"4\"\n  colorScheme=\"positive\"\n></nx-single-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "translations",
        "level": 4,
        "content": "The default label is English; subclass `NxSingleProgressIndicatorIntl` and provide it in your (root) module to translate it. `label` builds the whole sentence from the current and total step, so a translation is free to reorder the parts — Turkish renders \"Step 1 of 4\" as \"4 adımdan 1.\".\n\n\n```ts\nimport {\n  NxSingleProgressIndicatorComponent,\n  NxSingleProgressIndicatorIntl,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component, Injectable, signal } from '@angular/core';\n\n@Injectable()\nexport class MySingleProgressIndicatorIntl extends NxSingleProgressIndicatorIntl {\n  override readonly label = signal(\n    (currentStep: number, totalSteps: number) =>\n      `Schritt ${currentStep} von ${totalSteps}`,\n  );\n}\n\n/**\n * @title Single Progress Indicator localization example\n */\n@Component({\n  selector: 'single-progress-indicator-localize-example',\n  templateUrl: './single-progress-indicator-localize-example.html',\n  providers: [\n    {\n      provide: NxSingleProgressIndicatorIntl,\n      useClass: MySingleProgressIndicatorIntl,\n    },\n  ],\n  imports: [NxSingleProgressIndicatorComponent],\n})\nexport class SingleProgressIndicatorLocalizeExampleComponent {}\n\n```\n```html\n<nx-single-progress-indicator\n  [value]=\"1\"\n  [max]=\"4\"\n></nx-single-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "multi progress indicator",
        "level": 2,
        "content": "`nx-multi-progress-indicator` renders an ordered list of steps. Your app controls which step is active and handles navigation.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multi Progress Indicator basic example\n */\n@Component({\n  selector: 'multi-progress-indicator-basic-example',\n  templateUrl: './multi-progress-indicator-basic-example.html',\n  imports: [NxMultiProgressIndicatorComponent, NxMultiProgressStepComponent],\n})\nexport class MultiProgressIndicatorBasicExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator aria-label=\"Order Process Steps\">\n  <nx-multi-progress-step completed>Billing Address</nx-multi-progress-step>\n  <nx-multi-progress-step completed>Shipping Address</nx-multi-progress-step>\n  <nx-multi-progress-step current>Review Order</nx-multi-progress-step>\n  <nx-multi-progress-step>Payment</nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n\nSet `[numbered]=\"false\"` for dot-only bullets with a checkmark on completion.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Multi Progress Indicator unnumbered example\n */\n@Component({\n  selector: 'multi-progress-indicator-unnumbered-example',\n  templateUrl: './multi-progress-indicator-unnumbered-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    RouterLink,\n  ],\n})\nexport class MultiProgressIndicatorUnnumberedExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator\n  aria-label=\"Order Process Steps\"\n  [numbered]=\"false\"\n>\n  <nx-multi-progress-step completed>\n    <a [routerLink]=\"'./'\" nxProgressIndicatorStepAction>Billing Address</a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Shipping Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 4,
        "content": "Use `colorScheme=\"positive\"` to switch the active color to the positive/success scheme.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multi Progress Indicator positive color scheme example\n */\n@Component({\n  selector: 'multi-progress-indicator-positive-example',\n  templateUrl: './multi-progress-indicator-positive-example.html',\n  imports: [NxMultiProgressIndicatorComponent, NxMultiProgressStepComponent],\n  styles: [\n    `\n      nx-multi-progress-indicator:first-child {\n        margin-bottom: 32px;\n      }\n    `,\n  ],\n})\nexport class MultiProgressIndicatorPositiveExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator\n  aria-label=\"Order Process Steps\"\n  colorScheme=\"positive\"\n>\n  <nx-multi-progress-step completed> Billing Address </nx-multi-progress-step>\n  <nx-multi-progress-step completed> Shipping Address </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n<nx-multi-progress-indicator\n  aria-label=\"Order Process Steps\"\n  layout=\"horizontal-labels-below\"\n  colorScheme=\"positive\"\n>\n  <nx-multi-progress-step completed> Billing Address </nx-multi-progress-step>\n  <nx-multi-progress-step completed> Shipping Address </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "step actions",
        "level": 4,
        "content": "__Links__\n\nSet `[currentStep]` (1-based). Steps before it are automatically marked completed, and the step at that index becomes current.\n\n__Accessibility:__ An incomplete step's anchor should not have an `href`, so it isn't a link at all (see [Accessibility](#accessibility) below).\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component, signal } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Multi Progress Indicator currentStep example\n */\n@Component({\n  selector: 'multi-progress-indicator-current-step-example',\n  templateUrl: './multi-progress-indicator-current-step-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    NxButtonComponent,\n    RouterLink,\n  ],\n})\nexport class MultiProgressIndicatorCurrentStepExampleComponent {\n  private readonly _stepCount = 5;\n\n  protected readonly activeStep = signal(2);\n\n  protected previous(): void {\n    this.activeStep.update((step) => Math.max(1, step - 1));\n  }\n\n  protected next(): void {\n    this.activeStep.update((step) => Math.min(this._stepCount, step + 1));\n  }\n}\n\n```\n```html\n<!--\n  Binding `routerLink` to `null` for a step that is completed drops the `href` - see the component's accessibility notes.\n-->\n<nx-multi-progress-indicator\n  [currentStep]=\"activeStep()\"\n  aria-label=\"Insurance Quote Process\"\n>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"activeStep() > 1 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Billing Address\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"activeStep() > 2 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Shipping Address\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"activeStep() > 3 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Gift Wrapping\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"activeStep() > 4 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Review Order\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"activeStep() > 5 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Payment\n    </a>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n<div class=\"nx-margin-top-s\">\n  <button\n    nxButton=\"secondary small\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs\"\n    (click)=\"previous()\"\n  >\n    Previous\n  </button>\n  <button nxButton=\"primary small\" type=\"button\" (click)=\"next()\">Next</button>\n</div>\n\n```\n\n\n__Buttons__\n\nShowing the active step's content and stepping through it is up to your app - drive it off the same `[currentStep]`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { Component, inject, signal } from '@angular/core';\n\nconst STEP_LABELS = [\n  'Billing Address',\n  'Shipping Address',\n  'Review Order',\n  'Payment',\n];\n\n/**\n * @title Multi Progress Indicator with step content example\n */\n@Component({\n  selector: 'multi-progress-indicator-with-content-example',\n  templateUrl: './multi-progress-indicator-with-content-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    NxButtonComponent,\n  ],\n})\nexport class MultiProgressIndicatorWithContentExampleComponent {\n  private readonly _liveAnnouncer = inject(LiveAnnouncer);\n\n  protected readonly stepCount = STEP_LABELS.length;\n\n  protected readonly activeStep = signal(1);\n\n  protected previous(): void {\n    this._goToStep(Math.max(1, this.activeStep() - 1));\n  }\n\n  protected next(): void {\n    this._goToStep(Math.min(this.stepCount, this.activeStep() + 1));\n  }\n\n  protected goToStep(step: number): void {\n    this._goToStep(step);\n  }\n\n  // The \"Previous\"/\"Next\" buttons sit outside the indicator and clicking them never moves\n  // focus into it, so a screen reader user gets no feedback that the step changed - announce\n  // it explicitly instead. Also covers jumping to a step directly via its own action.\n  private _goToStep(step: number): void {\n    this.activeStep.set(step);\n    this._liveAnnouncer.announce(\n      `Now on Step ${step}: ${STEP_LABELS[step - 1]}`,\n    );\n  }\n}\n\n```\n```html\n<nx-multi-progress-indicator\n  [currentStep]=\"activeStep()\"\n  aria-label=\"Insurance Quote Process\"\n>\n  <nx-multi-progress-step>\n    <button type=\"button\" nxProgressIndicatorStepAction (click)=\"goToStep(1)\">\n      Billing Address\n    </button>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <button type=\"button\" nxProgressIndicatorStepAction (click)=\"goToStep(2)\">\n      Shipping Address\n    </button>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <button type=\"button\" nxProgressIndicatorStepAction (click)=\"goToStep(3)\">\n      Review Order\n    </button>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <button type=\"button\" nxProgressIndicatorStepAction (click)=\"goToStep(4)\">\n      Payment\n    </button>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n<div class=\"nx-margin-top-s nx-margin-bottom-s\">\n  @switch (activeStep()) {\n    @case (1) {\n      <p>Please enter your billing address.</p>\n    }\n    @case (2) {\n      <p>Please enter your shipping address.</p>\n    }\n    @case (3) {\n      <p>Please review your order before continuing to payment.</p>\n    }\n    @case (4) {\n      <p>Please enter your payment details.</p>\n    }\n  }\n</div>\n\n<button\n  nxButton=\"secondary small\"\n  type=\"button\"\n  class=\"nx-margin-right-2xs\"\n  [disabled]=\"activeStep() === 1\"\n  (click)=\"previous()\"\n>\n  Previous\n</button>\n<button\n  nxButton=\"primary small\"\n  type=\"button\"\n  [disabled]=\"activeStep() === stepCount\"\n  (click)=\"next()\"\n>\n  Next\n</button>\n\n```\n\n\n`nxProgressIndicatorStepAction` on a projected `<a>`/`<button>` makes it focusable and clickable only once its step is completed. Content without it (e.g. a plain `<span>`) is left as-is.\n"
      },
      {
        "heading": "layout",
        "level": 4,
        "content": "__Horizontal labels below__\n\n`layout=\"horizontal-labels-below\"` bars every step and moves labels below the bullet, instead of a bar for just the current step with labels beside it.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Multi Progress Indicator horizontal-labels-below layout example\n */\n@Component({\n  selector: 'multi-progress-indicator-horizontal-labels-below-example',\n  templateUrl:\n    './multi-progress-indicator-horizontal-labels-below-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    RouterLink,\n  ],\n})\nexport class MultiProgressIndicatorHorizontalLabelsBelowExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator\n  aria-label=\"Order Process Steps\"\n  layout=\"horizontal-labels-below\"\n>\n  <nx-multi-progress-step completed>\n    <a [routerLink]=\"'./'\" nxProgressIndicatorStepAction>Billing Address</a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Shipping Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Gift Wrapping</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n\n__Vertical__\n\n`layout=\"vertical\"` stacks steps top to bottom with a bar between each.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Multi Progress Indicator vertical layout example\n */\n@Component({\n  selector: 'multi-progress-indicator-vertical-example',\n  templateUrl: './multi-progress-indicator-vertical-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    RouterLink,\n  ],\n})\nexport class MultiProgressIndicatorVerticalExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator aria-label=\"Order Process Steps\" layout=\"vertical\">\n  <nx-multi-progress-step completed>\n    <a [routerLink]=\"'./'\" nxProgressIndicatorStepAction>Billing Address</a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Shipping Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Gift Wrapping</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n\n__Vertical no labels__\n\n`layout=\"vertical-no-labels\"` is `\"vertical\"` without a visible label (still read by assistive tech). Keep it decorative, not clickable - with no visible label, there's no visible target to click.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multi Progress Indicator vertical-no-labels layout example\n */\n@Component({\n  selector: 'multi-progress-indicator-vertical-no-labels-example',\n  templateUrl: './multi-progress-indicator-vertical-no-labels-example.html',\n  imports: [NxMultiProgressIndicatorComponent, NxMultiProgressStepComponent],\n})\nexport class MultiProgressIndicatorVerticalNoLabelsExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator\n  aria-label=\"Order Process Steps\"\n  layout=\"vertical-no-labels\"\n>\n  <nx-multi-progress-step completed>\n    <span>Billing Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Shipping Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Gift Wrapping</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n\n__Vertical no bars__\n\n`layout=\"vertical-no-bars\"` is `\"vertical\"` without a connecting bar.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Multi Progress Indicator vertical-no-bars layout example\n */\n@Component({\n  selector: 'multi-progress-indicator-vertical-no-bars-example',\n  templateUrl: './multi-progress-indicator-vertical-no-bars-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    RouterLink,\n  ],\n})\nexport class MultiProgressIndicatorVerticalNoBarsExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator\n  aria-label=\"Order Process Steps\"\n  layout=\"vertical-no-bars\"\n>\n  <nx-multi-progress-step completed>\n    <a [routerLink]=\"'./'\" nxProgressIndicatorStepAction>Billing Address</a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Shipping Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Gift Wrapping</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Payment</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n\nFor a compact horizontal layout, use [`nx-compact-progress-indicator`](#compact-progress-indicator).\n"
      },
      {
        "heading": "step states",
        "level": 4,
        "content": "A step is `completed`, `current`, and/or `critical` - `completed`/`current` are usually derived from `[currentStep]` on the parent (see [Step Actions](#step-actions)) rather than set by hand.\n\n- **Upcoming** (default): disabled color.\n- **Current**: `[current]=\"true\"`, or at `[currentStep]`'s index. Active color.\n- **Completed**: `[completed]=\"true\"`, or before `[currentStep]`. Filled bullet with a checkmark (or number, if `[numbered]`).\n- **Critical**: `[critical]=\"true\"`, independent of the others. Critical color, \"!\" bullet - filled, or outlined while the step is also the current one.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { NxTooltipDirective } from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\n/**\n * @title Multi Progress Indicator step states example\n */\n@Component({\n  selector: 'multi-progress-indicator-step-states-example',\n  templateUrl: './multi-progress-indicator-step-states-example.html',\n  imports: [\n    NxMultiProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxTooltipDirective,\n  ],\n})\nexport class MultiProgressIndicatorStepStatesExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator aria-label=\"Order Process Steps\">\n  <nx-multi-progress-step completed>\n    <span>Billing Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step completed critical>\n    <span tabindex=\"0\" nxTooltip=\"The delivery address could not be verified\"\n      >Shipping Address</span\n    >\n  </nx-multi-progress-step>\n  <nx-multi-progress-step completed>\n    <span>Gift Wrapping</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step completed critical>\n    <span nxTooltip=\"A signed consent form is still missing\" tabindex=\"0\"\n      >Review Order</span\n    >\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Payment Method</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Shipment Details</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n<p class=\"nx-margin-top-s\">\n  Two earlier steps still need your attention: the shipping address on step 2\n  could not be verified, and step 4 is still missing a signed consent form. Both\n  need to be resolved before you can submit the order.\n</p>\n\n```\n\n\nApart from the bullet, `critical` only changes the visually-hidden prefix: a critical step reads \"Not completed: \" even when it's also completed, unless it's the current one. Why it's critical still needs to be communicated to the user with something like `nxTooltip`, especially when the critical step isn't the current one.\n"
      },
      {
        "heading": "localization",
        "level": 4,
        "content": "The visually-hidden \"Completed: \"/\"Current: \"/\"Not completed: \" prefixes announced before a step's label (see [Accessibility](#accessibility) below) default to English. To translate them, subclass `NxMultiProgressIndicatorIntl` and provide it in your (root) module.\n\n\n```ts\nimport {\n  NxMultiProgressIndicatorComponent,\n  NxMultiProgressIndicatorIntl,\n  NxMultiProgressStepComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component, Injectable, signal } from '@angular/core';\n\n@Injectable()\nexport class MyProgressIndicatorIntl extends NxMultiProgressIndicatorIntl {\n  override readonly completedLabel = signal('Abgeschlossen: ');\n  override readonly currentLabel = signal('Aktuell: ');\n  override readonly notCompletedLabel = signal('Nicht abgeschlossen: ');\n}\n\n/**\n * @title Multi Progress Indicator localization example\n */\n@Component({\n  selector: 'multi-progress-indicator-localize-example',\n  templateUrl: './multi-progress-indicator-localize-example.html',\n  providers: [\n    {\n      provide: NxMultiProgressIndicatorIntl,\n      useClass: MyProgressIndicatorIntl,\n    },\n  ],\n  imports: [NxMultiProgressIndicatorComponent, NxMultiProgressStepComponent],\n})\nexport class MultiProgressIndicatorLocalizeExampleComponent {}\n\n```\n```html\n<nx-multi-progress-indicator aria-label=\"Order Process Steps\">\n  <nx-multi-progress-step completed>\n    <span>Billing Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step current>\n    <span>Shipping Address</span>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <span>Review Order</span>\n  </nx-multi-progress-step>\n</nx-multi-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "compact progress indicator",
        "level": 2,
        "content": "`nx-compact-progress-indicator` collapses the whole list to an \"X of Y\" counter plus a button that reveals the steps in an overlay panel. \n\nIt takes the same `nx-multi-progress-step` children and the same `[currentStep]` input as `nx-multi-progress-indicator`, and derives the counter from them. The steps in the panel always render numbered, in the default color scheme and as `\"vertical-no-bars\"`.\n\n\n```ts\nimport {\n  NxCompactProgressIndicatorComponent,\n  NxMultiProgressStepComponent,\n  NxProgressIndicatorStepActionComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Compact Progress Indicator example\n */\n@Component({\n  selector: 'compact-progress-indicator-example',\n  templateUrl: './compact-progress-indicator-example.html',\n  imports: [\n    NxCompactProgressIndicatorComponent,\n    NxMultiProgressStepComponent,\n    NxProgressIndicatorStepActionComponent,\n    RouterLink,\n  ],\n})\nexport class CompactProgressIndicatorExampleComponent {\n  currentStep = 4;\n}\n\n```\n```html\n<!--\n  `routerLink` bound to `null` drops the `href` - see the accessibility notes.\n-->\n<nx-compact-progress-indicator\n  aria-label=\"Order Process Steps\"\n  [currentStep]=\"currentStep\"\n>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"currentStep > 1 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Billing Address\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"currentStep > 2 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Shipping Address\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"currentStep > 3 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Gift Wrapping\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"currentStep > 4 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Review Order\n    </a>\n  </nx-multi-progress-step>\n  <nx-multi-progress-step>\n    <a\n      [routerLink]=\"currentStep > 5 ? './' : null\"\n      nxProgressIndicatorStepAction\n    >\n      Payment\n    </a>\n  </nx-multi-progress-step>\n</nx-compact-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 4,
        "content": "The compact indicator's own strings - `stepCounterLabel` (a `(current, total) => string` builder, so \"X of Y\" can be reordered) and `expandLabel` - live on `NxCompactProgressIndicatorIntl`, which extends that class. Its steps still read their prefixes from the base `NxMultiProgressIndicatorIntl` class, so provide both translations.\n\n\n```ts\nimport {\n  NxCompactProgressIndicatorComponent,\n  NxCompactProgressIndicatorIntl,\n  NxMultiProgressIndicatorIntl,\n  NxMultiProgressStepComponent,\n} from '@allianz/ng-aquila/progress-indicator';\nimport { Component, Injectable, signal } from '@angular/core';\n\n@Injectable()\nexport class MyCompactProgressIndicatorIntl extends NxCompactProgressIndicatorIntl {\n  override readonly stepCounterLabel = signal(\n    (current: number, total: number) => `${current} di ${total}`,\n  );\n  override readonly expandLabel = signal('passaggi');\n  override readonly completedLabel = signal('Completato: ');\n  override readonly currentLabel = signal('Attuale: ');\n  override readonly notCompletedLabel = signal('Non completato: ');\n}\n\n/**\n * @title Compact Progress Indicator localization example\n */\n@Component({\n  selector: 'compact-progress-indicator-localize-example',\n  templateUrl: './compact-progress-indicator-localize-example.html',\n  providers: [\n    {\n      provide: NxCompactProgressIndicatorIntl,\n      useClass: MyCompactProgressIndicatorIntl,\n    },\n    // The steps inject the base class, so point it at the same instance.\n    {\n      provide: NxMultiProgressIndicatorIntl,\n      useExisting: NxCompactProgressIndicatorIntl,\n    },\n  ],\n  imports: [NxCompactProgressIndicatorComponent, NxMultiProgressStepComponent],\n})\nexport class CompactProgressIndicatorLocalizeExampleComponent {\n  currentStep = 2;\n}\n\n```\n```html\n<nx-compact-progress-indicator\n  aria-label=\"Fasi dell'ordine\"\n  [currentStep]=\"currentStep\"\n>\n  <nx-multi-progress-step>Indirizzo di fatturazione</nx-multi-progress-step>\n  <nx-multi-progress-step>Indirizzo di spedizione</nx-multi-progress-step>\n  <nx-multi-progress-step>Riepilogo ordine</nx-multi-progress-step>\n</nx-compact-progress-indicator>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 2,
        "content": "Name the indicator with `aria-label` or `aria-labelledby` (forwarded to the inner `<ol>`). Add `aria-describedby` for more detail.\n\nSteps render as `role=\"listitem\"` and aren't interactive themselves - project an `<a>`/`<button>` to make one clickable, or a `<span>` to keep it inert. The component adds a visually-hidden \"Completed: \"/\"Current: \"/\"Not completed: \" prefix ([translatable](#localization)) and `aria-current=\"step\"` automatically.\n\nA projected `nxProgressIndicatorStepAction` link/button is focusable and clickable only once its step is completed. Prefer `<button>` (native `disabled`) over `<a>` (`aria-disabled` + `tabindex=\"-1\"`, less reliably announced); drop the `<a>`'s `href` too once disabled, to remove its link semantics entirely.\n\nWhen something outside the list drives `[currentStep]` (e.g. \"Previous\"/\"Next\" buttons, as in the [Buttons](#step-actions) example), moving to a new step doesn't move focus - a screen reader user gets no feedback that anything changed. Announce it yourself with `LiveAnnouncer` from `@angular/cdk/a11y`.\n\nThe compact indicator follows the [Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) pattern: its button carries `aria-expanded`, and the panel it reveals is the named `<ol>` of steps and nothing more - no `role=\"dialog\"`, no `role=\"menu\"`. A menu would flatten the steps into `menuitem`s and lose the ordered-list structure and `aria-current=\"step\"` that communicate progress in the first place - and it would have to keep the current and upcoming steps focusable, since a menu's disabled items stay reachable.\n\nThe counter sits next to the button rather than inside it, so `aria-labelledby` pulls it into the button's accessible name: focusing the button reads \"2 of 3 steps\", not just \"steps\".\n\nAs in the [disclosure example](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-faq/), opening the panel leaves focus on the button, which then points at the panel with `aria-controls`. Tab or the down arrow moves from the button into the panel, to the first completed step (the up arrow goes to the last) - the panel is rendered at the end of the page, so the browser would otherwise skip it. Shift+Tab from that step goes back to the button.\n\nInside the panel, the up/down arrows and Home/End move focus between the step actions, wrapping and skipping steps that aren't completed yet - in addition to the tab order, not instead of it. Tab past the last completed step closes the panel and continues with whatever follows the button. Escape closes it too, and returns focus to the button.\n"
      },
      {
        "heading": "legacy",
        "level": 2,
        "content": "The following documents the older, Angular CDK Stepper based implementation (`nx-multi-stepper`, `nx-step` and related directives/components). It is kept for backward compatibility — for new usage prefer the Multi Progress Indicator above where its horizontal-only scope fits your use case.\n\nThese legacy implementations offer three variants: \"Single Indicator\", \"Multi Indicator\" and \"Progress Indicator\". Those indicators can show different details of the overall progress.\n\n<details>\n<summary>Legacy progress indicator components</summary>\n\nEnsure that you import the required modules. This implementation relies on the [Angular CDK stepper](https://material.angular.io/cdk/stepper/overview) implementation so you have to fulfill the peer dependency on the CDK to use it.\n"
      },
      {
        "heading": "single indicator",
        "level": 4,
        "content": "This type of indicator shows a progress bar, a caption for the current step and if available there is a hint shown for the following step.\n\nYou control the indicator through your own buttons decorated with directives `nxStepperPrevious` and `nxStepperNext` to connect them to the current indicator.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxSingleStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Indicator example\n */\n@Component({\n  selector: 'progress-stepper-example',\n  templateUrl: './progress-stepper-example.html',\n  styleUrls: ['./progress-stepper-example.css'],\n  imports: [\n    NxSingleStepperComponent,\n    NxStepComponent,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperExampleComponent {}\n\n```\n```html\n<nx-single-stepper\n  currentStepLabel=\"Step\"\n  [progressbarAriaLabel]=\"'Progress to file your claim'\"\n>\n  <nx-step label=\"Address\">\n    <div class=\"nx-margin-top-s\">\n      <p>This is the first step</p>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </div>\n  </nx-step>\n\n  <nx-step label=\"Order Details\">\n    <div class=\"nx-margin-top-s\">\n      <p>This is the second step</p>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </div>\n  </nx-step>\n\n  <nx-step label=\"Comments\">\n    <div class=\"nx-margin-top-s\">\n      <p>The third an last step</p>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </div>\n  </nx-step>\n</nx-single-stepper>\n\n```\n\n"
      },
      {
        "heading": "custom step labels",
        "level": 4,
        "content": "You can change the step labels in the single indicator prefixed for the current step (left hand) and also the following step (right hand).\n\nNote: The `currentStepLabel` will be used in all indicators for the mobile view.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxSingleStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Indicator custom label example\n */\n@Component({\n  selector: 'progress-stepper-custom-example',\n  templateUrl: './progress-stepper-custom-example.html',\n  styleUrls: ['./progress-stepper-custom-example.css'],\n  imports: [\n    NxSingleStepperComponent,\n    NxStepComponent,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperCustomExampleComponent {\n  testStepsData = ['Lorem', 'Ipsum', 'Dolar'];\n}\n\n```\n```html\n<nx-single-stepper\n  currentStepLabel=\"Left label\"\n  nextLabel=\"Right label\"\n  [progressbarAriaLabel]=\"'Progress towards your new coverage'\"\n>\n  @for (step of testStepsData; track step) {\n    <nx-step [label]=\"step\">\n      <div class=\"nx-margin-y-s\">content for {{ step }}</div>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </nx-step>\n  }\n</nx-single-stepper>\n\n```\n\n"
      },
      {
        "heading": "stepper label",
        "level": 4,
        "content": "The `<nx-label>` will be shown above the single indicator for all steps.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxSingleStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Indicator title example\n */\n@Component({\n  selector: 'progress-stepper-title-example',\n  templateUrl: './progress-stepper-title-example.html',\n  styleUrls: ['./progress-stepper-title-example.css'],\n  imports: [\n    NxSingleStepperComponent,\n    NxLabelComponent,\n    NxStepComponent,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperTitleExampleComponent {\n  testStepsData = ['Lorem', 'Ipsum', 'Dolar'];\n}\n\n```\n```html\n<nx-single-stepper\n  currentStepLabel=\"Step\"\n  [progressbarAriaLabel]=\"'Progress to file your claim'\"\n>\n  <nx-label>My Title</nx-label>\n  @for (step of testStepsData; track step) {\n    <nx-step [label]=\"step\">\n      <div class=\"nx-margin-y-s\">content for {{ step }}</div>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </nx-step>\n  }\n</nx-single-stepper>\n\n```\n\n"
      },
      {
        "heading": "multi indicator",
        "level": 5,
        "content": "That's the Multi Indicator. In difference to the Single Indicator you have the overall progress bar divided by the step names.\n\n**Warning**: If a Multi Indicator step does not have a `[stepControl]` assigned, then a step is per default marked as completed after being passed.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMultiStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Indicator multi example\n */\n@Component({\n  selector: 'progress-stepper-multi-example',\n  templateUrl: './progress-stepper-multi-example.html',\n  styleUrls: ['./progress-stepper-multi-example.css'],\n  imports: [\n    NxMultiStepperComponent,\n    NxStepComponent,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperMultiExampleComponent {\n  testStepsData = ['Lorem', 'Ipsum', 'Dolar'];\n}\n\n```\n```html\n<nx-multi-stepper currentStepLabel=\"Step\">\n  @for (step of testStepsData; track step) {\n    <nx-step [label]=\"step\">\n      <div class=\"nx-margin-top-s\">\n        <p nxCopy>content for {{ step }}</p>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button nxButton=\"primary small\" nxStepperNext type=\"button\">\n          Next\n        </button>\n      </div>\n    </nx-step>\n  }\n</nx-multi-stepper>\n\n```\n\n"
      },
      {
        "heading": "multi indicator - manual step completion",
        "level": 5,
        "content": "Per default, valid steps except for the last step are completed when you set `[linear]=\"true\"`. You can complete the last step manually via its `[complete]` Input, as shown in the example below.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxMultiStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Progress Indicator multi manual step completion example\n */\n@Component({\n  selector: 'progress-stepper-form-example',\n  templateUrl: './progress-stepper-form-example.html',\n  styleUrls: ['./progress-stepper-form-example.css'],\n  imports: [\n    NxMultiStepperComponent,\n    NxStepComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperFormExampleComponent {\n  lastStepCompleted = false;\n\n  readonly manualCompletionForm = this.fb.group({\n    name: ['', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  completeLastStep() {\n    this.lastStepCompleted = true;\n  }\n}\n\n```\n```html\n<nx-multi-stepper [linear]=\"true\" currentStepLabel=\"Step\">\n  <nx-step label=\"Your name\" [stepControl]=\"manualCompletionForm\">\n    <div class=\"nx-margin-top-s\">\n      <form [formGroup]=\"manualCompletionForm\">\n        <nx-formfield label=\"Name\">\n          <input nxInput formControlName=\"name\" required />\n        </nx-formfield>\n        <button\n          type=\"button\"\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs\"\n        >\n          Previous\n        </button>\n        <button type=\"button\" nxButton=\"primary small\" nxStepperNext>\n          Next\n        </button>\n      </form>\n    </div>\n  </nx-step>\n  <nx-step label=\"Done\" [completed]=\"lastStepCompleted\">\n    <div class=\"nx-margin-top-s\">\n      <button\n        nxButton=\"primary small\"\n        (click)=\"completeLastStep()\"\n        type=\"button\"\n      >\n        Complete last step\n      </button>\n    </div>\n  </nx-step>\n</nx-multi-stepper>\n\n```\n\n\nIf you are not using the `[linear]` Input, you could also control the completion of the steps manually.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxMultiStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Indicator non linear step completion example\n */\n@Component({\n  selector: 'progress-stepper-nonlinear-example',\n  templateUrl: './progress-stepper-nonlinear-example.html',\n  styleUrls: ['./progress-stepper-nonlinear-example.css'],\n  imports: [\n    NxMultiStepperComponent,\n    NxStepComponent,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperNonlinearExampleComponent {\n  multiSteps = [\n    {\n      name: 'Lorem',\n      completed: false,\n    },\n    {\n      name: 'Ipsum',\n      completed: false,\n    },\n    {\n      name: 'Dolar',\n      completed: false,\n    },\n  ];\n\n  completeStep(i: number) {\n    this.multiSteps[i].completed = !this.multiSteps[i].completed;\n  }\n}\n\n```\n```html\n<nx-multi-stepper currentStepLabel=\"Step\">\n  @for (step of multiSteps; track step) {\n    <nx-step [label]=\"step.name\" [completed]=\"step.completed\">\n      <div class=\"nx-margin-top-s\">\n        <p>This is the content for step \"{{ step.name }}\"</p>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button\n          nxButton=\"primary small\"\n          nxStepperNext\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Next\n        </button>\n      </div>\n    </nx-step>\n  }\n</nx-multi-stepper>\n<button\n  nxButton=\"primary small\"\n  (click)=\"completeStep(0)\"\n  class=\"nx-margin-right-2xs nx-margin-bottom-xs\"\n  type=\"button\"\n>\n  Complete first step\n</button>\n<button\n  nxButton=\"primary small\"\n  (click)=\"completeStep(1)\"\n  class=\"nx-margin-right-2xs nx-margin-bottom-xs\"\n  type=\"button\"\n>\n  Complete second step\n</button>\n<button\n  nxButton=\"primary small\"\n  (click)=\"completeStep(2)\"\n  type=\"button\"\n  class=\"nx-margin-bottom-xs\"\n>\n  Complete third step\n</button>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: multi indicator vertical",
        "level": 4,
        "content": "Please note that **this is an Expert option**. This means that the vertical direction and group feature is only intended for internal applications and not for applications that are client facing.\n\nThe progress indicator can be switched to a vertical layout, by setting the `direction` input to `vertical`.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxMultiStepperComponent,\n  NxMultiStepperComponent as NxMultiStepperComponent_1,\n  NxMultiStepperDirection,\n  NxProgressStepperDirective,\n  NxStepComponent,\n} from '@allianz/ng-aquila/progress-stepper';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { Component, OnDestroy, ViewChild } from '@angular/core';\nimport {\n  FormBuilder,\n  FormControl,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\ninterface Animal {\n  animalType: string;\n  name?: string;\n  dogBreed?: string;\n  catBreed?: string;\n  age: number;\n}\n\n/**\n * @title Progress Indicator Multi Vertical Example\n */\n@Component({\n  selector: 'progress-stepper-multi-vertical-example',\n  templateUrl: './progress-stepper-multi-vertical-example.html',\n  styleUrls: ['./progress-stepper-multi-vertical-example.css'],\n  host: {\n    '[class.is-vertical]': 'direction === \"vertical\"',\n  },\n  imports: [\n    NxMultiStepperComponent_1,\n    NxStepComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxButtonComponent,\n    NxInputDirective,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class ProgressStepperMultiVerticalExampleComponent implements OnDestroy {\n  @ViewChild(NxProgressStepperDirective, { static: true })\n  stepper!: NxMultiStepperComponent;\n\n  direction: NxMultiStepperDirection = 'vertical';\n\n  value?: Animal;\n\n  readonly animalTypes = ['cat', 'dog'];\n\n  readonly dogBreeds = [\n    'German Shepherd',\n    'Bulldog',\n    'Labrador Retriever',\n    'Beagle',\n    'Golden Retriever',\n  ];\n\n  readonly catBreeds = [\n    'Maine Coon',\n    'Persian Cat',\n    'Siamese Cat',\n    'Ragdoll',\n    'British Shorthair',\n  ];\n\n  readonly animalTypeForm = {\n    label: 'Species',\n    form: this.fb.group({\n      animalType: ['', Validators.required],\n    }),\n  };\n\n  readonly breedForm = {\n    label: 'Breed',\n    form: this.fb.group({}),\n  };\n\n  readonly ageForm = {\n    label: 'Age',\n    form: this.fb.group({\n      age: ['', Validators.required],\n    }),\n  };\n\n  readonly nameForm = {\n    label: 'Name',\n    form: this.fb.group({\n      name: ['', Validators.required],\n    }),\n  };\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(private readonly fb: FormBuilder) {\n    this.animalTypeForm.form\n      .get('animalType')\n      ?.valueChanges.pipe(takeUntil(this._destroyed))\n      .subscribe((value) => {\n        if (value === 'dog') {\n          this.breedForm.form.removeControl('catBreed');\n          this.breedForm.form.addControl(\n            'dogBreed',\n            new FormControl('', Validators.required),\n          );\n        } else if (value === 'cat') {\n          this.breedForm.form.removeControl('dogBreed');\n          this.breedForm.form.addControl(\n            'catBreed',\n            new FormControl('', Validators.required),\n          );\n        }\n\n        this.breedForm.form.reset();\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  onSubmit() {\n    this.value = {\n      animalType: { ...this.animalTypeForm.form.value } as string,\n      age: { ...this.ageForm.form.value } as number,\n      dogBreed: { ...this.breedForm.form.value } as string,\n      catBreed: { ...this.nameForm.form.value } as string,\n    };\n\n    this.stepper.steps.last.interacted = true;\n  }\n\n  reset() {\n    this.stepper.reset();\n    this.value = undefined;\n  }\n}\n\n```\n```html\n<aside>\n  <nx-multi-stepper currentStepLabel=\"Step\" [direction]=\"direction\" linear>\n    <nx-step [label]=\"animalTypeForm.label\" [stepControl]=\"animalTypeForm.form\">\n    </nx-step>\n\n    <nx-step [label]=\"nameForm.label\" [stepControl]=\"nameForm.form\"> </nx-step>\n\n    <nx-step [label]=\"breedForm.label\" [stepControl]=\"breedForm.form\">\n    </nx-step>\n\n    <nx-step [label]=\"ageForm.label\" [stepControl]=\"ageForm.form\"> </nx-step>\n  </nx-multi-stepper>\n</aside>\n\n<main nxLayout=\"grid maxwidth\">\n  <div nxRow>\n    <div nxCol=\"12\">\n      @switch (stepper.selectedIndex) {\n        @case (0) {\n          <form [formGroup]=\"animalTypeForm.form\">\n            <nx-formfield\n              [label]=\"animalTypeForm.label\"\n              floatLabel=\"always\"\n              appearance=\"outline\"\n            >\n              <nx-dropdown formControlName=\"animalType\">\n                @for (animalType of animalTypes; track animalType) {\n                  <nx-dropdown-item [value]=\"animalType\"></nx-dropdown-item>\n                }\n              </nx-dropdown>\n              <nx-error appearance=\"text\" nxFormfieldError>\n                Please choose an animal species!\n              </nx-error>\n            </nx-formfield>\n            <button\n              nxButton=\"primary small\"\n              (click)=\"stepper.next()\"\n              type=\"button\"\n            >\n              Next\n            </button>\n          </form>\n        }\n        @case (1) {\n          <form [formGroup]=\"nameForm.form\">\n            <nx-formfield\n              [label]=\"nameForm.label\"\n              floatLabel=\"always\"\n              appearance=\"outline\"\n            >\n              <input nxInput formControlName=\"name\" type=\"text\" />\n              <nx-error appearance=\"text\" nxFormfieldError>\n                Please enter a name!\n              </nx-error>\n            </nx-formfield>\n            <button\n              nxButton=\"secondary small\"\n              (click)=\"stepper.previous()\"\n              type=\"button\"\n            >\n              Previous\n            </button>\n            <button\n              nxButton=\"primary small\"\n              (click)=\"stepper.next()\"\n              type=\"button\"\n            >\n              Next\n            </button>\n          </form>\n        }\n        @case (2) {\n          <form [formGroup]=\"breedForm.form\">\n            @if (breedForm.form.get('dogBreed')) {\n              <nx-formfield\n                [label]=\"breedForm.label\"\n                floatLabel=\"always\"\n                appearance=\"outline\"\n              >\n                <nx-dropdown formControlName=\"dogBreed\">\n                  @for (breed of dogBreeds; track breed) {\n                    <nx-dropdown-item [value]=\"breed\"></nx-dropdown-item>\n                  }\n                </nx-dropdown>\n                <nx-error appearance=\"text\" nxFormfieldError>\n                  Please select a breed!\n                </nx-error>\n              </nx-formfield>\n            }\n            @if (breedForm.form.get('catBreed')) {\n              <nx-formfield\n                [label]=\"breedForm.label\"\n                floatLabel=\"always\"\n                appearance=\"outline\"\n              >\n                <nx-dropdown formControlName=\"catBreed\">\n                  @for (breed of catBreeds; track breed) {\n                    <nx-dropdown-item [value]=\"breed\"></nx-dropdown-item>\n                  }\n                </nx-dropdown>\n                <nx-error appearance=\"text\" nxFormfieldError>\n                  Please select a breed!\n                </nx-error>\n              </nx-formfield>\n            }\n            <button\n              nxButton=\"secondary small\"\n              (click)=\"stepper.previous()\"\n              type=\"button\"\n            >\n              Previous\n            </button>\n            <button\n              nxButton=\"primary small\"\n              (click)=\"stepper.next()\"\n              type=\"button\"\n            >\n              Next\n            </button>\n          </form>\n        }\n        @case (3) {\n          <form [formGroup]=\"ageForm.form\" (submit)=\"onSubmit()\">\n            <nx-formfield\n              [label]=\"ageForm.label\"\n              floatLabel=\"always\"\n              appearance=\"outline\"\n            >\n              <input nxInput formControlName=\"age\" type=\"number\" />\n              <nx-error appearance=\"text\" nxFormfieldError>\n                Please enter an age!\n              </nx-error>\n            </nx-formfield>\n            <button\n              nxButton=\"secondary small\"\n              (click)=\"stepper.previous()\"\n              type=\"button\"\n            >\n              Previous\n            </button>\n            <button\n              nxButton=\"primary small\"\n              type=\"submit\"\n              [disabled]=\"ageForm.form.invalid\"\n            >\n              Submit\n            </button>\n          </form>\n        }\n      }\n    </div>\n  </div>\n\n  <div nxRow>\n    <div nxCol=\"12\">\n      <code> {{ value | json }} </code>\n    </div>\n  </div>\n\n  <div nxRow class=\"nx-margin-top-l\">\n    <div nxCol=\"12\" class=\"action-container\">\n      <button nxButton=\"secondary small\" (click)=\"reset()\" type=\"button\">\n        Reset\n      </button>\n\n      <nx-radio-toggle [(ngModel)]=\"direction\" variant=\"small\">\n        <nx-radio-toggle-button value=\"vertical\"\n          >Vertical</nx-radio-toggle-button\n        >\n        <nx-radio-toggle-button value=\"horizontal\"\n          >Horizontal</nx-radio-toggle-button\n        >\n      </nx-radio-toggle>\n    </div>\n  </div>\n</main>\n\n```\n\n"
      },
      {
        "heading": "expert: multi indicator groups",
        "level": 4,
        "content": "Steps can be grouped by wrapping them in `nx-stepper-group` tags. Each group needs a label and at least one step inside of it. Groups are currently limited to the vertical multi stepper.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxMultiStepperComponent,\n  NxProgressStepperModule,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { Component, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Progress Indicator Multi Groups Example\n */\n@Component({\n  selector: 'progress-stepper-multi-groups-example',\n  templateUrl: './progress-stepper-multi-groups-example.html',\n  styleUrls: ['./progress-stepper-multi-groups-example.css'],\n  imports: [\n    NxProgressStepperModule,\n    FormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxErrorComponent,\n    NxFormfieldErrorDirective,\n    NxButtonComponent,\n  ],\n})\nexport class ProgressStepperMultiGroupsExampleComponent {\n  @ViewChild('stepper') stepper!: NxMultiStepperComponent;\n\n  groups = [\n    {\n      label: 'Group 1',\n      steps: [{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }],\n    },\n    {\n      label: 'Group 2',\n      steps: [{ label: 'Step 4' }, { label: 'Step 5' }],\n    },\n  ];\n}\n\n```\n```html\n<nx-multi-stepper currentStepLabel=\"Step\" direction=\"vertical\" #stepper linear>\n  @for (group of groups; track group) {\n    <nx-step-group [label]=\"group.label\">\n      @for (step of group.steps; track step) {\n        <nx-step [label]=\"step.label\" [stepControl]=\"form\">\n          <form #form=\"ngForm\">\n            <nx-formfield\n              [label]=\"'Input ' + step.label\"\n              floatLabel=\"always\"\n              appearance=\"outline\"\n            >\n              <input [name]=\"step.label\" nxInput required ngModel type=\"text\" />\n              <nx-error appearance=\"text\" nxFormfieldError>\n                Please fill out the field!\n              </nx-error>\n            </nx-formfield>\n          </form>\n          <button\n            nxButton=\"secondary small\"\n            type=\"button\"\n            class=\"nx-margin-right-2xs\"\n            nxStepperPrevious\n          >\n            Previous\n          </button>\n          <button nxButton=\"primary small\" type=\"button\" nxStepperNext>\n            Next\n          </button>\n        </nx-step>\n      }\n    </nx-step-group>\n  }\n</nx-multi-stepper>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "progress indicator (legacy variant)",
        "level": 4,
        "content": "With this variant the user will see all steps listed horizontally, but there is only one progress bar visible for the current step.\n\nThat progress bar can be controlled to inform the user about the progress of the current step. This update can't be done automatically by the indicator you have to provide the progress value.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxProgressStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Indicator step completion example\n */\n@Component({\n  selector: 'progress-stepper-step-example',\n  templateUrl: './progress-stepper-step-example.html',\n  styleUrls: ['./progress-stepper-step-example.css'],\n  imports: [\n    NxProgressStepperComponent,\n    NxStepComponent,\n    NxSliderComponent,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n  ],\n})\nexport class ProgressStepperStepExampleComponent {\n  testStepsData = ['Lorem', 'Ipsum', 'Dolar'];\n  progress = 0.15;\n}\n\n```\n```html\n<nx-progress-stepper [progress]=\"progress\" currentStepLabel=\"Step\">\n  @for (step of testStepsData; track step) {\n    <nx-step [label]=\"step\">\n      <div class=\"nx-margin-top-s\">\n        <div>\n          <nx-slider\n            [min]=\"0\"\n            [max]=\"1\"\n            [step]=\"0.01\"\n            label=\"Change the progress value\"\n            [(value)]=\"progress\"\n          ></nx-slider>\n        </div>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs nx-margin-top-s\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button\n          nxButton=\"primary small\"\n          nxStepperNext\n          class=\"nx-margin-top-s\"\n          type=\"button\"\n        >\n          Next\n        </button>\n      </div>\n    </nx-step>\n  }\n</nx-progress-stepper>\n\n```\n\n"
      },
      {
        "heading": "reactive forms",
        "level": 4,
        "content": "You can use reactive forms the way you are used to it with normal forms. In addition each `nx-step` can be provided with a `stepControl` attribute which points to the top level `AbstractControl (FormControl, FormGroup or FormArray)` for the step. The `stepControl` is used to check the validity of the step which is mainly used for the \"linear\" option.\n\nThere are two possible approaches. One is using a single form for the indicator, and the other is using a different form for each step\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxSingleStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Progress Indicator reactive form with single form example\n */\n@Component({\n  selector: 'progress-stepper-reactivesingle-example',\n  templateUrl: './progress-stepper-reactivesingle-example.html',\n  styleUrls: ['./progress-stepper-reactivesingle-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxSingleStepperComponent,\n    NxStepComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n    JsonPipe,\n  ],\n})\nexport class ProgressStepperReactivesingleExampleComponent {\n  readonly testForm = this.fb.group({\n    personalDetails: new FormGroup({\n      name: new FormControl('', {\n        validators: Validators.required,\n      }),\n      age: new FormControl('', {\n        validators: Validators.required,\n      }),\n    }),\n    address: new FormGroup({\n      street: new FormControl('', {\n        validators: Validators.required,\n      }),\n      postalCode: new FormControl('', {\n        validators: Validators.required,\n      }),\n    }),\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-single-stepper currentStepLabel=\"Step\">\n    <nx-step\n      label=\"Your name and age\"\n      formGroupName=\"personalDetails\"\n      [stepControl]=\"testForm\"\n    >\n      <div class=\"nx-margin-top-s\">\n        <nx-formfield label=\"Name\">\n          <input nxInput required formControlName=\"name\" />\n        </nx-formfield>\n        <nx-formfield label=\"Age\">\n          <input nxInput required formControlName=\"age\" />\n        </nx-formfield>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button\n          nxButton=\"primary small\"\n          nxStepperNext\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Next\n        </button>\n      </div>\n    </nx-step>\n    <nx-step\n      label=\"Your Address\"\n      formGroupName=\"address\"\n      [stepControl]=\"testForm\"\n    >\n      <div class=\"nx-margin-top-s\">\n        <nx-formfield label=\"Street\">\n          <input nxInput required formControlName=\"street\" />\n        </nx-formfield>\n        <nx-formfield label=\"PostalCode\">\n          <input nxInput required formControlName=\"postalCode\" />\n        </nx-formfield>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button\n          nxButton=\"primary small\"\n          nxStepperNext\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Next\n        </button>\n      </div>\n    </nx-step>\n  </nx-single-stepper>\n</form>\n{{ testForm.value | json }}\n\n```\n\n"
      },
      {
        "heading": "reactive form example with separate form per step",
        "level": 4,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxMultiStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Progress Indicator reactive form with separate form per step\n */\n@Component({\n  selector: 'progress-stepper-reactivemulti-example',\n  templateUrl: './progress-stepper-reactivemulti-example.html',\n  styleUrls: ['./progress-stepper-reactivemulti-example.css'],\n  imports: [\n    NxMultiStepperComponent,\n    NxStepComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n    JsonPipe,\n  ],\n})\nexport class ProgressStepperReactivemultiExampleComponent {\n  readonly stepOneForm = this.fb.group({ name: '' });\n  readonly stepTwoForm = this.fb.group({ age: '' });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<nx-multi-stepper [linear]=\"true\" currentStepLabel=\"Step\">\n  <nx-step label=\"Your name\" [stepControl]=\"stepOneForm\">\n    <div class=\"nx-margin-top-s\">\n      <form [formGroup]=\"stepOneForm\">\n        <nx-formfield label=\"Name\">\n          <input nxInput formControlName=\"name\" />\n        </nx-formfield>\n      </form>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </div>\n  </nx-step>\n  <nx-step label=\"Your age\" [stepControl]=\"stepTwoForm\">\n    <div class=\"nx-margin-top-s\">\n      <form [formGroup]=\"stepTwoForm\">\n        <nx-formfield label=\"Age\">\n          <input nxInput formControlName=\"age\" />\n        </nx-formfield>\n      </form>\n      <button\n        nxButton=\"secondary small\"\n        nxStepperPrevious\n        class=\"nx-margin-right-2xs\"\n        type=\"button\"\n      >\n        Previous\n      </button>\n      <button nxButton=\"primary small\" nxStepperNext type=\"button\">Next</button>\n    </div>\n  </nx-step>\n</nx-multi-stepper>\n<p>stepOneForm: {{ stepOneForm.value | json }}</p>\n<p>stepTwoForm: {{ stepTwoForm.value | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "linear progress",
        "level": 4,
        "content": "You can force the user to complete a form before continuing. To make a indicator aware of it you have to enable linear progress with the property `linear` on any indicator and you have to assign the involved form group to the step through the `[stepControl]` Input.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxProgressStepperComponent,\n  NxStepComponent,\n  NxStepperNextDirective,\n  NxStepperPreviousDirective,\n} from '@allianz/ng-aquila/progress-stepper';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Progress Indicator linear progress example\n */\n@Component({\n  selector: 'progress-stepper-progress-example',\n  templateUrl: './progress-stepper-progress-example.html',\n  styleUrls: ['./progress-stepper-progress-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxProgressStepperComponent,\n    NxStepComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxButtonComponent,\n    NxStepperPreviousDirective,\n    NxStepperNextDirective,\n    JsonPipe,\n  ],\n})\nexport class ProgressStepperProgressExampleComponent {\n  readonly formLinear = this.fb.group({\n    personalDetails: new FormGroup({\n      name: new FormControl('', {\n        validators: Validators.required,\n      }),\n      age: new FormControl('', {\n        validators: Validators.required,\n      }),\n    }),\n    address: new FormGroup({\n      street: new FormControl('', {\n        validators: Validators.required,\n      }),\n      postalCode: new FormControl('', {\n        validators: Validators.required,\n      }),\n    }),\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"formLinear\">\n  <nx-progress-stepper [linear]=\"true\" currentStepLabel=\"Step\">\n    <nx-step\n      label=\"Your Details\"\n      formGroupName=\"personalDetails\"\n      [stepControl]=\"formLinear.controls.personalDetails\"\n    >\n      <div class=\"nx-margin-top-s\">\n        <nx-formfield label=\"Name\">\n          <input nxInput required formControlName=\"name\" />\n        </nx-formfield>\n        <nx-formfield label=\"Age\">\n          <input nxInput required formControlName=\"age\" />\n        </nx-formfield>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button\n          nxButton=\"primary small\"\n          nxStepperNext\n          class=\"nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Next\n        </button>\n      </div>\n    </nx-step>\n    <nx-step\n      label=\"Your Address\"\n      formGroupName=\"address\"\n      [stepControl]=\"formLinear.controls.address\"\n    >\n      <div class=\"nx-margin-top-s\">\n        <nx-formfield label=\"Street\">\n          <input nxInput required formControlName=\"street\" />\n        </nx-formfield>\n        <nx-formfield label=\"Postal Code\">\n          <input nxInput required formControlName=\"postalCode\" />\n        </nx-formfield>\n        <button\n          nxButton=\"secondary small\"\n          nxStepperPrevious\n          class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n          type=\"button\"\n        >\n          Previous\n        </button>\n        <button nxButton=\"primary small\" nxStepperNext type=\"button\">\n          Next\n        </button>\n      </div>\n    </nx-step>\n  </nx-progress-stepper>\n</form>\n{{ formLinear.value | json }}\n\n```\n\n"
      },
      {
        "heading": "accessibility (legacy)",
        "level": 4,
        "content": "In case of the Single Indicator also make sure to set the appropriate `progressbarAriaLabel` or `progressbarAriaLabeledBy` for your use case.\nThis will set the associated aria attributes on the nested <a href=\"./documentation/progressbar/overview\">NxProgressbarComponent</a>\n\nThe Multi Indicator and the Progress Indicator announce each step's state before its label: \"Completed: \", \"Current: \" or \"Not completed: \". To translate these prefixes, subclass `NxProgressStepperIntl` and provide it in your (root) module.\n\n</details>\n"
      }
    ]
  },
  {
    "name": "progressbar.md",
    "title": "Progress Bar",
    "category": "components",
    "alias": [
      "progress",
      "loading bar"
    ],
    "sections": [
      {
        "heading": "examples",
        "level": 3,
        "content": "\n```ts\nimport { NxProgressbarComponent } from '@allianz/ng-aquila/progressbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Bar Example\n */\n@Component({\n  selector: 'progressbar-example',\n  templateUrl: './progressbar-example.html',\n  styleUrls: ['./progressbar-example.css'],\n  imports: [NxProgressbarComponent],\n})\nexport class ProgressbarExampleComponent {}\n\n```\n```html\n<nx-progressbar value=\"0.3\"></nx-progressbar>\n\n```\n\n\nBind a variable to `value` input to set the progress bar value.\n\n\n```ts\nimport { NxProgressbarComponent } from '@allianz/ng-aquila/progressbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Bar Basic Example\n */\n@Component({\n  selector: 'progressbar-basic-example',\n  templateUrl: './progressbar-basic-example.html',\n  styleUrls: ['./progressbar-basic-example.css'],\n  imports: [NxProgressbarComponent],\n})\nexport class ProgressbarBasicExampleComponent {\n  myProgress = 0.3;\n}\n\n```\n```html\n<nx-progressbar [value]=\"myProgress\"></nx-progressbar>\n\n```\n\n\nUse custom ranges with `min` and `max`. When using those, `value` has to be `min <= value <= max` to have a meaningful progress bar.\n\n\n```ts\nimport { NxProgressbarComponent } from '@allianz/ng-aquila/progressbar';\nimport { Component, OnInit } from '@angular/core';\n\n/**\n * @title Progress Bar Example\n */\n@Component({\n  selector: 'progressbar-custom-range-example',\n  templateUrl: './progressbar-custom-range-example.html',\n  styleUrls: ['./progressbar-custom-range-example.css'],\n  imports: [NxProgressbarComponent],\n})\nexport class ProgressbarCustomRangeExampleComponent implements OnInit {\n  value = 15;\n  min = 5;\n  max = 80;\n\n  ngOnInit(): void {\n    (async () => {\n      while (this.value !== 80) {\n        await new Promise((resolve) => setTimeout(resolve, 2000));\n\n        this.value = (this.value + 10) % this.max;\n      }\n    })();\n  }\n\n  getCompletedPercentage() {\n    return Math.round(((this.value - this.min) / (this.max - this.min)) * 100);\n  }\n}\n\n```\n```html\n<nx-progressbar\n  ariaLabel=\"Some aria label\"\n  aria-valuetext=\"Some value description\"\n  [value]=\"value\"\n  [min]=\"min\"\n  [max]=\"max\"\n></nx-progressbar>\nvalue: {{ value }} | completed: {{ getCompletedPercentage() }}%\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "color scheme",
        "level": 3,
        "content": "Use `colorScheme` input to set positive color.\n\n\n```ts\nimport { NxProgressbarComponent } from '@allianz/ng-aquila/progressbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Bar Positive Example\n */\n@Component({\n  selector: 'progressbar-positive-example',\n  templateUrl: './progressbar-positive-example.html',\n  styleUrls: ['./progressbar-positive-example.css'],\n  imports: [NxProgressbarComponent],\n})\nexport class ProgressbarPositiveExampleComponent {}\n\n```\n```html\n<nx-progressbar value=\"0.3\" colorScheme=\"positive\"></nx-progressbar>\n\n```\n\n"
      },
      {
        "heading": "transparent",
        "level": 3,
        "content": "Set transparent background using `transparentBackground` input.\n\n\n```ts\nimport { NxProgressbarComponent } from '@allianz/ng-aquila/progressbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Progress Bar Transparent Example\n */\n@Component({\n  selector: 'progressbar-transparent-example',\n  templateUrl: './progressbar-transparent-example.html',\n  styleUrls: ['./progressbar-transparent-example.css'],\n  imports: [NxProgressbarComponent],\n})\nexport class ProgressbarTransparentExampleComponent {}\n\n```\n```html\n<nx-progressbar\n  class=\"nx-margin-bottom-xs\"\n  value=\"0.3\"\n  transparentBackground=\"true\"\n></nx-progressbar>\n\n<nx-progressbar\n  value=\"0.3\"\n  colorScheme=\"positive\"\n  transparentBackground=\"true\"\n></nx-progressbar>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "For more verbose value texts you can use `aria-valuetext`.\n\nIf the progress changes dynamically and a `aria-label` with additional `aria-description` is set, some browser <-> screen reader combinations will not announce the full information.\nTry to keep your descriptions and labels short to avoid that or try to make use of `aria-valuetext`. `aria-valuetext` was more reliable in our testing for those cases.\n"
      }
    ]
  },
  {
    "name": "radio-button.md",
    "title": "Radio Button",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "radio group",
        "level": 3,
        "content": "Just like standard `<input type=\"radio\">` elements, these radio button components can be grouped. For this purpose you can use the `nx-radio-group` component. Just make sure to set the name property on the group, which will then take care of assigning the same name to each radio button within the group.\n"
      },
      {
        "heading": "basic usage",
        "level": 4,
        "content": "The radio group is a set of radio buttons grouped together under an optional group label.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Group Examples\n */\n@Component({\n  selector: 'radio-button-group-example',\n  templateUrl: './radio-button-group-example.html',\n  styleUrls: ['./radio-button-group-example.css'],\n  imports: [NxRadioGroupComponent, NxLabelComponent, NxRadioComponent],\n})\nexport class RadioButtonGroupExampleComponent {}\n\n```\n```html\n<nx-radio-group name=\"myGroup\">\n  <nx-label class=\"nx-margin-bottom-m\">This is a nx-radio-group</nx-label>\n  <nx-radio value=\"1\" class=\"nx-margin-bottom-m\">Select 1</nx-radio>\n  <nx-radio value=\"2\">Select 2</nx-radio>\n</nx-radio-group>\n\n```\n\n"
      },
      {
        "heading": "template-driven with ngmodel",
        "level": 4,
        "content": "In case `nx-radio-group` is used, the value of the selected option is managed by the group. Consequently, `ngModel` is supposed to be used on the group rather than the contained `nx-radio` components.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template Driven Examples\n */\n@Component({\n  selector: 'radio-button-form-example',\n  templateUrl: './radio-button-form-example.html',\n  styleUrls: ['./radio-button-form-example.css'],\n  imports: [\n    FormsModule,\n    NxRadioGroupComponent,\n    NxLabelComponent,\n    NxRadioComponent,\n  ],\n})\nexport class RadioButtonFormExampleComponent {\n  templateModel = 'apples';\n}\n\n```\n```html\n<form>\n  <nx-radio-group [(ngModel)]=\"templateModel\" name=\"templateTest\">\n    <nx-label class=\"nx-margin-bottom-m\">What do you prefer?</nx-label>\n    <nx-radio value=\"apples\" class=\"nx-margin-bottom-m\">I like Apples</nx-radio>\n    <nx-radio value=\"oranges\">I like Oranges</nx-radio>\n  </nx-radio-group>\n  <p>Current Value: {{ templateModel }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 4,
        "content": "\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive Example\n */\n@Component({\n  selector: 'radio-button-reactive-example',\n  templateUrl: './radio-button-reactive-example.html',\n  styleUrls: ['./radio-button-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxRadioGroupComponent,\n    NxLabelComponent,\n    NxRadioComponent,\n    JsonPipe,\n  ],\n})\nexport class RadioButtonReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    radioTestReactive: ['oranges', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-radio-group name=\"reactiveTest\" formControlName=\"radioTestReactive\">\n    <nx-label class=\"nx-margin-bottom-m\">What do you prefer?</nx-label>\n    <nx-radio value=\"apples\" class=\"nx-margin-bottom-m\">I like Apples</nx-radio>\n    <nx-radio value=\"oranges\">I like Oranges</nx-radio>\n  </nx-radio-group>\n  <p>Form value: {{ testForm.value | json }}</p>\n  <p>Form status: {{ testForm.status | json }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "layouting",
        "level": 3,
        "content": "You are free to choose how you want to layout the radio buttons inside the group. You can for example use the grid component, your own css grid or css flexbox around it.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/** @title Radio Button Group Horizontal Example */\n@Component({\n  selector: 'radio-button-group-horizontal-example',\n  templateUrl: './radio-button-group-horizontal-example.html',\n  styleUrls: ['./radio-button-group-horizontal-example.css'],\n  imports: [\n    NxRadioGroupComponent,\n    NxLabelComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxRadioComponent,\n  ],\n})\nexport class RadioButtonGroupHorizontalExampleComponent {\n  data = [\n    'Espresso',\n    'Americano',\n    'Caramel Macchiato',\n    'Latte',\n    'Nitro Cold Brew',\n    'Iced Hazelnut Coffee',\n    'Mocha',\n  ];\n}\n\n```\n```html\n<nx-radio-group>\n  <nx-label>With nx grid component</nx-label>\n  <div nxLayout=\"nopadding\">\n    <div nxRow>\n      @for (item of data; track item) {\n        <div nxCol=\"12,12,6,4\" class=\"nx-margin-bottom-s\">\n          <nx-radio [value]=\"item\">{{ item }}</nx-radio>\n        </div>\n      }\n    </div>\n  </div>\n</nx-radio-group>\n<br />\n<nx-radio-group>\n  <nx-label>With CSS Grid</nx-label>\n  <div class=\"grid-wrapper\">\n    @for (item of data; track item) {\n      <nx-radio [value]=\"item\">{{ item }}</nx-radio>\n    }\n  </div>\n</nx-radio-group>\n<br />\n<br />\n<nx-radio-group>\n  <nx-label>With CSS Flexbox</nx-label>\n  <div class=\"flex-wrapper\">\n    @for (item of data; track item) {\n      <nx-radio [value]=\"item\" class=\"nx-margin-right-m nx-margin-bottom-s\">{{\n        item\n      }}</nx-radio>\n    }\n  </div>\n</nx-radio-group>\n\n```\n"
      },
      {
        "heading": "label sizes",
        "level": 3,
        "content": "\n```ts\nimport { NxRadioComponent } from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Label Sizes Example\n */\n@Component({\n  selector: 'radio-button-sizes-example',\n  templateUrl: './radio-button-sizes-example.html',\n  styleUrls: ['./radio-button-sizes-example.css'],\n  imports: [NxRadioComponent],\n})\nexport class RadioButtonSizesExampleComponent {}\n\n```\n```html\n<nx-radio name=\"size\" labelSize=\"small\" class=\"nx-margin-bottom-m\"\n  >Radio with a small label</nx-radio\n>\n<nx-radio name=\"size\">Radio with a big label (default)</nx-radio>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "You can apply the negative styling to the radio buttons by using the `negative` input on either the radio group or a single radio button.\n\nIf used both on a radio button and its containing radio group, the radio group setting overrides the single radio button.\n\n\n```ts\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative Styling Example\n */\n@Component({\n  selector: 'radio-button-negative-example',\n  templateUrl: './radio-button-negative-example.html',\n  styleUrls: ['./radio-button-negative-example.css'],\n  imports: [NxRadioGroupComponent, NxRadioComponent],\n})\nexport class RadioButtonNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-radio-group name=\"negativeGroup\" negative=\"true\">\n    <nx-radio value=\"1\" class=\"nx-margin-bottom-m\">Radio 1</nx-radio>\n    <nx-radio value=\"2\">Radio 2</nx-radio>\n  </nx-radio-group>\n  <br />\n  <nx-radio name=\"weight\" negative=\"true\">Single negative radio</nx-radio>\n</div>\n\n```\n\n"
      },
      {
        "heading": "radio group disabled",
        "level": 3,
        "content": "The disabled-state for radio components contained in a group can be managed by the group.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Disabled Example\n */\n@Component({\n  selector: 'radio-button-disabled-example',\n  templateUrl: './radio-button-disabled-example.html',\n  styleUrls: ['./radio-button-disabled-example.css'],\n  imports: [NxRadioGroupComponent, NxLabelComponent, NxRadioComponent],\n})\nexport class RadioButtonDisabledExampleComponent {}\n\n```\n```html\n<nx-radio-group name=\"disabledTest\" disabled=\"true\">\n  <nx-label class=\"nx-margin-bottom-m\">What do you prefer?</nx-label>\n  <nx-radio value=\"apples\" class=\"nx-margin-bottom-m\">I like Apples</nx-radio>\n  <nx-radio value=\"oranges\">I like Oranges</nx-radio>\n</nx-radio-group>\n\n```\n\n"
      },
      {
        "heading": "radio button event",
        "level": 3,
        "content": "\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Event Example\n */\n@Component({\n  selector: 'radio-button-event-example',\n  templateUrl: './radio-button-event-example.html',\n  styleUrls: ['./radio-button-event-example.css'],\n  imports: [NxRadioGroupComponent, NxLabelComponent, NxRadioComponent],\n})\nexport class RadioButtonEventExampleComponent {\n  logMessage!: string;\n  messages: string[] = [];\n  log(value: string) {\n    this.messages.push(value);\n    this.logMessage = this.messages.join('\\n');\n  }\n}\n\n```\n```html\n<nx-radio-group\n  name=\"singleRadioOutputTest\"\n  (groupValueChange)=\"log('groupValueChange occurred: ' + $event.value)\"\n>\n  <nx-label class=\"nx-margin-bottom-m\">This is a nx-radio-group label</nx-label>\n  <nx-radio\n    value=\"option1\"\n    class=\"nx-margin-bottom-m\"\n    (valueChange)=\"log('nxValueChange occurred: ' + $event.value)\"\n  >\n    Option 1\n  </nx-radio>\n  <nx-radio\n    value=\"option2\"\n    (valueChange)=\"log('nxValueChange occurred: ' + $event.value)\"\n  >\n    Option 2\n  </nx-radio>\n</nx-radio-group>\n<br />\n@if (logMessage) {\n  <pre>{{ logMessage }}</pre>\n}\n\n```\n\n\n"
      },
      {
        "heading": "radio error message retail",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxRadioModule } from '@allianz/ng-aquila/radio-button';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Radio error message retail\n */\n@Component({\n  selector: 'radio-button-error-retail-example',\n  templateUrl: './radio-button-error-retail-example.html',\n  styleUrl: './radio-button-error-retail-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    ReactiveFormsModule,\n    NxRadioModule,\n    NxLabelComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class RadioButtonErrorRetailExampleComponent {\n  readonly testForm = this.fb.group({\n    radioTestReactive: [null, Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-radio-group\n    name=\"reactiveTest\"\n    formControlName=\"radioTestReactive\"\n    [required]=\"true\"\n  >\n    <nx-label [size]=\"'small'\" class=\"nx-margin-bottom-s\"\n      >What do you prefer?</nx-label\n    >\n    <nx-error class=\"nx-margin-top-s\"> Please make a choice. </nx-error>\n    <nx-radio\n      value=\"coffee\"\n      [labelSize]=\"'small'\"\n      class=\"radio-item nx-margin-bottom-s\"\n      >Coffee</nx-radio\n    >\n    <nx-radio\n      value=\"tea\"\n      [labelSize]=\"'small'\"\n      class=\"radio-item nx-margin-bottom-s\"\n      >Tea</nx-radio\n    >\n    <nx-radio value=\"water\" [labelSize]=\"'small'\" class=\"radio-item\"\n      >Water</nx-radio\n    >\n  </nx-radio-group>\n  <br />\n  <button type=\"submit\" nxButton=\"primary small\">Submit</button>\n</form>\n\n```\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: radio button group label",
        "level": 3,
        "content": "With `size` you can change the styling of the radio button group's label. The label of the radio button group is by default for B2C. The appearance of the label can be changed setting the `size` property to `small`, which is the formatting for Expert.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\n\n/**\n * @title Radio button group label size Example\n */\n@Component({\n  selector: 'radio-button-group-label-size-example',\n  templateUrl: './radio-button-group-label-size-example.html',\n  styleUrls: ['./radio-button-group-label-size-example.css'],\n  imports: [NxRadioGroupComponent, NxLabelComponent, NxRadioComponent],\n})\nexport class RadioButtonGroupLabelSizeExampleComponent {}\n\n```\n```html\n<nx-radio-group name=\"labelSize\">\n  <nx-label [size]=\"'small'\"\n    >This is an expert label for the radio button group</nx-label\n  >\n  <nx-radio value=\"choice1\" [labelSize]=\"'small'\" class=\"nx-margin-bottom-s\"\n    >Choice 1</nx-radio\n  >\n  <nx-radio value=\"choice2\" [labelSize]=\"'small'\">Choice 2</nx-radio>\n</nx-radio-group>\n\n```\n\n"
      },
      {
        "heading": "expert: validation and error message",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Radio button group validation Example\n */\n@Component({\n  selector: 'radio-button-group-validation-example',\n  templateUrl: './radio-button-group-validation-example.html',\n  styleUrls: ['./radio-button-group-validation-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxRadioGroupComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n    NxRadioComponent,\n    NxButtonComponent,\n  ],\n})\nexport class RadioButtonGroupValidationExampleComponent {\n  readonly testForm = this.fb.group({\n    radioTestReactive: [null, Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-radio-group\n    name=\"reactiveTest\"\n    formControlName=\"radioTestReactive\"\n    [required]=\"true\"\n  >\n    <nx-label [size]=\"'small'\" class=\"nx-margin-bottom-s\"\n      >What do you prefer?</nx-label\n    >\n    <nx-error appearance=\"text\" class=\"nx-margin-top-s\">\n      Please make a choice.\n    </nx-error>\n    <nx-radio\n      value=\"coffee\"\n      [labelSize]=\"'small'\"\n      class=\"radio-item nx-margin-bottom-s\"\n      >Coffee</nx-radio\n    >\n    <nx-radio\n      value=\"tea\"\n      [labelSize]=\"'small'\"\n      class=\"radio-item nx-margin-bottom-s\"\n      >Tea</nx-radio\n    >\n    <nx-radio value=\"water\" [labelSize]=\"'small'\" class=\"radio-item\"\n      >Water</nx-radio\n    >\n  </nx-radio-group>\n  <br />\n  <button type=\"submit\" nxButton=\"primary small\">Submit</button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "expert: readonly",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n<strong>Expert only: </strong>\n  Please note that the readonly option is only for expert/internal applications because of accessibility restrictions. There is currently no solution for readonly states that is accepted for retail applications.\n</div>\n\n \n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxRadioComponent,\n  NxRadioGroupComponent,\n} from '@allianz/ng-aquila/radio-button';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Radio button readonly example\n */\n@Component({\n  selector: 'radio-button-readonly-example',\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxRadioGroupComponent,\n    NxLabelComponent,\n    NxRadioComponent,\n  ],\n  templateUrl: './radio-button-readonly-example.html',\n  styleUrl: './radio-button-readonly-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RadioButtonReadonlyExampleComponent {\n  readonly testForm = this.fb.group({\n    radioTestReactive: ['oranges', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-radio-group\n    [readonly]=\"true\"\n    name=\"reactiveTest\"\n    formControlName=\"radioTestReactive\"\n  >\n    <nx-label class=\"nx-margin-bottom-m\">What do you prefer?</nx-label>\n    <nx-radio value=\"apples\" class=\"nx-margin-bottom-m\">I like Apples</nx-radio>\n    <nx-radio value=\"oranges\">I like Oranges</nx-radio>\n  </nx-radio-group>\n</form>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If your radio button doesn't have any accompanying label text,\nit's recommended to use `ariaLabel` or `ariaLabelledBy`\ninputs to provide helpful information for users relying on screen readers or other assistive technologies.\"\n"
      }
    ]
  },
  {
    "name": "radio-toggle.md",
    "title": "Segmented Toggle Button",
    "category": "components",
    "alias": [
      "radio toggle",
      "segmented control",
      "button group",
      "toggle group",
      "Toggle Button"
    ],
    "sections": [
      {
        "heading": "basic",
        "level": 3,
        "content": "\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { Component, OnInit } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Toggle Button Example\n */\n@Component({\n  selector: 'radio-toggle-example',\n  templateUrl: './radio-toggle-example.html',\n  styleUrls: ['./radio-toggle-example.css'],\n  imports: [\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    ReactiveFormsModule,\n  ],\n})\nexport class RadioToggleExampleComponent implements OnInit {\n  readonly criticalForm = this.fb.group({\n    critical: ['B', () => ({ invalid: true })],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  ngOnInit(): void {\n    this.criticalForm.markAllAsTouched();\n  }\n}\n\n```\n```html\n<h3>Normal</h3>\n\n<nx-radio-toggle>\n  <nx-radio-toggle-button value=\"A\" [selected]=\"true\"\n    >Label A</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"B\">Label B</nx-radio-toggle-button>\n</nx-radio-toggle>\n\n<br />\n\n<h3>Small</h3>\n<nx-radio-toggle [size]=\"'s'\">\n  <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n    >Label B</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n</nx-radio-toggle>\n\n<br />\n\n<h3>Disabled</h3>\n<nx-radio-toggle disabled>\n  <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" [selected]=\"true\" disabled\n    >Label B</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n</nx-radio-toggle>\n\n<br />\n\n<nx-radio-toggle>\n  <nx-radio-toggle-button value=\"A\" disabled>Label A</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n    >Label B</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n</nx-radio-toggle>\n<br />\n\n<h3>Critical</h3>\n<form [formGroup]=\"criticalForm\">\n  <nx-radio-toggle formControlName=\"critical\">\n    <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"B\">Label B</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n  </nx-radio-toggle>\n</form>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  <strong><code>variant=\"negative\"</code></strong> is deprecated. Use the <code>inverse</code> input instead.\n</div>\n\nFor dark backgrounds, use the `inverse` input to apply inverse styling.\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { Component, OnInit } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Negative Styling Example\n */\n@Component({\n  selector: 'radio-toggle-negative-example',\n  templateUrl: './radio-toggle-negative-example.html',\n  styleUrls: ['./radio-toggle-negative-example.css'],\n  imports: [\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    ReactiveFormsModule,\n  ],\n})\nexport class RadioToggleNegativeExampleComponent implements OnInit {\n  readonly criticalForm = this.fb.group({\n    critical: ['B', () => ({ invalid: true })],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  ngOnInit(): void {\n    this.criticalForm.markAllAsTouched();\n  }\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h3>Normal</h3>\n\n  <nx-radio-toggle inverse>\n    <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n      >Label B</nx-radio-toggle-button\n    >\n    <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n  </nx-radio-toggle>\n\n  <br />\n\n  <h3>Small</h3>\n  <nx-radio-toggle [size]=\"'s'\" inverse>\n    <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n      >Label B</nx-radio-toggle-button\n    >\n    <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n  </nx-radio-toggle>\n\n  <br />\n\n  <h3>Disabled</h3>\n  <nx-radio-toggle inverse disabled>\n    <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n      >Label B</nx-radio-toggle-button\n    >\n    <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n  </nx-radio-toggle>\n\n  <br />\n\n  <nx-radio-toggle inverse>\n    <nx-radio-toggle-button value=\"A\" disabled>Label A</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n      >Label B</nx-radio-toggle-button\n    >\n    <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n  </nx-radio-toggle>\n  <br />\n\n  <h3>Critical</h3>\n  <form [formGroup]=\"criticalForm\">\n    <nx-radio-toggle inverse formControlName=\"critical\">\n      <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n      <nx-radio-toggle-button value=\"B\">Label B</nx-radio-toggle-button>\n      <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n    </nx-radio-toggle>\n  </form>\n</div>\n\n```\n\n"
      },
      {
        "heading": "custom",
        "level": 3,
        "content": "Important: If you use only icons or anything else that is not descriptive enough for screen readers, make sure to set a\ndescriptive `ariaLabel`.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Custom Example\n */\n@Component({\n  selector: 'radio-toggle-custom-example',\n  templateUrl: './radio-toggle-custom-example.html',\n  styleUrls: ['./radio-toggle-custom-example.css'],\n  imports: [\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxIconComponent,\n  ],\n})\nexport class RadioToggleCustomExampleComponent {}\n\n```\n```html\n<nx-radio-toggle>\n  <nx-radio-toggle-button value=\"A\" ariaLabel=\"Favorites\">\n    <nx-icon name=\"product-heart\" aria-hidden=\"true\"></nx-icon>\n  </nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" ariaLabel=\"Warnings\">\n    <nx-icon name=\"exclamation-triangle\" aria-hidden=\"true\"></nx-icon>\n  </nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" ariaLabel=\"Facebook\">\n    <nx-icon name=\"facebook\" aria-hidden=\"true\"></nx-icon>\n  </nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" ariaLabel=\"Settings\">\n    <nx-icon name=\"setting\" aria-hidden=\"true\"></nx-icon>\n  </nx-radio-toggle-button>\n</nx-radio-toggle>\n\n```\n\n"
      },
      {
        "heading": "template-driven form with ngmodel",
        "level": 3,
        "content": "\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Template Driven Form Example\n */\n@Component({\n  selector: 'radio-toggle-form-example',\n  templateUrl: './radio-toggle-form-example.html',\n  styleUrls: ['./radio-toggle-form-example.css'],\n  imports: [FormsModule, NxRadioToggleComponent, NxRadioToggleButtonComponent],\n})\nexport class RadioToggleFormExampleComponent {\n  testSelect = 'B';\n}\n\n```\n```html\n<form novalidate>\n  <nx-radio-toggle name=\"testSelect\" [(ngModel)]=\"testSelect\">\n    <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"B\">Label B</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"D\">Label D</nx-radio-toggle-button>\n  </nx-radio-toggle>\n  <p>Current Value: {{ testSelect }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 3,
        "content": "When using reactive forms you have to disable the control with the form control and not the `disabled` property!\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Reactive Form Example\n */\n@Component({\n  selector: 'radio-toggle-reactive-example',\n  templateUrl: './radio-toggle-reactive-example.html',\n  styleUrls: ['./radio-toggle-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class RadioToggleReactiveExampleComponent {\n  readonly data = ['A', 'B', 'C'];\n\n  readonly testForm = this.fb.group({\n    testToggle: ['B', Validators.required],\n  });\n\n  readonly disabledToggleForm = this.fb.group({\n    disabledToggle: [{ value: 'B', disabled: true }],\n  });\n\n  isToggleDisabled = false;\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  toggleDisabled() {\n    this.isToggleDisabled = !this.isToggleDisabled;\n    if (this.isToggleDisabled) {\n      this.testForm.get('testToggle')?.disable();\n    } else {\n      this.testForm.get('testToggle')?.enable();\n    }\n  }\n}\n\n```\n```html\n<form novalidate [formGroup]=\"testForm\">\n  <nx-radio-toggle formControlName=\"testToggle\">\n    @for (item of data; track item) {\n      <nx-radio-toggle-button [value]=\"item\"\n        >{{ item }}\n      </nx-radio-toggle-button>\n    }\n  </nx-radio-toggle>\n\n  <p>Form value: {{ testForm.value | json }}</p>\n  <p>Form status: {{ testForm.status | json }}</p>\n</form>\n\n<button nxButton=\"primary small\" type=\"button\" (click)=\"toggleDisabled()\">\n  {{ isToggleDisabled ? 'Enable' : 'Disable' }} Toggle\n</button>\n\n```\n\n"
      },
      {
        "heading": "validation",
        "level": 3,
        "content": "Below you can find an example with a custom validator, which accepts only `B` as a correct option.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n} from '@angular/forms';\n\n/**\n * @title Validation Example\n */\n@Component({\n  selector: 'radio-toggle-validation-example',\n  templateUrl: './radio-toggle-validation-example.html',\n  styleUrls: ['./radio-toggle-validation-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxButtonComponent,\n    JsonPipe,\n    NxErrorComponent,\n    NxLabelComponent,\n  ],\n})\nexport class RadioToggleValidationExampleComponent {\n  readonly data = ['A', 'B', 'C'];\n\n  readonly testForm = this.fb.group({\n    testToggle: ['', this.customValidation],\n  });\n\n  isSubmitted = false;\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  private customValidation(formGroup: FormGroup) {\n    return formGroup.value !== 'B' ? { valid: false } : null;\n  }\n\n  onsubmit() {\n    this.isSubmitted = true;\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\" (ngSubmit)=\"onsubmit()\">\n  <nx-label id=\"toggle-label\">Favorite Letter</nx-label>\n  <nx-radio-toggle ariaLabelledBy=\"toggle-label\" formControlName=\"testToggle\">\n    @for (item of data; track item) {\n      <nx-radio-toggle-button [value]=\"item\">{{ item }}</nx-radio-toggle-button>\n    }\n    <nx-error> Please select \"B\" </nx-error>\n  </nx-radio-toggle>\n\n  <button nxButton=\"primary small\" class=\"nx-margin-top-s\" type=\"submit\">\n    submit\n  </button>\n\n  <p class=\"nx-margin-bottom-0\">\n    Form value: {{ testForm.value | json }}<br />\n    Form status: {{ testForm.status | json }}<br />\n    Form is touched: {{ testForm.touched | json }}<br />\n    Form is submitted: {{ isSubmitted | json }}\n  </p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "size",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  <strong><code>variant=\"small\"</code></strong> is deprecated. Use the <code>size</code> input instead.\n</div>\n\nUse the `size` input to choose between the two available sizes. `m` is the default. `s` is a more compact variant with reduced padding, a smaller type style and a lower minimum height.\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { Component } from '@angular/core';\n\n/**\n * @title Toggle Button Size Example\n */\n@Component({\n  selector: 'radio-toggle-size-example',\n  templateUrl: './radio-toggle-size-example.html',\n  styleUrls: ['./radio-toggle-size-example.css'],\n  imports: [NxRadioToggleComponent, NxRadioToggleButtonComponent],\n})\nexport class RadioToggleSizeExampleComponent {}\n\n```\n```html\n<nx-radio-toggle size=\"s\">\n  <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n    >Label B</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n</nx-radio-toggle>\n\n<br />\n\n<nx-radio-toggle size=\"m\">\n  <nx-radio-toggle-button value=\"A\">Label A</nx-radio-toggle-button>\n  <nx-radio-toggle-button value=\"B\" [selected]=\"true\"\n    >Label B</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"C\">Label C</nx-radio-toggle-button>\n</nx-radio-toggle>\n\n```\n\n\n"
      },
      {
        "heading": "expert: readonly",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n<strong>Expert only: </strong>\n  Please note that the readonly option is only for expert/internal applications because of accessibility restrictions. There is currently no solution for readonly states that is accepted for retail applications.\n</div>\n\n \n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * @title Readonly Toggle Button Example\n */\n@Component({\n  selector: 'radio-toggle-readonly-example',\n  imports: [NxRadioToggleButtonComponent, NxRadioToggleComponent],\n  templateUrl: './radio-toggle-readonly-example.html',\n  styleUrl: './radio-toggle-readonly-example.scss',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RadioToggleReadonlyExampleComponent {}\n\n```\n```html\n<nx-radio-toggle [readonly]=\"true\">\n  <nx-radio-toggle-button value=\"A\" [selected]=\"true\"\n    >Label A</nx-radio-toggle-button\n  >\n  <nx-radio-toggle-button value=\"B\">Label B</nx-radio-toggle-button>\n</nx-radio-toggle>\n<br />\n\n<h3>Readonly Inverse</h3>\n\n<div class=\"docs-inverse-container\">\n  <nx-radio-toggle [readonly]=\"true\" inverse>\n    <nx-radio-toggle-button value=\"A\" [selected]=\"true\"\n      >Label A</nx-radio-toggle-button\n    >\n    <nx-radio-toggle-button value=\"B\">Label B</nx-radio-toggle-button>\n  </nx-radio-toggle>\n</div>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If you use only icons or anything else that is not descriptive enough for screen readers, make sure to set a descriptive\n`ariaLabel` <a href=\"documentation/radio-toggle/overview#custom\">as shown in the _Custom_ Toggle Buttons example</a>.\n"
      }
    ]
  },
  {
    "name": "rating.md",
    "title": "Rating",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic example",
        "level": 4,
        "content": "\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rating Basic Example\n */\n@Component({\n  selector: 'rating-basic-example',\n  templateUrl: './rating-basic-example.html',\n  styleUrls: ['./rating-basic-example.css'],\n  imports: [NxRatingComponent],\n})\nexport class RatingBasicExampleComponent {}\n\n```\n```html\n<nx-rating\n  startLabel=\"poor\"\n  endLabel=\"great\"\n  [ariaRatingLabels]=\"[\n    '1 of 5 Poor',\n    '2 of 5',\n    '3 of 5',\n    '4 of 5',\n    '5 of 5 Great',\n  ]\"\n  ariaRatingGroupLabel=\"How do you like our service?\"\n>\n</nx-rating>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "non interactive rating",
        "level": 4,
        "content": "When `interactive` is set to `false`, the rating cannot be changed by click, hover, or keyboard, and a fractional `value` is rounded to the nearest half star for display (e.g. `3.2` renders as 3 full stars, `3.6` renders as 3 full stars and a half star). Half-star rendering is display-only — it is not selectable and only applies when not interactive; an interactive rating always shows and accepts whole stars.\n\n\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { NxSliderModule } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n/**\n * @title Rating Non-Interactive Example\n */\n@Component({\n  selector: 'rating-non-interactive-example',\n  templateUrl: './rating-non-interactive-example.html',\n  styleUrls: ['./rating-non-interactive-example.css'],\n  imports: [NxRatingComponent, NxSliderModule],\n})\nexport class RatingNonInteractiveExampleComponent {\n  ratingValue = 3.25;\n}\n\n```\n```html\n<nx-slider\n  class=\"nx-margin-bottom-s contained-rating\"\n  [min]=\"0\"\n  [max]=\"5\"\n  [step]=\"0.1\"\n  [(value)]=\"ratingValue\"\n>\n</nx-slider>\n<nx-rating\n  class=\"nx-margin-bottom-s\"\n  [(value)]=\"ratingValue\"\n  size=\"s\"\n  startLabel=\"poor\"\n  endLabel=\"great\"\n  [interactive]=\"false\"\n>\n</nx-rating>\n<br />\n<nx-rating\n  [(value)]=\"ratingValue\"\n  size=\"m\"\n  startLabel=\"poor\"\n  endLabel=\"great\"\n  [interactive]=\"false\"\n>\n</nx-rating>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "disabled rating",
        "level": 4,
        "content": "\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rating Disabled Example\n */\n@Component({\n  selector: 'rating-disabled-example',\n  templateUrl: './rating-disabled-example.html',\n  styleUrls: ['./rating-disabled-example.css'],\n  imports: [NxRatingComponent],\n})\nexport class RatingDisabledExampleComponent {}\n\n```\n```html\n<nx-rating startLabel=\"poor\" endLabel=\"great\" [disabled]=\"true\"> </nx-rating>\n\n```\n\n"
      },
      {
        "heading": "inverse styling",
        "level": 4,
        "content": "You can change the styling of the rating to inverse via the `inverse` property. The legacy negative property is still supported as a deprecated alias.\n\n\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rating Negative Example\n */\n@Component({\n  selector: 'rating-negative-example',\n  templateUrl: './rating-negative-example.html',\n  styleUrls: ['./rating-negative-example.css'],\n  imports: [NxRatingComponent],\n})\nexport class RatingNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-rating\n    startLabel=\"poor\"\n    endLabel=\"great\"\n    [inverse]=\"true\"\n    ariaRatingGroupLabel=\"How do you like our service?\"\n    [ariaRatingLabels]=\"[\n      '1 of 5 Poor',\n      '2 of 5',\n      '3 of 5',\n      '4 of 5',\n      '5 of 5 Great',\n    ]\"\n  >\n  </nx-rating>\n  <br />\n  <nx-rating\n    [value]=\"3\"\n    startLabel=\"poor\"\n    endLabel=\"great\"\n    [inverse]=\"true\"\n    ariaRatingGroupLabel=\"How do you like our service?\"\n    [ariaRatingLabels]=\"[\n      '1 of 5 Poor',\n      '2 of 5',\n      '3 of 5',\n      '4 of 5',\n      '5 of 5 Great',\n    ]\"\n    disabled\n  >\n  </nx-rating>\n</div>\n\n```\n\n"
      },
      {
        "heading": "simple binding",
        "level": 4,
        "content": "\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rating Simple Bindig Example\n */\n@Component({\n  selector: 'rating-simple-example',\n  templateUrl: './rating-simple-example.html',\n  styleUrls: ['./rating-simple-example.css'],\n  imports: [NxRatingComponent],\n})\nexport class RatingSimpleExampleComponent {\n  simpleBinding = 1;\n}\n\n```\n```html\n<nx-rating\n  [(value)]=\"simpleBinding\"\n  ariaRatingGroupLabel=\"How do you like our service?\"\n  [ariaRatingLabels]=\"[\n    '1 of 5 Poor',\n    '2 of 5',\n    '3 of 5',\n    '4 of 5',\n    '5 of 5 Great',\n  ]\"\n></nx-rating>\n<p>Value: {{ simpleBinding }}</p>\n\n```\n\n"
      },
      {
        "heading": "template-driven with ngmodel",
        "level": 4,
        "content": "\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Rating Template Driven Example\n */\n@Component({\n  selector: 'rating-template-example',\n  templateUrl: './rating-template-example.html',\n  styleUrls: ['./rating-template-example.css'],\n  imports: [NxRatingComponent, FormsModule],\n})\nexport class RatingTemplateExampleComponent {\n  ngModelBinding = 1;\n}\n\n```\n```html\n<nx-rating [(ngModel)]=\"ngModelBinding\"></nx-rating>\n<p>Value: {{ ngModelBinding }}</p>\n\n```\n\n"
      },
      {
        "heading": "reactive",
        "level": 4,
        "content": "\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Rating Reactive Example\n */\n@Component({\n  selector: 'rating-reactive-example',\n  templateUrl: './rating-reactive-example.html',\n  styleUrls: ['./rating-reactive-example.css'],\n  imports: [FormsModule, ReactiveFormsModule, NxRatingComponent, JsonPipe],\n})\nexport class RatingReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    rating: [1],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-rating\n    formControlName=\"rating\"\n    ariaRatingGroupLabel=\"How do you like our service?\"\n    [ariaRatingLabels]=\"[\n      '1 of 5 Poor',\n      '2 of 5',\n      '3 of 5',\n      '4 of 5',\n      '5 of 5 Great',\n    ]\"\n  ></nx-rating>\n</form>\n\n<p>Form value: {{ testForm.value | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "error state",
        "level": 4,
        "content": "When used with `ngModel` or a form control, the rating shows an error state once the control is invalid and the `ErrorStateMatcher` reports an error. Project an `nx-error` into `nx-rating` to display the message; it is linked to the rating via `aria-describedby`.\n\n\n```ts\nimport { NxButtonModule } from '@allianz/ng-aquila/button';\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Rating Error Example\n */\n@Component({\n  selector: 'rating-error-example',\n  templateUrl: './rating-error-example.html',\n  styleUrls: ['./rating-error-example.css'],\n  imports: [\n    ReactiveFormsModule,\n    NxRatingComponent,\n    NxErrorComponent,\n    NxButtonModule,\n  ],\n})\nexport class RatingErrorExampleComponent {\n  readonly testForm = this.fb.group({\n    rating: [0, Validators.min(1)],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-rating\n    formControlName=\"rating\"\n    ariaRatingGroupLabel=\"How do you like our service?\"\n    startLabel=\"poor\"\n    endLabel=\"great\"\n  >\n    <nx-error>Please rate us</nx-error>\n  </nx-rating>\n  <div class=\"nx-margin-top-s\">\n    <button nxButton=\"primary\" type=\"submit\">Submit</button>\n    <button\n      class=\"nx-margin-left-s\"\n      nxButton=\"secondary\"\n      type=\"button\"\n      (click)=\"testForm.reset({ rating: 0 })\"\n    >\n      Reset value\n    </button>\n  </div>\n</form>\n\n```\n\n"
      },
      {
        "heading": "sizes",
        "level": 4,
        "content": "\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rating Sizes Example\n */\n@Component({\n  selector: 'rating-sizes-example',\n  templateUrl: './rating-sizes-example.html',\n  styleUrls: ['./rating-sizes-example.css'],\n  imports: [NxRatingComponent],\n})\nexport class RatingSizesExampleComponent {}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12,4\" class=\"nx-margin-bottom-s\">\n      <nx-rating size=\"s\"></nx-rating>\n    </div>\n    <div nxCol=\"12,4\" class=\"nx-margin-bottom-s\">\n      <nx-rating size=\"m\"></nx-rating>\n    </div>\n    <div nxCol=\"12,4\" class=\"nx-margin-bottom-s\">\n      <nx-rating size=\"l\"></nx-rating>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The component can be accessed via keyboard. To do that, use the TAB-key to focus on one of the stars and hit the ENTER-key to select it. Alternatively, increase or decrease the selected value by hitting the LEFT-ARROW- or RIGHT-ARROW-key. Moreover, it is possible to provide custom descriptions for each star. Please refer to `ariaLabel` in the API section for more information.\n\n\n```ts\nimport { NxRatingComponent } from '@allianz/ng-aquila/rating';\nimport { Component } from '@angular/core';\n\n/**\n * @title Rating Accessibility Example\n */\n@Component({\n  selector: 'rating-accessibility-example',\n  templateUrl: './rating-accessibility-example.html',\n  styleUrls: ['./rating-accessibility-example.css'],\n  imports: [NxRatingComponent],\n})\nexport class RatingAccessibilityExampleComponent {}\n\n```\n```html\n<nx-rating\n  [ariaLabel]=\"['Hated', 'Didn\\'t like it', 'Just OK', 'Liked it', 'Loved it']\"\n>\n</nx-rating>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "rtl.md",
    "title": "Right-to-left support",
    "category": "general",
    "alias": [],
    "sections": [
      {
        "heading": "component examples in rtl",
        "level": 3,
        "content": "To view components in an RTL setting in the documentation, add `?dir=rtl` to the end of the component url, e.g. `documentation/accordion/overview?dir=rtl`. Note that direction will be applied only to the content of examples and not to the whole documentation page. The RTL query is persisted between navigations.\n"
      },
      {
        "heading": "dynamic change",
        "level": 3,
        "content": "There might be situations, when you want to change the directionality of your application dynamically. For example, when you have to support both RTL and LTR scripts within the same app and allow the user to switch through a dropdown or any other way of user input.\n\nSince we are using [Angular CDK Bidirectionality module](https://material.angular.io/cdk/bidi/overview) under the hood to provide RTL support, you should pay attention to some constraints:\n\n1. In order for the components to properly pick up the change, it has to be happening within the angular app. This means, if you try to update the `dir` attribute through DOM API, like `document.querySelector('.app-container').dir = 'rtl'`, this change will not be properly picked up, which will result in degraded styles and in some cases render components unusable. One way of making the app properly pick up the `dir` change is to use [property binding](https://angular.io/guide/property-binding) on the container element.\n\n1. Direction change detection will not fire for `<html>` and `<body>` tags, since they are assumed to be static.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Dir, Direction } from '@angular/cdk/bidi';\nimport { UpperCasePipe } from '@angular/common';\nimport { Component } from '@angular/core';\n\n/**\n * @title RTL Dynamic Example\n */\n@Component({\n  selector: 'rtl-dynamic-example',\n  templateUrl: './rtl-dynamic-example.html',\n  styleUrls: ['./rtl-dynamic-example.css'],\n  imports: [\n    Dir,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxSliderComponent,\n    NxButtonComponent,\n    UpperCasePipe,\n  ],\n})\nexport class RtlDynamicExampleComponent {\n  direction: Direction = 'ltr';\n  sliderDemoValue = 10;\n\n  toggleDirection(): void {\n    this.direction = this.direction === 'ltr' ? 'rtl' : 'ltr';\n  }\n}\n\n```\n```html\n<div [dir]=\"direction\">\n  <h3 nxHeadline=\"subsection-medium\">Dynamic direction switching</h3>\n  <p nxCopytext=\"small\">\n    Some copy text in {{ direction | uppercase }} container.\n  </p>\n  <div class=\"nx-margin-bottom-m\">\n    <nx-slider\n      [min]=\"10\"\n      [max]=\"110\"\n      [step]=\"2\"\n      label=\"Slider Test Label\"\n      [(value)]=\"sliderDemoValue\"\n    >\n    </nx-slider>\n  </div>\n  <button nxButton (click)=\"toggleDirection()\">\n    Switch container direction\n  </button>\n</div>\n\n```\n\n"
      },
      {
        "heading": "modals",
        "level": 3,
        "content": "Almost all components of our library do not require any extra effort from the developer to work properly in an RTL environment, except setting the direction on the app or container components. The only exception is the `NxDialogService`, which require you to pass direction as a config parameter when opening a dialog. You will find more details on the [Modal documentation page](./documentation/modal/overview#directionality).\n"
      }
    ]
  },
  {
    "name": "selection.md",
    "title": "Selection Indicators",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "selection indicators",
        "level": 1,
        "content": "Selection indicators are visual elements used to represent selection states, such as checkboxes and radio buttons, in custom UI components. They are designed to be used in conjunction with other components like cards, tiles or in a dropdown flyout, where selection is a key interaction. These components do not have any interaction logic and are purely presentational.\n\n"
      },
      {
        "heading": "default appearance",
        "level": 3,
        "content": "This example shows both the checkbox and radio indicators in their default appearance.\n\n\n```ts\nimport {\n  NxCheckboxIndicatorComponent,\n  NxRadioIndicatorComponent,\n} from '@allianz/ng-aquila/selection';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selection Indicator Default Appearance\n */\n@Component({\n  selector: 'selection-indicator-default-example',\n  templateUrl: './selection-indicator-default-example.html',\n  styleUrls: ['./selection-indicator-default-example.css'],\n  standalone: true,\n  imports: [NxCheckboxIndicatorComponent, NxRadioIndicatorComponent],\n})\nexport class SelectionIndicatorDefaultExampleComponent {}\n\n```\n```html\n<div class=\"indicator-table\">\n  <div class=\"indicator-table-header\">\n    <div></div>\n    <div>Checkbox Indicator</div>\n    <div>Radio Indicator</div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Default</div>\n    <div><nx-checkbox-indicator></nx-checkbox-indicator></div>\n    <div><nx-radio-indicator></nx-radio-indicator></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Checked</div>\n    <div>\n      <nx-checkbox-indicator [checked]=\"true\"></nx-checkbox-indicator>\n    </div>\n    <div><nx-radio-indicator [checked]=\"true\"></nx-radio-indicator></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Disabled</div>\n    <div>\n      <nx-checkbox-indicator [disabled]=\"true\"></nx-checkbox-indicator>\n    </div>\n    <div><nx-radio-indicator [disabled]=\"true\"></nx-radio-indicator></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Disabled + Checked</div>\n    <div>\n      <nx-checkbox-indicator\n        [checked]=\"true\"\n        [disabled]=\"true\"\n      ></nx-checkbox-indicator>\n    </div>\n    <div>\n      <nx-radio-indicator\n        [checked]=\"true\"\n        [disabled]=\"true\"\n      ></nx-radio-indicator>\n    </div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Readonly</div>\n    <div>\n      <nx-checkbox-indicator [readonly]=\"true\"></nx-checkbox-indicator>\n    </div>\n    <div><nx-radio-indicator [readonly]=\"true\"></nx-radio-indicator></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Readonly + Checked</div>\n    <div>\n      <nx-checkbox-indicator\n        [checked]=\"true\"\n        [readonly]=\"true\"\n      ></nx-checkbox-indicator>\n    </div>\n    <div>\n      <nx-radio-indicator\n        [checked]=\"true\"\n        [readonly]=\"true\"\n      ></nx-radio-indicator>\n    </div>\n  </div>\n\n  <!-- Indeterminate states only for checkbox -->\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Indeterminate</div>\n    <div>\n      <nx-checkbox-indicator [indeterminate]=\"true\"></nx-checkbox-indicator>\n    </div>\n    <div></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Disabled + Indeterminate</div>\n    <div>\n      <nx-checkbox-indicator\n        [indeterminate]=\"true\"\n        [disabled]=\"true\"\n      ></nx-checkbox-indicator>\n    </div>\n    <div></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Readonly + Indeterminate</div>\n    <div>\n      <nx-checkbox-indicator\n        [indeterminate]=\"true\"\n        [readonly]=\"true\"\n      ></nx-checkbox-indicator>\n    </div>\n    <div></div>\n  </div>\n\n  <!-- Critical states -->\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Critical</div>\n    <div>\n      <nx-checkbox-indicator [critical]=\"true\"></nx-checkbox-indicator>\n    </div>\n    <div><nx-radio-indicator [critical]=\"true\"></nx-radio-indicator></div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Critical + Checked</div>\n    <div>\n      <nx-checkbox-indicator\n        [critical]=\"true\"\n        [checked]=\"true\"\n      ></nx-checkbox-indicator>\n    </div>\n    <div>\n      <nx-radio-indicator\n        [critical]=\"true\"\n        [checked]=\"true\"\n      ></nx-radio-indicator>\n    </div>\n  </div>\n  <div class=\"indicator-table-row\">\n    <div class=\"indicator-label\">Critical + Indeterminate</div>\n    <div>\n      <nx-checkbox-indicator\n        [critical]=\"true\"\n        [indeterminate]=\"true\"\n      ></nx-checkbox-indicator>\n    </div>\n    <div></div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverse appearance",
        "level": 3,
        "content": "Set `inverse` on the radio indicator when it sits on a dark surface. It is available for the\ndefault and critical appearances; it is not combined with the on-selection appearance.\n\n\n```ts\nimport { NxRadioIndicatorComponent } from '@allianz/ng-aquila/selection';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selection Indicator Inverse Appearance\n */\n@Component({\n  selector: 'selection-indicator-inverse-example',\n  templateUrl: './selection-indicator-inverse-example.html',\n  styleUrls: ['./selection-indicator-inverse-example.css'],\n  standalone: true,\n  imports: [NxRadioIndicatorComponent],\n})\nexport class SelectionIndicatorInverseExampleComponent {}\n\n```\n```html\n<div class=\"indicator-surface\">\n  <div class=\"indicator-table\">\n    <div class=\"indicator-table-header\">\n      <div></div>\n      <div>Unselected</div>\n      <div>Selected</div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Resting</div>\n      <div><nx-radio-indicator [inverse]=\"true\"></nx-radio-indicator></div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [checked]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Disabled</div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [disabled]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [disabled]=\"true\"\n          [checked]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Read-only</div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [readonly]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [readonly]=\"true\"\n          [checked]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Critical</div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [critical]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator\n          [inverse]=\"true\"\n          [critical]=\"true\"\n          [checked]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "on-selection appearance",
        "level": 3,
        "content": "The on-selection appearance is used on other interactive elements like cards or tiles.\nThe following example shows both the checkbox and radio indicators with the on-selection appearance (all states).\n\n\n```ts\nimport {\n  NxCheckboxIndicatorComponent,\n  NxRadioIndicatorComponent,\n} from '@allianz/ng-aquila/selection';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selection Indicator On-selection Appearance\n */\n@Component({\n  selector: 'selection-indicator-on-selection-example',\n  templateUrl: './selection-indicator-on-selection-example.html',\n  styleUrls: ['./selection-indicator-on-selection-example.css'],\n  standalone: true,\n  imports: [NxCheckboxIndicatorComponent, NxRadioIndicatorComponent],\n})\nexport class SelectionIndicatorOnSelectionExampleComponent {}\n\n```\n```html\n<!-- Non-checked states (no colored background) -->\n<div class=\"indicator-table-wrapper\">\n  <div class=\"indicator-table\">\n    <div class=\"indicator-table-header\">\n      <div></div>\n      <div>Checkbox Indicator</div>\n      <div>Radio Indicator</div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Default</div>\n      <div>\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator colorScheme=\"on-selection\"></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Disabled</div>\n      <div>\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [disabled]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [disabled]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Readonly</div>\n      <div>\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [readonly]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [readonly]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Critical</div>\n      <div>\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [critical]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div>\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [critical]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <!-- (indeterminate states moved to checked grid below) -->\n  </div>\n</div>\n\n<!-- Checked states (individual cell backgrounds) -->\n<div class=\"indicator-table-wrapper\">\n  <div class=\"indicator-table\">\n    <div class=\"indicator-table-header\">\n      <div></div>\n      <div>Checkbox Indicator</div>\n      <div>Radio Indicator</div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Checked</div>\n      <div class=\"cell-bg-checked\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div class=\"cell-bg-checked\">\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Disabled + Checked</div>\n      <div class=\"cell-bg-disabled\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n          [disabled]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div class=\"cell-bg-disabled\">\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n          [disabled]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Readonly + Checked</div>\n      <div class=\"cell-bg-readonly\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n          [readonly]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div class=\"cell-bg-readonly\">\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n          [readonly]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Critical + Checked</div>\n      <div class=\"cell-bg-critical\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n          [critical]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div class=\"cell-bg-critical\">\n        <nx-radio-indicator\n          colorScheme=\"on-selection\"\n          [checked]=\"true\"\n          [critical]=\"true\"\n        ></nx-radio-indicator>\n      </div>\n    </div>\n    <!-- Indeterminate states at the end -->\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Indeterminate</div>\n      <div class=\"cell-bg-checked\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [indeterminate]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div></div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Disabled + Indeterminate</div>\n      <div class=\"cell-bg-disabled\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [indeterminate]=\"true\"\n          [disabled]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div></div>\n    </div>\n    <div class=\"indicator-table-row\">\n      <div class=\"indicator-label\">Readonly + Indeterminate</div>\n      <div class=\"cell-bg-readonly\">\n        <nx-checkbox-indicator\n          colorScheme=\"on-selection\"\n          [indeterminate]=\"true\"\n          [readonly]=\"true\"\n        ></nx-checkbox-indicator>\n      </div>\n      <div></div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "on-accent and on-brand appearance",
        "level": 3,
        "content": "The radio indicator also supports the `on-accent-attention` and `on-brand-static` appearances,\nfor placement on an accent or brand coloured surface in Allianz One. If you select readonly with these two appearances the component will fall back to use the default color scheme.\n\n\n```ts\nimport { NxRadioIndicatorComponent } from '@allianz/ng-aquila/selection';\nimport { Component } from '@angular/core';\n\n/**\n * @title Selection Indicator On Accent and On Brand Appearance\n */\n@Component({\n  selector: 'selection-indicator-accent-brand-example',\n  templateUrl: './selection-indicator-accent-brand-example.html',\n  styleUrls: ['./selection-indicator-accent-brand-example.css'],\n  standalone: true,\n  imports: [NxRadioIndicatorComponent],\n})\nexport class SelectionIndicatorAccentBrandExampleComponent {}\n\n```\n```html\n<div class=\"indicator-surfaces\">\n  <div class=\"indicator-surface indicator-surface--accent\">\n    <div class=\"indicator-table\">\n      <div class=\"indicator-table-header\">\n        <div>On accent attention</div>\n        <div>Unselected</div>\n        <div>Selected</div>\n      </div>\n      <div class=\"indicator-table-row\">\n        <div class=\"indicator-label\">Resting</div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-accent-attention\"\n          ></nx-radio-indicator>\n        </div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-accent-attention\"\n            [checked]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n      </div>\n      <div class=\"indicator-table-row\">\n        <div class=\"indicator-label\">Disabled</div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-accent-attention\"\n            [disabled]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-accent-attention\"\n            [disabled]=\"true\"\n            [checked]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n      </div>\n      <div class=\"indicator-table-row\">\n        <div class=\"indicator-label\">Read-only</div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-accent-attention\"\n            [readonly]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-accent-attention\"\n            [readonly]=\"true\"\n            [checked]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"indicator-surface indicator-surface--brand\">\n    <div class=\"indicator-table\">\n      <div class=\"indicator-table-header\">\n        <div>On brand static</div>\n        <div>Unselected</div>\n        <div>Selected</div>\n      </div>\n      <div class=\"indicator-table-row\">\n        <div class=\"indicator-label\">Resting</div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-brand-static\"\n          ></nx-radio-indicator>\n        </div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-brand-static\"\n            [checked]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n      </div>\n      <div class=\"indicator-table-row\">\n        <div class=\"indicator-label\">Disabled</div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-brand-static\"\n            [disabled]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-brand-static\"\n            [disabled]=\"true\"\n            [checked]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n      </div>\n      <div class=\"indicator-table-row\">\n        <div class=\"indicator-label\">Read-only</div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-brand-static\"\n            [readonly]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n        <div>\n          <nx-radio-indicator\n            colorScheme=\"on-brand-static\"\n            [readonly]=\"true\"\n            [checked]=\"true\"\n          ></nx-radio-indicator>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "hover, active and focus styles",
        "level": 2,
        "content": "The indicators are presentational and never know that the element around them is hovered,\npressed or focused: the pointer sits on the surrounding component (like a card, tile or label), and focus sits on\nthe native input the indicator stands in for. The surrounding component therefore owns the\nselector, and these mixins supply the declarations for both nx-radio-indicator and nx-checkbox-indicator:\n\n```scss\n@use '@allianz/ng-aquila/styles/selection-indicator-mixins' as *;\n\n.my-card {\n  &:hover nx-radio-indicator {\n    @include nx-radio-indicator-hover;\n  }\n  &:active nx-radio-indicator {\n    @include nx-radio-indicator-active;\n  }\n  &:has(input:focus-visible) nx-radio-indicator {\n    @include nx-selection-indicator-focus;\n  }\n}\n```\n\nKeep the indicator's element selector on your side.\n"
      },
      {
        "heading": "usage",
        "level": 2,
        "content": "Import the components, use them in your templates and position them in your layout:\n\n```html\n<nx-checkbox-indicator />\n<nx-radio-indicator />\n```\n\nThese components are purely visual and should be combined with appropriate logic and accessibility features in your application.\n"
      }
    ]
  },
  {
    "name": "sidebar.md",
    "title": "Side Navigation",
    "category": "components",
    "alias": [
      "sidenav",
      "side navigation",
      "side menu"
    ],
    "sections": [
      {
        "heading": "static sidebar with actions",
        "level": 3,
        "content": "One possible content for the sidebar is a list of navigation links, in this case a list of `nxAction` items. The default width of `280px` can be overwritten by your own css like in the following example.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Side navigation with Actions\n */\n@Component({\n  selector: 'sidebar-example',\n  styleUrls: ['sidebar-example.css'],\n  templateUrl: './sidebar-example.html',\n  imports: [\n    NxSidebarComponent,\n    NxActionComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n  ],\n})\nexport class SidebarExampleComponent {\n  actions = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      query: { a: 4 },\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n      query: { a: 5 },\n    },\n  ];\n}\n\n```\n```html\n<nx-sidebar\n  resizeHandleAriaLabel=\"Toggle sidebar width\"\n  class=\"my-sidebar\"\n  #sidebar\n>\n  @for (action of actions; track action) {\n    <a\n      nxAction\n      routerLink=\"./\"\n      [queryParams]=\"action.query\"\n      routerLinkActive=\"is-selected\"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      {{ action.label }}\n    </a>\n  }\n</nx-sidebar>\n\n```\n\n"
      },
      {
        "heading": "groups and dividers",
        "level": 3,
        "content": "Wrap related actions in an `<nx-sidebar-group>` to group them. The optional `label` shows a group header. Screen readers announce it as the name of the group. To separate items without a header, place an `<nx-divider>` between them (import `NxDividerModule` from `@allianz/ng-aquila/divider`).\n\nWhen the sidebar is collapsed, a group header turns into a divider line.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxDividerComponent } from '@allianz/ng-aquila/divider';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxSidebarComponent,\n  NxSidebarGroupComponent,\n} from '@allianz/ng-aquila/sidebar';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Side navigation with groups and dividers\n */\n@Component({\n  selector: 'sidebar-group-example',\n  styleUrls: ['sidebar-group-example.css'],\n  templateUrl: './sidebar-group-example.html',\n  imports: [\n    NxSidebarComponent,\n    NxSidebarGroupComponent,\n    NxActionComponent,\n    NxActionIconDirective,\n    NxDividerComponent,\n    NxIconComponent,\n    RouterLink,\n    RouterLinkActive,\n  ],\n})\nexport class SidebarGroupExampleComponent {\n  groups = [\n    {\n      label: 'Documents',\n      actions: [\n        { icon: 'file-text', label: 'All Files', query: { a: 1 } },\n        { icon: 'file', label: 'Recent Downloads', query: { a: 2 } },\n      ],\n    },\n    {\n      label: 'Communication',\n      actions: [\n        { icon: 'mail-o', label: 'Email', query: { a: 3 } },\n        { icon: 'calendar', label: 'Calendar', query: { a: 4 } },\n      ],\n    },\n  ];\n}\n\n```\n```html\n<nx-sidebar resizeHandleAriaLabel=\"Toggle sidebar width\" resizeable>\n  @for (group of groups; track group.label) {\n    <nx-sidebar-group [label]=\"group.label\">\n      @for (action of group.actions; track action.label) {\n        <a\n          nxAction\n          routerLink=\"./\"\n          [queryParams]=\"action.query\"\n          routerLinkActive=\"is-selected\"\n        >\n          <nx-icon\n            nxActionIcon\n            [name]=\"action.icon\"\n            aria-hidden=\"true\"\n          ></nx-icon>\n          {{ action.label }}\n        </a>\n      }\n    </nx-sidebar-group>\n  }\n  <nx-divider></nx-divider>\n  <a\n    nxAction\n    routerLink=\"./\"\n    [queryParams]=\"{ a: 5 }\"\n    routerLinkActive=\"is-selected\"\n  >\n    <nx-icon nxActionIcon name=\"user-o\" aria-hidden=\"true\"></nx-icon>\n    My Profile\n  </a>\n</nx-sidebar>\n\n```\n\n"
      },
      {
        "heading": "resizeable side navigation with tree",
        "level": 3,
        "content": "[nxTree](./documentation/tree/overview) is designed to work in conjunction with the Sidebar. It is heavily inspired my the Angular Material Flat Tree. For an in depth documentation see [material.angular.io](https://material.angular.io/components/tree/overview).\n\nA `<nx-sidebar>` can be resized by dragging the right edge when the option `resizeable` is set.\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport {\n  NxFlatTreeControl,\n  NxFlatTreeNode,\n  NxTreeComponent,\n  NxTreeFlatDataSource,\n  NxTreeNode,\n  NxTreeNodeActionItem,\n  NxTreeNodeComponent,\n  NxTreeNodeDefDirective,\n  NxTreeNodePaddingDirective,\n  NxTreeNodeToggleDirective,\n} from '@allianz/ng-aquila/tree';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * This interface defines a single node of the trees data structure.\n */\nexport interface MyTreeNode extends NxTreeNode {\n  label: string;\n  icon?: string;\n  query?: any;\n  children?: MyTreeNode[];\n}\n\n/** Flat node with expandable and level information */\ninterface MyFlatTreeNode extends NxFlatTreeNode {\n  label: string;\n  icon?: string;\n  query?: any;\n}\n\n/**\n * @title Side navigation resizeable Example\n */\n@Component({\n  selector: 'sidebar-resizeable-example',\n  templateUrl: './sidebar-resizeable-example.html',\n  styleUrls: ['sidebar-resizeable-example.css'],\n  imports: [\n    NxSidebarComponent,\n    NxTreeComponent,\n    NxTreeNodeDefDirective,\n    NxTreeNodeComponent,\n    NxActionComponent,\n    NxTreeNodePaddingDirective,\n    NxTreeNodeActionItem,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxTreeNodeToggleDirective,\n  ],\n})\nexport class SidebarResizeableExampleComponent {\n  navigationData: MyTreeNode[] = [\n    {\n      label: 'Option 1',\n      icon: 'user-o',\n      children: [\n        {\n          label: 'Option 1.1',\n          query: { a: '1.1' },\n        },\n        {\n          label: 'Option 1.2',\n          children: [\n            {\n              label: 'Option 1.2.1',\n              query: { a: '1.2.1' },\n            },\n            {\n              label: 'Option 1.2.2',\n              query: { a: '1.2.2' },\n            },\n            {\n              label: 'Option 1.2.3',\n              children: [\n                {\n                  label: 'Option 1.2.3.1',\n                  children: [\n                    {\n                      label: 'Option 1.2.3.1.1',\n                      query: { a: '1.2.3.1.1' },\n                    },\n                  ],\n                },\n              ],\n            },\n          ],\n        },\n        {\n          label: 'Option 1.3',\n          query: { a: '1.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 2.1',\n          query: { a: '2.1' },\n        },\n        {\n          label: 'Option 2.2',\n          query: { a: '2.2' },\n        },\n        {\n          label: 'Option 2.3',\n          query: { a: '2.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n      icon: 'file',\n      query: { a: '3' },\n    },\n  ];\n\n  _dataSource: NxTreeFlatDataSource<MyTreeNode, MyFlatTreeNode>;\n\n  _treeControl: NxFlatTreeControl<MyFlatTreeNode>;\n\n  constructor() {\n    this._treeControl = new NxFlatTreeControl();\n    this._dataSource = new NxTreeFlatDataSource(\n      this._treeControl,\n      this.navigationData,\n    );\n  }\n\n  _hasChild = (_: number, node: NxFlatTreeNode) => node.expandable;\n}\n\n```\n```html\n<nx-sidebar\n  resizeHandleAriaLabel=\"Toggle sidebar width\"\n  resizeable\n  minWidth=\"140\"\n>\n  <nx-tree [dataSource]=\"_dataSource\" [treeControl]=\"_treeControl\">\n    <nx-tree-node *nxTreeNodeDef=\"let node\">\n      <a\n        nxAction\n        nxTreeNodePadding\n        nxTreeNodeActionItem\n        nxTreeNodePaddingOffset=\"40\"\n        routerLink=\"./\"\n        [queryParams]=\"node.query\"\n        routerLinkActive=\"is-selected\"\n        title=\"{{ node.label }}\"\n      >\n        @if (node.icon) {\n          <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n        }\n        {{ node.label }}\n      </a>\n    </nx-tree-node>\n    <nx-tree-node *nxTreeNodeDef=\"let node; when: _hasChild\">\n      <button\n        nxAction\n        nxTreeNodeToggle\n        nxTreeNodeActionItem\n        nxTreeNodePadding\n        nxTreeNodePaddingOffset=\"40\"\n        expandable\n        [expanded]=\"_treeControl.isExpanded(node)\"\n        title=\"{{ node.label }}\"\n        type=\"button\"\n      >\n        @if (node.icon) {\n          <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n        }\n        {{ node.label }}\n      </button>\n    </nx-tree-node>\n  </nx-tree>\n</nx-sidebar>\n\n```\n\n\n</div>\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport {\n  NxFlatTreeControl,\n  NxFlatTreeNode,\n  NxTreeComponent,\n  NxTreeFlatDataSource,\n  NxTreeNode,\n  NxTreeNodeActionItem,\n  NxTreeNodeComponent,\n  NxTreeNodeDefDirective,\n  NxTreeNodePaddingDirective,\n  NxTreeNodeToggleDirective,\n} from '@allianz/ng-aquila/tree';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * This interface defines a single node of the trees data structure.\n */\nexport interface MyTreeNode extends NxTreeNode {\n  label: string;\n  icon?: string;\n  query?: any;\n  children?: MyTreeNode[];\n}\n\n/** Flat node with expandable and level information */\ninterface MyFlatTreeNode extends NxFlatTreeNode {\n  label: string;\n  icon?: string;\n  query?: any;\n}\n\n/**\n * @title Side navigation A1 resizeable Example\n */\n@Component({\n  selector: 'sidebar-a1-resizeable-example',\n  templateUrl: './sidebar-a1-resizeable-example.html',\n  styleUrls: ['sidebar-a1-resizeable-example.css'],\n  imports: [\n    NxSidebarComponent,\n    NxTreeComponent,\n    NxTreeNodeDefDirective,\n    NxTreeNodeComponent,\n    NxActionComponent,\n    NxTreeNodePaddingDirective,\n    NxTreeNodeActionItem,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxTreeNodeToggleDirective,\n  ],\n})\nexport class SidebarA1ResizeableExampleComponent {\n  navigationData: MyTreeNode[] = [\n    {\n      label: 'Option 1',\n      icon: 'user-o',\n      children: [\n        {\n          label: 'Option 1.1',\n          query: { a: '1.1' },\n        },\n        {\n          label: 'Option 1.2',\n          children: [\n            {\n              label: 'Option 1.2.1',\n              query: { a: '1.2.1' },\n            },\n            {\n              label: 'Option 1.2.2',\n              query: { a: '1.2.2' },\n            },\n            {\n              label: 'Option 1.2.3',\n              children: [\n                {\n                  label: 'Option 1.2.3.1',\n                  children: [\n                    {\n                      label: 'Option 1.2.3.1.1',\n                      query: { a: '1.2.3.1.1' },\n                    },\n                  ],\n                },\n              ],\n            },\n          ],\n        },\n        {\n          label: 'Option 1.3',\n          query: { a: '1.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 2.1',\n          query: { a: '2.1' },\n        },\n        {\n          label: 'Option 2.2',\n          query: { a: '2.2' },\n        },\n        {\n          label: 'Option 2.3',\n          query: { a: '2.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n      icon: 'file',\n      query: { a: '3' },\n    },\n  ];\n\n  _dataSource: NxTreeFlatDataSource<MyTreeNode, MyFlatTreeNode>;\n\n  _treeControl: NxFlatTreeControl<MyFlatTreeNode>;\n\n  constructor() {\n    this._treeControl = new NxFlatTreeControl();\n    this._dataSource = new NxTreeFlatDataSource(\n      this._treeControl,\n      this.navigationData,\n    );\n  }\n\n  _hasChild = (_: number, node: NxFlatTreeNode) => node.expandable;\n}\n\n```\n```html\n<nx-sidebar\n  resizeHandleAriaLabel=\"Toggle sidebar width\"\n  resizeable\n  minWidth=\"140\"\n>\n  <nx-tree [dataSource]=\"_dataSource\" [treeControl]=\"_treeControl\">\n    <nx-tree-node *nxTreeNodeDef=\"let node\">\n      <a\n        nxAction\n        nxTreeNodePadding\n        nxTreeNodeActionItem\n        routerLink=\"./\"\n        [queryParams]=\"node.query\"\n        routerLinkActive=\"is-selected\"\n        title=\"{{ node.label }}\"\n      >\n        @if (node.icon) {\n          <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n        }\n        {{ node.label }}\n      </a>\n    </nx-tree-node>\n    <nx-tree-node *nxTreeNodeDef=\"let node; when: _hasChild\">\n      <button\n        nxAction\n        nxTreeNodeToggle\n        nxTreeNodeActionItem\n        nxTreeNodePadding\n        expandable\n        [expanded]=\"_treeControl.isExpanded(node)\"\n        title=\"{{ node.label }}\"\n        type=\"button\"\n      >\n        @if (node.icon) {\n          <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n        }\n        {{ node.label }}\n      </button>\n    </nx-tree-node>\n  </nx-tree>\n</nx-sidebar>\n\n```\n\n\n</div>\n\nA `<nx-sidebar>` can be expanded or closed using the `expand()`, `close()` and `toggle()` methods.\n\nIf you have to reinit the default width in an expanded state, you can call `expand(width)` with the new width as parameter or directly set the `width` of the sidebar.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Side navigation Methods\n */\n@Component({\n  selector: 'sidebar-methods-example',\n  styleUrls: ['sidebar-methods-example.css'],\n  templateUrl: './sidebar-methods-example.html',\n  imports: [\n    NxSidebarComponent,\n    NxActionComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxButtonComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n  ],\n})\nexport class SidebarMethodsExampleComponent {\n  expandedWidth = 350;\n\n  actions = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      query: { a: 4 },\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n      query: { a: 5 },\n    },\n  ];\n}\n\n```\n```html\n<nx-sidebar resizeHandleAriaLabel=\"Toggle sidebar width\" #sidebar resizeable>\n  @for (action of actions; track action) {\n    <button\n      nxAction\n      routerLink=\"./\"\n      [queryParams]=\"action.query\"\n      routerLinkActive=\"is-selected\"\n      type=\"button\"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      {{ action.label }}\n    </button>\n  }\n</nx-sidebar>\n<main>\n  <button\n    nxButton=\"small\"\n    (click)=\"sidebar.toggle()\"\n    class=\"nx-margin-bottom-s\"\n    type=\"button\"\n  >\n    toggle\n  </button>\n  <button\n    nxButton=\"small\"\n    (click)=\"sidebar.expand()\"\n    [attr.disabled]=\"sidebar.open || null\"\n    class=\"nx-margin-bottom-s\"\n    type=\"button\"\n  >\n    expand\n  </button>\n  <button\n    nxButton=\"small\"\n    (click)=\"sidebar.close()\"\n    [attr.disabled]=\"!sidebar.open || null\"\n    type=\"button\"\n  >\n    close\n  </button>\n  <p class=\"nx-font-weight-bold nx-margin-bottom-2xs\">\n    Advanced: Expanded width\n  </p>\n  <div class=\"resize-container\">\n    <nx-formfield label=\"Width in px\" class=\"nx-margin-right-xs\">\n      <input nxInput [(ngModel)]=\"expandedWidth\" />\n    </nx-formfield>\n    <button\n      nxButton=\"small\"\n      (click)=\"sidebar.width = expandedWidth\"\n      class=\"nx-margin-bottom-m\"\n    >\n      resize\n    </button>\n  </div>\n</main>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "color schemes",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  <strong>Deprecated: </strong>\n  The <code>colorScheme</code> input and the emphasis color scheme are deprecated. Use the default sidebar instead. Setting <code>colorScheme=\"emphasis\"</code> still applies the emphasis styles, so existing usages keep working.\n</div>\n\nUse the `colorScheme` input to switch between the default neutral background and the emphasis variant. The emphasis scheme highlights the sidebar with the dedicated emphasis tokens while keeping the same content structure.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Sidebar color scheme\n */\n@Component({\n  selector: 'sidebar-color-scheme-example',\n  styleUrls: ['sidebar-color-scheme-example.css'],\n  templateUrl: './sidebar-color-scheme-example.html',\n  imports: [\n    NxSidebarComponent,\n    NxActionComponent,\n    NxIconComponent,\n    NxActionIconDirective,\n    RouterLink,\n    RouterLinkActive,\n  ],\n})\nexport class SidebarColorSchemeExampleComponent {\n  readonly actions = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      query: { a: 4 },\n    },\n  ];\n}\n\n```\n```html\n<nx-sidebar class=\"my-sidebar\" [colorScheme]=\"'emphasis'\">\n  @for (action of actions; track action.label) {\n    <a\n      nxAction\n      routerLink=\"./\"\n      [queryParams]=\"action.query\"\n      routerLinkActive=\"is-selected\"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      {{ action.label }}\n    </a>\n  }\n</nx-sidebar>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "footer area",
        "level": 3,
        "content": "For placing some view shortcuts on the bottom of the sidebar, a `<nx-sidebar-footer>` area can be added. Additionally with `nxSidebarToggle` you can add a button to toggle the sidebar like shown in the following example.\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxSidebarComponent,\n  NxSidebarFooterComponent,\n  NxSidebarToggleComponent,\n} from '@allianz/ng-aquila/sidebar';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n/**\n * @title Side navigation with footer area\n */\n@Component({\n  selector: 'sidebar-footer-example',\n  styleUrls: ['sidebar-footer-example.css'],\n  templateUrl: './sidebar-footer-example.html',\n  imports: [\n    NxSidebarComponent,\n    NxActionComponent,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxSidebarFooterComponent,\n    NxIconButtonComponent,\n    NxSidebarToggleComponent,\n  ],\n})\nexport class SidebarFooterExampleComponent {\n  actions = [\n    {\n      icon: 'file-text',\n      label: 'All Files',\n      query: { a: 1 },\n    },\n    {\n      icon: 'calendar',\n      label: 'Calendar',\n      query: { a: 2 },\n    },\n    {\n      icon: 'mail-o',\n      label: 'Email',\n      query: { a: 3 },\n    },\n    {\n      icon: 'user-o',\n      label: 'My Profile',\n      query: { a: 4 },\n    },\n    {\n      icon: 'file',\n      label: 'Recent Downloads',\n      query: { a: 5 },\n    },\n  ];\n}\n\n```\n```html\n<nx-sidebar\n  resizeHandleAriaLabel=\"Toggle sidebar width\"\n  class=\"my-sidebar\"\n  resizeable\n  #sidebar\n>\n  @for (action of actions; track action) {\n    <a\n      nxAction\n      routerLink=\"./\"\n      [queryParams]=\"action.query\"\n      routerLinkActive=\"is-selected\"\n    >\n      <nx-icon nxActionIcon [name]=\"action.icon\" aria-hidden=\"true\"></nx-icon>\n      {{ action.label }}\n    </a>\n  }\n\n  <nx-sidebar-footer>\n    <button\n      nxIconButton=\"tertiary small-medium\"\n      aria-label=\"Open settings\"\n      nxTooltip=\"Open settings\"\n      class=\"nx-margin-0\"\n      type=\"button\"\n    >\n      <nx-icon name=\"setting\" aria-hidden=\"true\"></nx-icon>\n    </button>\n    <button nxSidebarToggle aria-label=\"Toggle sidebar\" type=\"button\"></button>\n  </nx-sidebar-footer>\n</nx-sidebar>\n\n```\n\n"
      },
      {
        "heading": "output events",
        "level": 3,
        "content": "You can use the `widthChange` output event in order to subscribe to changes of the sidebar width.\n\n<div class=\"docs-hide-a1\">\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport {\n  NxFlatTreeControl,\n  NxFlatTreeNode,\n  NxTreeComponent,\n  NxTreeFlatDataSource,\n  NxTreeNode,\n  NxTreeNodeActionItem,\n  NxTreeNodeComponent,\n  NxTreeNodeDefDirective,\n  NxTreeNodePaddingDirective,\n  NxTreeNodeToggleDirective,\n} from '@allianz/ng-aquila/tree';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\ninterface Query {\n  a: string;\n}\n\n/**\n * This interface defines a single node of the trees data structure.\n */\nexport interface MyTreeNode extends NxTreeNode {\n  label: string;\n  icon?: string;\n  query?: Query;\n  children?: MyTreeNode[];\n}\n\n/** Flat node with expandable and level information */\ninterface MyFlatTreeNode extends NxFlatTreeNode {\n  label: string;\n  icon?: string;\n  query?: Query;\n}\n\n/**\n * @title Outputs example\n */\n@Component({\n  selector: 'sidebar-outputs-example',\n  templateUrl: './sidebar-outputs-example.html',\n  styleUrls: ['sidebar-outputs-example.css'],\n  imports: [\n    NxSidebarComponent,\n    NxTreeComponent,\n    NxTreeNodeDefDirective,\n    NxTreeNodeComponent,\n    NxActionComponent,\n    NxTreeNodePaddingDirective,\n    NxTreeNodeActionItem,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxTreeNodeToggleDirective,\n    NxButtonComponent,\n  ],\n})\nexport class SidebarOutputsExampleComponent {\n  navigationData: MyTreeNode[] = [\n    {\n      label: 'Option 1',\n      icon: 'user-o',\n      children: [\n        {\n          label: 'Option 1.1',\n          query: { a: '1.1' },\n        },\n        {\n          label: 'Option 1.2',\n          children: [\n            {\n              label: 'Option 1.2.1',\n              query: { a: '1.2.1' },\n            },\n            {\n              label: 'Option 1.2.2',\n              query: { a: '1.2.2' },\n            },\n            {\n              label: 'Option 1.2.3',\n              children: [\n                {\n                  label: 'Option 1.2.3.1',\n                  children: [\n                    {\n                      label: 'Option 1.2.3.1.1',\n                      query: { a: '1.2.3.1.1' },\n                    },\n                  ],\n                },\n              ],\n            },\n          ],\n        },\n        {\n          label: 'Option 1.3',\n          query: { a: '1.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 2.1',\n          query: { a: '2.1' },\n        },\n        {\n          label: 'Option 2.2',\n          query: { a: '2.2' },\n        },\n        {\n          label: 'Option 2.3',\n          query: { a: '2.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n      icon: 'file',\n      query: { a: '3' },\n    },\n  ];\n\n  _dataSource: NxTreeFlatDataSource<MyTreeNode, MyFlatTreeNode>;\n\n  _treeControl: NxFlatTreeControl<MyFlatTreeNode>;\n\n  logMessage!: string;\n  messages: string[] = [];\n\n  constructor() {\n    this._treeControl = new NxFlatTreeControl();\n    this._dataSource = new NxTreeFlatDataSource(\n      this._treeControl,\n      this.navigationData,\n    );\n  }\n\n  _hasChild = (_: number, node: NxFlatTreeNode) => node.expandable;\n\n  log(value: number) {\n    this.messages.push('New width value: ' + value);\n    this.logMessage = this.messages.join('\\n');\n  }\n}\n\n```\n```html\n<div class=\"top\">\n  <nx-sidebar\n    #sidebar\n    resizeHandleAriaLabel=\"Toggle sidebar width\"\n    resizeable\n    minWidth=\"140\"\n    (widthChange)=\"log($event)\"\n    class=\"my-sidebar\"\n  >\n    <nx-tree [dataSource]=\"_dataSource\" [treeControl]=\"_treeControl\">\n      <nx-tree-node *nxTreeNodeDef=\"let node\">\n        <button\n          nxAction\n          nxTreeNodePadding\n          nxTreeNodeActionItem\n          nxTreeNodePaddingOffset=\"40\"\n          routerLink=\"./\"\n          [queryParams]=\"node.query\"\n          routerLinkActive=\"is-selected\"\n          title=\"{{ node.label }}\"\n          type=\"button\"\n        >\n          @if (node.icon) {\n            <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n          }\n          {{ node.label }}\n        </button>\n      </nx-tree-node>\n      <nx-tree-node *nxTreeNodeDef=\"let node; when: _hasChild\">\n        <button\n          nxAction\n          nxTreeNodeToggle\n          nxTreeNodeActionItem\n          nxTreeNodePadding\n          nxTreeNodePaddingOffset=\"40\"\n          expandable\n          [expanded]=\"_treeControl.isExpanded(node)\"\n          title=\"{{ node.label }}\"\n          type=\"button\"\n        >\n          @if (node.icon) {\n            <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n          }\n          {{ node.label }}\n        </button>\n      </nx-tree-node>\n    </nx-tree>\n  </nx-sidebar>\n  <button nxButton (click)=\"sidebar.toggle()\" type=\"button\">\n    toggle expansion\n  </button>\n</div>\n@if (logMessage) {\n  <pre>{{ logMessage }}</pre>\n}\n\n```\n\n\n</div>\n\n<div class=\"docs-a1\">\n\n\n```ts\nimport {\n  NxActionComponent,\n  NxActionIconDirective,\n} from '@allianz/ng-aquila/action';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxSidebarComponent } from '@allianz/ng-aquila/sidebar';\nimport {\n  NxFlatTreeControl,\n  NxFlatTreeNode,\n  NxTreeComponent,\n  NxTreeFlatDataSource,\n  NxTreeNode,\n  NxTreeNodeActionItem,\n  NxTreeNodeComponent,\n  NxTreeNodeDefDirective,\n  NxTreeNodePaddingDirective,\n  NxTreeNodeToggleDirective,\n} from '@allianz/ng-aquila/tree';\nimport { Component } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\ninterface Query {\n  a: string;\n}\n\n/**\n * This interface defines a single node of the trees data structure.\n */\nexport interface MyTreeNode extends NxTreeNode {\n  label: string;\n  icon?: string;\n  query?: Query;\n  children?: MyTreeNode[];\n}\n\n/** Flat node with expandable and level information */\ninterface MyFlatTreeNode extends NxFlatTreeNode {\n  label: string;\n  icon?: string;\n  query?: Query;\n}\n\n/**\n * @title Outputs example\n */\n@Component({\n  selector: 'sidebar-a1-outputs-example',\n  templateUrl: './sidebar-a1-outputs-example.html',\n  styleUrls: ['sidebar-a1-outputs-example.css'],\n  imports: [\n    NxSidebarComponent,\n    NxTreeComponent,\n    NxTreeNodeDefDirective,\n    NxTreeNodeComponent,\n    NxActionComponent,\n    NxTreeNodePaddingDirective,\n    NxTreeNodeActionItem,\n    RouterLink,\n    RouterLinkActive,\n    NxIconComponent,\n    NxActionIconDirective,\n    NxTreeNodeToggleDirective,\n    NxButtonComponent,\n  ],\n})\nexport class SidebarA1OutputsExampleComponent {\n  navigationData: MyTreeNode[] = [\n    {\n      label: 'Option 1',\n      icon: 'user-o',\n      children: [\n        {\n          label: 'Option 1.1',\n          query: { a: '1.1' },\n        },\n        {\n          label: 'Option 1.2',\n          children: [\n            {\n              label: 'Option 1.2.1',\n              query: { a: '1.2.1' },\n            },\n            {\n              label: 'Option 1.2.2',\n              query: { a: '1.2.2' },\n            },\n            {\n              label: 'Option 1.2.3',\n              children: [\n                {\n                  label: 'Option 1.2.3.1',\n                  children: [\n                    {\n                      label: 'Option 1.2.3.1.1',\n                      query: { a: '1.2.3.1.1' },\n                    },\n                  ],\n                },\n              ],\n            },\n          ],\n        },\n        {\n          label: 'Option 1.3',\n          query: { a: '1.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 2',\n      icon: 'file',\n      children: [\n        {\n          label: 'Option 2.1',\n          query: { a: '2.1' },\n        },\n        {\n          label: 'Option 2.2',\n          query: { a: '2.2' },\n        },\n        {\n          label: 'Option 2.3',\n          query: { a: '2.3' },\n        },\n      ],\n    },\n    {\n      label: 'Option 3',\n      icon: 'file',\n      query: { a: '3' },\n    },\n  ];\n\n  _dataSource: NxTreeFlatDataSource<MyTreeNode, MyFlatTreeNode>;\n\n  _treeControl: NxFlatTreeControl<MyFlatTreeNode>;\n\n  logMessage!: string;\n  messages: string[] = [];\n\n  constructor() {\n    this._treeControl = new NxFlatTreeControl();\n    this._dataSource = new NxTreeFlatDataSource(\n      this._treeControl,\n      this.navigationData,\n    );\n  }\n\n  _hasChild = (_: number, node: NxFlatTreeNode) => node.expandable;\n\n  log(value: number) {\n    this.messages.push('New width value: ' + value);\n    this.logMessage = this.messages.join('\\n');\n  }\n}\n\n```\n```html\n<div class=\"top\">\n  <nx-sidebar\n    #sidebar\n    resizeHandleAriaLabel=\"Toggle sidebar width\"\n    resizeable\n    minWidth=\"140\"\n    (widthChange)=\"log($event)\"\n    class=\"my-sidebar\"\n  >\n    <nx-tree [dataSource]=\"_dataSource\" [treeControl]=\"_treeControl\">\n      <nx-tree-node *nxTreeNodeDef=\"let node\">\n        <button\n          nxAction\n          nxTreeNodePadding\n          nxTreeNodeActionItem\n          routerLink=\"./\"\n          [queryParams]=\"node.query\"\n          routerLinkActive=\"is-selected\"\n          title=\"{{ node.label }}\"\n          type=\"button\"\n        >\n          @if (node.icon) {\n            <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n          }\n          {{ node.label }}\n        </button>\n      </nx-tree-node>\n      <nx-tree-node *nxTreeNodeDef=\"let node; when: _hasChild\">\n        <button\n          nxAction\n          nxTreeNodeToggle\n          nxTreeNodeActionItem\n          nxTreeNodePadding\n          expandable\n          [expanded]=\"_treeControl.isExpanded(node)\"\n          title=\"{{ node.label }}\"\n          type=\"button\"\n        >\n          @if (node.icon) {\n            <nx-icon nxActionIcon [name]=\"node.icon\"></nx-icon>\n          }\n          {{ node.label }}\n        </button>\n      </nx-tree-node>\n    </nx-tree>\n  </nx-sidebar>\n  <button nxButton (click)=\"sidebar.toggle()\" type=\"button\">\n    toggle expansion\n  </button>\n</div>\n@if (logMessage) {\n  <pre>{{ logMessage }}</pre>\n}\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "sidepanel.md",
    "title": "Sidepanel",
    "category": "components",
    "alias": [
      "sidebar",
      "drawer",
      "sheet",
      "side sheet"
    ],
    "sections": [
      {
        "heading": "color variations",
        "level": 3,
        "content": "There are two different color variations available.\n\n<div class=\"docs-public\">\n"
      },
      {
        "heading": "dark version",
        "level": 4,
        "content": "The dark version is the default one:\n\n</div>\n\n<div class=\"docs-private\">\n"
      },
      {
        "heading": "grey sidepanel",
        "level": 4,
        "content": "The default color of the sidepanel is grey:\n\n</div>\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelCloseButtonComponent,\n  NxSidepanelComponent,\n  NxSidepanelContentComponent,\n  NxSidepanelHeaderComponent,\n  NxSidepanelOuterContainerComponent,\n} from '@allianz/ng-aquila/sidepanel';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Default appearance\n */\n@Component({\n  selector: 'sidepanel-dark-example',\n  templateUrl: './sidepanel-dark-example.html',\n  styleUrls: ['sidepanel-dark-example.css'],\n  imports: [\n    NxSidepanelOuterContainerComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelComponent,\n    NxSidepanelHeaderComponent,\n    NxSidepanelCloseButtonComponent,\n    NxSidepanelContentComponent,\n  ],\n})\nexport class SidepanelDarkExampleComponent {\n  opened = true;\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <div class=\"main-content\">\n    <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n      <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n      <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n    </nx-radio-toggle>\n\n    <p>Opened: {{ opened }}</p>\n\n    <p><i>Here is some example content that can be scrolled.</i></p>\n    <p>\n      <i\n        >Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum\n        dolor sit amet, consectetuer adipiscing elit.</i\n      >\n    </p>\n    <p>\n      <i\n        >Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.\n        Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.</i\n      >\n    </p>\n    <p>\n      <i>Vestibulum auctor dapibus neque. Vestibulum auctor dapibus neque.</i>\n    </p>\n    <p>\n      <i\n        >Vivamus vestibulum ntulla nec ante. Vivamus vestibulum ntulla nec\n        ante.</i\n      >\n    </p>\n    <p>\n      <i\n        >Praesent placerat risus quis eros. Praesent placerat risus quis\n        eros.</i\n      >\n    </p>\n    <p>\n      <i>Fusce pellentesque suscipit nibh. Fusce pellentesque suscipit nibh.</i>\n    </p>\n    <p>\n      <i\n        >Integer vitae libero ac risus egestas placerat. Integer vitae libero ac\n        risus egestas placerat.</i\n      >\n    </p>\n  </div>\n\n  <nx-sidepanel class=\"my-sidepanel\" [(opened)]=\"opened\" position=\"static\">\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button nxSidepanelCloseButton aria-label=\"Close Sidepanel\"></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <p class=\"nx-margin-top-0\">\n          Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n        </p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n        <p>Integer vitae libero ac risus egestas placerat.</p>\n        <p>Vestibulum commodo felis quis tortor.</p>\n        <p>Ut aliquam sollicitudin leo.</p>\n        <p>Cras iaculis ultricies nulla.</p>\n        <p>Donec quis dui at dolor tempor interdum.</p>\n        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n\n<div class=\"docs-public\">\n"
      },
      {
        "heading": "light version",
        "level": 4,
        "content": "With `appearance=\"light\"` you get a light version of the sidepanel.\n\n</div>\n\n<div class=\"docs-private\">\n"
      },
      {
        "heading": "white sidepanel",
        "level": 4,
        "content": "With `appearance=\"light\"` you get a white version of the sidepanel.\n\n</div>\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelCloseButtonComponent,\n  NxSidepanelComponent,\n  NxSidepanelContentComponent,\n  NxSidepanelHeaderComponent,\n  NxSidepanelOuterContainerComponent,\n} from '@allianz/ng-aquila/sidepanel';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Light color variant\n */\n@Component({\n  selector: 'sidepanel-light-example',\n  templateUrl: './sidepanel-light-example.html',\n  styleUrls: ['sidepanel-light-example.css'],\n  imports: [\n    NxSidepanelOuterContainerComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelComponent,\n    NxSidepanelHeaderComponent,\n    NxSidepanelCloseButtonComponent,\n    NxSidepanelContentComponent,\n  ],\n})\nexport class SidepanelLightExampleComponent {\n  opened = true;\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <div class=\"main-content\">\n    <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n      <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n      <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n    </nx-radio-toggle>\n\n    <p>Opened: {{ opened }}</p>\n\n    <p><i>Here is some example content that can be scrolled.</i></p>\n    <p>\n      <i\n        >Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum\n        dolor sit amet, consectetuer adipiscing elit.</i\n      >\n    </p>\n    <p>\n      <i\n        >Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.\n        Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.</i\n      >\n    </p>\n    <p>\n      <i>Vestibulum auctor dapibus neque. Vestibulum auctor dapibus neque.</i>\n    </p>\n    <p>\n      <i\n        >Vivamus vestibulum ntulla nec ante. Vivamus vestibulum ntulla nec\n        ante.</i\n      >\n    </p>\n    <p>\n      <i\n        >Praesent placerat risus quis eros. Praesent placerat risus quis\n        eros.</i\n      >\n    </p>\n    <p>\n      <i>Fusce pellentesque suscipit nibh. Fusce pellentesque suscipit nibh.</i>\n    </p>\n    <p>\n      <i\n        >Integer vitae libero ac risus egestas placerat. Integer vitae libero ac\n        risus egestas placerat.</i\n      >\n    </p>\n  </div>\n\n  <nx-sidepanel\n    class=\"my-sidepanel\"\n    [(opened)]=\"opened\"\n    position=\"static\"\n    appearance=\"light\"\n  >\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button nxSidepanelCloseButton aria-label=\"Close Sidepanel\"></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <p class=\"nx-margin-top-0\">\n          Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n        </p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n        <p>Integer vitae libero ac risus egestas placerat.</p>\n        <p>Vestibulum commodo felis quis tortor.</p>\n        <p>Ut aliquam sollicitudin leo.</p>\n        <p>Cras iaculis ultricies nulla.</p>\n        <p>Donec quis dui at dolor tempor interdum.</p>\n        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "floating sidepanel",
        "level": 4,
        "content": "A floating sidepanel does not affect the actual layout. It places itself at the outer right edge of the screen.\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelCloseButtonComponent,\n  NxSidepanelComponent,\n  NxSidepanelContentComponent,\n  NxSidepanelHeaderComponent,\n  NxSidepanelOuterContainerComponent,\n} from '@allianz/ng-aquila/sidepanel';\nimport { NxBreakpoints, NxViewportService } from '@allianz/ng-aquila/utils';\nimport { ChangeDetectorRef, Component, OnDestroy } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * @title Floating sidepanel example\n */\n@Component({\n  selector: 'sidepanel-floating-example',\n  templateUrl: './sidepanel-floating-example.html',\n  styleUrls: ['sidepanel-floating-example.css'],\n  imports: [\n    NxSidepanelOuterContainerComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelComponent,\n    NxSidepanelHeaderComponent,\n    NxSidepanelCloseButtonComponent,\n    NxSidepanelContentComponent,\n  ],\n})\nexport class SidepanelFloatingExampleComponent implements OnDestroy {\n  opened = true;\n  isGreaterThanSmall = true;\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    readonly viewportService: NxViewportService,\n    private readonly _cdr: ChangeDetectorRef,\n  ) {\n    this.viewportService\n      .min(NxBreakpoints.BREAKPOINT_SMALL)\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((isGreaterThanSmall) => {\n        // only do something if the width has changed between small and bigger\n        if (isGreaterThanSmall !== this.isGreaterThanSmall) {\n          this.isGreaterThanSmall = isGreaterThanSmall;\n          if (isGreaterThanSmall && !this.opened) {\n            this.opened = true;\n          } else if (!isGreaterThanSmall && this.opened) {\n            this.opened = false;\n          }\n          this._cdr.detectChanges();\n        }\n      });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n    <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n    <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n  </nx-radio-toggle>\n\n  <p>Opened: {{ opened }}</p>\n\n  <p><i>Here is some example content that can be scrolled.</i></p>\n  <p>\n    <i\n      >Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum\n      dolor sit amet, consectetuer adipiscing elit.</i\n    >\n  </p>\n  <p>\n    <i\n      >Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.\n      Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.</i\n    >\n  </p>\n  <p>\n    <i>Vestibulum auctor dapibus neque. Vestibulum auctor dapibus neque.</i>\n  </p>\n  <p>\n    <i\n      >Vivamus vestibulum ntulla nec ante. Vivamus vestibulum ntulla nec\n      ante.</i\n    >\n  </p>\n  <p>\n    <i>Praesent placerat risus quis eros. Praesent placerat risus quis eros.</i>\n  </p>\n  <p>\n    <i>Fusce pellentesque suscipit nibh. Fusce pellentesque suscipit nibh.</i>\n  </p>\n  <p>\n    <i\n      >Integer vitae libero ac risus egestas placerat. Integer vitae libero ac\n      risus egestas placerat.</i\n    >\n  </p>\n\n  <nx-sidepanel class=\"my-sidepanel\" [(opened)]=\"opened\">\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button nxSidepanelCloseButton aria-label=\"Close Sidepanel\"></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <p class=\"nx-margin-top-0\">\n          Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n        </p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n        <p>Integer vitae libero ac risus egestas placerat.</p>\n        <p>Vestibulum commodo felis quis tortor.</p>\n        <p>Ut aliquam sollicitudin leo.</p>\n        <p>Cras iaculis ultricies nulla.</p>\n        <p>Donec quis dui at dolor tempor interdum.</p>\n        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n        <p>Integer vitae libero ac risus egestas placerat.</p>\n        <p>Vestibulum commodo felis quis tortor.</p>\n        <p>Ut aliquam sollicitudin leo.</p>\n        <p>Cras iaculis ultricies nulla.</p>\n        <p>Donec quis dui at dolor tempor interdum.</p>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n"
      },
      {
        "heading": "static sidepanel",
        "level": 4,
        "content": "With `[static]=\"true\"` the sidepanel can be used as a static element on the page. To integrate this correctly, you can use the surrounding example container shown in the example.\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelCloseButtonComponent,\n  NxSidepanelComponent,\n  NxSidepanelContentComponent,\n  NxSidepanelHeaderComponent,\n  NxSidepanelOuterContainerComponent,\n} from '@allianz/ng-aquila/sidepanel';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Static sidepanel example\n */\n@Component({\n  selector: 'sidepanel-static-example',\n  templateUrl: './sidepanel-static-example.html',\n  styleUrls: ['sidepanel-static-example.css'],\n  imports: [\n    NxSidepanelOuterContainerComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelComponent,\n    NxSidepanelHeaderComponent,\n    NxSidepanelCloseButtonComponent,\n    NxSidepanelContentComponent,\n  ],\n})\nexport class SidepanelStaticExampleComponent {\n  opened = true;\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <div class=\"main-content\">\n    <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n      <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n      <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n    </nx-radio-toggle>\n\n    <p>Opened: {{ opened }}</p>\n\n    <p><i>Here is some example content that can be scrolled.</i></p>\n    <p>\n      <i\n        >Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum\n        dolor sit amet, consectetuer adipiscing elit.</i\n      >\n    </p>\n    <p>\n      <i\n        >Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.\n        Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.</i\n      >\n    </p>\n    <p>\n      <i>Vestibulum auctor dapibus neque. Vestibulum auctor dapibus neque.</i>\n    </p>\n    <p>\n      <i\n        >Vivamus vestibulum ntulla nec ante. Vivamus vestibulum ntulla nec\n        ante.</i\n      >\n    </p>\n    <p>\n      <i\n        >Praesent placerat risus quis eros. Praesent placerat risus quis\n        eros.</i\n      >\n    </p>\n    <p>\n      <i>Fusce pellentesque suscipit nibh. Fusce pellentesque suscipit nibh.</i>\n    </p>\n    <p>\n      <i\n        >Integer vitae libero ac risus egestas placerat. Integer vitae libero ac\n        risus egestas placerat.</i\n      >\n    </p>\n  </div>\n\n  <nx-sidepanel class=\"my-sidepanel\" [(opened)]=\"opened\" position=\"static\">\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button nxSidepanelCloseButton aria-label=\"Close Sidepanel\"></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <p class=\"nx-margin-top-0\">\n          Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n        </p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n        <p>Integer vitae libero ac risus egestas placerat.</p>\n        <p>Vestibulum commodo felis quis tortor.</p>\n        <p>Ut aliquam sollicitudin leo.</p>\n        <p>Cras iaculis ultricies nulla.</p>\n        <p>Donec quis dui at dolor tempor interdum.</p>\n        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n"
      },
      {
        "heading": "including tabs with a fixed tabs-header",
        "level": 3,
        "content": "The sidepanel can contain a lot of different content. This is an example how tabs with a fixed tab-header can be used:\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelCloseButtonComponent,\n  NxSidepanelComponent,\n  NxSidepanelContentComponent,\n  NxSidepanelHeaderComponent,\n  NxSidepanelOuterContainerComponent,\n} from '@allianz/ng-aquila/sidepanel';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Example with tabs\n */\n@Component({\n  selector: 'sidepanel-with-tabs-example',\n  templateUrl: './sidepanel-with-tabs-example.html',\n  styleUrls: ['sidepanel-with-tabs-example.css'],\n  imports: [\n    NxSidepanelOuterContainerComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelComponent,\n    NxSidepanelHeaderComponent,\n    NxSidepanelCloseButtonComponent,\n    NxSidepanelContentComponent,\n    NxTabGroupComponent,\n    NxTabComponent,\n  ],\n})\nexport class SidepanelWithTabsExampleComponent {\n  opened = true;\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <div class=\"main-content\">\n    <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n      <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n      <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n    </nx-radio-toggle>\n\n    <p>Opened: {{ opened }}</p>\n\n    <p><i>Here is some example content that can be scrolled.</i></p>\n    <p>\n      <i\n        >Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum\n        dolor sit amet, consectetuer adipiscing elit.</i\n      >\n    </p>\n    <p>\n      <i\n        >Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.\n        Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.</i\n      >\n    </p>\n    <p>\n      <i>Vestibulum auctor dapibus neque. Vestibulum auctor dapibus neque.</i>\n    </p>\n    <p>\n      <i\n        >Vivamus vestibulum ntulla nec ante. Vivamus vestibulum ntulla nec\n        ante.</i\n      >\n    </p>\n    <p>\n      <i\n        >Praesent placerat risus quis eros. Praesent placerat risus quis\n        eros.</i\n      >\n    </p>\n    <p>\n      <i>Fusce pellentesque suscipit nibh. Fusce pellentesque suscipit nibh.</i>\n    </p>\n    <p>\n      <i\n        >Integer vitae libero ac risus egestas placerat. Integer vitae libero ac\n        risus egestas placerat.</i\n      >\n    </p>\n  </div>\n\n  <nx-sidepanel class=\"my-sidepanel\" [(opened)]=\"opened\" position=\"static\">\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button nxSidepanelCloseButton aria-label=\"Close Sidepanel\"></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <nx-tab-group appearance=\"expert\" mobileAccordion=\"false\">\n          <nx-tab label=\"First tab\">\n            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n            <p>Aliquam tincidunt mauris eu risus.</p>\n            <p>Vestibulum auctor dapibus neque.</p>\n            <p>Nunc dignissim risus id metus.</p>\n            <p>Cras ornare tristique elit.</p>\n            <p>Vivamus vestibulum ntulla nec ante.</p>\n            <p>Praesent placerat risus quis eros.</p>\n            <p>Fusce pellentesque suscipit nibh.</p>\n            <p>Integer vitae libero ac risus egestas placerat.</p>\n            <p>Vestibulum commodo felis quis tortor.</p>\n            <p>Ut aliquam sollicitudin leo.</p>\n            <p>Cras iaculis ultricies nulla.</p>\n            <p>Donec quis dui at dolor tempor interdum.</p>\n            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n            <p>Aliquam tincidunt mauris eu risus.</p>\n            <p>Vestibulum auctor dapibus neque.</p>\n            <p>Nunc dignissim risus id metus.</p>\n            <p>Cras ornare tristique elit.</p>\n          </nx-tab>\n\n          <nx-tab label=\"Second tab\">\n            <p nxCopytext=\"normal\">\n              Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris\n              nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat\n              cupidatat non proident, sunt in culpa qui officia deserunt mo\n            </p>\n          </nx-tab>\n        </nx-tab-group>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n"
      },
      {
        "heading": "focus on open sidepanel",
        "level": 3,
        "content": "\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelComponent,\n  NxSidepanelModule,\n} from '@allianz/ng-aquila/sidepanel';\nimport {\n  AfterViewInit,\n  Component,\n  ElementRef,\n  OnDestroy,\n  ViewChild,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { skip, takeUntil } from 'rxjs/operators';\n\n/**\n * @title Focus sidepanel on open\n */\n@Component({\n  selector: 'sidepanel-focus-example',\n  templateUrl: './sidepanel-focus-example.html',\n  styleUrls: ['sidepanel-focus-example.css'],\n  imports: [\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelModule,\n  ],\n})\nexport class SidepanelFocuskExampleComponent\n  implements OnDestroy, AfterViewInit\n{\n  opened = true;\n  @ViewChild(NxSidepanelComponent) panel!: NxSidepanelComponent;\n  @ViewChild('closeButton', { read: ElementRef }) closeButton!: ElementRef;\n\n  private readonly _destroyed = new Subject<void>();\n\n  ngAfterViewInit(): void {\n    this.panel.openedChange\n      .pipe(skip(1), takeUntil(this._destroyed))\n      .subscribe((opened) => opened && this.closeButton.nativeElement.focus());\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <div class=\"main-content\">\n    <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n      <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n      <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n    </nx-radio-toggle>\n\n    <p>Opened: {{ opened }}</p>\n\n    <p><i>Here is some example content that can be scrolled.</i></p>\n\n    <button (click)=\"this.panel.toggle()\">open sidepanel 1</button>\n    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n    <p>Aliquam tincidunt mauris eu risus.</p>\n    <p>Vestibulum auctor dapibus neque.</p>\n    <p>Nunc dignissim risus id metus.</p>\n    <button (click)=\"this.panel.toggle()\">open sidepanel 2</button>\n    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n    <p>Aliquam tincidunt mauris eu risus.</p>\n    <p>Vestibulum auctor dapibus neque.</p>\n    <p>Nunc dignissim risus id metus.</p>\n  </div>\n\n  <nx-sidepanel class=\"my-sidepanel\" [(opened)]=\"opened\" position=\"static\">\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button\n          nxSidepanelCloseButton\n          #closeButton\n          aria-label=\"Close Sidepanel\"\n        ></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <p class=\"nx-margin-top-0\">\n          Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n        </p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "color scheme",
        "level": 3,
        "content": "Use `colorScheme` input to change sidepanel background color. The available values are `'default'` (standard background) and `'emphasis'`.\n\n\n```ts\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxSidepanelCloseButtonComponent,\n  NxSidepanelComponent,\n  NxSidepanelContentComponent,\n  NxSidepanelHeaderComponent,\n  NxSidepanelOuterContainerComponent,\n} from '@allianz/ng-aquila/sidepanel';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Sidepanel with color scheme example\n */\n@Component({\n  selector: 'sidepanel-with-color-scheme-example',\n  templateUrl: './sidepanel-with-color-scheme-example.html',\n  styleUrls: ['sidepanel-with-color-scheme-example.css'],\n  imports: [\n    NxSidepanelOuterContainerComponent,\n    NxRadioToggleComponent,\n    FormsModule,\n    NxRadioToggleButtonComponent,\n    NxSidepanelComponent,\n    NxSidepanelHeaderComponent,\n    NxSidepanelCloseButtonComponent,\n    NxSidepanelContentComponent,\n  ],\n})\nexport class SidepanelWithColorSchemeExampleComponent {\n  opened = true;\n}\n\n```\n```html\n<nx-sidepanel-outer-container class=\"example-container\">\n  <div class=\"main-content\">\n    <nx-radio-toggle variant=\"small\" [(ngModel)]=\"opened\">\n      <nx-radio-toggle-button [value]=\"true\">Open</nx-radio-toggle-button>\n      <nx-radio-toggle-button [value]=\"false\">Close</nx-radio-toggle-button>\n    </nx-radio-toggle>\n\n    <p>Opened: {{ opened }}</p>\n\n    <p><i>Here is some example content that can be scrolled.</i></p>\n    <p>\n      <i\n        >Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum\n        dolor sit amet, consectetuer adipiscing elit.</i\n      >\n    </p>\n    <p>\n      <i\n        >Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.\n        Aliquam tincidunt mauris eu risus. Aliquam tincidunt mauris eu risus.</i\n      >\n    </p>\n    <p>\n      <i>Vestibulum auctor dapibus neque. Vestibulum auctor dapibus neque.</i>\n    </p>\n    <p>\n      <i\n        >Vivamus vestibulum ntulla nec ante. Vivamus vestibulum ntulla nec\n        ante.</i\n      >\n    </p>\n    <p>\n      <i\n        >Praesent placerat risus quis eros. Praesent placerat risus quis\n        eros.</i\n      >\n    </p>\n    <p>\n      <i>Fusce pellentesque suscipit nibh. Fusce pellentesque suscipit nibh.</i>\n    </p>\n    <p>\n      <i\n        >Integer vitae libero ac risus egestas placerat. Integer vitae libero ac\n        risus egestas placerat.</i\n      >\n    </p>\n  </div>\n\n  <nx-sidepanel\n    class=\"my-sidepanel\"\n    [(opened)]=\"opened\"\n    position=\"static\"\n    colorScheme=\"emphasis\"\n  >\n    <nx-sidepanel-header>\n      <div class=\"my-sidepanel-header\">\n        Sidepanel\n        <button nxSidepanelCloseButton aria-label=\"Close Sidepanel\"></button>\n      </div>\n    </nx-sidepanel-header>\n\n    <nx-sidepanel-content>\n      <div class=\"my-sidepanel-content\">\n        <p class=\"nx-margin-top-0\">\n          Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n        </p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n        <p>Vivamus vestibulum ntulla nec ante.</p>\n        <p>Praesent placerat risus quis eros.</p>\n        <p>Fusce pellentesque suscipit nibh.</p>\n        <p>Integer vitae libero ac risus egestas placerat.</p>\n        <p>Vestibulum commodo felis quis tortor.</p>\n        <p>Ut aliquam sollicitudin leo.</p>\n        <p>Cras iaculis ultricies nulla.</p>\n        <p>Donec quis dui at dolor tempor interdum.</p>\n        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\n        <p>Aliquam tincidunt mauris eu risus.</p>\n        <p>Vestibulum auctor dapibus neque.</p>\n        <p>Nunc dignissim risus id metus.</p>\n        <p>Cras ornare tristique elit.</p>\n      </div>\n    </nx-sidepanel-content>\n  </nx-sidepanel>\n</nx-sidepanel-outer-container>\n\n```\n\n</div>"
      }
    ]
  },
  {
    "name": "signal-button.md",
    "title": "Signal Button",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "context",
        "level": 3,
        "content": "The `context` is set to `positive` per default, but the signal button can also be used with context `critical`, `warning` or `info`.\n\n<div class=\"docs-deprecation-warning\">\n<code>error</code> and <code>success</code> are deprecated aliases of <code>critical</code> and <code>positive</code>. They still work, but use the new names for new code.\n</div>\n\n\n```ts\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport { Component } from '@angular/core';\n/**\n * @title Signal Button example\n */\n@Component({\n  selector: 'signal-button-context-example',\n  templateUrl: './signal-button-context-example.html',\n  styleUrls: ['./signal-button-context-example.css'],\n  imports: [NxSignalButtonComponent],\n})\nexport class SignalButtonContextExampleComponent {}\n\n```\n```html\n<nx-signal-button\n  context=\"positive\"\n  popoverDirection=\"left\"\n  class=\"nx-margin-right-2xs\"\n  aria-label=\"Positive button\"\n  >This is the content of the positive popover</nx-signal-button\n>\n\n<nx-signal-button\n  context=\"warning\"\n  popoverDirection=\"top\"\n  scrollStrategy=\"reposition\"\n  class=\"nx-margin-right-2xs\"\n  aria-label=\"Warning button\"\n  >This is the content of the warning popover</nx-signal-button\n>\n\n<nx-signal-button\n  context=\"critical\"\n  popoverDirection=\"bottom\"\n  class=\"nx-margin-right-2xs\"\n  aria-label=\"Critical button\"\n  >This is the content of the critical popover</nx-signal-button\n>\n\n<nx-signal-button\n  context=\"info\"\n  popoverDirection=\"right\"\n  aria-label=\"Info button\"\n  >This is the content of the info popover</nx-signal-button\n>\n\n```\n\n"
      },
      {
        "heading": "size",
        "level": 3,
        "content": "With `size` the signal button can be rendered as `m` (default) or `s`. Use `s` for dense contexts, for example inside a [formfield](/documentation/formfield/overview) that uses `size=\"s\"`.\n\n\n```ts\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport { Component } from '@angular/core';\n/**\n * @title Signal Button Size example\n */\n@Component({\n  selector: 'signal-button-size-example',\n  templateUrl: './signal-button-size-example.html',\n  styleUrls: ['./signal-button-size-example.css'],\n  imports: [NxSignalButtonComponent],\n})\nexport class SignalButtonSizeExampleComponent {}\n\n```\n```html\n<nx-signal-button\n  context=\"critical\"\n  size=\"s\"\n  popoverDirection=\"bottom\"\n  class=\"nx-margin-right-2xs\"\n  aria-label=\"Critical button, small size\"\n  >This is the content of the critical popover</nx-signal-button\n>\n\n<nx-signal-button\n  context=\"critical\"\n  size=\"m\"\n  popoverDirection=\"bottom\"\n  aria-label=\"Critical button, medium size\"\n  >This is the content of the critical popover</nx-signal-button\n>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "With `disabled` the signal button can be disabled.\n\n\n```ts\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport { Component } from '@angular/core';\n/**\n * @title Signal Button Disabled example\n */\n@Component({\n  selector: 'signal-button-disabled',\n  templateUrl: './signal-button-disabled-example.html',\n  styleUrls: ['./signal-button-disabled-example.css'],\n  imports: [NxSignalButtonComponent],\n})\nexport class SignalButtonDisabledExampleComponent {}\n\n```\n```html\n<nx-signal-button\n  context=\"positive\"\n  popoverDirection=\"left\"\n  class=\"nx-margin-right-2xs\"\n  disabled\n  >This is the content of the positive popover</nx-signal-button\n>\n\n<nx-signal-button\n  context=\"warning\"\n  popoverDirection=\"top\"\n  class=\"nx-margin-right-2xs\"\n  disabled\n  >This is the content of the warning popover</nx-signal-button\n>\n\n<nx-signal-button\n  context=\"critical\"\n  popoverDirection=\"bottom\"\n  class=\"nx-margin-right-2xs\"\n  disabled\n  >This is the content of the critical popover</nx-signal-button\n>\n\n<nx-signal-button context=\"info\" popoverDirection=\"right\" disabled\n  >This is the content of the info popover</nx-signal-button\n>\n\n```\n\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "When using the `nx-signal-button` please set a suitable `aria-label` for it.\n"
      }
    ]
  },
  {
    "name": "slider.md",
    "title": "Slider",
    "category": "components",
    "alias": [
      "number input",
      "range"
    ],
    "sections": [
      {
        "heading": "basic",
        "level": 3,
        "content": "\n```ts\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Example\n */\n@Component({\n  selector: 'slider-basic-example',\n  templateUrl: './slider-basic-example.html',\n  styleUrls: ['./slider-basic-example.css'],\n  imports: [NxSliderComponent],\n})\nexport class SliderBasicExampleComponent {\n  sliderDemoValue = 42;\n  step = 0.1;\n}\n\n```\n```html\n<nx-slider\n  [min]=\"10\"\n  [max]=\"110\"\n  [step]=\"2\"\n  label=\"Slider Test Label\"\n  [(value)]=\"sliderDemoValue\"\n>\n</nx-slider>\nSlider value: {{ sliderDemoValue }}\n\n```\n\n"
      },
      {
        "heading": "label with info icon",
        "level": 3,
        "content": "Instead of the `label` input you can project an `nx-label` into the slider. This lets you\nenrich the label — for example adding an info icon marked with `nxLabelInfo`.\n\nA projected `nx-label` owns its own state: the slider does not forward `disabled` or `inverse`\nto it. Set `disabled` and `negative` on the `nx-label` yourself to keep it in sync with the\nslider.\n\n\n```ts\nimport {\n  NxLabelComponent,\n  NxLabelInfoDirective,\n} from '@allianz/ng-aquila/base';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider with label info icon\n */\n@Component({\n  selector: 'slider-label-info-example',\n  templateUrl: './slider-label-info-example.html',\n  styleUrls: ['./slider-label-info-example.css'],\n  imports: [\n    NxSliderComponent,\n    NxLabelComponent,\n    NxLabelInfoDirective,\n    NxInfoIconComponent,\n  ],\n})\nexport class SliderLabelInfoExampleComponent {\n  sliderDemoValue = 40;\n}\n\n```\n```html\n<nx-slider [min]=\"10\" [max]=\"110\" [step]=\"2\" [(value)]=\"sliderDemoValue\">\n  <nx-label>\n    Monthly contribution\n    <nx-info-icon nxLabelInfo popoverMaxWidth=\"300px\">\n      Your monthly contribution is calculated from your selected coverage and\n      your age at contract start.\n    </nx-info-icon>\n  </nx-label>\n</nx-slider>\n\n<div class=\"nx-margin-top-s\">Slider value: {{ sliderDemoValue }}</div>\n\n```\n\n"
      },
      {
        "heading": "appendix",
        "level": 3,
        "content": "Provide additional information like info icons aligned with the slider line.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxPopoverComponent,\n  NxPopoverTriggerDirective,\n} from '@allianz/ng-aquila/popover';\nimport {\n  NxSliderAppendixDirective,\n  NxSliderComponent,\n} from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Appendix Example\n */\n@Component({\n  selector: 'slider-appendix-example',\n  templateUrl: './slider-appendix-example.html',\n  styleUrls: ['./slider-appendix-example.css'],\n  imports: [\n    NxLabelComponent,\n    NxSliderComponent,\n    NxPlainButtonComponent,\n    NxSliderAppendixDirective,\n    NxPopoverTriggerDirective,\n    NxIconComponent,\n    NxPopoverComponent,\n  ],\n})\nexport class SliderAppendixExampleComponent {\n  popoverMaxWidth = '400px';\n  sliderDemoValue = 40;\n  step = 8;\n  interval = 1;\n  min = 0;\n  max = 100;\n  longTicks: number[] = [16, 32, 48, 64, 80, 96];\n}\n\n```\n```html\n<nx-slider\n  [min]=\"min\"\n  [max]=\"max\"\n  [step]=\"step\"\n  [tickInterval]=\"interval\"\n  [(value)]=\"sliderDemoValue\"\n  [longTicks]=\"longTicks\"\n>\n  <nx-label>Slider with appendix</nx-label>\n  <button\n    nxSliderAppendix\n    nxPlainButton\n    [nxPopoverTriggerFor]=\"sliderAppendixExample\"\n    nxPopoverDirection=\"top\"\n    [nxPopoverMaxWidth]=\"popoverMaxWidth\"\n    aria-label=\"More information\"\n  >\n    <nx-icon name=\"info-circle-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n</nx-slider>\n\n<div class=\"nx-margin-top-s\">Slider value: {{ sliderDemoValue }}</div>\n\n<nx-popover #sliderAppendixExample>\n  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni, nostrum.\n  Obcaecati cupiditate numquam, fugit illo incidunt molestiae ipsam perferendis\n  officia accusamus. Enim magnam recusandae velit accusamus ipsa. Nemo, eius\n  exercitationem?\n</nx-popover>\n\n```\n\n"
      },
      {
        "heading": "default values",
        "level": 3,
        "content": "If no input is provided, the default values of `min=0`, `max=100` and `step=1` apply. This is also the case if the provided inputs are invalid, for example if the minimum value is higher than the maximum value.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Default Example\n */\n@Component({\n  selector: 'slider-default-example',\n  templateUrl: './slider-default-example.html',\n  styleUrls: ['./slider-default-example.css'],\n  imports: [NxLabelComponent, NxSliderComponent],\n})\nexport class SliderDefaultExampleComponent {\n  sliderDemoValue = 42;\n  step = 0.1;\n}\n\n```\n```html\n<nx-slider>\n  <nx-label>Another Slider Test Label</nx-label>\n</nx-slider>\n\n```\n\n"
      },
      {
        "heading": "decimal handling",
        "level": 3,
        "content": "To mitigate floating point precision erros the value of the slider gets rounded to the closest value based on the step size. For integer step sizes the value will be integers. For decimal step sizes the value will be rounded to the number of decimal places. So for `step=0.1` the value will have a maximum of 1 decimal place (1, 1.1 etc.). For `step=0.01` the value will have a maximum of 2 decimal places (1, 1.01, etc.) and so on.\n\nTry to change the step size below to 0.01 and move the slider again to see the effect.\n\n\n```ts\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Slider Decimal Example\n */\n@Component({\n  selector: 'slider-decimal-example',\n  templateUrl: './slider-decimal-example.html',\n  styleUrls: ['./slider-decimal-example.css'],\n  imports: [\n    NxSliderComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n  ],\n})\nexport class SliderDecimalExampleComponent {\n  step = 0.1;\n  floatSliderDemoValue = 1;\n}\n\n```\n```html\n<nx-slider [min]=\"0\" [max]=\"10\" [step]=\"step\" [(value)]=\"floatSliderDemoValue\">\n</nx-slider>\nSlider value: {{ floatSliderDemoValue }}\n<nx-formfield label=\"Stepsize\">\n  <input nxInput [(ngModel)]=\"step\" />\n</nx-formfield>\n\n```\n\n"
      },
      {
        "heading": "label formatters",
        "level": 3,
        "content": "By default, the minimum value is displayed in a label on the bottom left- and the maximum value on the bottom right-hand side of the slider. The current value is displayed above the slider handle. All three of these labels can be completely customized by providing formatter functions as input. By default, the values are rendered unchanged. In the following example, a Euro symbol is attached to the respective value, which is rounded to two decimal places.\n\n\n```ts\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Label Example\n */\n@Component({\n  selector: 'slider-label-example',\n  templateUrl: './slider-label-example.html',\n  styleUrls: ['./slider-label-example.css'],\n  imports: [NxSliderComponent],\n})\nexport class SliderLabelExampleComponent {\n  euroSliderDemoValue = 0;\n  euroValueFormatter = (value: string | number) =>\n    `${Number(value).toFixed(2)} €`;\n  minEuroFormatter = (value: number) => `min. ${value} €`;\n  maxEuroFormatter = (value: number) => `max. ${value} €`;\n}\n\n```\n```html\n<nx-slider\n  [min]=\"0\"\n  [max]=\"10\"\n  [step]=\"0.1\"\n  [labelMinFormatter]=\"minEuroFormatter\"\n  [labelMaxFormatter]=\"maxEuroFormatter\"\n  [valueFormatter]=\"euroValueFormatter\"\n  [(value)]=\"euroSliderDemoValue\"\n>\n</nx-slider>\nSlider value: {{ euroSliderDemoValue }}\n\n```\n\n\nFormatter functions can also be applied to create sliders that do not show numeric values at all. In the following example, textual values are mapped to the numeric slider model.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\nenum FruitPreferenceType {\n  NEVER,\n  RARELY,\n  SOMETIMES,\n  OFTEN,\n  ALWAYS,\n}\n\n/**\n * @title Slider Textual Example\n */\n@Component({\n  selector: 'slider-textual-example',\n  templateUrl: './slider-textual-example.html',\n  styleUrls: ['./slider-textual-example.css'],\n  imports: [\n    NxLabelComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxSliderComponent,\n  ],\n})\nexport class SliderTextualExampleComponent {\n  fruitPreferenceFormatter = (value: FruitPreferenceType) => {\n    switch (value) {\n      case FruitPreferenceType.NEVER:\n        return 'I never prefer apples';\n      case FruitPreferenceType.RARELY:\n        return 'rarely';\n      case FruitPreferenceType.SOMETIMES:\n        return 'sometimes';\n      case FruitPreferenceType.OFTEN:\n        return 'often';\n      case FruitPreferenceType.ALWAYS:\n        return 'I always prefer apples';\n    }\n  };\n  minFruitPreferenceFormatter = () => `never`;\n  maxFruitPreferenceFormatter = () => `always`;\n}\n\n```\n```html\n<div nxLayout=\"grid\">\n  <div nxRow>\n    <div nxCol=\"12\">\n      <nx-slider\n        [min]=\"0\"\n        [max]=\"4\"\n        [labelMinFormatter]=\"minFruitPreferenceFormatter\"\n        [labelMaxFormatter]=\"maxFruitPreferenceFormatter\"\n        [valueFormatter]=\"fruitPreferenceFormatter\"\n      >\n        <nx-label>Do you prefer apples over oranges?</nx-label>\n      </nx-slider>\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabled slider",
        "level": 3,
        "content": "A disabled slider does not react to mouse, touch or keyboard events.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Disabled Example\n */\n@Component({\n  selector: 'slider-disabled-example',\n  templateUrl: './slider-disabled-example.html',\n  styleUrls: ['./slider-disabled-example.css'],\n  imports: [NxLabelComponent, NxSliderComponent],\n})\nexport class SliderDisabledExampleComponent {}\n\n```\n```html\n<nx-slider [disabled]=\"true\" value=\"20\">\n  <nx-label disabled>This slider is disabled</nx-label>\n</nx-slider>\n\n```\n\n"
      },
      {
        "heading": "inverse slider",
        "level": 3,
        "content": "You can change the styling of the slider to inverse via the `inverse` property as shown in the example below. The legacy `negative` property is still supported as a deprecated alias.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse Example\n */\n@Component({\n  selector: 'slider-inverse-example',\n  templateUrl: './slider-inverse-example.html',\n  styleUrls: ['./slider-inverse-example.css'],\n  imports: [NxLabelComponent, NxSliderComponent],\n})\nexport class SliderInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-slider inverse=\"true\" [max]=\"110\" [min]=\"10\" [step]=\"2\" value=\"35\">\n    <nx-label negative>Inverse slider</nx-label>\n  </nx-slider>\n\n  <nx-slider\n    class=\"nx-margin-top-m\"\n    inverse=\"true\"\n    [disabled]=\"true\"\n    [max]=\"110\"\n    [min]=\"10\"\n    [step]=\"2\"\n    value=\"35\"\n  >\n    <nx-label negative disabled>Inverse slider, disabled</nx-label>\n  </nx-slider>\n</div>\n\n```\n\n"
      },
      {
        "heading": "inverted slider",
        "level": 3,
        "content": "In a scenario where the general text direction is set to right-to-left, the slider should be oriented accordingly. For this purpose, the `inverted` flag can be set to `true`. As a consequence, the maximum value is associated with the left-hand side of the slider and the minimum value is found on the right.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Inverted Example\n */\n@Component({\n  selector: 'slider-inverted-example',\n  templateUrl: './slider-inverted-example.html',\n  styleUrls: ['./slider-inverted-example.css'],\n  imports: [NxLabelComponent, NxSliderComponent],\n})\nexport class SliderInvertedExampleComponent {}\n\n```\n```html\n<nx-slider [inverted]=\"true\">\n  <nx-label>This slider is inverted</nx-label>\n</nx-slider>\n\n```\n\n"
      },
      {
        "heading": "template-driven form with ngmodel",
        "level": 3,
        "content": "The slider can be used in template-driven forms.\n\n\n```ts\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Slider Template Driven Form Example\n */\n@Component({\n  selector: 'slider-template-example',\n  templateUrl: './slider-template-example.html',\n  styleUrls: ['./slider-template-example.css'],\n  imports: [FormsModule, NxSliderComponent],\n})\nexport class SliderTemplateExampleComponent {\n  templateModel = 42;\n}\n\n```\n```html\n<form>\n  <nx-slider [(ngModel)]=\"templateModel\" name=\"templateTest\"> </nx-slider>\n  Model Value: {{ templateModel }}\n</form>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 3,
        "content": "The slider can be used in reactive forms.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Slider Reactive Form Example\n */\n@Component({\n  selector: 'slider-reactive-example',\n  templateUrl: './slider-reactive-example.html',\n  styleUrls: ['./slider-reactive-example.css'],\n  imports: [\n    NxErrorComponent,\n    NxButtonComponent,\n    NxLabelComponent,\n    FormsModule,\n    ReactiveFormsModule,\n    NxSliderComponent,\n    JsonPipe,\n  ],\n})\nexport class SliderReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    sliderTestReactive: [10, [Validators.required, Validators.min(40)]],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-slider name=\"reactiveTest\" formControlName=\"sliderTestReactive\">\n    <nx-label>Please choose a number</nx-label>\n    <nx-error>Please choose at least 40.</nx-error>\n  </nx-slider>\n  <p>Form value: {{ testForm.value | json }}</p>\n  <p>Form status: {{ testForm.status | json }}</p>\n  <button nxButton=\"secondary small\" type=\"submit\">Submit</button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "hide thumb label",
        "level": 3,
        "content": "The thumb label on top of the slider can be hidden by changing the `[thumbLabel]` input property to false.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider Thumb Example\n */\n@Component({\n  selector: 'slider-thumb-example',\n  templateUrl: './slider-thumb-example.html',\n  styleUrls: ['./slider-thumb-example.css'],\n  imports: [NxLabelComponent, NxSliderComponent],\n})\nexport class SliderThumbExampleComponent {}\n\n```\n```html\n<nx-slider [thumbLabel]=\"false\">\n  <nx-label>The thumb label is not shown.</nx-label>\n</nx-slider>\n\n```\n\n"
      },
      {
        "heading": "hide min/max labels",
        "level": 3,
        "content": "The Min/Max labels under the slider can be hidden by changing the `[hideLabels]` input property to true.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\n\n/**\n * @title Slider hidden Min/Max Labels Example\n */\n@Component({\n  selector: 'slider-labels-example',\n  templateUrl: './slider-labels-example.html',\n  styleUrls: ['./slider-labels-example.css'],\n  imports: [NxLabelComponent, NxSliderComponent],\n})\nexport class SliderLabelsExampleComponent {}\n\n```\n```html\n<nx-slider [hideLabels]=\"true\">\n  <nx-label>The Min/Max labels are not shown.</nx-label>\n</nx-slider>\n\n```\n\n"
      },
      {
        "heading": "slider with ticks",
        "level": 3,
        "content": "Tick under the slider can be shown with `[tickInterval]` which relative to `[step]`\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Slider Tick Example\n */\n@Component({\n  selector: 'slider-tick-example',\n  templateUrl: './slider-tick-example.html',\n  styleUrls: ['./slider-tick-example.css'],\n  imports: [\n    NxLabelComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxSliderComponent,\n  ],\n})\nexport class SliderTickExampleComponent {\n  sliderDemoValue = 40;\n  step = 8;\n  interval = 1;\n  min = 0;\n  max = 100;\n  longTicksString = '16,32,48,64,80,96';\n  longTicks: number[] = [16, 32, 48, 64, 80, 96];\n\n  toArray() {\n    this.longTicks = this.longTicksString\n      .split(',')\n      .reduce((acc: number[], v) => {\n        const val = parseInt(v, 10);\n        if (!isNaN(val)) {\n          acc.push(val);\n        }\n\n        return acc;\n      }, []);\n  }\n}\n\n```\n```html\nConfigure slider\n<div nxLayout=\"grid\">\n  <div nxRow class=\"nx-margin-top-s\">\n    <div nxCol=\"12,6,6,6,3\">\n      <nx-formfield label=\"Min\">\n        <input nxInput type=\"number\" [(ngModel)]=\"min\" />\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,6,6,6,3\">\n      <nx-formfield label=\"Max\">\n        <input nxInput type=\"number\" [(ngModel)]=\"max\" />\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,6,6,6,3\">\n      <nx-formfield label=\"Step\">\n        <input nxInput type=\"number\" [(ngModel)]=\"step\" />\n      </nx-formfield>\n    </div>\n    <div nxCol=\"12,6,6,6,3\">\n      <nx-formfield label=\"TickInterval\">\n        <input nxInput type=\"number\" [(ngModel)]=\"interval\" />\n      </nx-formfield>\n    </div>\n  </div>\n  <div nxRow class=\"nx-margin-top-s\" rowAlignItems=\"center\">\n    <div nxCol=\"12\">\n      <nx-formfield\n        label=\"Long ticks (Array of value which will render as long tick)\"\n      >\n        <input\n          nxInput\n          type=\"text\"\n          [(ngModel)]=\"longTicksString\"\n          (ngModelChange)=\"toArray()\"\n        />\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n<nx-slider\n  [min]=\"min\"\n  [max]=\"max\"\n  [step]=\"step\"\n  [tickInterval]=\"interval\"\n  [(value)]=\"sliderDemoValue\"\n  [longTicks]=\"longTicks\"\n>\n  <nx-label>Slider with ticks</nx-label>\n</nx-slider>\n\n<div class=\"nx-margin-top-s\">Slider value: {{ sliderDemoValue }}</div>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "small-stage.md",
    "title": "Small stage",
    "category": "components",
    "alias": [
      "page banner",
      "hero",
      "banner"
    ],
    "sections": [
      {
        "heading": "overview",
        "level": 2,
        "content": "Small stage is designed to be used at the top of your page or section to serve as a heading with illustrations.\n\nAlthough, small stage does not restrict the content that can be placed within the content section of the stage, it is recommended to use a heading and topline or subline when needed. The images of small stage fluidly grow or shrink, adapting to the viewport size and available space. On smaller screens only one image is displayed below the content section.\n\nSince small stage is designed to take 100% width of a page or a container, it's recommended to open the examples in a new window to get a better feeling of how it is intended to look and behave.\n\nExamples here feature both short and long headlines side by side in order to better outline the small stage behavior.\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "simple small stage",
        "level": 2,
        "content": "\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxSmallStageComponent } from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small Stage example\n */\n@Component({\n  selector: 'small-stage-example',\n  templateUrl: './small-stage-example.html',\n  styleUrls: ['./small-stage-example.css'],\n  imports: [NxSmallStageComponent, NxHeadlineComponent, NxEyebrowComponent],\n})\nexport class SmallStageExampleComponent {}\n\n```\n```html\n<nx-small-stage>\n  <nx-eyebrow size=\"s\">Eyebrow</nx-eyebrow>\n  <h2 nxHeadline=\"page\">Headline text</h2>\n</nx-small-stage>\n\n```\n\n"
      },
      {
        "heading": "basic layout",
        "level": 2,
        "content": "The layout of the small stage is structured in slots that can be populated using the following marker directives:\n\n-   Main area, contains text or other content\n-   `[nxSmallStageHeader]`: Header section\n-   `[nxSmallStageImageEnd]`: Right image of the small stage, on tablet and smaller replaced by bottom image if present\n-   `[nxSmallStageImageBottom]`: Image below the content area, visible on tablet and smaller\n"
      },
      {
        "heading": "header section",
        "level": 4,
        "content": "In some cases you might need to add some data to the small stage that should not be in the content section, for example, breadcrumbs or links. \n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageHeaderDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small Stage Header example\n */\n@Component({\n  selector: 'small-stage-header-example',\n  templateUrl: './small-stage-header-example.html',\n  styleUrls: ['./small-stage-header-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxSmallStageHeaderDirective,\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxHeadlineComponent,\n    NxEyebrowComponent,\n  ],\n})\nexport class SmallStageHeaderExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n\n  dynamicItems = this.items;\n\n  goToItem(i: number) {\n    this.dynamicItems = this.items.slice(0, i + 1);\n  }\n}\n\n```\n```html\n<nx-small-stage>\n  <nav aria-label=\"Breadcrumb\" nxSmallStageHeader>\n    <ol nxBreadcrumb>\n      @for (item of dynamicItems; track item; let i = $index) {\n        <li>\n          <a nxBreadcrumbItem (click)=\"goToItem(i)\" href=\"javascript:void(0)\">\n            {{ item }}\n          </a>\n        </li>\n      }\n    </ol>\n  </nav>\n\n  <nx-eyebrow size=\"s\">Eyebrow</nx-eyebrow>\n  <h2 nxHeadline=\"page\">Headline text</h2>\n</nx-small-stage>\n\n```\n\n"
      },
      {
        "heading": "images",
        "level": 4,
        "content": "Images can be added to the Small Stage with `[nxSmallStageImageEnd]` and `[nxSmallStageImageBottom]`. If both are present, the `[nxSmallStageImageBottom]` will replace `[nxSmallStageImageEnd]` on tablet screens and smaller. \n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageImageDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small Stage with Image example\n */\n@Component({\n  selector: 'small-stage-image-example',\n  templateUrl: './small-stage-image-example.html',\n  styleUrls: ['./small-stage-image-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxHeadlineComponent,\n    NxEyebrowComponent,\n    NxSmallStageImageDirective,\n  ],\n})\nexport class SmallStageImageExampleComponent {}\n\n```\n```html\n<nx-small-stage>\n  <nx-eyebrow size=\"s\">Small Stage</nx-eyebrow>\n  <h2 nxHeadline=\"page\">With End Image</h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n<nx-small-stage>\n  <nx-eyebrow size=\"s\">Small Stage</nx-eyebrow>\n  <h2 nxHeadline=\"page\">With End Image and Bottom Image</h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n```\n\n\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "max width",
        "level": 2,
        "content": "Use the `maxWidth` input to constrain the small stage content to a maximum width. This is useful when the stage is placed in a full-width container and you want to align the content with the rest of the page layout.\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageHeaderDirective,\n  NxSmallStageImageBottomDirective,\n  NxSmallStageImageDirective,\n  NxSmallStageImageEndDirective,\n  NxSmallStageImageStartDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small stage max width example\n */\n@Component({\n  selector: 'small-stage-max-width-example',\n  templateUrl: './small-stage-max-width-example.html',\n  styleUrls: ['./small-stage-max-width-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxSmallStageHeaderDirective,\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxSmallStageImageDirective,\n    NxSmallStageImageStartDirective,\n    NxSmallStageImageEndDirective,\n    NxSmallStageImageBottomDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class SmallStageMaxWidthExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n\n  dynamicItems = this.items;\n\n  goToItem(i: number) {\n    this.dynamicItems = this.items.slice(0, i + 1);\n  }\n}\n\n```\n```html\n<nx-small-stage maxWidthContent>\n  <nav aria-label=\"Breadcrumb\" nxSmallStageHeader>\n    <ol nxBreadcrumb>\n      @for (item of dynamicItems; track item; let i = $index) {\n        <li>\n          <a nxBreadcrumbItem (click)=\"goToItem(i)\" href=\"javascript:void(0)\">\n            {{ item }}\n          </a>\n        </li>\n      }\n    </ol>\n  </nav>\n  <nx-small-stage-image\n    nxSmallStageImageStart\n    src=\"assets/images/small-stage-image-start.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n\n  <h2 nxHeadline=\"page\" class=\"nx-margin-bottom-s\">Headline text</h2>\n  <p nxCopytext=\"large\">Subline text</p>\n</nx-small-stage>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "styling",
        "level": 2,
        "content": "Attention colors can be used with the [Attention Color directive](./documentation/text/overview)\n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageImageDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { NxAccentColorComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n/**\n * @title Small Stage style example\n */\n@Component({\n  selector: 'small-stage-style-example',\n  templateUrl: './small-stage-style-example.html',\n  styleUrls: ['./small-stage-style-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxHeadlineComponent,\n    NxEyebrowComponent,\n    NxAccentColorComponent,\n    NxSmallStageImageDirective,\n  ],\n})\nexport class SmallStageStyleExampleComponent {}\n\n```\n```html\n<nx-small-stage>\n  <nx-eyebrow size=\"s\">Eyebrow</nx-eyebrow>\n  <h2 nxHeadline=\"page\">\n    Headline with <span [nx-accent-color]=\"'teal'\">Highlight</span>\n  </h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n```\n\n\n</div>\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "color scheme",
        "level": 2,
        "content": "Use `colorScheme` input to change small stage background color. The available values are `'default'` (standard background) and `'emphasis'`.\n\n\n\n```ts\nimport { NxEyebrowComponent } from '@allianz/ng-aquila/eyebrow';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxSmallStageComponent } from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small Stage color scheme example\n */\n@Component({\n  selector: 'small-stage-color-scheme-example',\n  templateUrl: './small-stage-color-scheme-example.html',\n  styleUrls: ['./small-stage-color-scheme-example.css'],\n  imports: [NxSmallStageComponent, NxHeadlineComponent, NxEyebrowComponent],\n})\nexport class SmallStageColorSchemeExampleComponent {}\n\n```\n```html\n<nx-small-stage colorScheme=\"emphasis\">\n  <nx-eyebrow size=\"s\">Eyebrow</nx-eyebrow>\n  <h2 nxHeadline=\"page\">Headline text</h2>\n</nx-small-stage>\n\n```\n\n\n</div>\n\n\n<div class=\"docs-hide-a1\">\n\n\n"
      },
      {
        "heading": "basic layout",
        "level": 4,
        "content": "The layout of the small stage is structured in five slots that can be populated using the following marker directives:\n\n-   Main area, contains text or other content\n-   `[nxSmallStageHeader]`: Header section\n-   `[nxSmallStageImageStart]`: Left image of the small stage, visible on desktop\n-   `[nxSmallStageImageEnd]`: Right image of the small stage, visible on desktop\n-   `[nxSmallStageImageBottom]`: Image below the content area, visible on tablet and smaller\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageHeaderDirective,\n  NxSmallStageImageBottomDirective,\n  NxSmallStageImageDirective,\n  NxSmallStageImageEndDirective,\n  NxSmallStageImageStartDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small stage default example\n */\n@Component({\n  selector: 'small-stage-default-example',\n  templateUrl: './small-stage-default-example.html',\n  styleUrls: ['./small-stage-default-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxSmallStageHeaderDirective,\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxSmallStageImageDirective,\n    NxSmallStageImageStartDirective,\n    NxSmallStageImageEndDirective,\n    NxSmallStageImageBottomDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class SmallStageDefaultExampleComponent {\n  items = ['Home', 'Insurance', 'Health Insurance'];\n\n  dynamicItems = this.items;\n\n  goToItem(i: number) {\n    this.dynamicItems = this.items.slice(0, i + 1);\n  }\n}\n\n```\n```html\n<nx-small-stage>\n  <nav aria-label=\"Breadcrumb\" nxSmallStageHeader>\n    <ol nxBreadcrumb>\n      @for (item of dynamicItems; track item; let i = $index) {\n        <li>\n          <a nxBreadcrumbItem (click)=\"goToItem(i)\" href=\"javascript:void(0)\">\n            {{ item }}\n          </a>\n        </li>\n      }\n    </ol>\n  </nav>\n  <nx-small-stage-image\n    nxSmallStageImageStart\n    src=\"assets/images/small-stage-image-start.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n\n  <h2 nxHeadline=\"page\" class=\"nx-margin-bottom-s\">Headline text</h2>\n  <p nxCopytext=\"large\">Subline text</p>\n</nx-small-stage>\n\n```\n\n\nVarious sizes of headlines and sublines can be used to achieve the desired effect.\n\n\n```ts\nimport {\n  NxBreadcrumbComponent,\n  NxBreadcrumbItemComponent,\n} from '@allianz/ng-aquila/breadcrumb';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageHeaderDirective,\n  NxSmallStageImageBottomDirective,\n  NxSmallStageImageDirective,\n  NxSmallStageImageEndDirective,\n  NxSmallStageImageStartDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small stage content variation example\n */\n@Component({\n  selector: 'small-stage-content-variation-example',\n  templateUrl: './small-stage-content-variation-example.html',\n  styleUrls: ['./small-stage-content-variation-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxLinkComponent,\n    NxSmallStageHeaderDirective,\n    NxIconComponent,\n    NxHeadlineComponent,\n    NxSmallStageImageDirective,\n    NxSmallStageImageStartDirective,\n    NxSmallStageImageEndDirective,\n    NxSmallStageImageBottomDirective,\n    NxBreadcrumbComponent,\n    NxBreadcrumbItemComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class SmallStageContentVariationExampleComponent {}\n\n```\n```html\n<nx-small-stage class=\"nx-margin-bottom-m\">\n  <nx-link nxSmallStageHeader>\n    <a (click)=\"(false)\" href=\"#\">\n      <nx-icon name=\"arrow-left\" aria-hidden=\"true\"></nx-icon>\n      Back to the shop\n    </a>\n  </nx-link>\n\n  <p nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">Topline text</p>\n  <h2 nxHeadline=\"section\">Headline text</h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageStart\n    src=\"assets/images/small-stage-image-start.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n<nx-small-stage class=\"nx-margin-bottom-m\">\n  <nav aria-label=\"Breadcrumb\" nxSmallStageHeader>\n    <ol nxBreadcrumb>\n      <li><a href=\"#\" nxBreadcrumbItem>Home</a></li>\n      <li><a href=\"#\" nxBreadcrumbItem>Insurance</a></li>\n      <li><a href=\"#\" nxBreadcrumbItem>Health Insurance</a></li>\n    </ol>\n  </nav>\n\n  <p nxCopytext=\"large\" class=\"nx-margin-bottom-s\">\n    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n  </p>\n  <h2 nxHeadline=\"section\">\n    Lorem ipsum dolor sit amet, consetetur sadipscing\n    <span class=\"highlighted\">sed diam nonumy eirmod tempor</span>\n  </h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageStart\n    src=\"assets/images/small-stage-image-start.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n<nx-small-stage>\n  <p nxCopytext=\"large\" class=\"nx-margin-bottom-s nx-hidden-s nx-hidden-xs\">\n    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n  </p>\n  <h2 nxHeadline=\"section\">Condensed mobile layout</h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageStart\n    src=\"assets/images/small-stage-image-start.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    class=\"nx-hidden-s nx-hidden-xs\"\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n```\n\n\nLet's take a closer look at various parts of small stage:\n"
      },
      {
        "heading": "images",
        "level": 4,
        "content": "-   `[nxSmallStageImageStart]`\n-   `[nxSmallStageImageEnd]`\n-   `[nxSmallStageImageBottom]`\n\nImages can be placed in all three slots using the `nx-small-stage-image` tag. It accepts an `src` input, where you should pass a url address of the image to be loaded. Notice that start and end images an used around the content on bigger screens, but when viewport gets narrower than 704px only the bottom image is displayed.\n\n"
      },
      {
        "heading": "header",
        "level": 4,
        "content": "-   `[nxSmallStageHeader]`\n\nIn some cases you might need to add some data to the small stage that should not be in the content section, for example, breadcrumbs or links. The header should contain only one line of text so it will not change the height of the stage.\n\n<div class=\"docs-private\">\n"
      },
      {
        "heading": "backgrounds",
        "level": 4,
        "content": "If you need to add some background images to the small stage, you can do it through css on the main small stage container:\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageImageBottomDirective,\n  NxSmallStageImageDirective,\n  NxSmallStageImageEndDirective,\n  NxSmallStageImageStartDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small stage with background example\n */\n@Component({\n  selector: 'small-stage-w-bg-example',\n  templateUrl: './small-stage-w-bg-example.html',\n  styleUrls: ['./small-stage-w-bg-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxHeadlineComponent,\n    NxSmallStageImageDirective,\n    NxSmallStageImageStartDirective,\n    NxSmallStageImageEndDirective,\n    NxSmallStageImageBottomDirective,\n  ],\n})\nexport class SmallStageWithBackgroundExampleComponent {}\n\n```\n```html\n<nx-small-stage class=\"nx-margin-bottom-m stage-bg\">\n  <p nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-s\">Topline text</p>\n  <h2 nxHeadline=\"section\">Headline text</h2>\n\n  <nx-small-stage-image\n    nxSmallStageImageStart\n    src=\"assets/images/small-stage-image-start.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-image-end.svg\"\n    fill\n  ></nx-small-stage-image>\n  <nx-small-stage-image\n    nxSmallStageImageBottom\n    src=\"assets/images/small-stage-image-narrow-screen.svg\"\n    fill\n  ></nx-small-stage-image>\n</nx-small-stage>\n\n```\n\n\n</div>\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert layout",
        "level": 4,
        "content": "The small stage component has some specifics related to expert usage that we will discuss in this section. The small stage can be switched to expert by setting `appearance=\"expert\"`.\n\nExpert small stage is designed to use only one image after the content.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageImageDirective,\n  NxSmallStageImageEndDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small stage expert default example\n */\n@Component({\n  selector: 'small-stage-expert-default-example',\n  templateUrl: './small-stage-expert-default-example.html',\n  styleUrls: ['./small-stage-expert-default-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxSmallStageImageDirective,\n    NxSmallStageImageEndDirective,\n    NxHeadlineComponent,\n  ],\n})\nexport class SmallStageExpertDefaultExampleComponent {}\n\n```\n```html\n<nx-small-stage class=\"nx-margin-bottom-m\" appearance=\"expert\">\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-expert.svg\"\n    fill\n  ></nx-small-stage-image>\n  <h2 nxHeadline=\"subsection-large\" class=\"nx-font-weight-regular\">\n    Personal Information\n  </h2>\n</nx-small-stage>\n\n```\n\n"
      },
      {
        "heading": "expert narrow content ",
        "level": 4,
        "content": "In some cases you might need to use a narrow content container, e.g. when the headline is short and you want a better positioning of the image.\n\nSetting the `narrow` input switches the ratio between content and image containers to 50/50.\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxSmallStageComponent,\n  NxSmallStageImageDirective,\n  NxSmallStageImageEndDirective,\n} from '@allianz/ng-aquila/small-stage';\nimport { Component } from '@angular/core';\n\n/**\n * @title Small stage expert narrow content example\n */\n@Component({\n  selector: 'small-stage-expert-content-narrow-example',\n  templateUrl: './small-stage-expert-content-narrow-example.html',\n  styleUrls: ['./small-stage-expert-content-narrow-example.css'],\n  imports: [\n    NxSmallStageComponent,\n    NxSmallStageImageDirective,\n    NxSmallStageImageEndDirective,\n    NxCopytextComponent,\n    NxHeadlineComponent,\n  ],\n})\nexport class SmallStageExpertContentNarrowExampleComponent {}\n\n```\n```html\n<nx-small-stage class=\"nx-margin-bottom-m\" appearance=\"expert\" narrow>\n  <nx-small-stage-image\n    nxSmallStageImageEnd\n    src=\"assets/images/small-stage-expert.svg\"\n    fill\n  ></nx-small-stage-image>\n  <p nxCopytext class=\"nx-margin-bottom-2xs\">Topline level six</p>\n  <h2 nxHeadline=\"subsection-large\" class=\"nx-font-weight-regular\">\n    Small headline level three using<br />\n    two lines of text\n  </h2>\n</nx-small-stage>\n\n```\n\n\n</div>\n\n</div>\n"
      },
      {
        "heading": "accessibility",
        "level": 2,
        "content": "In order to achieve responsive behavior and fluid scaling of the small stage, we're leveraging the css background image functionality under the hood to display the image. Since background images are intended solely for decorative purposes, they are ignored by assistive technologies and there's no way to provide alternative description as with html `<img>` tag.\n\nPlease, refrain from presenting meaningful content or convey information through the image in the small stage component. Image section should be used for decoration and the content of the page should not depend on the image being loaded or accessible.\n"
      }
    ]
  },
  {
    "name": "spinner.md",
    "title": "Spinner",
    "category": "components",
    "alias": [
      "progress spinner",
      "loading",
      "loader"
    ],
    "sections": [
      {
        "heading": "sizes",
        "level": 3,
        "content": "The spinner is available in three sizes: `s`, `m`, `l`. The legacy size values `small`, `medium` and `large` are still supported but will be removed in a future version, please use the short forms instead.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxSpinnerComponent } from '@allianz/ng-aquila/spinner';\nimport { Component } from '@angular/core';\n\n/**\n * @title Spinner sizes\n */\n@Component({\n  selector: 'spinner-sizes-example',\n  templateUrl: './spinner-sizes-example.html',\n  styleUrls: ['./spinner-sizes-example.css'],\n  imports: [NxSpinnerComponent, NxHeadlineComponent],\n})\nexport class SpinnerSizesExampleComponent {}\n\n```\n```html\n<h4 nxHeadline=\"subsection-xsmall\">A large spinner</h4>\n<nx-spinner\n  size=\"l\"\n  [activationAnnouncement]=\"'Loading large data'\"\n  [completionAnnouncement]=\"'Done loading large data'\"\n></nx-spinner>\n<br />\n<h4 nxHeadline=\"subsection-xsmall\">A medium spinner</h4>\n<nx-spinner size=\"m\"></nx-spinner>\n<br />\n<h4 nxHeadline=\"subsection-xsmall\">A small spinner</h4>\n<nx-spinner></nx-spinner>\n\n```\n\n"
      },
      {
        "heading": "inverse styling",
        "level": 3,
        "content": "You can apply an inverse styling by using the `[inverse]` property. The `[negative]` property is deprecated, please use `[inverse]` instead.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxSpinnerComponent } from '@allianz/ng-aquila/spinner';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse styling example\n */\n@Component({\n  selector: 'spinner-inverse-example',\n  templateUrl: './spinner-inverse-example.html',\n  styleUrls: ['./spinner-inverse-example.css'],\n  imports: [NxSpinnerComponent, NxHeadlineComponent],\n})\nexport class SpinnerInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h4 nxHeadline=\"subsection-xsmall negative\">A large spinner</h4>\n  <nx-spinner size=\"l\" inverse></nx-spinner>\n  <br />\n  <h4 nxHeadline=\"subsection-xsmall negative\">A medium spinner</h4>\n  <nx-spinner size=\"m\" inverse></nx-spinner>\n  <br />\n  <h4 nxHeadline=\"subsection-xsmall negative\">A small spinner</h4>\n  <nx-spinner\n    inverse\n    [activationAnnouncement]=\"'Loading small data'\"\n    [completionAnnouncement]=\"'Done loading small data'\"\n  ></nx-spinner>\n</div>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "The spinner component is a purely visual component and therefore should be accompanied by explanatory text.\n\nLoading content should be announced to users with assistive tools, so they know they have to wait.\nThere are different ways of achieving that like\n\n- `aria-live` containers or\n- spinner live announcements.\n\n*Note: As every application has different requirements, this example can only be an inspiration.*\n\n\n```ts\nimport { NxDataDisplayComponent } from '@allianz/ng-aquila/data-display';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxSpinnerComponent } from '@allianz/ng-aquila/spinner';\nimport { Component } from '@angular/core';\n\n/**\n * @title Announce loading via aria-live area and spinner build in announcement\n */\n@Component({\n  selector: 'spinner-aria-announcement-example',\n  templateUrl: './spinner-aria-announcement-example.html',\n  styleUrls: ['./spinner-aria-announcement-example.css'],\n  imports: [NxSpinnerComponent, NxDataDisplayComponent, NxHeadlineComponent],\n})\nexport class SpinnerAriaAnnouncementExampleComponent {\n  calculationInProgress = false;\n  buildInProgress = false;\n}\n\n```\n```html\n<div class=\"flex\">\n  <div>\n    <h3>Aria live example</h3>\n    <div aria-live=\"assertive\">\n      @if (calculationInProgress) {\n        <div>\n          <h3>Calculating Price. This can take a minute.</h3>\n          <nx-spinner size=\"l\" class=\"margin-auto\"></nx-spinner>\n        </div>\n      }\n      @if (!calculationInProgress) {\n        <div>\n          <h3 nxHeadline=\"subsection-small\">Awesome Product</h3>\n          <nx-data-display label=\"Price\" class=\"margin-top-small\">\n            123,45 €\n          </nx-data-display>\n        </div>\n      }\n    </div>\n    <button\n      nxButton=\"primary small\"\n      class=\"margin-top\"\n      type=\"button\"\n      (click)=\"calculationInProgress = !calculationInProgress\"\n    >\n      toggle calculation\n    </button>\n  </div>\n  <div class=\"margin-auto\">\n    <h3>Spinner build in example</h3>\n    <div>\n      @if (buildInProgress) {\n        <div>\n          <h3>Calculating Price. This can take a minute.</h3>\n          <nx-spinner\n            size=\"l\"\n            class=\"margin-auto\"\n            [activationAnnouncement]=\"'Calculating, please wait.'\"\n            [completionAnnouncement]=\"'Calculation complete.'\"\n          >\n          </nx-spinner>\n        </div>\n      }\n      @if (!buildInProgress) {\n        <div>\n          <h3 nxHeadline=\"subsection-small\">Awesome Product</h3>\n          <nx-data-display label=\"Price\"> 123,45 € </nx-data-display>\n        </div>\n      }\n    </div>\n    <button\n      nxButton=\"primary small\"\n      class=\"margin-top\"\n      type=\"button\"\n      (click)=\"buildInProgress = !buildInProgress\"\n    >\n      toggle calculation\n    </button>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "limitations",
        "level": 4,
        "content": "`aria-label` announcement for elements with `role=\"status\"`\nis [not implemented on all screen readers](https://a11ysupport.io/tech/aria/status_role#support-table-4). Consider\naccompanying text instead of an `aria-label` on the `nx-spinner`\n"
      }
    ]
  },
  {
    "name": "surface.md",
    "title": "Surface",
    "category": "utilities",
    "alias": [],
    "sections": [
      {
        "heading": "overview",
        "level": 2,
        "content": "A container that paints a coloured background needs everything inside it to switch to matching\ncolours. When its content is arbitrary — projected via `ng-content`, or written by an app — it cannot\nreach in and set inputs.\n\n`nxSurface` declares the surface for its descendants and paints the matching background on itself.\nAdopting components adapt on their own. Use `accent-attention` with `nxSurfaceAccentColor` for one of\nthe nine accent hues.\n\n```html\n<div nxSurface=\"attention\" class=\"my-banner\">\n  <h3 nxHeadline size=\"m\">Recommended</h3>\n  <my-widget>…</my-widget>\n</div>\n```\n\n**`accent-attention` is not supported in NDBX** — it has no accent palette of its own, so contrast\nfails. Use `attention` or `emphasis` there.\n\nTo use the ng-aquila components with `nxSurface` omit any inverse/negative or accentColor inputs otherwise the explicitly set inputs will take precedence.\n\n\n```ts\nimport { NxBadgeModule } from '@allianz/ng-aquila/badge';\nimport { NxButtonModule } from '@allianz/ng-aquila/button';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport { NxEyebrowModule } from '@allianz/ng-aquila/eyebrow';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport {\n  NxColComponent,\n  NxLayoutComponent,\n  NxRowComponent,\n} from '@allianz/ng-aquila/grid';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxPriceModule } from '@allianz/ng-aquila/price';\nimport type {\n  NxSurfaceAccentColor,\n  NxSurfaceType,\n} from '@allianz/ng-aquila/surface';\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport { Component, computed, signal } from '@angular/core';\n\n/**\n * @title Surface basic example\n */\n@Component({\n  selector: 'surface-basic-example',\n  templateUrl: './surface-basic-example.html',\n  styleUrls: ['./surface-basic-example.css'],\n  imports: [\n    NxSurface,\n    NxBadgeModule,\n    NxButtonModule,\n    NxPriceModule,\n    NxEyebrowModule,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxFormfieldComponent,\n    NxHeadlineComponent,\n    NxLayoutComponent,\n    NxRowComponent,\n    NxColComponent,\n  ],\n})\nexport class SurfaceBasicExampleComponent {\n  readonly surfaces: NxSurfaceType[] = [\n    'default',\n    'attention',\n    'emphasis',\n    'accent-attention',\n  ];\n\n  readonly accentColors: NxSurfaceAccentColor[] = [\n    'yellow',\n    'orange',\n    'red',\n    'purple',\n    'aqua',\n    'blue',\n    'teal',\n    'green',\n    'gray',\n  ];\n\n  readonly surface = signal<NxSurfaceType>('attention');\n  readonly accentColor = signal<NxSurfaceAccentColor>('blue');\n\n  readonly accentColorDisabled = computed(\n    () => this.surface() !== 'accent-attention',\n  );\n}\n\n```\n```html\n<div nxLayout=\"grid nopadding\" class=\"docs-surface-controls\">\n  <div nxRow>\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"Surface\">\n        <nx-dropdown [(value)]=\"surface\" panelGrow=\"true\">\n          @for (item of surfaces; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n\n    <div nxCol=\"12,6\">\n      <nx-formfield label=\"Accent color\">\n        <nx-dropdown\n          [(value)]=\"accentColor\"\n          [disabled]=\"accentColorDisabled()\"\n          panelGrow\n        >\n          @for (item of accentColors; track item) {\n            <nx-dropdown-item [value]=\"item\">{{ item }}</nx-dropdown-item>\n          }\n        </nx-dropdown>\n      </nx-formfield>\n    </div>\n  </div>\n</div>\n\n<div\n  class=\"docs-surface-preview\"\n  [nxSurface]=\"surface()\"\n  [nxSurfaceAccentColor]=\"accentColor()\"\n>\n  <nx-eyebrow>Recommended</nx-eyebrow>\n  <h3 nxHeadline size=\"l\">Business plan</h3>\n  <nx-price [value]=\"24.9\" size=\"l\" prefix=\"from\" suffix=\"Monthly\" />\n  <div class=\"docs-surface-preview-row\">\n    <button nxButton=\"primary\" type=\"button\">Select</button>\n    <button nxPlainButton type=\"button\">Learn more</button>\n    <nx-badge accentColor=\"brand\">New</nx-badge>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "reacting in your own component",
        "level": 2,
        "content": "Map the surface onto the modes your component already has:\n\n```ts\nimport { injectSurface } from '@allianz/ng-aquila/surface';\n\n@Component({\n  selector: 'my-widget',\n  host: { '[class.is-inverse]': '_inverse()' },\n})\nexport class MyWidgetComponent {\n  private readonly surface = injectSurface();\n\n  protected readonly _inverse = computed(() => this.surface().surface === 'attention');\n}\n```\n\nThe accent color only exists when surface is set to `accent-attention` arm, so narrow before reading it:\n\n```ts\nprotected readonly _accentColor = computed(() => {\n  const resolved = this.surface();\n  return resolved.surface === 'accent-attention' ? resolved.accentColor : undefined;\n});\n```\n\nNarrowing needs a local — two `surface()` calls do not narrow each other. In a template, bind once\nwith `@if (surface(); as resolved)`.\n"
      },
      {
        "heading": "nesting",
        "level": 2,
        "content": "The nearest declared `nxSurface` wins over any surface declared further out. Use `inherit` to pass\nthe enclosing surface through unchanged instead of declaring a new one, and `default` to reset back\nto the neutral surface.\n\n\n```ts\nimport { NxEyebrowModule } from '@allianz/ng-aquila/eyebrow';\nimport { NxPriceModule } from '@allianz/ng-aquila/price';\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport { Component } from '@angular/core';\n\n/**\n * @title Surface nesting example\n */\n@Component({\n  selector: 'surface-nesting-example',\n  templateUrl: './surface-nesting-example.html',\n  styleUrls: ['./surface-nesting-example.css'],\n  imports: [NxSurface, NxEyebrowModule, NxPriceModule],\n})\nexport class SurfaceNestingExampleComponent {}\n\n```\n```html\n<div nxSurface=\"attention\" class=\"docs-nesting-level\">\n  <nx-eyebrow>attention (outer)</nx-eyebrow>\n  <nx-price [value]=\"9.99\" />\n\n  <div nxSurface=\"emphasis\" class=\"docs-nesting-level\">\n    <nx-eyebrow>emphasis — nearest wins over attention</nx-eyebrow>\n    <nx-price [value]=\"9.99\" />\n\n    <div nxSurface=\"inherit\" class=\"docs-nesting-level\">\n      <nx-eyebrow>inherit — passes emphasis through unchanged</nx-eyebrow>\n      <nx-price [value]=\"9.99\" />\n    </div>\n\n    <div nxSurface=\"default\" class=\"docs-nesting-level\">\n      <nx-eyebrow>default — resets back to the neutral surface</nx-eyebrow>\n      <nx-price [value]=\"9.99\" />\n    </div>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "resetting for painted containers",
        "level": 2,
        "content": "A component that paints its own background — a card, a modal panel — sits visually on its own\nsurface, not on whatever surface encloses it. If it does nothing, `injectSurface()` inside it still\nresolves to the enclosing surface, so its content adapts to a background it no longer sits on. Such a\ncomponent must reset propagation for its own content by providing `NX_SURFACE` as `undefined`:\n\n```ts\n@Component({\n  selector: 'my-panel',\n  providers: [{ provide: NX_SURFACE, useValue: undefined }],\n})\nexport class MyPanelComponent {}\n```\n\n`[nxSurfaceBackground]=\"false\"` is **not** that reset — it only suppresses the paint on the `nxSurface`\nhost itself, while descendants keep reacting to the declared surface. Reach for it only when the host\npaints that *same* surface color itself, through other means.\n\n\n```ts\nimport { NxEyebrowModule } from '@allianz/ng-aquila/eyebrow';\nimport { NxPriceModule } from '@allianz/ng-aquila/price';\nimport { NX_SURFACE, NxSurface } from '@allianz/ng-aquila/surface';\nimport { Component } from '@angular/core';\n\n/**\n * Stands in for a component that paints its own background - a card, a modal panel. It resets the\n * surface for its content, so that content does not keep reacting to a background it no longer sits\n * on.\n */\n@Component({\n  selector: 'docs-panel',\n  standalone: true,\n  template: '<ng-content />',\n  styles: `\n    :host {\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n      padding: 24px;\n      background-color: var(--nx-surface-default-background-color);\n      border-radius: 8px;\n    }\n  `,\n  providers: [{ provide: NX_SURFACE, useValue: undefined }],\n})\nclass DocsPanelComponent {}\n\n/**\n * @title Surface reset example\n */\n@Component({\n  selector: 'surface-reset-example',\n  templateUrl: './surface-reset-example.html',\n  styleUrls: ['./surface-reset-example.css'],\n  imports: [NxSurface, NxEyebrowModule, NxPriceModule, DocsPanelComponent],\n})\nexport class SurfaceResetExampleComponent {}\n\n```\n```html\n<div nxSurface=\"attention\" class=\"docs-reset-outer\">\n  <nx-eyebrow>Adapts to the attention surface</nx-eyebrow>\n  <nx-price [value]=\"9.99\" />\n\n  <docs-panel>\n    <nx-eyebrow>Back to the default surface inside the panel</nx-eyebrow>\n    <nx-price [value]=\"9.99\" />\n  </docs-panel>\n</div>\n\n```\n\n\nOverlays (dropdowns, tooltips, modals) are the trickiest case: they render at body level, outside the\nvisual tree, but injection still reaches them through the trigger's injector, so they need this same\nreset. ng-aquila's overlays already do it. Note that today this only resets propagation to `default` —\nan overlay opened from an `attention`/inverse context does not yet get a non-attention surface of its\nown; that is a planned improvement, not something `NX_SURFACE` solves by itself.\n"
      },
      {
        "heading": "styling from css",
        "level": 2,
        "content": "Declared surfaces are also rendered as attributes:\n\n- `data-nx-surface=\"default\" | \"attention\" | \"emphasis\" | \"accent-attention\"` — always present.\n- `data-nx-accent-color=\"purple\" | …` — only on an `accent-attention` surface.\n\n\n```ts\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport { Component } from '@angular/core';\n\n/**\n * @title Surface CSS example\n */\n@Component({\n  selector: 'surface-css-example',\n  templateUrl: './surface-css-example.html',\n  styleUrls: ['./surface-css-example.css'],\n  imports: [NxSurface],\n})\nexport class SurfaceCssExampleComponent {}\n\n```\n```html\n<div nxSurface=\"attention\" class=\"docs-surface-css-container\">\n  <div class=\"docs-legacy-widget\">Plain widget, styled from CSS only</div>\n</div>\n\n```\n\n\nUnlike `injectSurface()`, a descendant selector does not stop at a nested reset:\n`[data-nx-surface='attention'] .x` still matches inside a `nxSurface=\"default\"`.\n"
      }
    ]
  },
  {
    "name": "switcher.md",
    "title": "Switcher",
    "category": "components",
    "alias": [
      "slide toggle",
      "checkbox",
      "switch",
      "toggle"
    ],
    "sections": [
      {
        "heading": "default",
        "level": 3,
        "content": "The default representation of the switcher does not include an icon.\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\n\n/** @title Switcher Default */\n@Component({\n  selector: 'switcher-default-example',\n  templateUrl: './switcher-default-example.html',\n  styleUrls: ['./switcher-default-example.css'],\n  imports: [NxSwitcherComponent],\n})\nexport class SwitcherDefaultExampleComponent {}\n\n```\n```html\n<nx-switcher [checked]=\"true\">Switcher default</nx-switcher>\n\n```\n\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "large",
        "level": 3,
        "content": "This alternative representation of the switcher component is not only larger, but also includes an icon.\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\n\n/** @title Switcher Large */\n@Component({\n  selector: 'switcher-large-example',\n  templateUrl: './switcher-large-example.html',\n  styleUrls: ['./switcher-large-example.css'],\n  imports: [NxSwitcherComponent],\n})\nexport class SwitcherLargeExampleComponent {}\n\n```\n```html\n<nx-switcher [big]=\"true\" [checked]=\"true\">Switcher large</nx-switcher>\n\n```\n\n"
      },
      {
        "heading": "label size",
        "level": 3,
        "content": "The font size of the label can be set to two different sizes with the `[labelSize]` property\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\n\n/** @title Switcher Label Small */\n@Component({\n  selector: 'switcher-label-small-example',\n  templateUrl: './switcher-label-small-example.html',\n  styleUrls: ['./switcher-label-small-example.css'],\n  imports: [NxSwitcherComponent],\n})\nexport class SwitcherLabelSmallExampleComponent {}\n\n```\n```html\n<nx-switcher [checked]=\"true\" labelSize=\"small\"\n  >Switcher label small</nx-switcher\n>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "hint",
        "level": 3,
        "content": "Additional guidance can be shown underneath the label via the `hint` input. The hint is referenced by the control's `aria-describedby` attribute.\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\n\n/** @title Switcher Hint */\n@Component({\n  selector: 'switcher-hint-example',\n  templateUrl: './switcher-hint-example.html',\n  styleUrls: ['./switcher-hint-example.css'],\n  imports: [NxSwitcherComponent],\n})\nexport class SwitcherHintExampleComponent {}\n\n```\n```html\n<nx-switcher [checked]=\"true\" hint=\"This is a hint\">Switch</nx-switcher>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "The inverse version of the switcher can be used on a dark background. Set it via the `inverse` property.\n\n<div class=\"docs-deprecation-warning\">\n  <strong>Deprecated: </strong>\n  The <code>negative</code> property is deprecated. Use <code>inverse</code> instead, <code>negative</code> is still supported as an alias for backwards compatibility.\n</div>\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\n\n/** @title Switcher Inverse */\n@Component({\n  selector: 'switcher-inverse-example',\n  templateUrl: './switcher-inverse-example.html',\n  styleUrls: ['./switcher-inverse-example.css'],\n  imports: [NxSwitcherComponent],\n})\nexport class SwitcherInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-switcher [checked]=\"true\" inverse>Switch</nx-switcher>\n  <nx-switcher [checked]=\"true\" inverse disabled>Switch - Disabled</nx-switcher>\n  <nx-switcher [checked]=\"true\" inverse readonly>Switch - Readonly</nx-switcher>\n</div>\n\n```\n\n"
      },
      {
        "heading": "label on the left",
        "level": 3,
        "content": "In case the label of the switcher should be positioned on the left the property `[labelPosition]` can be used. If the property is set to \"left\" the switcher is aligned on the right and the label on the left side.\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\n\n/** @title Switcher Label Left */\n@Component({\n  selector: 'switcher-label-left-example',\n  templateUrl: './switcher-label-left-example.html',\n  styleUrls: ['./switcher-label-left-example.css'],\n  imports: [NxSwitcherComponent],\n})\nexport class SwitcherLabelLeftExampleComponent {}\n\n```\n```html\n<nx-switcher [checked]=\"true\" labelPosition=\"left\"\n  >Switcher label left</nx-switcher\n>\n\n```\n\n"
      },
      {
        "heading": "template-driven form",
        "level": 3,
        "content": "The switcher component can be used in model driven forms.\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Switcher Template Driven Form */\n@Component({\n  selector: 'switcher-template-driven-example',\n  templateUrl: './switcher-template-driven-example.html',\n  styleUrls: ['./switcher-template-driven-example.css'],\n  imports: [FormsModule, NxSwitcherComponent],\n})\nexport class SwitcherTemplateDrivenExampleComponent {\n  templateModel = true;\n}\n\n```\n```html\n<form>\n  <nx-switcher [(ngModel)]=\"templateModel\" name=\"templateTest\">\n    switcher label\n  </nx-switcher>\n  <p class=\"nx-margin-bottom-0\">Model Value: {{ templateModel }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "reactive form",
        "level": 3,
        "content": "The switcher component can be used in reactive forms.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { JsonPipe } from '@angular/common';\nimport { Component, viewChild } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/** @title Switcher Reactive Form */\n@Component({\n  selector: 'switcher-reactive-form-example',\n  templateUrl: './switcher-reactive-form-example.html',\n  styleUrls: ['./switcher-reactive-form-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxSwitcherComponent,\n    NxButtonComponent,\n    JsonPipe,\n    NxErrorComponent,\n  ],\n})\nexport class SwitcherReactiveFormExampleComponent {\n  readonly switcher = viewChild(NxSwitcherComponent);\n  readonly testForm = this.fb.group({\n    switcherTestReactive: [false, Validators.requiredTrue],\n  });\n\n  isSubmitted = false;\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  onSubmit() {\n    this.isSubmitted = true;\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\" (ngSubmit)=\"onSubmit()\">\n  <nx-switcher\n    name=\"reactiveTest\"\n    formControlName=\"switcherTestReactive\"\n    [labelPosition]=\"'left'\"\n    [hint]=\"'This is a hint'\"\n  >\n    switcher label\n    <nx-error>This is required</nx-error>\n  </nx-switcher>\n\n  <button nxButton=\"primary small\" type=\"submit\" class=\"nx-margin-top-m\">\n    submit\n  </button>\n  <p class=\"nx-margin-bottom-0\">Form value: {{ testForm.value | json }}</p>\n  <p class=\"nx-margin-y-0\">Form status: {{ testForm.status | json }}</p>\n  <p class=\"nx-margin-y-0\">\n    Form is {{ isSubmitted ? '' : ' not ' }} submitted\n  </p>\n  <p class=\"nx-margin-y-0\">Switcher hasError {{ switcher()?.errorState }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/** @title Switcher Disabled Reactive Form */\n@Component({\n  selector: 'switcher-disabled-example',\n  templateUrl: './switcher-disabled-example.html',\n  styleUrls: ['./switcher-disabled-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxSwitcherComponent,\n    NxButtonComponent,\n  ],\n})\nexport class SwitcherDisabledExampleComponent {\n  checked = true;\n  templateModel = false;\n\n  readonly testForm = this.fb.group({\n    switcherDisabledReactive: [false, Validators.requiredTrue],\n  });\n\n  constructor(private readonly fb: FormBuilder) {\n    this.testForm.disable();\n  }\n\n  switchStatusClick() {\n    if (this.testForm.disabled) {\n      this.testForm.enable();\n    } else {\n      this.testForm.disable();\n    }\n  }\n}\n\n```\n```html\n<form novalidate [formGroup]=\"testForm\">\n  <nx-switcher big=\"true\" formControlName=\"switcherDisabledReactive\">\n    big disabled switcher\n  </nx-switcher>\n</form>\n\n<button\n  nxButton=\"primary small\"\n  (click)=\"switchStatusClick()\"\n  type=\"button\"\n  class=\"nx-margin-top-m\"\n>\n  Toggle disabled\n</button>\n\n```\n\n"
      },
      {
        "heading": "expert: readonly",
        "level": 3,
        "content": "<div class=\"docs-deprecation-warning\">\n  <strong>Expert only: </strong>\n  Please note that the readonly option is only for expert/internal applications because of accessibility restrictions. There is currently no solution for readonly states that is accepted for retail applications.\n</div>\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/** @title Switcher readonly */\n@Component({\n  selector: 'switcher-readonly-example',\n  templateUrl: './switcher-readonly-example.html',\n  styleUrl: './switcher-readonly-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [FormsModule, ReactiveFormsModule, NxSwitcherComponent],\n})\nexport class SwitcherReadonlyExampleComponent {}\n\n```\n```html\n<nx-switcher readonly [checked]=\"false\">Switcher readonly </nx-switcher>\n\n<nx-switcher readonly [checked]=\"true\">Switcher readonly checked</nx-switcher>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "If your switcher button doesn't have any accompanying label text,\nit's recommended to use `ariaLabel` or `ariaLabelledBy`\ninputs to provide helpful information for users relying on screen readers or other assistive technologies.\"\n"
      }
    ]
  },
  {
    "name": "table.md",
    "title": "Table",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "native sticky table",
        "level": 3,
        "content": "This example uses a plain native HTML `<table>` without any ng-aquila components. It demonstrates how to build a table with both a sticky header and a sticky first column that scrolls horizontally, using only CSS `position: sticky`. The top-left corner cell stays pinned in both directions.\n\n\n```ts\nimport { Component } from '@angular/core';\n\n/**\n * @title Native table with sticky header and sticky first column\n */\n@Component({\n  selector: 'table-native-sticky-example',\n  templateUrl: './table-native-sticky-example.html',\n  styleUrls: ['./table-native-sticky-example.css'],\n})\nexport class TableNativeStickyExampleComponent {\n  months = [\n    'January',\n    'February',\n    'March',\n    'April',\n    'May',\n    'June',\n    'July',\n    'August',\n    'September',\n    'October',\n    'November',\n    'December',\n  ];\n\n  rows = [\n    {\n      product: 'Car Insurance',\n      values: [12, 18, 9, 24, 31, 22, 14, 27, 19, 33, 28, 21],\n    },\n    {\n      product: 'Health Insurance',\n      values: [42, 38, 51, 47, 39, 55, 61, 44, 49, 52, 58, 63],\n    },\n    {\n      product: 'Liability Insurance',\n      values: [7, 11, 5, 14, 9, 16, 12, 8, 13, 10, 15, 18],\n    },\n    {\n      product: 'Pension Plan',\n      values: [25, 29, 22, 34, 41, 38, 30, 27, 36, 44, 39, 47],\n    },\n    {\n      product: 'Home Insurance',\n      values: [19, 23, 17, 28, 32, 26, 21, 30, 24, 35, 31, 29],\n    },\n    {\n      product: 'Travel Insurance',\n      values: [3, 8, 14, 22, 35, 48, 52, 49, 31, 17, 9, 6],\n    },\n    {\n      product: 'Life Insurance',\n      values: [56, 52, 61, 58, 64, 70, 67, 59, 63, 72, 68, 75],\n    },\n    {\n      product: 'Legal Protection',\n      values: [4, 6, 9, 7, 11, 8, 13, 10, 12, 9, 15, 14],\n    },\n    {\n      product: 'Pet Insurance',\n      values: [2, 5, 7, 6, 9, 12, 14, 11, 8, 7, 5, 4],\n    },\n    {\n      product: 'Accident Insurance',\n      values: [21, 26, 18, 31, 28, 24, 33, 29, 22, 36, 30, 27],\n    },\n  ];\n}\n\n```\n```html\n<div class=\"sticky-table-container\">\n  <table class=\"sticky-table\">\n    <thead>\n      <tr>\n        <th>Product</th>\n        @for (month of months; track month) {\n          <th>{{ month }}</th>\n        }\n      </tr>\n    </thead>\n    <tbody>\n      @for (row of rows; track row.product) {\n        <tr>\n          <th>{{ row.product }}</th>\n          @for (value of row.values; track $index) {\n            <td>{{ value }}</td>\n          }\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Simple Table\n */\n@Component({\n  selector: 'table-example',\n  templateUrl: './table-example.html',\n  styleUrls: ['./table-example.css'],\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n  ],\n})\nexport class TableExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: '6/2/2020',\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable class=\"nx-table--scrollable\">\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Description</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell>Ending At</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "condensed mode",
        "level": 3,
        "content": "By using attribute `condensed`, you can activate the condensed mode of the Table.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Condensed Example\n */\n@Component({\n  selector: 'table-condensed-example',\n  templateUrl: './table-condensed-example.html',\n  styleUrls: ['./table-condensed-example.css'],\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n  ],\n})\nexport class TableCondensedExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: '6/2/2020',\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable condensed>\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Description</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell>Ending At</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "zebra mode",
        "level": 3,
        "content": "Using attribute `zebra`, you can activate the zebra mode of the Table.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Zebra mode example\n */\n@Component({\n  selector: 'table-zebra-example',\n  templateUrl: './table-zebra-example.html',\n  styleUrls: ['./table-zebra-example.css'],\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n  ],\n})\nexport class TableZebraExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: '6/2/2020',\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable zebra>\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Description</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell>Ending At</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "sticky columns",
        "level": 3,
        "content": "Using attribute `sticky`, you can make first or last column (or both of them at the same time) of the table be displayed as \"sticky\", by setting its value to `first`, `last` or `both` respectively.\n\nPlease note that you are only allowed to make the first and/or last column sticky, to prohibit covering too much screen estate by fixed columns. For the same reason, this setting won't have effect on mobile screens.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Sticky Columns Table\n */\n@Component({\n  selector: 'table-sticky-column-example',\n  templateUrl: './table-sticky-column-example.html',\n  styleUrls: ['./table-sticky-column-example.css'],\n  imports: [\n    FormsModule,\n    NxCopytextComponent,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n  ],\n})\nexport class TableStickyColumnExampleComponent {\n  stickyColumn = 'first';\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: '6/2/2020',\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n}\n\n```\n```html\n<form novalidate class=\"nx-margin-bottom-s\">\n  <p nxCopytext class=\"nx-margin-bottom-2xs\">Sticky column:</p>\n\n  <nx-radio-toggle name=\"stickySelect\" [(ngModel)]=\"stickyColumn\">\n    <nx-radio-toggle-button value=\"first\">First</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"last\">Last</nx-radio-toggle-button>\n    <nx-radio-toggle-button value=\"both\">Both</nx-radio-toggle-button>\n  </nx-radio-toggle>\n</form>\n\n<div class=\"table-container\">\n  <table nxTable [sticky]=\"stickyColumn\">\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Description</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell>Ending At</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "sticky header",
        "level": 3,
        "content": "For a simple \"sticky\" header you can use the attribute `mayStick` on the `nxTableRow` element.\n\nFor more complex use-cases, please consider either coming up with a custom CSS/Typescript solution or using a third-party datatable library.\n\n\n```ts\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\n\n/**\n * @title Sticky Header Table\n */\n@Component({\n  selector: 'table-sticky-header-example',\n  templateUrl: './table-sticky-header-example.html',\n  styleUrls: ['./table-sticky-header-example.css'],\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n  ],\n})\nexport class TableStickyHeaderExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      endingAt: '1/3/2020',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      endingAt: '4/2/2020',\n    },\n    {\n      product: 'Liability',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      endingAt: '6/2/2020',\n    },\n    {\n      product: 'Pension',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      endingAt: '7/2/2027',\n    },\n  ];\n}\n\n```\n```html\n<div class=\"table-container\">\n  <table nxTable>\n    <thead>\n      <tr nxTableRow mayStick=\"true\">\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Description</th>\n        <th nxHeaderCell>Ending At</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "column hiding and reorder columns",
        "level": 3,
        "content": "Application developers can implement custom column behavior, such as column hiding and reorder columns.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxGroupComponent,\n} from '@allianz/ng-aquila/checkbox';\nimport { NxContextMenuModule } from '@allianz/ng-aquila/context-menu';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxTableModule } from '@allianz/ng-aquila/table';\nimport { ChangeDetectorRef, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Table Column Options\n */\n@Component({\n  selector: 'table-column-hiding-example',\n  templateUrl: './table-column-hiding-example.html',\n  styleUrls: ['./table-column-hiding-example.css'],\n  imports: [\n    NxButtonComponent,\n    NxCheckboxGroupComponent,\n    FormsModule,\n    NxCheckboxComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n    NxTableModule,\n    NxContextMenuModule,\n  ],\n})\nexport class TableColumnHidingExampleComponent {\n  constructor(private readonly _cdr: ChangeDetectorRef) {}\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: '6/2/2020',\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n\n  options = [\n    { label: 'Product', value: 'product' },\n    { label: 'Contract Number', value: 'contractNumber' },\n    { label: 'Description', value: 'desc' },\n    { label: 'Website', value: 'website' },\n    { label: 'Ending At', value: 'endingAt' },\n    { label: 'Status', value: 'statusText' },\n  ];\n\n  selected = [\n    'product',\n    'website',\n    'endingAt',\n    'statusText',\n    'contractNumber',\n    'desc',\n  ];\n}\n\n```\n```html\n<div style=\"text-align: end\">\n  <button\n    nxButton=\"small\"\n    [nxContextMenuTriggerFor]=\"menu\"\n    style=\"margin-bottom: 24px\"\n  >\n    Column Settings\n  </button>\n</div>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  <nx-context-menu-header> Column Settings </nx-context-menu-header>\n  <nx-checkbox-group [(ngModel)]=\"selected\">\n    <nx-context-menu-item-wrap>\n      @for (option of options; track option) {\n        <div nxContextMenuItem nxContextMenuItemCheckbox disableCloseOnSelect>\n          <nx-checkbox [value]=\"option.value\">{{ option.label }}</nx-checkbox>\n        </div>\n      }\n    </nx-context-menu-item-wrap>\n  </nx-checkbox-group>\n</nx-context-menu>\n\n<div class=\"scroll-container\">\n  <table nxTable class=\"nx-table--scrollable\">\n    <thead>\n      <tr nxTableRow>\n        @for (option of options; track option) {\n          @if (selected.includes(option.value)) {\n            <th nxHeaderCell>{{ option.label }}</th>\n          }\n        }\n        <!-- <th\n          nxHeaderCell\n          *ngIf=\"!selected?.length\"\n          style=\"text-align: center\"\n          >\n          All table columns are currently hidden.\n        </th> -->\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          @if (selected.includes('product')) {\n            <td nxTableCell>{{ item.product }}</td>\n          }\n          @if (selected.includes('contractNumber')) {\n            <td nxTableCell>{{ item.contractNumber }}</td>\n          }\n          @if (selected.includes('desc')) {\n            <td nxTableCell>{{ item.desc }}</td>\n          }\n          @if (selected.includes('website')) {\n            <td nxTableCell>\n              <nx-link\n                ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n              >\n            </td>\n          }\n          @if (selected.includes('endingAt')) {\n            <td nxTableCell>{{ item.endingAt }}</td>\n          }\n          @if (selected.includes('statusText')) {\n            <td nxTableCell>\n              <nx-badge [type]=\"item.status\"> {{ item.statusText }} </nx-badge>\n            </td>\n          }\n        </tr>\n      }\n      @if (!selected.length) {\n        <tr nxTableRow>\n          <td nxTableCell style=\"text-align: center\">\n            All table columns are currently hidden.\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n\n ### Column reorder with drag & drop\n To allow users to reorder columns by drag and drop, you can use [CDKdrag](https://material.angular.io/cdk/drag-drop) from the Angular Material CDK library. To get started, you need to import `DragDropModule` from `@angular/cdk/drag-drop` and add the cdkDrag directive. Here's a simple example:\n\n<div class=\"docs-deprecation-warning\">\n  <strong>Note:</strong> This is a technical demo for column reordering and is not a fully supported component. Additional implementation is required to ensure proper accessibility, UX, and design before using it in production.\n</div>\n \n```ts\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport {\n  CdkDrag,\n  CdkDragDrop,\n  CdkDropList,\n  moveItemInArray,\n} from '@angular/cdk/drag-drop';\nimport {\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  Component,\n} from '@angular/core';\n\n@Component({\n  selector: 'table-column-reorder-example',\n  templateUrl: './table-column-reorder-example.html',\n  styleUrls: ['./table-column-reorder-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    CdkDropList,\n    NxHeaderCellDirective,\n    CdkDrag,\n    NxTableCellComponent,\n  ],\n})\nexport class TableColumnReorderExampleComponent {\n  header = [\n    { title: 'ID', field: 'id' },\n    { title: 'Product', field: 'product' },\n    { title: 'Contract Number', field: 'contractNumber' },\n    { title: 'Ending Date', field: 'endingDate' },\n    { title: 'Status', field: 'status' },\n  ];\n  content: any = [\n    {\n      id: 1,\n      product: 'Product A',\n      contractNumber: 'A123',\n      endingDate: '2024-12-31',\n      status: 'Active',\n    },\n    {\n      id: 2,\n      product: 'Product B',\n      contractNumber: 'B456',\n      endingDate: '2023-06-30',\n      status: 'Expired',\n    },\n    {\n      id: 3,\n      product: 'Product C',\n      contractNumber: 'C789',\n      endingDate: '2022-12-31',\n      status: 'Cancelled',\n    },\n    {\n      id: 4,\n      product: 'Product D',\n      contractNumber: 'D101',\n      endingDate: '2025-06-30',\n      status: 'Active',\n    },\n    {\n      id: 5,\n      product: 'Product E',\n      contractNumber: 'E202',\n      endingDate: '2024-12-31',\n      status: 'Expired',\n    },\n  ];\n\n  drop(event: CdkDragDrop<string[]>) {\n    moveItemInArray(this.header, event.previousIndex, event.currentIndex);\n    this.cdr.markForCheck();\n  }\n\n  constructor(private readonly cdr: ChangeDetectorRef) {}\n}\n\n```\n```html\n<table nxTable class=\"nx-table--reorder\">\n  <thead>\n    <tr\n      nxTableRow\n      cdkDropList\n      (cdkDropListDropped)=\"drop($event)\"\n      cdkDropListOrientation=\"horizontal\"\n    >\n      @for (h of header; track h; let i = $index) {\n        <th nxHeaderCell cdkDrag cdkDragLockAxis=\"x\">{{ h.title }}</th>\n      }\n    </tr>\n  </thead>\n  <tbody>\n    @for (item of content; track item) {\n      <tr nxTableRow>\n        @for (h of header; track h) {\n          <td nxTableCell class=\"col\">{{ item[h.field] }}</td>\n        }\n      </tr>\n    }\n  </tbody>\n</table>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 3,
        "content": "For **localization** please use the provider `NxHeaderSortIntl` which contains some labels for screen reader users. By default the labels are in english.\n\n```ts\n@Injectable()\nexport class MyIntl extends NxSortHeaderIntl {\n    sortAscendingAriaLabel = 'klick, um aufsteigend zu sortieren';\n    sortDescendingAriaLabel = 'klick, um absteigend zu sortieren';\n    sortedAscendingAriaLabel = 'aufsteigend sortiert nach';\n    sortedDescendingAriaLabel = 'absteigend sortiert nach';\n}\n\n@Component({\n    ...\n    providers: [\n        { \n            provide: NxSortHeaderIntl, \n            useClass: MyIntl \n        }\n    ],\n})\n```\n"
      },
      {
        "heading": "sorting header",
        "level": 3,
        "content": "This example shows how you can implement a basic sorting functionality for a table with `nxSort` and `nxSortHeaderCell`. As we don't know how your data looks like, you can implement the actual sorting function by yourself and call the function every time an `(sortChange)` event is outputted.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxHeaderCellDirective,\n  NxSortDirective,\n  NxSortHeaderComponent,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n  SortDirection,\n  SortEvent,\n} from '@allianz/ng-aquila/table';\nimport { DatePipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\ninterface Contract {\n  product: string;\n  contractNumber: number;\n  desc: string;\n  website: string;\n  endingAt: Date;\n  status: string;\n  statusText: string;\n}\n\n/**\n * @title Sorting example\n */\n@Component({\n  selector: 'table-sorting-example',\n  templateUrl: './table-sorting-example.html',\n  styleUrls: ['table-sorting-example.css'],\n  imports: [\n    NxTableComponent,\n    NxSortDirective,\n    NxTableRowComponent,\n    NxSortHeaderComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n    DatePipe,\n  ],\n})\nexport class TableSortingExampleComponent {\n  tableElements: Contract[] = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/3/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: new Date('4/2/2020'),\n      status: 'info',\n      statusText: 'processing',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: new Date('6/2/2020'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: new Date('1/20/2027'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n\n  /**\n   * Sorts the table data by a certain category.\n   */\n  sortTable(sort: SortEvent) {\n    this.tableElements = this.tableElements.sort(\n      (a: { [key: string]: any }, b: { [key: string]: any }) => {\n        if (sort.active in a && sort.active in b) {\n          return this.compare(a[sort.active], b[sort.active], sort.direction);\n        }\n        return 0;\n      },\n    );\n  }\n\n  compare(\n    a: number | string | Date,\n    b: number | string | Date,\n    direction: SortDirection,\n  ) {\n    if (a < b) {\n      return direction === 'asc' ? -1 : 1;\n    } else if (a > b) {\n      return direction === 'asc' ? 1 : -1;\n    }\n    return 0;\n  }\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable nxSort (sortChange)=\"sortTable($event)\">\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell nxSortHeaderCell=\"product\">Product</th>\n        <th nxHeaderCell nxSortHeaderCell=\"contractNumber\">Contract Number</th>\n        <th nxHeaderCell>Description</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell nxSortHeaderCell=\"endingAt\">Ending At</th>\n        <th nxHeaderCell nxSortHeaderCell=\"statusText\">Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt | date: 'dd/MM/yyyy' }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n"
      },
      {
        "heading": "advanced example: combine sorting, filtering and pagination",
        "level": 3,
        "content": "By using the `nx-pagination` and `nx-formfield` you can filter and paginate the table items as shown in the example below:\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxPaginationComponent } from '@allianz/ng-aquila/pagination';\nimport {\n  NxHeaderCellDirective,\n  NxSortDirective,\n  NxSortHeaderComponent,\n  NxSortHeaderIntl,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n  SortDirection,\n  SortEvent,\n} from '@allianz/ng-aquila/table';\nimport { DatePipe, formatDate } from '@angular/common';\nimport { Component, Inject, Injectable, LOCALE_ID } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterLink } from '@angular/router';\n\ninterface Contract {\n  product: string;\n  contractNumber: number;\n  desc: string;\n  website: string;\n  endingAt: Date;\n  status: string;\n  statusText: string;\n}\n\n@Injectable()\nexport class MyIntl extends NxSortHeaderIntl {\n  sortAscendingAriaLabel = 'sort ascending by';\n  sortDescendingAriaLabel = 'sort descending by';\n}\n\n/**\n * @title Advanced example for sorting, filtering and pagination\n */\n@Component({\n  selector: 'table-filter-sort-paginate-example',\n  templateUrl: './table-filter-sort-paginate-example.html',\n  styleUrls: ['./table-filter-sort-paginate-example.css'],\n  providers: [{ provide: NxSortHeaderIntl, useClass: MyIntl }],\n  imports: [\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n    NxCopytextComponent,\n    NxTableComponent,\n    NxSortDirective,\n    NxTableRowComponent,\n    NxSortHeaderComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n    NxPaginationComponent,\n    DatePipe,\n  ],\n})\nexport class TableFilterSortPaginateExampleComponent {\n  tableElements: Contract[] = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/3/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'AA',\n      contractNumber: 334,\n      desc: 'This is a contract',\n      website: 'www.allianz.com',\n      endingAt: new Date('1/3/2019'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'BB',\n      contractNumber: 6643,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/3/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'DD',\n      contractNumber: 1288,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/12/2018'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'DDE',\n      contractNumber: 1456,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/11/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'GG',\n      contractNumber: 122,\n      desc: 'This is a contract',\n      website: 'www.example.org',\n      endingAt: new Date('12/6/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'JK',\n      contractNumber: 1422,\n      desc: 'This is a contract',\n      website: 'www.allianz.com',\n      endingAt: new Date('1/3/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'M',\n      contractNumber: 1225,\n      desc: 'This is a contract',\n      website: 'www.example.org',\n      endingAt: new Date('4/5/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'L',\n      contractNumber: 1313,\n      desc: 'This is a contract',\n      website: 'www.allianz.com',\n      endingAt: new Date('1/4/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Legal',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: new Date('4/2/2020'),\n      status: 'info',\n      statusText: 'processing',\n    },\n    {\n      product: 'CC',\n      contractNumber: 4356,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/9/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.allianz.com',\n      endingAt: new Date('6/2/2017'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.com',\n      endingAt: new Date('1/20/2027'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n\n  currentlyShownPageElements!: Contract[];\n  currentlyAvailableElements: Contract[];\n\n  page = 1;\n  filterValue = '';\n  elementsPerPage = 5;\n\n  /**\n   * Sorts the table data by a certain category.\n   */\n  sortTable(sort: SortEvent) {\n    this.currentlyAvailableElements = this.currentlyAvailableElements.sort(\n      (a: { [key: string]: any }, b: { [key: string]: any }) => {\n        if (sort.active in a && sort.active in b) {\n          return this.compare(a[sort.active], b[sort.active], sort.direction);\n        }\n        return 0;\n      },\n    );\n\n    this.updatePage();\n  }\n\n  compare(\n    a: number | string | Date,\n    b: number | string | Date,\n    direction: SortDirection,\n  ) {\n    return (a < b ? -1 : 1) * (direction === 'asc' ? 1 : -1);\n  }\n\n  constructor(@Inject(LOCALE_ID) private readonly localeId: string) {\n    this.currentlyAvailableElements = this.tableElements;\n    // init first page on page load\n    this.updatePage();\n  }\n\n  onFilterValueChange(value: string) {\n    this.page = 1;\n    this.filterData(value);\n  }\n\n  filterData(filterValue: string) {\n    const filterRegexp = new RegExp(filterValue, 'i');\n    const dateFormat = 'dd/MM/yyyy';\n\n    this.currentlyAvailableElements = this.tableElements.filter(\n      (tableRowObject) =>\n        Object.values(tableRowObject).some((propertyValue) =>\n          filterRegexp.test(\n            propertyValue instanceof Date\n              ? formatDate(propertyValue, dateFormat, this.localeId)\n              : String(propertyValue),\n          ),\n        ),\n    );\n\n    this.updatePage();\n  }\n\n  updatePage() {\n    const indexMin = (this.page - 1) * this.elementsPerPage;\n    const indexMax = indexMin + this.elementsPerPage;\n    this.currentlyShownPageElements = this.currentlyAvailableElements.filter(\n      (x, index) => index >= indexMin && index < indexMax,\n    );\n  }\n\n  prevPage() {\n    this.page--;\n    this.updatePage();\n  }\n\n  nextPage() {\n    this.page++;\n    this.updatePage();\n  }\n\n  goToPage(n: number) {\n    this.page = n;\n    this.updatePage();\n  }\n}\n\n```\n```html\n<div class=\"wrapper\">\n  <nx-formfield label=\"Type in here to filter (e.g. 2019, Auto)\">\n    <input\n      nxInput\n      [ngModel]=\"filterValue\"\n      (ngModelChange)=\"onFilterValueChange($event)\"\n    />\n  </nx-formfield>\n\n  <p nxCopytext class=\"nx-margin-bottom-2xs\">\n    Matching items: {{ currentlyAvailableElements.length }}\n  </p>\n  <div class=\"scroll-container\">\n    <table nxTable nxSort (sortChange)=\"sortTable($event)\">\n      <thead>\n        <tr nxTableRow>\n          <th nxHeaderCell nxSortHeaderCell=\"product\">Product</th>\n          <th nxHeaderCell nxSortHeaderCell=\"contractNumber\">\n            Contract Number\n          </th>\n          <th nxHeaderCell>Description</th>\n          <th nxHeaderCell>Website</th>\n          <th nxHeaderCell nxSortHeaderCell=\"endingAt\">Ending At</th>\n          <th nxHeaderCell nxSortHeaderCell=\"statusText\">Status</th>\n        </tr>\n      </thead>\n      <tbody>\n        @for (item of currentlyShownPageElements; track item) {\n          <tr nxTableRow>\n            <td nxTableCell>{{ item.product }}</td>\n            <td nxTableCell>{{ item.contractNumber }}</td>\n            <td nxTableCell>{{ item.desc }}</td>\n            <td nxTableCell>\n              <nx-link\n                ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n              >\n            </td>\n            <td nxTableCell>{{ item.endingAt | date: 'dd/MM/yyyy' }}</td>\n            <td nxTableCell>\n              <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n            </td>\n          </tr>\n        }\n      </tbody>\n    </table>\n  </div>\n\n  <nx-pagination\n    class=\"pagination\"\n    [count]=\"currentlyAvailableElements.length\"\n    [page]=\"page\"\n    type=\"advanced\"\n    [perPage]=\"elementsPerPage\"\n    (goPrev)=\"prevPage()\"\n    (goNext)=\"nextPage()\"\n    (goPage)=\"goToPage($event)\"\n  >\n  </nx-pagination>\n</div>\n\n```\n\n"
      },
      {
        "heading": "selecting rows",
        "level": 3,
        "content": "The following example shows how you can implement a selection functionality with the `SelectionModel` of Angular CDK. To show the selected values, you can toggle 'Debug selected value' under the table. To be able to interact and select a table row, the `selectable` option needs to be set on the `NxTableRow`.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxRadioComponent } from '@allianz/ng-aquila/radio-button';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { DatePipe, JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\ninterface Contract {\n  product: string;\n  contractNumber: number;\n  website: string;\n  endingAt: Date;\n  status: string;\n  statusText: string;\n}\n\n/**\n * @title Single Row Selection\n */\n@Component({\n  selector: 'table-single-select-example',\n  templateUrl: './table-single-select-example.html',\n  styleUrls: ['./table-single-select-example.css'],\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxTableCellComponent,\n    NxRadioComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n    NxSwitcherComponent,\n    JsonPipe,\n    DatePipe,\n  ],\n})\nexport class TableSingleSelectExampleComponent {\n  showSelected = false;\n\n  tableElements: Contract[] = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      website: 'www.example.com',\n      endingAt: new Date('1/3/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      website: 'www.allianz.com',\n      endingAt: new Date('4/2/2020'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      website: 'www.example.com',\n      endingAt: new Date('6/2/2020'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      website: 'www.example.org',\n      endingAt: new Date('1/2/2027'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n\n  selection = new SelectionModel<Contract>(false, []);\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable>\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell aria-label=\"Row selection\"></th>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell>Ending At</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr\n          nxTableRow\n          [selected]=\"selection.isSelected(item)\"\n          (select)=\"selection.select(item)\"\n          selectable\n        >\n          <td nxTableCell class=\"nx-table-cell--checkbox\">\n            <nx-radio\n              (valueChange)=\"selection.select(item)\"\n              [ariaLabel]=\"'Select ' + item.product + ' row'\"\n              [checked]=\"selection.isSelected(item)\"\n            ></nx-radio>\n          </td>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt | date: 'dd/MM/yyyy' }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n<div class=\"nx-margin-top-m\">\n  <nx-switcher [(checked)]=\"showSelected\">Debug selected value</nx-switcher>\n\n  @if (showSelected) {\n    <p>Selected value:</p>\n    <code>{{ selection.selected[0] | json }}</code>\n  }\n</div>\n\n```\n\n\nMulti selection can be implemented by switching on the multi select flag on the `SelectionModel`.\n\nNote that you can separate the data selection logic from row highlighting, for example if click on the row has to trigger a popup, sidebar expansion, etc.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxCheckboxComponent } from '@allianz/ng-aquila/checkbox';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxFormfieldModule } from '@allianz/ng-aquila/formfield';\nimport { NxInputModule } from '@allianz/ng-aquila/input';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport { NxPaginationComponent } from '@allianz/ng-aquila/pagination';\nimport {\n  NxRadioToggleButtonComponent,\n  NxRadioToggleComponent,\n} from '@allianz/ng-aquila/radio-toggle';\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { DatePipe, formatDate, JsonPipe } from '@angular/common';\nimport { Component, Inject, LOCALE_ID, OnDestroy } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterLink } from '@angular/router';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\ninterface Contract {\n  product: string;\n  contractNumber: number;\n  website: string;\n  endingAt: Date;\n  status: string;\n  statusText: string;\n}\n\n/**\n * @title Multi Row Selection\n */\n@Component({\n  selector: 'table-selecting-example',\n  templateUrl: './table-selecting-example.html',\n  styleUrls: ['./table-selecting-example.css'],\n  imports: [\n    FormsModule,\n    NxCopytextComponent,\n    NxFormfieldModule,\n    NxInputModule,\n    NxRadioToggleComponent,\n    NxRadioToggleButtonComponent,\n    NxLinkComponent,\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxCheckboxComponent,\n    NxTableCellComponent,\n    RouterLink,\n    NxBadgeComponent,\n    NxPaginationComponent,\n    NxSwitcherComponent,\n    JsonPipe,\n    DatePipe,\n  ],\n})\nexport class TableSelectingExampleComponent implements OnDestroy {\n  private readonly _destroyed = new Subject<void>();\n\n  showSelected = false;\n\n  activateSelected = true;\n  activeRow?: Contract;\n  filterValue = '';\n\n  page = 1;\n  elementsPerPage = 5;\n  numSelectedPage = 0;\n  currentlyShownPageElements!: Contract[];\n  currentlyAvailableElements!: Contract[];\n\n  constructor(@Inject(LOCALE_ID) private readonly localeId: string) {\n    this.currentlyAvailableElements = this.tableElements;\n    this.selection.changed\n      .pipe(takeUntil(this._destroyed))\n      .subscribe((r) => this.updateNumPageSelected());\n    // init first page on page load\n    this.updatePage();\n  }\n\n  tableElements: Contract[] = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      website: 'www.example.com',\n      endingAt: new Date('1/3/2020'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      website: 'www.allianz.com',\n      endingAt: new Date('4/2/2020'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Auto',\n      contractNumber: 353455,\n      website: 'www.example.com',\n      endingAt: new Date('6/2/2020'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      website: 'www.example.org',\n      endingAt: new Date('1/2/2027'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n    {\n      product: 'Travel',\n      contractNumber: 76344,\n      website: 'www.allianz.com',\n      endingAt: new Date('8/3/2026'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Renters',\n      contractNumber: 32344,\n      website: 'www.example.org',\n      endingAt: new Date('1/2/2027'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Pet',\n      contractNumber: 87444,\n      website: 'www.allianz.com',\n      endingAt: new Date('1/2/2027'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n    {\n      product: 'Business',\n      contractNumber: 91102,\n      website: 'www.example.org',\n      endingAt: new Date('1/2/2027'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Motorcycle',\n      contractNumber: 58172,\n      website: 'www.allianz.com',\n      endingAt: new Date('1/2/2027'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n    {\n      product: 'Dental',\n      contractNumber: 11298,\n      website: 'www.example.org',\n      endingAt: new Date('2/3/2026'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Vision',\n      contractNumber: 76122,\n      website: 'www.allianz.com',\n      endingAt: new Date('11/12/2029'),\n      status: 'critical',\n      statusText: 'rejected',\n    },\n    {\n      product: 'Disability',\n      contractNumber: 12411,\n      website: 'www.example.org',\n      endingAt: new Date('1/12/2028'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Critical Illness',\n      contractNumber: 36711,\n      website: 'www.allianz.com',\n      endingAt: new Date('1/3/2028'),\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Earthquake',\n      contractNumber: 47591,\n      website: 'www.example.org',\n      endingAt: new Date('12/2/2025'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Flood',\n      contractNumber: 41874,\n      website: 'www.example.org',\n      endingAt: new Date('12/2/2025'),\n      status: 'positive',\n      statusText: 'accepted',\n    },\n  ];\n\n  selection = new SelectionModel<Contract>(true, []);\n\n  /** Whether the number of selected elements matches the total number of rows. */\n  isAllSelected() {\n    const numSelected = this.selection.selected.length;\n    const numRows = this.tableElements.length;\n    return numSelected === numRows;\n  }\n\n  /** Selects all rows if they are not all selected; otherwise clear selection of the page. */\n  toggleAllPage() {\n    const isAllPageSelected = this.isAllPageSelected();\n    this.currentlyShownPageElements.forEach((row) => {\n      if (isAllPageSelected) {\n        this.selection.deselect(row);\n      } else {\n        this.selection.select(row);\n      }\n    });\n  }\n\n  isAllPageSelected() {\n    return (\n      this.numSelectedPage === this.elementsPerPage ||\n      this.currentlyAvailableElements.length === this.numSelectedPage\n    );\n  }\n\n  somePageSelected() {\n    return (\n      this.numSelectedPage > 0 &&\n      this.numSelectedPage < this.elementsPerPage &&\n      this.numSelectedPage < this.currentlyAvailableElements.length\n    );\n  }\n\n  updateNumPageSelected() {\n    this.numSelectedPage = this.currentlyShownPageElements.filter((row) =>\n      this.selection.isSelected(row),\n    )?.length;\n  }\n\n  selectAll() {\n    this.tableElements.forEach((row) => this.selection.select(row));\n  }\n\n  prevPage() {\n    this.page--;\n    this.updatePage();\n  }\n\n  nextPage() {\n    this.page++;\n    this.updatePage();\n  }\n  goToPage(n: number) {\n    this.page = n;\n    this.updatePage();\n  }\n\n  onFilterValueChange(value: string) {\n    this.page = 1;\n    this.filterData(value);\n  }\n\n  filterData(filterValue: string) {\n    const filterRegexp = new RegExp(filterValue, 'i');\n    const dateFormat = 'dd/MM/yyyy';\n\n    this.currentlyAvailableElements = this.tableElements.filter(\n      (tableRowObject) =>\n        Object.values(tableRowObject).some((propertyValue) =>\n          filterRegexp.test(\n            propertyValue instanceof Date\n              ? formatDate(propertyValue, dateFormat, this.localeId)\n              : String(propertyValue),\n          ),\n        ),\n    );\n\n    this.updatePage();\n  }\n\n  updatePage() {\n    const indexMin = (this.page - 1) * this.elementsPerPage;\n    const indexMax = indexMin + this.elementsPerPage;\n    this.currentlyShownPageElements = this.currentlyAvailableElements.filter(\n      (x, index) => index >= indexMin && index < indexMax,\n    );\n    this.updateNumPageSelected();\n  }\n\n  /** Marks a row as active without changing this.selection */\n  activateRow(row: Contract) {\n    this.activeRow = row;\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n```\n```html\n<nx-formfield label=\"Type in here to filter\">\n  <input\n    nxInput\n    [ngModel]=\"filterValue\"\n    (ngModelChange)=\"onFilterValueChange($event)\"\n  />\n</nx-formfield>\n\n<form novalidate class=\"nx-margin-bottom-s\">\n  <p nxCopytext class=\"nx-margin-bottom-2xs\">\n    Selection highlights row at the same time:\n  </p>\n\n  <nx-radio-toggle name=\"activateRowSelect\" [(ngModel)]=\"activateSelected\">\n    <nx-radio-toggle-button [value]=\"true\">Yes</nx-radio-toggle-button>\n    <nx-radio-toggle-button [value]=\"false\">No</nx-radio-toggle-button>\n  </nx-radio-toggle>\n</form>\n\n<div class=\"scroll-container\">\n  @if (selection.selected.length) {\n    <div>\n      No. of selected product:\n      <strong>{{ selection.selected.length }}</strong>\n      @if (!isAllSelected()) {\n        <nx-link (click)=\"selectAll()\" class=\"nx-margin-left-s\"\n          >Select all {{ tableElements.length }} products.</nx-link\n        >\n      }\n      @if (isAllSelected()) {\n        <nx-link (click)=\"selection.clear()\" class=\"nx-margin-left-s\">\n          Clear selection</nx-link\n        >\n      }\n    </div>\n  }\n  <table nxTable>\n    <thead>\n      <tr nxTableRow>\n        <th\n          nxHeaderCell\n          class=\"nx-table-cell--checkbox\"\n          aria-label=\"Row selection\"\n        >\n          <nx-checkbox\n            (checkedChange)=\"toggleAllPage()\"\n            ariaLabel=\"Toggle selection of all rows\"\n            [checked]=\"isAllPageSelected()\"\n            [indeterminate]=\"somePageSelected()\"\n          >\n          </nx-checkbox>\n        </th>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract Number</th>\n        <th nxHeaderCell>Website</th>\n        <th nxHeaderCell>Ending At</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of currentlyShownPageElements; track item) {\n        <tr\n          nxTableRow\n          [selected]=\"\n            activateSelected ? selection.isSelected(item) : item === activeRow\n          \"\n          selectable\n          (select)=\"\n            activateSelected ? selection.toggle(item) : activateRow(item)\n          \"\n        >\n          <td nxTableCell class=\"nx-table-cell--checkbox\">\n            <nx-checkbox\n              (checkedChange)=\"selection.toggle(item)\"\n              [ariaLabel]=\"'Toggle row ' + item.product + ' selection'\"\n              [checked]=\"selection.isSelected(item)\"\n            ></nx-checkbox>\n          </td>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt | date: 'dd/MM/yyyy' }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n<nx-pagination\n  class=\"pagination\"\n  [count]=\"currentlyAvailableElements.length\"\n  [page]=\"page\"\n  type=\"advanced\"\n  [perPage]=\"elementsPerPage\"\n  (goPrev)=\"prevPage()\"\n  (goNext)=\"nextPage()\"\n  (goPage)=\"goToPage($event)\"\n>\n</nx-pagination>\n\n<div class=\"nx-margin-top-m\">\n  <nx-switcher [(checked)]=\"showSelected\">Debug selected value</nx-switcher>\n\n  @if (showSelected) {\n    <p>Selected value:</p>\n    <code>{{ selection.selected | json }}</code>\n  }\n</div>\n\n```\n\n\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: expandable mode",
        "level": 3,
        "content": "Please note that **this is an Expert styling option**. This means that the expandable feature is only intended for internal applications and not for applications that are client facing.\n\nTable rows can be expanded by adding `[nxExpandableTableRow]` and `[nxExpandableTableCell]` to the table. For convenience the `<nx-toggle-button>` component can be used to expand and close the rows. The rows can also be toggled directly by calling their `toggle`, `expand` or `close` methods. The table also supports expanding all rows at the same time. The `[nxExpandableTable]` and `ng-container[nxExpandableContainer]` directive handles the expandion of all rows by conbining it with the `<nx-toggle-button>` as in this example.\n\n**Due to accessibility concerns** we recommend only placing table content inside `nxExpandableTableRow`. If you need to insert complex content into an expandable row or have table-in-table treeview, consider using third-party Datatable solutions.\n\n**Note:** For accessibility, ensure that columns in the Table contain consistent content. Expandable rows should maintain the same content structure as defined by the column headers.\n\nHowever, zebra mode using the attribute `zebra` is not available for tables with expandable rows for stylistic reasons.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxExpandableTableCellComponent,\n  NxExpandableTableDirective,\n  NxExpandableTableRowComponent,\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n  NxToggleButtonComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Expandable Rows\n */\n@Component({\n  selector: 'table-expandable-example',\n  templateUrl: './table-expandable-example.html',\n  styleUrls: ['./table-expandable-example.css'],\n  imports: [\n    NxTableComponent,\n    NxExpandableTableDirective,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxToggleButtonComponent,\n    NxTableCellComponent,\n    NxBadgeComponent,\n    NxExpandableTableRowComponent,\n    NxExpandableTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n  ],\n})\nexport class TableExpandableExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n      sub: ['BMW', 'Audi'],\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n      sub: ['Critical illness', 'Personal accident'],\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n      sub: ['Insurance', 'Mortgage'],\n    },\n  ];\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable nxExpandableTable #expandableTable=\"nxExpandableTable\">\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell class=\"nx-table-cell--toggle\" aria-label=\"Expand row\">\n          <nx-toggle-button\n            [target]=\"expandableTable\"\n            ariaLabel=\"Toggle all rows\"\n          ></nx-toggle-button>\n        </th>\n        <th nxHeaderCell>Product</th>\n        <th nxHeaderCell>Contract number</th>\n        <th nxHeaderCell>Ending date</th>\n        <th nxHeaderCell>Status</th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell class=\"nx-table-cell--toggle\">\n            <nx-toggle-button\n              [target]=\"expandableRow\"\n              ariaLabel=\"Toggle {{ item.product }} row\"\n            ></nx-toggle-button>\n          </td>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n        <tr nxExpandableTableRow #expandableRow>\n          <td nxExpandableTableCell></td>\n          <td nxExpandableTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item?.sub?.[0] }}</a></nx-link\n            >\n          </td>\n          <td nxExpandableTableCell colspan=\"3\">{{ item.contractNumber }}</td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n<h3 class=\"nx-margin-top-m\">Multiple expandable rows</h3>\n\n<table nxTable nxExpandableTable #expandableTable2=\"nxExpandableTable\">\n  <thead>\n    <tr nxTableRow>\n      <th nxHeaderCell class=\"nx-table-cell--toggle\" aria-label=\"Expand row\">\n        <nx-toggle-button\n          [target]=\"expandableTable2\"\n          ariaLabel=\"Toggle all rows\"\n        ></nx-toggle-button>\n      </th>\n      <th nxHeaderCell>Product</th>\n      <th nxHeaderCell>Contract number</th>\n      <th nxHeaderCell>Ending date</th>\n      <th nxHeaderCell>Status</th>\n    </tr>\n  </thead>\n  <tbody>\n    @for (item of tableElements; track item) {\n      <tr nxTableRow>\n        <td nxTableCell class=\"nx-table-cell--toggle\">\n          <nx-toggle-button\n            [target]=\"multiRows\"\n            ariaLabel=\"Toggle {{ item.product }} row\"\n          ></nx-toggle-button>\n        </td>\n        <td nxTableCell>{{ item.product }}</td>\n        <td nxTableCell>{{ item.contractNumber }}</td>\n        <td nxTableCell>{{ item.endingAt }}</td>\n        <td nxTableCell>\n          <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n        </td>\n      </tr>\n\n      <ng-container nxExpandableContainer #multiRows=\"nxExpandableTable\">\n        <tr nxExpandableTableRow>\n          <td nxExpandableTableCell></td>\n          <td nxExpandableTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item?.sub?.[0] }}</a></nx-link\n            >\n          </td>\n          <td nxExpandableTableCell colspan=\"3\">{{ item.contractNumber }}</td>\n        </tr>\n        <tr nxExpandableTableRow>\n          <td nxExpandableTableCell></td>\n          <td nxExpandableTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item?.sub?.[1] }}</a></nx-link\n            >\n          </td>\n          <td nxExpandableTableCell colspan=\"3\">{{ item.contractNumber }}</td>\n        </tr>\n      </ng-container>\n    }\n  </tbody>\n</table>\n\n```\n\n"
      },
      {
        "heading": "expert: expandable table with indentation",
        "level": 3,
        "content": "You can add indentation to an expandable cell inside an expandable row to make it distinct from first‑level rows by adding the `[indented]` property alongside the proper `[nxExpandableTableCell]` directive.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxExpandableTableCellComponent,\n  NxExpandableTableDirective,\n  NxExpandableTableRowComponent,\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n  NxToggleButtonComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Expandable Rows\n */\n@Component({\n  selector: 'table-expandable-indent-example',\n  templateUrl: './table-expandable-indent-example.html',\n  styleUrls: ['./table-expandable-indent-example.css'],\n  imports: [\n    NxTableComponent,\n    NxExpandableTableDirective,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxToggleButtonComponent,\n    NxTableCellComponent,\n    NxBadgeComponent,\n    NxExpandableTableRowComponent,\n    NxExpandableTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n  ],\n})\nexport class TableExpandableIndentExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n      sub: ['BMW', 'Audi'],\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n      sub: [],\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n      sub: [],\n    },\n    {\n      product: 'Fruit',\n      contractNumber: 2423,\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n      sub: ['Apple', 'Banana', 'Orange'],\n    },\n  ];\n}\n\n```\n```html\n<table nxTable nxExpandableTable #expandableTable2=\"nxExpandableTable\">\n  <thead>\n    <tr nxTableRow>\n      <th nxHeaderCell class=\"nx-table-cell--toggle\" aria-label=\"Expand row\">\n        <nx-toggle-button\n          [target]=\"expandableTable2\"\n          ariaLabel=\"Toggle all rows\"\n        ></nx-toggle-button>\n      </th>\n      <th nxHeaderCell>Product</th>\n      <th nxHeaderCell>Contract number</th>\n      <th nxHeaderCell>Ending date</th>\n      <th nxHeaderCell>Status</th>\n    </tr>\n  </thead>\n  <tbody>\n    @for (item of tableElements; track item) {\n      <tr nxTableRow>\n        <td nxTableCell class=\"nx-table-cell--toggle\">\n          @if (item.sub.length > 0) {\n            <nx-toggle-button\n              [target]=\"multiRows\"\n              ariaLabel=\"Toggle {{ item.product }} row\"\n            ></nx-toggle-button>\n          }\n        </td>\n        <td nxTableCell>{{ item.product }}</td>\n        <td nxTableCell>{{ item.contractNumber }}</td>\n        <td nxTableCell>{{ item.endingAt }}</td>\n        <td nxTableCell>\n          <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n        </td>\n      </tr>\n\n      <ng-container nxExpandableContainer #multiRows=\"nxExpandableTable\">\n        @for (sub of item.sub; track sub) {\n          <tr nxExpandableTableRow>\n            <td nxExpandableTableCell></td>\n            <td nxExpandableTableCell indented>\n              <nx-link\n                ><a routerLink=\"#\">{{ sub }}</a></nx-link\n              >\n            </td>\n            <td nxExpandableTableCell colspan=\"3\">{{ item.contractNumber }}</td>\n          </tr>\n        }\n      </ng-container>\n    }\n  </tbody>\n</table>\n\n```\n\n"
      },
      {
        "heading": "expert: form elements",
        "level": 3,
        "content": "Form elements can also be added to the table:\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxPlainButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  DATEPICKER_DEFAULT_OPTIONS,\n  NxDatefieldDirective,\n  NxDatepickerComponent,\n  NxDatepickerToggleComponent,\n} from '@allianz/ng-aquila/datefield';\nimport {\n  NxDropdownComponent,\n  NxDropdownItemComponent,\n} from '@allianz/ng-aquila/dropdown';\nimport {\n  FORMFIELD_DEFAULT_OPTIONS,\n  NxFormfieldComponent,\n  NxFormfieldErrorDirective,\n  NxFormfieldSuffixDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxPopoverMainContentDirective,\n  NxPopoverTitleDirective,\n} from '@allianz/ng-aquila/popover';\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport {\n  NxHeaderCellDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { Component } from '@angular/core';\nimport {\n  FormArray,\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\nimport moment from 'moment';\n\n/**\n * @title Table with form elements\n */\n@Component({\n  selector: 'table-form-elements-example',\n  templateUrl: './table-form-elements-example.html',\n  styleUrls: ['./table-form-elements-example.css'],\n  providers: [\n    // Both provided with NxExpertModule\n    {\n      provide: FORMFIELD_DEFAULT_OPTIONS,\n      useValue: { appearance: 'outline', nxFloatLabel: 'always' },\n    },\n    {\n      provide: DATEPICKER_DEFAULT_OPTIONS,\n      useValue: { toggleIconTabindex: -1 },\n    },\n  ],\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    FormsModule,\n    ReactiveFormsModule,\n    NxTableCellComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxDatefieldDirective,\n    NxDatepickerToggleComponent,\n    NxFormfieldSuffixDirective,\n    NxFormfieldErrorDirective,\n    NxErrorComponent,\n    NxSignalButtonComponent,\n    NxPopoverTitleDirective,\n    NxPopoverMainContentDirective,\n    NxHeadlineComponent,\n    NxDatepickerComponent,\n    NxDropdownComponent,\n    NxDropdownItemComponent,\n    NxPlainButtonComponent,\n    NxIconComponent,\n  ],\n})\nexport class TableFormElementsExampleComponent {\n  formArray = new FormArray([\n    new FormGroup({\n      id: new FormControl('123456789', Validators.required),\n      amount: new FormControl(250.0, [Validators.required, Validators.min(1)]),\n      endingAt: new FormControl(moment([2021, 4, 1])),\n      status: new FormControl('open'),\n    }),\n    new FormGroup({\n      id: new FormControl('987654321', Validators.required),\n      amount: new FormControl(1000.4, [Validators.required, Validators.min(1)]),\n      endingAt: new FormControl(moment([2023, 2, 23])),\n      status: new FormControl('processing'),\n    }),\n    // This row starts in an invalid state to demonstrate the inline error\n    // signal button: the id is missing and the amount is below the minimum.\n    new FormGroup({\n      id: new FormControl('', Validators.required),\n      amount: new FormControl(0, [Validators.required, Validators.min(1)]),\n      endingAt: new FormControl(moment([2019, 11, 31])),\n      status: new FormControl('accepted'),\n    }),\n    new FormGroup({\n      id: new FormControl('123456780', Validators.required),\n      amount: new FormControl(501, [Validators.required, Validators.min(1)]),\n      endingAt: new FormControl(moment([2018, 11, 31])),\n      status: new FormControl('rejected'),\n    }),\n  ]);\n\n  constructor() {\n    // Mark existing controls as touched so the seeded errors are visible.\n    this.formArray.markAllAsTouched();\n  }\n\n  addRow() {\n    this.formArray.push(\n      new FormGroup({\n        id: new FormControl('', Validators.required),\n        amount: new FormControl(0, [Validators.required, Validators.min(1)]),\n        endingAt: new FormControl(moment('')),\n        status: new FormControl(''),\n      }),\n    );\n  }\n\n  removeRow(index: number) {\n    this.formArray.removeAt(index);\n  }\n\n  getFormGroup(i: number): FormGroup {\n    return this.formArray.controls[i] as FormGroup;\n  }\n\n  getControl(i: number, name: string): FormControl {\n    return this.getFormGroup(i).get(name) as FormControl;\n  }\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable condensed class=\"nx-margin-bottom-xs\">\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell>\n          <span id=\"assign\">Assignment/Case ID</span>\n        </th>\n        <th nxHeaderCell><span id=\"amount\">Gross Amount</span></th>\n        <th nxHeaderCell><span id=\"ending\">Ending At</span></th>\n        <th nxHeaderCell><span id=\"status\">Status</span></th>\n        <th nxHeaderCell></th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (control of formArray.controls; track control; let i = $index) {\n        <tr nxTableRow [formGroup]=\"getFormGroup(i)\">\n          <td nxTableCell>\n            <nx-formfield inline size=\"s\">\n              @if (getControl(i, 'id').invalid && getControl(i, 'id').touched) {\n                <nx-signal-button\n                  nxFormfieldSuffix\n                  size=\"s\"\n                  context=\"critical\"\n                  popoverDirection=\"bottom\"\n                  aria-label=\"Show validation errors for Assignment/Case ID\"\n                >\n                  <div nxPopoverTitle>\n                    <h3\n                      nxHeadline=\"subsection-xsmall\"\n                      class=\"nx-margin-bottom-2xs\"\n                    >\n                      Please review this field\n                    </h3>\n                  </div>\n                  <ul nxPopoverMainContent class=\"error-list\">\n                    @if (getControl(i, 'id').hasError('required')) {\n                      <li>An assignment/case ID is required.</li>\n                    }\n                  </ul>\n                </nx-signal-button>\n              }\n              <input\n                nxInput\n                formControlName=\"id\"\n                [attr.aria-labelledby]=\"'assign'\"\n              />\n              <nx-error nxFormfieldError>\n                An assignment/case ID is required.\n              </nx-error>\n            </nx-formfield>\n          </td>\n          <td nxTableCell>\n            <nx-formfield inline size=\"s\">\n              @if (\n                getControl(i, 'amount').invalid &&\n                getControl(i, 'amount').touched\n              ) {\n                <nx-signal-button\n                  nxFormfieldSuffix\n                  size=\"s\"\n                  context=\"critical\"\n                  popoverDirection=\"bottom\"\n                  aria-label=\"Show validation errors for Gross Amount\"\n                >\n                  <div nxPopoverTitle>\n                    <h3\n                      nxHeadline=\"subsection-xsmall\"\n                      class=\"nx-margin-bottom-2xs\"\n                    >\n                      Please review this field\n                    </h3>\n                  </div>\n                  <ul nxPopoverMainContent class=\"error-list\">\n                    @if (getControl(i, 'amount').hasError('required')) {\n                      <li>A gross amount is required.</li>\n                    }\n                    @if (getControl(i, 'amount').hasError('min')) {\n                      <li>The gross amount must be greater than 0.</li>\n                    }\n                  </ul>\n                </nx-signal-button>\n              }\n              <input\n                nxInput\n                formControlName=\"amount\"\n                [attr.aria-labelledby]=\"'amount'\"\n              />\n              <nx-error nxFormfieldError>\n                @if (getControl(i, 'amount').hasError('required')) {\n                  A gross amount is required.\n                } @else if (getControl(i, 'amount').hasError('min')) {\n                  The gross amount must be greater than 0.\n                }\n              </nx-error>\n            </nx-formfield>\n          </td>\n          <td nxTableCell class=\"date-cell\">\n            <nx-formfield inline size=\"s\">\n              <input\n                nxDatefield\n                nxInput\n                [datepicker]=\"myDatepicker\"\n                formControlName=\"endingAt\"\n                [attr.aria-labelledby]=\"'ending'\"\n              />\n              <nx-datepicker-toggle\n                [for]=\"myDatepicker\"\n                nxFormfieldSuffix\n              ></nx-datepicker-toggle>\n              <nx-datepicker #myDatepicker></nx-datepicker>\n            </nx-formfield>\n          </td>\n          <td nxTableCell class=\"status-cell\">\n            <nx-formfield inline size=\"s\">\n              <nx-dropdown formControlName=\"status\" ariaLabelledBy=\"status\">\n                <nx-dropdown-item value=\"open\"></nx-dropdown-item>\n                <nx-dropdown-item value=\"processing\"></nx-dropdown-item>\n                <nx-dropdown-item value=\"accepted\"></nx-dropdown-item>\n                <nx-dropdown-item value=\"rejected\"></nx-dropdown-item>\n              </nx-dropdown>\n            </nx-formfield>\n          </td>\n          <td nxTableCell>\n            <button\n              nxPlainButton\n              (click)=\"removeRow(i)\"\n              aria-label=\"Remove row\"\n            >\n              <nx-icon name=\"trash-o\" aria-hidden=\"true\"></nx-icon>\n            </button>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n<button nxPlainButton (click)=\"addRow()\">\n  <nx-icon name=\"plus\" nxIconPositionStart aria-hidden=\"true\"></nx-icon>Add row\n</button>\n\n```\n\n"
      },
      {
        "heading": "expert: column resize",
        "level": 3,
        "content": "To let users adjust the width of a column, add an element with the `nxHeaderResize` directive inside an `nxHeaderCell`. Dragging the handle with the mouse or by touch resizes the column, with a minimum width of 50px.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxHeaderCellDirective,\n  NxHeaderResizeDirective,\n  NxTableCellComponent,\n  NxTableComponent,\n  NxTableRowComponent,\n} from '@allianz/ng-aquila/table';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Column resize example\n */\n@Component({\n  selector: 'table-column-resize-example',\n  templateUrl: './table-column-resize-example.html',\n  styleUrls: ['./table-column-resize-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [\n    NxTableComponent,\n    NxTableRowComponent,\n    NxHeaderCellDirective,\n    NxHeaderResizeDirective,\n    NxTableCellComponent,\n    NxLinkComponent,\n    RouterLink,\n    NxBadgeComponent,\n  ],\n})\nexport class TableColumnResizeExampleComponent {\n  tableElements = [\n    {\n      product: 'Car',\n      contractNumber: 1234,\n      desc: 'This is a contract',\n      website: 'www.example.com',\n      endingAt: '1/3/2020',\n      status: 'warning',\n      statusText: 'open',\n    },\n    {\n      product: 'Health',\n      contractNumber: 2423,\n      desc: 'This is another contract',\n      website: 'www.allianz.com',\n      endingAt: '4/2/2020',\n      status: 'info',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Car',\n      contractNumber: 353455,\n      desc: 'Lorem ipsum dolor sit amet, csis libero. ',\n      website: 'www.example.com',\n      endingAt: '6/2/2020',\n      status: 'positive',\n      statusText: 'accepted',\n    },\n    {\n      product: 'Home',\n      contractNumber: 22344,\n      desc: 'This is a description of a contract',\n      website: 'www.example.org',\n      endingAt: '1/2/2027',\n      status: 'critical',\n      statusText: 'rejected',\n    },\n  ];\n}\n\n```\n```html\n<div class=\"scroll-container\">\n  <table nxTable>\n    <thead>\n      <tr nxTableRow>\n        <th nxHeaderCell>\n          Product\n          <div nxHeaderResize></div>\n        </th>\n        <th nxHeaderCell>\n          Contract Number\n          <div nxHeaderResize></div>\n        </th>\n        <th nxHeaderCell>\n          Description\n          <div nxHeaderResize></div>\n        </th>\n        <th nxHeaderCell>\n          Website\n          <div nxHeaderResize></div>\n        </th>\n        <th nxHeaderCell>\n          Ending At\n          <div nxHeaderResize></div>\n        </th>\n        <th nxHeaderCell>\n          Status\n          <div nxHeaderResize></div>\n        </th>\n      </tr>\n    </thead>\n    <tbody>\n      @for (item of tableElements; track item) {\n        <tr nxTableRow>\n          <td nxTableCell>{{ item.product }}</td>\n          <td nxTableCell>{{ item.contractNumber }}</td>\n          <td nxTableCell>{{ item.desc }}</td>\n          <td nxTableCell>\n            <nx-link\n              ><a routerLink=\"#\">{{ item.website }}</a></nx-link\n            >\n          </td>\n          <td nxTableCell>{{ item.endingAt }}</td>\n          <td nxTableCell>\n            <nx-badge [type]=\"item.status\">{{ item.statusText }}</nx-badge>\n          </td>\n        </tr>\n      }\n    </tbody>\n  </table>\n</div>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "Content should not be clipped, find more info on the [WCAG criteria](https://www.w3.org/WAI/WCAG21/Understanding/reflow.html). If clipping/cropping is strictly required it can be done via custom css. In that case it's necessary to make the full content accessible through other means. Align with your accessibility expert if clipping of content is required.\n\nIt is essential for users that column labels are fully visible, even when the text is enlarged. Therefore, it is important to ensure meaningful naming and sufficient column width during the design and implementation phases.\n\n<div class=\"docs-private\">\n  To reduce complexity, the option to adjust column widths via the keyboard has been omitted. For very complex and extensive table layouts, the use of a data grid is recommended, as this allows all users to adjust column widths via the keyboard. We recommend using AG Grid. \n</div> "
      }
    ]
  },
  {
    "name": "tabs.md",
    "title": "Tabs",
    "category": "components",
    "alias": [
      "navigation tabs"
    ],
    "sections": [
      {
        "heading": "basic example",
        "level": 3,
        "content": "\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic tab group\n */\n@Component({\n  selector: 'tabs-basic-example',\n  templateUrl: './tabs-basic-example.html',\n  styleUrls: ['./tabs-basic-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class TabsBasicExampleComponent {\n  currentIndex = 0;\n}\n\n```\n```html\n<nx-tab-group [(selectedIndex)]=\"currentIndex\">\n  <nx-tab label=\"First tab\">\n    <p class=\"tab__content\">Fill in your content!</p>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <div class=\"tab__content\">\n      <h2 nxHeadline=\"subsection-large\">Ut enim ad minim veniam</h2>\n      <p nxCopytext=\"normal\">\n        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi\n        ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat\n        non proident, sunt in culpa qui officia deserunt mo\n      </p>\n    </div>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n"
      },
      {
        "heading": "header alignment and styles",
        "level": 3,
        "content": "From the style guide, the tab buttons are centered inside the tab header by default. You can change it by using the `nx-tab-header` element and set `justify-content: flex-start`.\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Changing the styles\n */\n@Component({\n  selector: 'tabs-styling-example',\n  templateUrl: './tabs-styling-example.html',\n  styleUrls: ['./tabs-styling-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class TabsStylingExampleComponent {\n  currentIndex = 0;\n}\n\n```\n```html\n<nx-tab-group [(selectedIndex)]=\"currentIndex\">\n  <nx-tab label=\"First tab\">\n    <p class=\"tab__content\">Fill in your content!</p>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <div class=\"tab__content\">\n      <h2 nxHeadline=\"subsection-large\">Ut enim ad minim veniam</h2>\n      <p nxCopytext=\"normal\">\n        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi\n        ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat\n        non proident, sunt in culpa qui officia deserunt mo\n      </p>\n    </div>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n"
      },
      {
        "heading": "template example",
        "level": 3,
        "content": "If you want to use more than just a string in the header you can provide a template with the `nxTabLabel` directive.\n\n\n```ts\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxTabComponent,\n  NxTabGroupComponent,\n  NxTabLabelDirective,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Using templates for labels\n */\n@Component({\n  selector: 'tabs-template-example',\n  templateUrl: './tabs-template-example.html',\n  styleUrls: ['./tabs-template-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxTabLabelDirective,\n    NxIconComponent,\n  ],\n})\nexport class TabsTemplateExampleComponent {\n  currentIndex = 0;\n}\n\n```\n```html\n<nx-tab-group [(selectedIndex)]=\"currentIndex\">\n  <nx-tab>\n    <ng-template nxTabLabel>\n      <nx-icon name=\"file-text\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n      Documents\n    </ng-template>\n    <p class=\"tab__content\">Tab content 1.</p>\n  </nx-tab>\n  <nx-tab>\n    <ng-template nxTabLabel>\n      <nx-icon name=\"users\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n      Users\n    </ng-template>\n    <p class=\"tab__content\">Tab content 2.</p>\n  </nx-tab>\n  <nx-tab disabled=\"true\">\n    <ng-template nxTabLabel>\n      <nx-icon name=\"setting\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n      Settings\n    </ng-template>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n"
      },
      {
        "heading": "lazy loaded content",
        "level": 3,
        "content": "If you want to delay the initialization of the content of the tabs you can provide a template with the `nxTabContent` directive. _Please note_: only the content of the active tab is attached to the DOM regardless if you use lazy loading or not but if you do not provide a template the content is created by Angular when the tabs are created.\n\n\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxTabComponent,\n  NxTabContentDirective,\n  NxTabGroupComponent,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/** @title Lazy loading content */\n@Component({\n  selector: 'tabs-lazy-example',\n  templateUrl: './tabs-lazy-example.html',\n  styleUrls: ['./tabs-lazy-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxTabContentDirective,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class TabsLazyExampleComponent {}\n\n```\n```html\n<nx-tab-group>\n  <nx-tab label=\"First tab\">\n    <ng-template nxTabContent>\n      <p>Fill in your content!</p>\n    </ng-template>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <ng-template nxTabContent>\n      <div>\n        <h2 nxHeadline=\"subsection-large\">Ut enim ad minim veniam</h2>\n        <p nxCopytext=\"normal\">\n          Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris\n          nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat\n          cupidatat non proident, sunt in culpa qui officia deserunt mo\n        </p>\n      </div>\n    </ng-template>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n"
      },
      {
        "heading": "dynamic",
        "level": 3,
        "content": "You can add and remove tabs dynamically.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Dynamically adding and removing tabs\n */\n@Component({\n  selector: 'tabs-dynamic-example',\n  templateUrl: './tabs-dynamic-example.html',\n  styleUrls: ['./tabs-dynamic-example.css'],\n  imports: [NxTabGroupComponent, NxTabComponent, NxButtonComponent],\n})\nexport class TabsDynamicExampleComponent {\n  tabs = ['one', 'two', 'three'];\n\n  addTab(text: string) {\n    this.tabs = [...this.tabs, text];\n  }\n\n  removeTab(index: number) {\n    this.tabs.splice(index, 1);\n  }\n}\n\n```\n```html\n<nx-tab-group>\n  @for (tab of tabs; track tab; let i = $index) {\n    <nx-tab [label]=\"tab\">\n      <div class=\"tab__content nx-margin-bottom-m\">\n        Content of tab {{ tab }}\n        <button\n          nxButton=\"small\"\n          class=\"nx-margin-left-s\"\n          (click)=\"removeTab(i)\"\n          type=\"button\"\n        >\n          Remove tab\n        </button>\n      </div>\n    </nx-tab>\n  }\n</nx-tab-group>\n\n<div class=\"add-container\">\n  New tab label:\n  <input type=\"text\" #newTabText class=\"nx-margin-left-s nx-margin-right-2xs\" />\n  <button\n    nxButton=\"primary small\"\n    (click)=\"addTab(newTabText.value)\"\n    type=\"button\"\n  >\n    Add\n  </button>\n</div>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "closable tabs",
        "level": 3,
        "content": "Add `closable` to an `nx-tab` to show a close button next to its label. The button can also be triggered with the keyboard by pressing `DELETE` or `BACKSPACE` while the tab is focused.\n\nClosing a tab doesn't remove it on its own. Instead the `nx-tab-group` emits `tabClose` (and the individual tab emits `closed`), leaving you in control of what happens next — usually removing the tab from the list you render it from, as shown below.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Closable tabs\n */\n@Component({\n  selector: 'tabs-closable-example',\n  templateUrl: './tabs-closable-example.html',\n  styleUrls: ['./tabs-closable-example.css'],\n  imports: [NxTabGroupComponent, NxTabComponent, NxButtonComponent],\n})\nexport class TabsClosableExampleComponent {\n  tabs = [\n    { label: 'First tab', disabled: false },\n    { label: 'Second tab', disabled: false },\n    { label: 'Third tab', disabled: true },\n  ];\n\n  closeTab(index: number) {\n    this.tabs = this.tabs.filter((_, i) => i !== index);\n  }\n\n  resetTabs() {\n    this.tabs = [\n      { label: 'First tab', disabled: false },\n      { label: 'Second tab', disabled: false },\n      { label: 'Third tab', disabled: true },\n    ];\n  }\n}\n\n```\n```html\n<nx-tab-group (tabClose)=\"closeTab($event.index)\">\n  @for (tab of tabs; track tab) {\n    <nx-tab [label]=\"tab.label\" [closable]=\"true\" [disabled]=\"tab.disabled\">\n      <p class=\"tab__content\">Content of {{ tab.label }}</p>\n    </nx-tab>\n  }\n</nx-tab-group>\n\n<button nxButton size=\"small\" (click)=\"resetTabs()\">Reset Tabs</button>\n\n```\n\n"
      },
      {
        "heading": "closing event",
        "level": 4,
        "content": "You can use the `tabClose` event to run your own logic before a tab disappears, for example asking the user to confirm. This is also useful to prevent a tab from being closed accidentally with `DELETE` or `BACKSPACE`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxDialogService,\n  NxModalActionsDirective,\n  NxModalContentDirective,\n  NxModalRef,\n} from '@allianz/ng-aquila/modal';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport {\n  ChangeDetectorRef,\n  Component,\n  TemplateRef,\n  ViewChild,\n} from '@angular/core';\n\n/**\n * @title Closable tabs with confirmation\n */\n@Component({\n  selector: 'tabs-closable-confirm-example',\n  templateUrl: './tabs-closable-confirm-example.html',\n  styleUrls: ['./tabs-closable-confirm-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxButtonComponent,\n    NxHeadlineComponent,\n    NxCopytextComponent,\n    NxModalContentDirective,\n    NxModalActionsDirective,\n  ],\n})\nexport class TabsClosableConfirmExampleComponent {\n  @ViewChild('confirmTemplate') confirmTemplate!: TemplateRef<any>;\n\n  tabs = [\n    { label: 'First tab' },\n    { label: 'Second tab' },\n    { label: 'Third tab' },\n  ];\n\n  private dialogRef?: NxModalRef<any, boolean>;\n\n  /** Label of the tab awaiting confirmation, shown in the dialog. */\n  pendingLabel = '';\n\n  constructor(\n    private readonly dialogService: NxDialogService,\n    private readonly _cdr: ChangeDetectorRef,\n  ) {}\n\n  confirmClose(index: number): void {\n    this.pendingLabel = this.tabs[index].label;\n\n    this.dialogRef = this.dialogService.open<any, boolean>(\n      this.confirmTemplate,\n      { showCloseIcon: false },\n    );\n\n    this.dialogRef.afterClosed().subscribe((confirmed) => {\n      if (confirmed) {\n        this.tabs = this.tabs.filter((_, i) => i !== index);\n        this._cdr.markForCheck();\n      }\n    });\n  }\n\n  handleClick(confirmed: boolean): void {\n    this.dialogRef?.close(confirmed);\n  }\n}\n\n```\n```html\n<nx-tab-group (tabClose)=\"confirmClose($event.index)\">\n  @for (tab of tabs; track tab) {\n    <nx-tab [label]=\"tab.label\" [closable]=\"true\">\n      <p class=\"tab__content\">Content of {{ tab.label }}</p>\n    </nx-tab>\n  }\n</nx-tab-group>\n\n<ng-template #confirmTemplate>\n  <div nxModalContent>\n    <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n      Do you want to close {{ pendingLabel }}?\n    </h3>\n    <p nxCopytext=\"small\">This tab will be removed.</p>\n  </div>\n\n  <div nxModalActions>\n    <button\n      nxButton=\"secondary\"\n      size=\"s\"\n      type=\"button\"\n      class=\"nx-margin-right-s\"\n      (click)=\"handleClick(false)\"\n    >\n      Keep tab\n    </button>\n    <button\n      nxButton=\"danger\"\n      size=\"s\"\n      type=\"button\"\n      (click)=\"handleClick(true)\"\n    >\n      Close tab\n    </button>\n  </div>\n</ng-template>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "tabs as a navigation bar",
        "level": 3,
        "content": "While `nx-tab-group` is used to switch the content within a single route, `nx-tab-nav-bar` provides a tab-like component for navigating between routes. The `nx-tab-nav-bar` component is not tied to any router, it uses normal `a` elements and the active property of `nxTabLink` to determine which tab is currently active. The corresponding `router-outlet` can be placed anywhere in the view.\n\n\n```ts\nimport {\n  NxTabLinkDirective,\n  NxTabNavBarComponent,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Tabs Navbar\n */\n@Component({\n  selector: 'tabs-nav-bar-example',\n  templateUrl: './tabs-nav-bar-example.html',\n  styleUrls: ['./tabs-nav-bar-example.css'],\n  imports: [NxTabNavBarComponent, NxTabLinkDirective, RouterLink],\n})\nexport class TabsNavBarExampleComponent {\n  links = [\n    {\n      label: 'Subpage 1',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 2',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 3',\n      path: '...',\n      disabled: true,\n    },\n    {\n      label: 'Subpage 4',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 5',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 6',\n      path: '...',\n      disabled: true,\n    },\n    {\n      label: 'Subpage 7',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 8',\n      path: '...',\n      disabled: false,\n    },\n  ];\n\n  currentLink = this.links[0];\n\n  setActiveLink(link: any) {\n    if (!link.disabled) {\n      this.currentLink = link;\n    }\n  }\n}\n\n```\n```html\n<nx-tab-nav-bar>\n  @for (link of links; track link) {\n    <a\n      nxTabLink\n      (click)=\"setActiveLink(link)\"\n      [active]=\"currentLink.label === link.label\"\n      [disabled]=\"link.disabled\"\n      [routerLink]=\"link.path\"\n    >\n      {{ link.label }}\n    </a>\n  }\n</nx-tab-nav-bar>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "\n```ts\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Negative styling\n */\n@Component({\n  selector: 'tabs-negative-example',\n  templateUrl: './tabs-negative-example.html',\n  styleUrls: ['./tabs-negative-example.css'],\n  imports: [NxTabGroupComponent, NxTabComponent],\n})\nexport class TabsNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-tab-group negative=\"true\">\n    <nx-tab label=\"First tab\">\n      <div class=\"tab__content\">First</div>\n    </nx-tab>\n    <nx-tab label=\"Second tab\">\n      <div class=\"tab__content\">Second</div>\n    </nx-tab>\n    <nx-tab label=\"Third tab\" disabled>\n      <div class=\"tab__content\">Third</div>\n    </nx-tab>\n  </nx-tab-group>\n</div>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "You can disable the whole tab group by setting the property `disabled` on `nx-tab-group` or alternatively disable only a particular tab by setting it on `nx-tab`.\n\n**Pay attention that a disabled and active tab violates the accessibility of the component**, therefore we set the next focusable tab as active in case active and disabled is set on the same tab. If no tab is focusable, no tab is set as active and `selectedIndex` becomes -1.\n\nFollowing the WAI-ARIA tabs pattern, a disabled tab stays reachable with the arrow keys and reports `aria-disabled=\"true\"`, so screen readers announce it as unavailable. Activating it by click, `ENTER` or `SPACE` is prevented, and it is never selected by `autoselect`.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Disabled tabs and tab groups\n */\n@Component({\n  selector: 'tabs-disabled-example',\n  templateUrl: './tabs-disabled-example.html',\n  styleUrls: ['./tabs-disabled-example.css'],\n  imports: [NxHeadlineComponent, NxTabGroupComponent, NxTabComponent],\n})\nexport class TabsDisabledExampleComponent {}\n\n```\n```html\n<h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n  Disabled tab group:\n</h3>\n\n<nx-tab-group disabled=\"true\" selectedIndex=\"1\">\n  <nx-tab label=\"First tab\">\n    <p class=\"tab__content\">First tab content.</p>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <div class=\"tab__content\">Second tab content.</div>\n  </nx-tab>\n</nx-tab-group>\n\n<br />\n<h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n  Tab group with a disabled tab:\n</h3>\n\n<nx-tab-group>\n  <nx-tab disabled=\"true\" label=\"Disabled First tab\">\n    <p class=\"tab__content\">Disabled first tab content.</p>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <div class=\"tab__content\">Second tab content.</div>\n  </nx-tab>\n\n  <nx-tab label=\"Third tab\">\n    <div class=\"tab__content\">Third tab content.</div>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n"
      },
      {
        "heading": "output events",
        "level": 3,
        "content": "The `selectedTabChange` event is emitted when the active tab changes\n\nThe `focusChange` event is emitted when the focus on a tab label changed.\n\nBoth events return an instance of `NxTabChangeEvent` containing the index and the tab instance.\n\nIf no tab is selectable anymore, `selectedIndexChange` emits `-1` while `selectedTabChange` does not emit, as there is no tab instance to report.\n\n<div class=\"docs-hide-a1\">\n\nLimitations: The `focusChange` event is currently not supported on mobile breakpoints as the accordion is lacking this feature.\n\n</div>\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport {\n  NxTabChangeEvent,\n  NxTabComponent,\n  NxTabGroupComponent,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Output events\n */\n@Component({\n  selector: 'tabs-output-events-example',\n  templateUrl: './tabs-output-events-example.html',\n  styleUrls: ['./tabs-output-events-example.css'],\n  imports: [NxTabGroupComponent, NxTabComponent, NxHeadlineComponent],\n})\nexport class TabsOutputEventsExampleComponent {\n  messages: any[] = [];\n  logMessage = '';\n\n  tabChanged($event: NxTabChangeEvent) {\n    this.messages.push(\n      `Selected Index: ${$event.index} Label: ${$event.tab.label}`,\n    );\n    Promise.resolve().then(() => (this.logMessage = this.messages.join('\\n')));\n  }\n\n  tabFocused($event: NxTabChangeEvent) {\n    this.messages.push(\n      `Focused Index: ${$event.index} Label: ${$event.tab.label}`,\n    );\n    Promise.resolve().then(() => (this.logMessage = this.messages.join('\\n')));\n  }\n}\n\n```\n```html\n@if (logMessage) {\n  <pre>{{ logMessage }}</pre>\n}\n\n<nx-tab-group\n  (selectedTabChange)=\"tabChanged($event)\"\n  (focusChange)=\"tabFocused($event)\"\n  autoselect=\"false\"\n>\n  <nx-tab label=\"First tab\">\n    <div class=\"tab__content\">\n      <h2 nxHeadline=\"subsection-large\">First</h2>\n    </div>\n  </nx-tab>\n  <nx-tab label=\"Second tab\">\n    <div class=\"tab__content\">\n      <h2 nxHeadline=\"subsection-large\">Second</h2>\n    </div>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n\n<div class=\"docs-hide-a1\">\n"
      },
      {
        "heading": "responsive behavior",
        "level": 3,
        "content": "The tabs component will switch to an accordion for mobile viewports and reuses the libraries' Accordion component. The content of the tab gets detached in this process and attached into the accordion and vice versa. Components in the tab contents will not be destroyed and keep their state so you can safely use any custom component.\n\nYou can access the accordion component instance by the public accordion property of the TabGroupComponent. To disable the switch to the accordion you can set the input property `mobileAccordion = false`.\n\nImportant notice: The `(focusChange)` event is currently not supported by the accordion so you should not rely on this event for mobile viewports. The `(selectedTabChange)` event however will work also if the accordion is active.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Responsive behavior\n */\n@Component({\n  selector: 'tabs-responsive-example',\n  templateUrl: './tabs-responsive-example.html',\n  styleUrls: ['./tabs-responsive-example.css'],\n  imports: [NxHeadlineComponent, NxTabGroupComponent, NxTabComponent],\n})\nexport class TabsResponsiveExampleComponent {}\n\n```\n```html\n<h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-m\">\n  This tab will not switch to accordion on mobile:\n</h3>\n<nx-tab-group mobileAccordion=\"false\">\n  <nx-tab label=\"First responsive tab\">\n    <div class=\"tab__content\">First tab content</div>\n  </nx-tab>\n  <nx-tab label=\"Second responsive tab\">\n    <div class=\"tab__content\">Second tab content</div>\n  </nx-tab>\n  <nx-tab label=\"Third responsive tab\">\n    <div class=\"tab__content\">Third tab content</div>\n  </nx-tab>\n  <nx-tab label=\"Fourth responsive tab\">\n    <div class=\"tab__content\">Fourth tab content</div>\n  </nx-tab>\n  <nx-tab label=\"Last responsive tab\">\n    <div class=\"tab__content\">Last tab content</div>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n\n</div>\n\n<div class=\"docs-expert-container\">\n"
      },
      {
        "heading": "expert: appearance",
        "level": 3,
        "content": "With `appearance=\"expert\"` you can change the styling of the tabs.\n\nPlease note that **this is an Expert styling option**. This means that the expert appearance is only intended for internal applications and not for applications that are client facing.\n\n\n```ts\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tab group appearance\n */\n@Component({\n  selector: 'tabs-appearance-example',\n  templateUrl: './tabs-appearance-example.html',\n  styleUrls: ['./tabs-appearance-example.css'],\n  imports: [NxTabGroupComponent, NxTabComponent],\n})\nexport class TabsAppearanceExampleComponent {\n  currentIndex = 0;\n}\n\n```\n```html\n<nx-tab-group [(selectedIndex)]=\"currentIndex\" appearance=\"expert\">\n  <nx-tab label=\"First tab\">\n    <p class=\"tab__content\">Fill in your first content!</p>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <p class=\"tab__content\">Fill in your second content!</p>\n  </nx-tab>\n\n  <nx-tab label=\"Third tab\" disabled=\"true\">\n    <p class=\"tab__content\">Fill in your third content!</p>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n\nYou can also use the expert styling with the navigation bar:\n\n\n```ts\nimport {\n  NxTabLinkDirective,\n  NxTabNavBarComponent,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\ninterface Link {\n  label: string;\n  path: string;\n  disabled: boolean;\n}\n\n/**\n * @title Appearance for Tabs Navbar\n */\n@Component({\n  selector: 'tabs-nav-bar-appearance-example',\n  templateUrl: './tabs-nav-bar-appearance-example.html',\n  styleUrls: ['./tabs-nav-bar-appearance-example.css'],\n  imports: [NxTabNavBarComponent, NxTabLinkDirective, RouterLink],\n})\nexport class TabsNavBarAppearanceExampleComponent {\n  links: Link[] = [\n    {\n      label: 'Subpage 1',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 2',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 3',\n      path: '...',\n      disabled: true,\n    },\n  ];\n\n  currentLink = this.links[0];\n\n  setActiveLink(link: Link) {\n    if (!link.disabled) {\n      this.currentLink = link;\n    }\n  }\n}\n\n```\n```html\n<nx-tab-nav-bar appearance=\"expert\">\n  @for (link of links; track link) {\n    <a\n      nxTabLink\n      (click)=\"setActiveLink(link)\"\n      [active]=\"currentLink.label === link.label\"\n      [disabled]=\"link.disabled\"\n      [routerLink]=\"link.path\"\n    >\n      {{ link.label }}\n    </a>\n  }\n</nx-tab-nav-bar>\n\n```\n\n"
      },
      {
        "heading": "indicators",
        "level": 4,
        "content": "Using the [`<nx-indicator>`](./documentation/indicator/overview) certain tabs can be marked.\n\n\n```ts\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport {\n  NxTabComponent,\n  NxTabGroupComponent,\n  NxTabLabelDirective,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tab group with indicators\n */\n@Component({\n  selector: 'tabs-with-indicator-example',\n  templateUrl: './tabs-with-indicator-example.html',\n  styleUrls: ['./tabs-with-indicator-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxTabLabelDirective,\n    NxIndicatorComponent,\n  ],\n})\nexport class TabsWithIndicatorExampleComponent {\n  tabs = [\n    {\n      label: 'First tab',\n      notification: false,\n    },\n    {\n      label: 'Second tab',\n      notification: true,\n    },\n    {\n      label: 'Third tab',\n      notification: true,\n      notificationCount: 2,\n    },\n    {\n      label: 'Fourth tab',\n      notification: true,\n      notificationCount: 105,\n      disabled: true,\n    },\n  ];\n\n  getIndicatorText(notificationCount: number) {\n    if (!notificationCount) {\n      return '';\n    }\n    return notificationCount > 99 ? '99+' : notificationCount;\n  }\n\n  getAriaLabel(notificationCount: number) {\n    if (!notificationCount) {\n      return 'new notifications available';\n    }\n    return notificationCount > 99\n      ? 'more than 99 new notifications available'\n      : notificationCount + ' new notifications available';\n  }\n}\n\n```\n```html\n<nx-tab-group appearance=\"expert\">\n  @for (tab of tabs; track tab) {\n    <nx-tab>\n      <ng-template nxTabLabel>\n        <span class=\"tab-header-content\">\n          {{ tab.label }}\n          @if (tab.notification) {\n            <nx-indicator\n              position=\"top-end\"\n              [attr.aria-label]=\"getAriaLabel(tab.notificationCount!)\"\n              >{{ getIndicatorText(tab.notificationCount!) }}</nx-indicator\n            >\n          }\n        </span>\n      </ng-template>\n      <p class=\"nx-margin-top-s\">Content of {{ tab.label }}</p>\n    </nx-tab>\n  }\n</nx-tab-group>\n\n```\n\n\nThis is also possible with the navigation bar:\n\n\n```ts\nimport { NxIndicatorComponent } from '@allianz/ng-aquila/indicator';\nimport {\n  NxTabLinkDirective,\n  NxTabNavBarComponent,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\n/**\n * @title Tabs Navbar with Indicators\n */\n@Component({\n  selector: 'tabs-nav-bar-with-indicator-example',\n  templateUrl: './tabs-nav-bar-with-indicator-example.html',\n  styleUrls: ['./tabs-nav-bar-with-indicator-example.css'],\n  imports: [\n    NxTabNavBarComponent,\n    NxTabLinkDirective,\n    RouterLink,\n    NxIndicatorComponent,\n  ],\n})\nexport class TabsNavBarWithIndicatorExampleComponent {\n  links = [\n    {\n      label: 'First tab',\n      path: '...',\n      notification: false,\n    },\n    {\n      label: 'Second tab',\n      path: '...',\n      notification: true,\n    },\n    {\n      label: 'Third tab',\n      path: '...',\n      notification: true,\n      notificationCount: 5,\n    },\n  ];\n\n  currentLink = this.links[0];\n\n  setActiveLink(link: any) {\n    this.currentLink = link;\n  }\n\n  getAriaLabel(notificationCount: number) {\n    if (!notificationCount) {\n      return 'new notifications available';\n    }\n    return `${notificationCount} new notifications available`;\n  }\n}\n\n```\n```html\n<nx-tab-nav-bar appearance=\"expert\">\n  @for (link of links; track link) {\n    <a\n      nxTabLink\n      (click)=\"setActiveLink(link)\"\n      [active]=\"currentLink.label === link.label\"\n      [routerLink]=\"link.path\"\n    >\n      <span class=\"link-content\">\n        {{ link.label }}\n        @if (link.notification) {\n          <nx-indicator\n            position=\"top-end\"\n            [attr.aria-label]=\"getAriaLabel(link.notificationCount!)\"\n            >{{ link.notificationCount }}</nx-indicator\n          >\n        }\n      </span>\n    </a>\n  }\n</nx-tab-nav-bar>\n\n```\n\n\n</div>\n"
      },
      {
        "heading": "keyboard support",
        "level": 4,
        "content": "| Shortcut | Action |\n| --- | --- |\n| `LEFT_ARROW` | Move focus to the previous tab. If focus is on the first tab move to the last tab. |\n| `RIGHT_ARROW` | Arrow Move focus to the next tab. If focus is on the last tab move to the first tab. |\n| `TAB` | When the focus moves into the tab header, places the focus on the active tab header element. When the tab header is already focused, moves focus to the next element in the tab sequence which is the tab-body element. |\n| `HOME` | Move focus to the first tab. |\n| `END` | Move focus to the last tab. |\n| `ENTER`, `SPACE` | Select the focused tab and show its content. When a close button is focused, closes its tab instead. |\n| `DELETE`, `BACKSPACE` | Close the focused tab if it is `closable`. |\n\nOn a `closable` tab, `TAB` moves focus from the tab onto its close button and `SHIFT+TAB` moves it back.\n\nAfter a tab is removed, focus moves to the tab that took its place, or to the nearest enabled tab. If no tab is focusable anymore, focus moves to the first focusable element after the tab group. When you remove the last tab, render an empty state, `selectedIndexChange` emits `-1` to signal that no tab is selectable.\n"
      },
      {
        "heading": "auto select vs. manual select",
        "level": 4,
        "content": "You can choose between two patterns:\n\n-   **auto select:** when the user puts focus on a tab label via keyboard input the tab gets automatically selected and shown.\n-   **manual select:** when the user puts focus on a tab label he has to manually press SPACE or ENTER to select the tab.\n\nYou can toggle the autoselect setting with the button below. Then try it out by tabbing onto the tab labels and see the difference when you press the left and right arrow keys.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxTabComponent, NxTabGroupComponent } from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\n/**\n * @title Auto and manual select\n */\n@Component({\n  selector: 'tabs-auto-manual-select-example',\n  templateUrl: './tabs-auto-manual-select-example.html',\n  styleUrls: ['./tabs-auto-manual-select-example.css'],\n  imports: [\n    NxTabGroupComponent,\n    NxTabComponent,\n    NxHeadlineComponent,\n    NxButtonComponent,\n  ],\n})\nexport class TabsAutoManualSelectExampleComponent {\n  autoselect = true;\n\n  toggleAutoselect() {\n    this.autoselect = !this.autoselect;\n  }\n}\n\n```\n```html\n<nx-tab-group [autoselect]=\"autoselect\">\n  <nx-tab label=\"First tab\">\n    <div class=\"tab__content\">\n      <h2 nxHeadline=\"subsection-large\">First</h2>\n    </div>\n  </nx-tab>\n  <nx-tab label=\"Second tab\">\n    <div class=\"tab__content\">\n      <h2 nxHeadline=\"subsection-large\">Second</h2>\n    </div>\n  </nx-tab>\n</nx-tab-group>\n\n<p>Autoselect setting: {{ autoselect }}</p>\n<button type=\"button\" nxButton=\"primary small\" (click)=\"toggleAutoselect()\">\n  Toggle autoselect\n</button>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 3,
        "content": "The close button of a `closable` tab has an `aria-label` and closing a tab is announced to screen readers. Both texts are english by default. To translate them, subclass `NxTabsIntl` and provide it in your module or component.\n\n| Property | Default | Description |\n| --- | --- | --- |\n| `closeAriaLabel` | `Close {label}` | The `aria-label` of a closable tab's close button. Receives the tab's label. |\n| `closeAnnouncement` | `{label} closed` | The message announced to screen readers after a closable tab was closed. Receives the tab's label. |\n\n\n```ts\nimport {\n  NxTabComponent,\n  NxTabGroupComponent,\n  NxTabsIntl,\n} from '@allianz/ng-aquila/tabs';\nimport { Component, Injectable } from '@angular/core';\n\n@Injectable()\nexport class MyIntl extends NxTabsIntl {\n  closeAriaLabel = (label: string) => `${label} schließen`;\n  closeAnnouncement = (label: string) => `${label} geschlossen`;\n}\n\n/**\n * @title Tabs localization example\n */\n@Component({\n  selector: 'tabs-localize-example',\n  templateUrl: './tabs-localize-example.html',\n  styleUrls: ['./tabs-localize-example.css'],\n  providers: [{ provide: NxTabsIntl, useClass: MyIntl }],\n  imports: [NxTabGroupComponent, NxTabComponent],\n})\nexport class TabsLocalizeExampleComponent {\n  tabs = [\n    { label: 'Erster Tab' },\n    { label: 'Zweiter Tab' },\n    { label: 'Dritter Tab' },\n  ];\n\n  closeTab(index: number) {\n    this.tabs = this.tabs.filter((_, i) => i !== index);\n  }\n}\n\n```\n```html\n<nx-tab-group (tabClose)=\"closeTab($event.index)\">\n  @for (tab of tabs; track tab) {\n    <nx-tab [label]=\"tab.label\" [closable]=\"true\">\n      <p class=\"tab__content\">Inhalt von {{ tab.label }}</p>\n    </nx-tab>\n  }\n</nx-tab-group>\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "You can use the `TAB_GROUP_DEFAULT_OPTIONS` injection token if you want to set the `[appearance]` property on `<nx-tab-group>` component globally.\n\n\n```ts\nimport {\n  NxTabComponent,\n  NxTabGroupComponent,\n  TAB_GROUP_DEFAULT_OPTIONS,\n  TabGroupDefaultOptions,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\n\nconst myDefaultOptions: TabGroupDefaultOptions = {\n  appearance: 'expert',\n};\n\n/**\n * @title Injection token for tab group\n */\n@Component({\n  selector: 'tabs-injection-token-example',\n  templateUrl: './tabs-injection-token-example.html',\n  styleUrls: ['./tabs-injection-token-example.css'],\n  providers: [\n    { provide: TAB_GROUP_DEFAULT_OPTIONS, useValue: myDefaultOptions },\n  ],\n  imports: [NxTabGroupComponent, NxTabComponent],\n})\nexport class TabsInjectionTokenExampleComponent {\n  currentIndex = 0;\n}\n\n```\n```html\n<nx-tab-group [(selectedIndex)]=\"currentIndex\">\n  <nx-tab label=\"First tab\">\n    <p class=\"tab__content\">Fill in your first content!</p>\n  </nx-tab>\n\n  <nx-tab label=\"Second tab\">\n    <p class=\"tab__content\">Fill in your second content!</p>\n  </nx-tab>\n</nx-tab-group>\n\n```\n\n\nThe same applies if you're using the tabs as a navigation bar (use `TABS_NAV_BAR_DEFAULT_OPTIONS`):\n\n\n```ts\nimport {\n  NxTabLinkDirective,\n  NxTabNavBarComponent,\n  TAB_NAV_BAR_DEFAULT_OPTIONS,\n  TabNavBarDefaultOptions,\n} from '@allianz/ng-aquila/tabs';\nimport { Component } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\nconst myDefaultOptions: TabNavBarDefaultOptions = {\n  appearance: 'expert',\n};\n\n/**\n * @title Injection Token in Tabs Navbar\n */\n@Component({\n  selector: 'tabs-nav-bar-injection-token-example',\n  templateUrl: './tabs-nav-bar-injection-token-example.html',\n  styleUrls: ['./tabs-nav-bar-injection-token-example.css'],\n  providers: [\n    { provide: TAB_NAV_BAR_DEFAULT_OPTIONS, useValue: myDefaultOptions },\n  ],\n  imports: [NxTabNavBarComponent, NxTabLinkDirective, RouterLink],\n})\nexport class TabsNavBarInjectionTokenExampleComponent {\n  links = [\n    {\n      label: 'Subpage 1',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 2',\n      path: '...',\n      disabled: false,\n    },\n    {\n      label: 'Subpage 3',\n      path: '...',\n      disabled: true,\n    },\n  ];\n\n  currentLink = this.links[0];\n\n  setActiveLink(link: any) {\n    if (!link.disabled) {\n      this.currentLink = link;\n    }\n  }\n}\n\n```\n```html\n<nx-tab-nav-bar>\n  @for (link of links; track link) {\n    <a\n      nxTabLink\n      (click)=\"setActiveLink(link)\"\n      [active]=\"currentLink.label === link.label\"\n      [disabled]=\"link.disabled\"\n      [routerLink]=\"link.path\"\n    >\n      {{ link.label }}\n    </a>\n  }\n</nx-tab-nav-bar>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "taglist.md",
    "title": "Tag",
    "category": "components",
    "alias": [
      "chip",
      "Tags",
      "tag",
      "token"
    ],
    "sections": [
      {
        "heading": "filter / selectable tags",
        "level": 3,
        "content": "Multi select pattern\n\n\n```ts\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Tag Group Example\n */\n@Component({\n  selector: 'tag-group-example',\n  templateUrl: './tag-group-example.html',\n  styleUrls: ['./tag-group-example.css'],\n  standalone: true,\n  imports: [NxTagGroupComponent, NxTagComponent, ReactiveFormsModule],\n})\nexport class TagGroupExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<nx-tag-group aria-label=\"Filter fruits\">\n  @for (tag of tags; track tag; let idx = $index) {\n    <nx-tag\n      [value]=\"tag.toLowerCase()\"\n      [disabled]=\"idx === 1\"\n      [readonly]=\"idx === 2\"\n      >{{ tag }}</nx-tag\n    >\n  }\n</nx-tag-group>\n\n```\n\n"
      },
      {
        "heading": "forms integration",
        "level": 4,
        "content": "How to use with ngModel or reactive forms.\n\n\n```ts\nimport { NxSwitcherComponent } from '@allianz/ng-aquila/switcher';\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { JsonPipe } from '@angular/common';\nimport { Component, effect, signal } from '@angular/core';\nimport { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Tag Group Forms Example\n */\n@Component({\n  selector: 'tag-group-forms-example',\n  templateUrl: './tag-group-forms-example.html',\n  styleUrls: ['./tag-group-forms-example.css'],\n  standalone: true,\n  imports: [\n    NxTagGroupComponent,\n    NxTagComponent,\n    ReactiveFormsModule,\n    JsonPipe,\n    FormsModule,\n    NxSwitcherComponent,\n  ],\n})\nexport class TagGroupFormsExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n  control = new FormControl<string[]>(['melons']);\n  value = signal<string[]>(['apples', 'oranges']);\n  disabled = signal(false);\n\n  constructor() {\n    effect(() => {\n      if (this.disabled()) {\n        this.control.disable();\n      } else {\n        this.control.enable();\n      }\n    });\n  }\n}\n\n```\n```html\n<nx-switcher [(checked)]=\"disabled\">Disabled</nx-switcher>\n\n<p>with ngModel</p>\n\n<nx-tag-group\n  [(ngModel)]=\"value\"\n  [disabled]=\"disabled()\"\n  aria-label=\"Filter fruits\"\n>\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n<p>Value: {{ value() | json }}</p>\n\n<p>with reactive forms</p>\n\n<nx-tag-group [formControl]=\"control\" aria-label=\"Filter fruits\">\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n<p>Control Value: {{ control.value | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "deletable tags",
        "level": 3,
        "content": "\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Deletable tags example\n */\n@Component({\n  selector: 'deletable-tags-example',\n  templateUrl: './deletable-tags-example.html',\n  styleUrls: ['./deletable-tags-example.css'],\n  standalone: true,\n  imports: [NxTagGroupComponent, NxTagComponent, NxButtonComponent],\n})\nexport class DeletableTagsExampleComponent {\n  tags = signal<string[]>([\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ]);\n\n  tagDeleted(tag: string) {\n    this.tags.update((tags) => tags.filter((t) => t !== tag));\n  }\n\n  reset() {\n    this.tags.set([\n      'Apples',\n      'Oranges',\n      'Bananas',\n      'Strawberries',\n      'Melons',\n      'Lemons',\n    ]);\n  }\n}\n\n```\n```html\n<button nxButton=\"small\" class=\"nx-margin-bottom-m\" (click)=\"reset()\">\n  Reset\n</button>\n\n<nx-tag-group removable aria-label=\"Active filters\">\n  @for (tag of tags(); track tag) {\n    <nx-tag (removed)=\"tagDeleted(tag)\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "Please note that for reactive forms you should not use the `disabled` property in the template but disable the control via the forms API.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Tag Group Readonly Example\n */\n@Component({\n  selector: 'tags-disabled-example',\n  templateUrl: './tags-disabled-example.html',\n  styleUrls: ['./tags-disabled-example.css'],\n  standalone: true,\n  imports: [\n    NxTagGroupComponent,\n    NxTagComponent,\n    ReactiveFormsModule,\n    NxCopytextComponent,\n    ReactiveFormsModule,\n    NxButtonComponent,\n  ],\n})\nexport class TagsDisabledExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n  tagsControl = new FormControl({ value: '', disabled: true });\n\n  toggleDisabled() {\n    if (this.tagsControl.disabled) {\n      this.tagsControl.enable();\n    } else {\n      this.tagsControl.disable();\n    }\n  }\n}\n\n```\n```html\n<p nxCopytext class=\"nx-margin-y-m\">Disabling the whole group</p>\n\n<nx-tag-group\n  class=\"nx-margin-bottom-m\"\n  [disabled]=\"true\"\n  [value]=\"['oranges', 'melons']\"\n  aria-label=\"Filter fruits\"\n>\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n<nx-tag-group removable [disabled]=\"true\" aria-label=\"Active filters\">\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n<p nxCopytext class=\"nx-margin-y-m\">Disabling individual tags</p>\n\n<nx-tag-group\n  class=\"nx-margin-bottom-m\"\n  [value]=\"['oranges', 'melons']\"\n  aria-label=\"Filter fruits\"\n>\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\" [disabled]=\"tag === 'Bananas'\">{{\n      tag\n    }}</nx-tag>\n  }\n</nx-tag-group>\n\n<nx-tag-group removable aria-label=\"Active filters\">\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\" [disabled]=\"tag === 'Bananas'\">{{\n      tag\n    }}</nx-tag>\n  }\n</nx-tag-group>\n\n<p nxCopytext class=\"nx-margin-y-m\">Disabling with reactive Forms</p>\n<button nxButton=\"small\" class=\"nx-margin-bottom-s\" (click)=\"toggleDisabled()\">\n  Toggle disabled in control\n</button>\n<nx-tag-group\n  class=\"nx-margin-bottom-m\"\n  [value]=\"['oranges', 'melons']\"\n  aria-label=\"Filter fruits\"\n  [formControl]=\"tagsControl\"\n>\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n```\n\n"
      },
      {
        "heading": "readonly",
        "level": 3,
        "content": "\n```ts\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Tag Group Readonly Example\n */\n@Component({\n  selector: 'tags-readonly-example',\n  templateUrl: './tags-readonly-example.html',\n  styleUrls: ['./tags-readonly-example.css'],\n  standalone: true,\n  imports: [\n    NxTagGroupComponent,\n    NxTagComponent,\n    ReactiveFormsModule,\n    NxCopytextComponent,\n  ],\n})\nexport class TagsReadonlyExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<p nxCopytext class=\"nx-margin-y-m\">Set readonly for the whole group</p>\n\n<nx-tag-group\n  class=\"nx-margin-bottom-m\"\n  [readonly]=\"true\"\n  [value]=\"['oranges', 'melons']\"\n  aria-label=\"Filter fruits\"\n>\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n<nx-tag-group removable [readonly]=\"true\" aria-label=\"Active filters\">\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n  }\n</nx-tag-group>\n\n<p nxCopytext class=\"nx-margin-y-m\">Set readonly for individual tags</p>\n<nx-tag-group\n  class=\"nx-margin-bottom-m\"\n  [value]=\"['oranges', 'melons']\"\n  aria-label=\"Filter fruits\"\n>\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\" [readonly]=\"tag === 'Bananas'\">{{\n      tag\n    }}</nx-tag>\n  }\n</nx-tag-group>\n\n<nx-tag-group removable aria-label=\"Active filters\">\n  @for (tag of tags; track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\" [readonly]=\"tag === 'Bananas'\">{{\n      tag\n    }}</nx-tag>\n  }\n</nx-tag-group>\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "Use the `inverse` input on `nx-tag-group` to apply the inverse style.\n\n\n```ts\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Tag Inverse Example\n */\n@Component({\n  selector: 'tag-inverse-example',\n  templateUrl: './tag-inverse-example.html',\n  styleUrls: ['./tag-inverse-example.css'],\n  standalone: true,\n  imports: [NxTagGroupComponent, NxTagComponent],\n})\nexport class TagInverseExampleComponent {\n  tags = signal(['Apples', 'Oranges', 'Bananas', 'Strawberries']);\n  removableTags = signal(['Lemons', 'Melons', 'Grapes']);\n  selectedReadonly = ['selected'];\n\n  removeTag(tag: string) {\n    this.removableTags.update((tags) => tags.filter((t) => t !== tag));\n  }\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <h3>Selectable</h3>\n  <nx-tag-group inverse aria-label=\"Filter fruits\" [value]=\"['apples']\">\n    @for (tag of tags(); track tag) {\n      <nx-tag [value]=\"tag.toLowerCase()\">{{ tag }}</nx-tag>\n    }\n  </nx-tag-group>\n  <nx-tag-group>\n    <nx-tag inverse>Individual tag</nx-tag>\n  </nx-tag-group>\n\n  <h3>Removable</h3>\n  <nx-tag-group inverse removable aria-label=\"Active filters\">\n    @for (tag of removableTags(); track tag) {\n      <nx-tag (removed)=\"removeTag(tag)\">{{ tag }}</nx-tag>\n    }\n  </nx-tag-group>\n\n  <h3>Disabled</h3>\n  <nx-tag-group inverse aria-label=\"States\" [value]=\"['x']\">\n    <nx-tag disabled value=\"x\">Selected Disabled</nx-tag>\n    <nx-tag disabled>Disabled</nx-tag>\n  </nx-tag-group>\n  <nx-tag-group inverse removable aria-label=\"Active filters\">\n    <nx-tag disabled>Disabled removable</nx-tag>\n  </nx-tag-group>\n\n  <h3>Readonly</h3>\n  <nx-tag-group\n    inverse\n    [readonly]=\"true\"\n    [value]=\"selectedReadonly\"\n    aria-label=\"Selected readonly states\"\n  >\n    <nx-tag value=\"selected\">Selected Readonly</nx-tag>\n    <nx-tag value=\"unselected\">Readonly</nx-tag>\n  </nx-tag-group>\n  <nx-tag-group inverse removable [readonly]=\"true\" aria-label=\"Active filters\">\n    <nx-tag>Readonly removable</nx-tag>\n  </nx-tag-group>\n</div>\n\n```\n\n"
      },
      {
        "heading": "tag with count",
        "level": 3,
        "content": "Project a `<span nxTagCount>` next to the label to show a secondary count or badge. The count color follows the tag's state (selected, readonly, disabled, inverse) automatically.\n\nFor accessibility, a bare number reads ambiguously to screen readers (e.g. \"Bugs 12\"). Add a `cdk-visually-hidden` span inside the count to clarify what the number represents.\n\nAlternatively, set `aria-label` on the `nx-tag` to override the accessible name entirely.\n\n\n```ts\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Count Example\n */\n@Component({\n  selector: 'tag-count-example',\n  templateUrl: './tag-count-example.html',\n  standalone: true,\n  imports: [NxTagGroupComponent, NxTagComponent],\n})\nexport class TagCountExampleComponent {}\n\n```\n```html\n<nx-tag-group aria-label=\"Filter by category\" [value]=\"['bugs']\">\n  <nx-tag value=\"bugs\">\n    Bugs\n    <span nxTagCount>12<span class=\"cdk-visually-hidden\"> items</span></span>\n  </nx-tag>\n  <nx-tag value=\"features\">\n    Features\n    <span nxTagCount>5<span class=\"cdk-visually-hidden\"> items</span></span>\n  </nx-tag>\n  <nx-tag value=\"docs\">\n    Docs\n    <span nxTagCount>3<span class=\"cdk-visually-hidden\"> items</span></span>\n  </nx-tag>\n</nx-tag-group>\n\n```\n\n"
      },
      {
        "heading": "customizing the label content",
        "level": 3,
        "content": "By default the tag will show the value input as the text. Instead of the value you can provide your own template by providing it as content.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n} from '@allianz/ng-aquila/taglist';\nimport { TitleCasePipe } from '@angular/common';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Tags rendering example\n */\n@Component({\n  selector: 'tag-label-rendering-example',\n  templateUrl: './tag-label-rendering-example.html',\n  styleUrls: ['./tag-label-rendering-example.css'],\n  standalone: true,\n  imports: [\n    NxTagGroupComponent,\n    NxTagComponent,\n    TitleCasePipe,\n    NxButtonComponent,\n    NxCopytextComponent,\n  ],\n})\nexport class TagLabelRenderingExampleComponent {\n  private readonly initialTags = ['fruits', 'vegetables', 'meat', 'fish'];\n  private readonly initialTagsWithCount = [\n    { label: 'fruits', count: 2 },\n    { label: 'vegetables', count: 5 },\n    { label: 'meat', count: 3 },\n    { label: 'fish', count: 8 },\n  ];\n\n  tags = signal([...this.initialTags]);\n  tagsWithCount = signal([...this.initialTagsWithCount]);\n\n  removeTag(tag: string) {\n    this.tags.update((tags) => tags.filter((t) => t !== tag));\n  }\n\n  removeTagWithCount(label: string) {\n    this.tagsWithCount.update((tags) => tags.filter((t) => t.label !== label));\n  }\n\n  reset() {\n    this.tags.set([...this.initialTags]);\n    this.tagsWithCount.set([...this.initialTagsWithCount]);\n  }\n}\n\n```\n```html\n<button nxButton=\"small\" class=\"nx-margin-bottom-m\" (click)=\"reset()\">\n  Reset removable tags\n</button>\n\n<p nxCopytext class=\"nx-margin-y-m\">Renders value by default</p>\n\n<nx-tag-group aria-label=\"Filter by product\" class=\"nx-margin-bottom-m\">\n  @for (tag of tags(); track tag) {\n    <nx-tag [value]=\"tag\"></nx-tag>\n  }\n</nx-tag-group>\n\n<nx-tag-group removable aria-label=\"Filter by product\">\n  @for (tag of tags(); track tag) {\n    <nx-tag [value]=\"tag\" (removed)=\"removeTag(tag)\"></nx-tag>\n  }\n</nx-tag-group>\n\n<p nxCopytext class=\"nx-margin-y-m\">Content projection</p>\n\n<nx-tag-group aria-label=\"Filter by product\" class=\"nx-margin-bottom-m\">\n  @for (tag of tagsWithCount(); track tag.label) {\n    <nx-tag [value]=\"tag.label\">\n      {{ tag.label | titlecase }}\n      <span nxTagCount\n        >{{ tag.count }}<span class=\"cdk-visually-hidden\"> items</span></span\n      >\n    </nx-tag>\n  }\n</nx-tag-group>\n\n<nx-tag-group removable aria-label=\"Filter by product\">\n  @for (tag of tagsWithCount(); track tag.label) {\n    <nx-tag [value]=\"tag.label\" (removed)=\"removeTagWithCount(tag.label)\">\n      {{ tag.label | titlecase }}\n      <span nxTagCount\n        >{{ tag.count }}<span class=\"cdk-visually-hidden\"> items</span></span\n      >\n    </nx-tag>\n  }\n</nx-tag-group>\n\n```\n\n\n"
      },
      {
        "heading": "add a group label",
        "level": 4,
        "content": "A label should be connected to the tag group describing its purpose. It can be added either via `aria-labelledby` or `aria-label`.\n\n"
      },
      {
        "heading": "selectable tags",
        "level": 4,
        "content": "Selectable tags function as a group of checkboxes. They are focusable and can be selected or unselected by pressing the space key.\n"
      },
      {
        "heading": "removable tags",
        "level": 4,
        "content": "In removable tags only the delete button is focusable and clickable. The tag itself is not focusable and does not trigger any action on click. For accessibility a proper label that reflects the action should be provided. See [internationalization](./documentation/taglist/overview#internationalization) for more information.\n"
      },
      {
        "heading": "internationalization",
        "level": 3,
        "content": "The provider `NxTagIntl` contains various strings to provide labels for display and screen readers. You have to provide a proper translation for each of your locales.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxTagComponent,\n  NxTagGroupComponent,\n  NxTagIntl,\n} from '@allianz/ng-aquila/taglist';\nimport { Component, Injectable, signal } from '@angular/core';\n\n@Injectable()\nclass MyIntl extends NxTagIntl {\n  deleteAriaLabel = 'Löschen';\n}\n\n/**\n * @title Tag Internationalization Example\n */\n@Component({\n  selector: 'tag-intl-example',\n  imports: [NxTagComponent, NxTagGroupComponent, NxButtonComponent],\n  templateUrl: './tag-intl-example.html',\n  styleUrl: './tag-intl-example.css',\n  providers: [\n    {\n      provide: NxTagIntl,\n      useClass: MyIntl,\n    },\n  ],\n})\nexport class TagIntlExampleComponent {\n  tags = signal([\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ]);\n\n  removeTag(tag: string) {\n    this.tags.update((tags) => tags.filter((t) => t !== tag));\n  }\n\n  reset() {\n    this.tags.set([\n      'Apples',\n      'Oranges',\n      'Bananas',\n      'Strawberries',\n      'Melons',\n      'Lemons',\n    ]);\n  }\n}\n\n```\n```html\n<button nxButton=\"small\" class=\"nx-margin-bottom-m\" (click)=\"reset()\">\n  Reset\n</button>\n\n<nx-tag-group removable aria-label=\"Active filters\">\n  @for (tag of tags(); track tag) {\n    <nx-tag [value]=\"tag.toLowerCase()\" (removed)=\"removeTag(tag)\">{{\n      tag\n    }}</nx-tag>\n  }\n</nx-tag-group>\n\n```\n\n\n"
      },
      {
        "heading": "deprecated taglist",
        "level": 3,
        "content": "By default, the tag component allows individual values to be deleted on click. This behavior can be disabled by setting the `nxAllowTagDeletion` flag to false.\n\n\n```ts\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Example\n */\n@Component({\n  selector: 'taglist-example',\n  templateUrl: './taglist-example.html',\n  styleUrls: ['./taglist-example.css'],\n  imports: [NxTaglistComponent],\n})\nexport class TaglistExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<nx-taglist [tags]=\"tags\" [allowTagDeletion]=\"false\"> </nx-taglist>\n\n```\n\n"
      },
      {
        "heading": "tag keywords",
        "level": 4,
        "content": "The tags can optionally be styled as keywords by setting the respective option `isKeywordList`.\n\n\n```ts\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Keyword Example\n */\n@Component({\n  selector: 'taglist-keyword-example',\n  templateUrl: './taglist-keyword-example.html',\n  styleUrls: ['./taglist-keyword-example.css'],\n  imports: [NxTaglistComponent],\n})\nexport class TaglistKeywordExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<nx-taglist\n  [tags]=\"tags\"\n  [allowTagDeletion]=\"false\"\n  [isKeywordList]=\"true\"\n></nx-taglist>\n\n```\n\n"
      },
      {
        "heading": "tag formatter",
        "level": 4,
        "content": "The textual representation of tags can be customized through a formatter function, which can be useful for translation and other cases where the tag value depends on the application state. In this example, the formatter adds the prefix \"my\" to the tag value.\n\n\n```ts\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Formatter Example\n */\n@Component({\n  selector: 'taglist-formatter-example',\n  templateUrl: './taglist-formatter-example.html',\n  styleUrls: ['./taglist-formatter-example.css'],\n  imports: [NxTaglistComponent],\n})\nexport class TaglistFormatterExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n\n  myFormatter(value: string): string {\n    return 'my ' + value;\n  }\n}\n\n```\n```html\n<nx-taglist\n  [tags]=\"tags\"\n  [valueFormatter]=\"myFormatter\"\n  [allowTagDeletion]=\"false\"\n>\n</nx-taglist>\n\n```\n\n"
      },
      {
        "heading": "delete tags",
        "level": 4,
        "content": "If the option `allowTagDeletion` is not set to false, tags can be deleted from the list on click.\n\nNote that tags can be added and the list can be cleared by calling the respective methods `addTag` and `clearTags` on the component. The respective buttons and input in this example are independent of the component and only included in this example to show that they can be placed anywhere on the page and that any custom business logic and validation can be used. Any content of the element will be used as empty state and is displayed in case the tags array is empty.\n\n\n```ts\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Delete Tag Example\n */\n@Component({\n  selector: 'taglist-delete-example',\n  templateUrl: './taglist-delete-example.html',\n  styleUrls: ['./taglist-delete-example.css'],\n  imports: [NxTaglistComponent],\n})\nexport class TaglistDeleteExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<nx-taglist [tags]=\"tags\" [allowTagDeletion]=\"true\"> </nx-taglist>\n\n```\n\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Basic Example\n */\n@Component({\n  selector: 'taglist-basic-example',\n  templateUrl: './taglist-basic-example.html',\n  styleUrls: ['./taglist-basic-example.css'],\n  imports: [\n    NxTaglistComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxButtonComponent,\n  ],\n})\nexport class TaglistBasicExampleComponent {\n  tags: string[] = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<nx-taglist #taglistBasic [(tags)]=\"tags\"\n  >Sorry, you don't have any fruit.</nx-taglist\n>\n\n<nx-formfield label=\"Please provide a tag\">\n  <input nxInput #addTagInput />\n  <span nxFormfieldHint>\n    Note that the tag list will just ignore empty tag values.\n  </span>\n</nx-formfield>\n<button\n  nxButton=\"primary small\"\n  (click)=\"taglistBasic.addTag(addTagInput.value)\"\n  class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n  type=\"button\"\n>\n  Add tag\n</button>\n<button\n  nxButton=\"secondary small\"\n  (click)=\"taglistBasic.clearTags()\"\n  class=\"nx-margin-bottom-s\"\n  type=\"button\"\n>\n  Clear tags\n</button>\n<br />\nCurrent Value: {{ tags }}\n\n```\n\n"
      },
      {
        "heading": "objects as input",
        "level": 4,
        "content": "In order to give you as much flexibility as possible and support a wide variety of use cases, the tag list not only works with strings but accepts any object as input which has a `nxTaglistLabel` property. Note that while this is the default name, the label property can be configured via the input. `labelProperty`.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Objects Example\n */\n@Component({\n  selector: 'taglist-objects-example',\n  templateUrl: './taglist-objects-example.html',\n  styleUrls: ['./taglist-objects-example.css'],\n  imports: [\n    NxTaglistComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class TaglistObjectsExampleComponent {\n  tags: any[] = [\n    { nxTaglistLabel: 'Apples' },\n    { nxTaglistLabel: 'Oranges' },\n    { nxTaglistLabel: 'asd' },\n  ];\n}\n\n```\n```html\n<nx-taglist #taglistObjects [(tags)]=\"tags\"\n  >Sorry, you don't have any fruit.</nx-taglist\n>\n\n<nx-formfield label=\"Please provide a tag\">\n  <input nxInput #addTagInputObjects />\n  <span nxFormfieldHint>\n    Note that the tag list will just ignore empty tag values.\n  </span>\n</nx-formfield>\n<button\n  nxButton=\"primary small\"\n  (click)=\"taglistObjects.addTag({ nxTaglistLabel: addTagInputObjects.value })\"\n  class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n  type=\"button\"\n>\n  Add tag\n</button>\n<button\n  nxButton=\"secondary small\"\n  (click)=\"taglistObjects.clearTags()\"\n  class=\"nx-margin-bottom-s\"\n  type=\"button\"\n>\n  Clear tags\n</button>\n<br />\nCurrent Value: {{ tags | json }}\n\n```\n\n"
      },
      {
        "heading": "template-driven with ngmodel",
        "level": 4,
        "content": "The tag list component can be used within template-driven forms.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Tag Template Driven Example\n */\n@Component({\n  selector: 'taglist-templatedriven-example',\n  templateUrl: './taglist-templatedriven-example.html',\n  styleUrls: ['./taglist-templatedriven-example.css'],\n  imports: [\n    FormsModule,\n    NxTaglistComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxButtonComponent,\n  ],\n})\nexport class TaglistTemplatedrivenExampleComponent {\n  templateModel = [\n    'Apples',\n    'Oranges',\n    'Bananas',\n    'Strawberries',\n    'Melons',\n    'Lemons',\n  ];\n}\n\n```\n```html\n<form>\n  <nx-taglist #taglistNgModel [(ngModel)]=\"templateModel\" name=\"taglistNgModel\">\n    Sorry, you don't have any fruit.\n  </nx-taglist>\n  <nx-formfield label=\"Please provide a tag\">\n    <input nxInput #addTagInputNgModel />\n    <span nxFormfieldHint>\n      Note that the tag list will just ignore empty tag values.\n    </span>\n  </nx-formfield>\n</form>\n<button\n  nxButton=\"primary small\"\n  (click)=\"taglistNgModel.addTag(addTagInputNgModel.value)\"\n  class=\"nx-margin-right-2xs nx-margin-bottom-s\"\n  type=\"button\"\n>\n  Add tag\n</button>\n<button\n  nxButton=\"secondary small\"\n  (click)=\"taglistNgModel.clearTags()\"\n  class=\"nx-margin-bottom-s\"\n  type=\"button\"\n>\n  Clear tags\n</button>\n<br />\nCurrent Value: {{ templateModel }}\n\n```\n\n"
      },
      {
        "heading": "reactive",
        "level": 4,
        "content": "The tag list component can be used within reactive forms.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxFormfieldComponent,\n  NxFormfieldHintDirective,\n} from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Tag Reactive Example\n */\n@Component({\n  selector: 'taglist-reactive-example',\n  templateUrl: './taglist-reactive-example.html',\n  styleUrls: ['./taglist-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxTaglistComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    NxFormfieldHintDirective,\n    NxButtonComponent,\n    JsonPipe,\n  ],\n})\nexport class TaglistReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    tagsTestReactive: [['Apples', 'Oranges'], Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\" name=\"reactiveTest\">\n  <nx-taglist #taglistReactive formControlName=\"tagsTestReactive\"\n    >Sorry, you don't have any fruit.</nx-taglist\n  >\n\n  <nx-formfield label=\"Please provide a tag\">\n    <input nxInput #addTagInputReactive />\n    <span nxFormfieldHint>\n      Note that the tag list will just ignore empty tag values.\n    </span>\n  </nx-formfield>\n</form>\n<button\n  nxButton=\"primary small\"\n  (click)=\"taglistReactive.addTag(addTagInputReactive.value)\"\n  class=\"nx-margin-right-2xs\"\n  type=\"button\"\n>\n  Add tag\n</button>\n<button\n  nxButton=\"secondary small\"\n  (click)=\"taglistReactive.clearTags()\"\n  type=\"button\"\n>\n  Clear tags\n</button>\n<br />\n<p>Form value: {{ testForm.value | json }}</p>\n<p>Form status: {{ testForm.status | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "output",
        "level": 4,
        "content": "The tag emits an output on click, which contains the selected tag.\n\nYou should also set `tabindex=\"0\"` for the taglist, so the tags are reachable via keyboard navigation.\n\n\n```ts\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Output Example\n */\n@Component({\n  selector: 'taglist-output-example',\n  templateUrl: './taglist-output-example.html',\n  styleUrls: ['./taglist-output-example.css'],\n  imports: [NxTaglistComponent],\n})\nexport class TaglistOutputExampleComponent {\n  tags = ['Apples', 'Oranges'];\n  messages: any[] = [];\n  logMessage = '';\n\n  log(value: Event) {\n    this.messages.push(value);\n    this.logMessage = this.messages.join('\\n');\n  }\n}\n\n```\n```html\n<nx-taglist\n  [tags]=\"tags\"\n  [allowTagDeletion]=\"false\"\n  tabindex=\"0\"\n  (onTagClick)=\"log($event)\"\n>\n</nx-taglist>\n@if (logMessage) {\n  <pre>{{ logMessage }}</pre>\n}\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 4,
        "content": "The default value of the `tabindex` of the tag items is `-1`. If the tags are removable then the default value is `0` so that they are focusable. In all other cases please take care of setting an appropriate tab-index via the input `tabindex` on the taglist (please check the [output example](./documentation/taglist/overview#output)).\n\nIn oder to improve accessibility, please consider **linking a label** to the tag list component, for example like this:\n\n\n```ts\nimport { NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tag Accessibility Example\n */\n@Component({\n  selector: 'taglist-a11y-example',\n  templateUrl: './taglist-a11y-example.html',\n  styleUrls: ['./taglist-a11y-example.css'],\n  imports: [NxTaglistComponent],\n})\nexport class TaglistA11yExampleComponent {\n  tags = ['Apples', 'Oranges', 'Bananas', 'Strawberries', 'Melons', 'Lemons'];\n}\n\n```\n```html\n<h5 id=\"fruit-headline\">Some fruit:</h5>\n<nx-taglist\n  [tags]=\"tags\"\n  [allowTagDeletion]=\"false\"\n  aria-labelledby=\"fruit-headline\"\n>\n</nx-taglist>\n\n```\n\n"
      },
      {
        "heading": "internationalization",
        "level": 4,
        "content": "The provider `NxTagIntl` contains various strings to provide labels for display and screen readers. You have to provide a proper translation for each of your locales.\n \n```ts\nimport { NxTagIntl, NxTaglistComponent } from '@allianz/ng-aquila/taglist';\nimport { ChangeDetectionStrategy, Component, Injectable } from '@angular/core';\n\n@Injectable()\nclass MyIntl extends NxTagIntl {\n  deleteAriaLabel = 'Tag löschen';\n}\n\n/**\n * @title Tag Internationalization Example\n */\n@Component({\n  selector: 'taglist-intl-example',\n  imports: [NxTaglistComponent],\n  templateUrl: './taglist-intl-example.html',\n  styleUrl: './taglist-intl-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  providers: [\n    {\n      provide: NxTagIntl,\n      useClass: MyIntl,\n    },\n  ],\n})\nexport class TaglistIntlExampleComponent {\n  tags = ['Apples', 'Oranges', 'Bananas', 'Strawberries', 'Melons', 'Lemons'];\n}\n\n```\n```html\n<nx-taglist [tags]=\"tags\" [allowTagDeletion]=\"true\"> </nx-taglist>\n\n```\n\n"
      },
      {
        "heading": "keybord navigation",
        "level": 4,
        "content": "If `allowTagDeletion` is set to `true`, you can remove selected tags using BACKSPACE. If your tags trigger actions on click, these actions will be also triggered on ENTER click.\n"
      }
    ]
  },
  {
    "name": "text.md",
    "title": "Text",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "not available in ndbx",
        "level": 3,
        "content": "Body text, utility text and accent color are only available in the A1 theme and are not supported in\nthe NDBX theme.\n\nSwitch the theme to A1 to see the documentation and examples. In NDBX, use\n[copytext](./documentation/copytext/overview) for running text.\n\n</div>\n\n<div class=\"docs-a1\">\n"
      },
      {
        "heading": "body text",
        "level": 3,
        "content": "Use `nxBodyText` for running text: paragraphs, descriptions and any longer prose that a user reads\nas content. This is the default choice for text. Use `nxUtilityText` only for the UI-labelling\ncases below. It is only available in the A1 theme and is not supported in the NDBX theme.\n\n`nxBodyText` is an attribute selector, so it works on any textual element and is not limited to the\nparagraphs used in the examples.\n"
      },
      {
        "heading": "sizes",
        "level": 4,
        "content": "Available sizes are `s`, `m`, and `l`, with `m` as the default.\n\n\n```ts\nimport { NxBodyTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Body Text Sizes Example\n */\n@Component({\n  selector: 'body-text-sizes-example',\n  templateUrl: './body-text-sizes-example.html',\n  standalone: true,\n  imports: [NxBodyTextComponent],\n})\nexport class BodyTextSizesExampleComponent {}\n\n```\n```html\n<p nxBodyText size=\"l\" class=\"nx-margin-bottom-m\">\n  Body Text L, e.g. lorem ipsum dolor sit amet, consectetur adipiscing elit.\n  Aenean massa ipsum, suscipit vel metus non.\n</p>\n<p nxBodyText size=\"m\" class=\"nx-margin-bottom-m\">\n  Body Text M, e.g. lorem ipsum dolor sit amet, consectetur adipiscing elit.\n  Aenean massa ipsum, suscipit vel metus non.\n</p>\n<p nxBodyText size=\"s\">\n  Body Text S, e.g. lorem ipsum dolor sit amet, consectetur adipiscing elit.\n  Aenean massa ipsum, suscipit vel metus non.\n</p>\n\n```\n\n"
      },
      {
        "heading": "type and inverse",
        "level": 4,
        "content": "`type` switches between the `primary` (default) and `secondary` text tone. Set `inverse` for use on\ndark backgrounds.\n\n\n```ts\nimport { NxBodyTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Body Text Type and Inverse Example\n */\n@Component({\n  selector: 'body-text-type-example',\n  templateUrl: './body-text-type-example.html',\n  standalone: true,\n  imports: [NxBodyTextComponent],\n})\nexport class BodyTextTypeExampleComponent {}\n\n```\n```html\n<p nxBodyText type=\"primary\" class=\"nx-margin-bottom-m\">\n  Primary body text is the default and carries the main content.\n</p>\n<p nxBodyText type=\"secondary\" class=\"nx-margin-bottom-m\">\n  Secondary body text steps back and supports the primary content.\n</p>\n\n<div class=\"docs-inverse-container\">\n  <p nxBodyText type=\"primary\" inverse class=\"nx-margin-bottom-m\">\n    Primary body text on a dark background.\n  </p>\n  <p nxBodyText type=\"secondary\" inverse>\n    Secondary body text on a dark background.\n  </p>\n</div>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 4,
        "content": "Use the `colorScheme` input (`default` or `on-accent-attention`) to place `nxBodyText` on an\naccent-colored surface. It overrides `type`, since the on-accent-attention foreground color is the\nsame regardless of tone. Combine with `inverse` for accent surfaces on dark backgrounds.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxBodyTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Body text color scheme example\n */\n@Component({\n  selector: 'body-text-color-scheme-example',\n  templateUrl: './body-text-color-scheme-example.html',\n  styleUrls: ['./body-text-color-scheme-example.css'],\n  standalone: true,\n  imports: [NxBodyTextComponent, NxHeadlineComponent],\n})\nexport class BodyTextColorSchemeExampleComponent {}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 nxHeadline size=\"s\">Default</h4>\n    <p nxBodyText>Body text default.</p>\n  </div>\n  <div class=\"example-item docs-attention-container\">\n    <h4 nxHeadline size=\"s\" colorScheme=\"on-accent-attention\">\n      On-Accent Attention\n    </h4>\n    <p nxBodyText colorScheme=\"on-accent-attention\">\n      Body text on-accent-attention.\n    </p>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "utility text",
        "level": 3,
        "content": "Use `nxUtilityText` for functional text that annotates the UI: form labels, captions, table cells\nand single-line strings that need to align with an adjacent control or icon. Prefer `nxBodyText` for anything\nthat wraps onto several lines. It is only available in the A1 theme and is not supported in the NDBX\ntheme.\n\n`nxUtilityText` is an attribute selector too, so it works on any textual element and is not limited to\nthe paragraphs used in the examples.\n"
      },
      {
        "heading": "sizes",
        "level": 4,
        "content": "Available sizes are `s`, `m`, and `l`, with `m` as the default.\n\n\n```ts\nimport { NxUtilityTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Utility Text Sizes Example\n */\n@Component({\n  selector: 'utility-text-sizes-example',\n  templateUrl: './utility-text-sizes-example.html',\n  standalone: true,\n  imports: [NxUtilityTextComponent],\n})\nexport class UtilityTextSizesExampleComponent {}\n\n```\n```html\n<p nxUtilityText size=\"l\" class=\"nx-margin-bottom-m\">Utility Text L</p>\n<p nxUtilityText size=\"m\" class=\"nx-margin-bottom-m\">Utility Text M</p>\n<p nxUtilityText size=\"s\">Utility Text S</p>\n\n```\n\n"
      },
      {
        "heading": "type, attention and inverse",
        "level": 4,
        "content": "`type` switches between the `primary` (default) and `secondary` text tone. `attention` emphasizes\nthe text with a heavier font weight. Set `inverse` for use on dark backgrounds.\n\n\n```ts\nimport { NxUtilityTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Utility Text Type, Attention and Inverse Example\n */\n@Component({\n  selector: 'utility-text-attention-example',\n  templateUrl: './utility-text-attention-example.html',\n  standalone: true,\n  imports: [NxUtilityTextComponent],\n})\nexport class UtilityTextAttentionExampleComponent {}\n\n```\n```html\n<p nxUtilityText class=\"nx-margin-bottom-xs\">Primary utility text</p>\n<p nxUtilityText attention class=\"nx-margin-bottom-m\">\n  Primary utility text with attention\n</p>\n<p nxUtilityText type=\"secondary\" class=\"nx-margin-bottom-xs\">\n  Secondary utility text\n</p>\n<p nxUtilityText type=\"secondary\" attention class=\"nx-margin-bottom-m\">\n  Secondary utility text with attention\n</p>\n<div class=\"docs-inverse-container\">\n  <p nxUtilityText inverse class=\"nx-margin-bottom-xs\">\n    Primary utility text on a dark background\n  </p>\n  <p nxUtilityText inverse attention class=\"nx-margin-bottom-m\">\n    Primary utility text with attention on a dark background\n  </p>\n  <p nxUtilityText inverse type=\"secondary\" class=\"nx-margin-bottom-xs\">\n    Secondary utility text on a dark background\n  </p>\n  <p nxUtilityText inverse attention type=\"secondary\">\n    Secondary utility text with attention on a dark background\n  </p>\n</div>\n\n```\n\n"
      },
      {
        "heading": "color scheme",
        "level": 4,
        "content": "Use the `colorScheme` input (`default` or `on-accent-attention`) to place `nxUtilityText` on an\naccent-colored surface. It overrides `type`, since the on-accent-attention foreground color is the\nsame regardless of tone. Combine with `inverse` for accent surfaces on dark backgrounds.\n\n\n```ts\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxUtilityTextComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Utility text color scheme example\n */\n@Component({\n  selector: 'utility-text-color-scheme-example',\n  templateUrl: './utility-text-color-scheme-example.html',\n  styleUrls: ['./utility-text-color-scheme-example.css'],\n  standalone: true,\n  imports: [NxUtilityTextComponent, NxHeadlineComponent],\n})\nexport class UtilityTextColorSchemeExampleComponent {}\n\n```\n```html\n<div class=\"example-row\">\n  <div class=\"example-item\">\n    <h4 nxHeadline size=\"s\">Default</h4>\n    <p nxUtilityText>Utility text default.</p>\n  </div>\n  <div class=\"example-item docs-attention-container\">\n    <h4 nxHeadline size=\"s\" colorScheme=\"on-accent-attention\">\n      On-Accent Attention\n    </h4>\n    <p nxUtilityText colorScheme=\"on-accent-attention\">\n      Utility text on-accent-attention.\n    </p>\n  </div>\n</div>\n\n```\n\n"
      },
      {
        "heading": "body text vs utility text",
        "level": 3,
        "content": "A1 splits text into body text and utility text.\n\n| Usage                                                                                                                    | Component       |\n|--------------------------------------------------------------------------------------------------------------------------|-----------------|\n| Paragraphs, descriptions, running prose and any text that wraps                                                          | `nxBodyText`    |\n| Single-line text aligned to an adjacent control or icon, table cells, form labels, captions, or text needing `attention` | `nxUtilityText` |\n\nThe two always share font size, family and default weight; line-height is the only property that can\ndiffer. Utility line-heights sit on the baseline grid so text aligns with component boxes, while\nbody line-heights leave the grid at some sizes for readability in multi-line prose.\n\n</div>\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "accent color",
        "level": 3,
        "content": "Use the `nx-accent-color` selector to highlight inline text that requires emphasis. This feature is only available in the A1 theme and is not supported in the NDBX theme.\n"
      },
      {
        "heading": "available colors",
        "level": 4,
        "content": "`yellow | orange | red | purple | teal | aqua | blue | green | gray`\n\nExample Usage: `<span nx-accent-color=\"purple\"> highlight </span>`\n\n\n```ts\nimport { NxAccentColorComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Accent Color Basic Example\n */\n@Component({\n  selector: 'accent-color-basic-example',\n  templateUrl: './accent-color-basic-example.html',\n  styleUrls: ['./accent-color-basic-example.css'],\n  standalone: true,\n  imports: [NxAccentColorComponent],\n})\nexport class AccentColorBasicExampleComponent {}\n\n```\n```html\n<div class=\"wrapper\">\n  <span [nx-accent-color]=\"'orange'\">Accent Orange</span>\n  <span [nx-accent-color]=\"'yellow'\">Accent Yellow</span>\n  <span [nx-accent-color]=\"'red'\">Accent Red</span>\n  <span [nx-accent-color]=\"'purple'\">Accent Purple</span>\n  <span [nx-accent-color]=\"'teal'\">Accent Teal</span>\n  <span [nx-accent-color]=\"'aqua'\">Accent Aqua</span>\n  <span [nx-accent-color]=\"'blue'\">Accent Blue</span>\n  <span [nx-accent-color]=\"'green'\">Accent Green</span>\n  <span [nx-accent-color]=\"'gray'\">Accent Gray</span>\n</div>\n\n```\n\n\n"
      },
      {
        "heading": "integrate with other components",
        "level": 4,
        "content": "You can also use `nx-accent-color` with other text based component.\n\n\n```ts\nimport { NxAccentColorComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Accent Color Integration Example\n */\n@Component({\n  selector: 'accent-color-integration-example',\n  templateUrl: './accent-color-integration-example.html',\n  styleUrls: ['./accent-color-integration-example.css'],\n  standalone: true,\n  imports: [NxAccentColorComponent],\n})\nexport class AccentColorIntegrationExampleComponent {}\n\n```\n```html\n<h3 nxHeadline=\"subsection-medium\">\n  Headline with <span [nx-accent-color]=\"'green'\">Green</span> text\n</h3>\n<p nxCopytext>\n  Copytext with <span [nx-accent-color]=\"'blue'\">Blue</span> and\n  <span [nx-accent-color]=\"'orange'\">Orange</span>\n  text\n</p>\n\n```\n\n\n"
      },
      {
        "heading": "negative (inverse) usage",
        "level": 4,
        "content": "You can use `negative` attribute to set it to inverse color.\n\n\n```ts\nimport { NxAccentColorComponent } from '@allianz/ng-aquila/text';\nimport { Component } from '@angular/core';\n\n/**\n * @title Accent Color Negative Example\n */\n@Component({\n  selector: 'accent-color-negative-example',\n  templateUrl: './accent-color-negative-example.html',\n  styleUrls: ['./accent-color-negative-example.css'],\n  standalone: true,\n  imports: [NxAccentColorComponent],\n})\nexport class AccentColorNegativeExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container wrapper\">\n  <span [nx-accent-color]=\"'orange'\" negative>Accent Orange</span>\n  <span [nx-accent-color]=\"'yellow'\" negative>Accent Yellow</span>\n  <span [nx-accent-color]=\"'red'\" negative>Accent Red</span>\n  <span [nx-accent-color]=\"'purple'\" negative>Accent Purple</span>\n  <span [nx-accent-color]=\"'teal'\" negative>Accent Teal</span>\n  <span [nx-accent-color]=\"'aqua'\" negative>Accent Aqua</span>\n  <span [nx-accent-color]=\"'blue'\" negative>Accent Blue</span>\n  <span [nx-accent-color]=\"'green'\" negative>Accent Green</span>\n  <span [nx-accent-color]=\"'gray'\" negative>Accent Gray</span>\n</div>\n\n```\n\n\n</div>\n"
      }
    ]
  },
  {
    "name": "theming.md",
    "title": "Theming",
    "category": "general",
    "alias": [],
    "sections": [
      {
        "heading": "scoping themes",
        "level": 2,
        "content": "By default the selector for the themes is `:root, :host`. In case you want to scope the theme a different selector you can use the `nx-build-theme` mixin with an additional argument for the selector.\n\n```scss\n@include nx-build-theme(ndbx, '.my-custom-scope');\n```\n\nA theme can also carry **CSS-only overrides** (raw CSS rules that are not token values). When a theme is registered with such overrides (see [Scoped CSS-only overrides](#scoped-css-only-overrides) below), `nx-build-theme` emits them inside the same selector you pass, so they are scoped together with the theme tokens instead of leaking onto the whole page. This is important on pages hosting multiple microfrontends.\n\n<div class=\"docs-deprecation-warning\">\n<p><strong>Important about Overlays:</strong> When a theme gets scoped to a class on the Angular application root element, any other element inside the body of the document or you are using web components with ShadowDOM, the theme will not be applied to any Angular CDK Overlay components (like Dialogs, Tooltips, etc.) because these overlays are appended to the end of the body element by default.</p>\n<p>\nPlease make sure that your custom selector either targets the overlays as well by adding <code>.cdk-overlay-container</code> to the selector or in case you are using ShadowDOM that you provide a custom <code>OverlayContainer</code> that moves the overlays inside the ShadowDOM.</p>\n</div>\n\n<div class=\"docs-private\">\n"
      },
      {
        "heading": "important for a1 themes",
        "level": 3,
        "content": "Our themes for A1 are a mapping from the A1 tokens to the library specific tokens. In the prebuilt versions we are including the A1 tokens automatically. But if you are extending our A1 themes or built your own and you need the A1 tokens you have to import them manually before building the theme. The A1 tokens package provides a mixin where you can set the dimensions (color scheme, animations, density) and the scope selector. The `@allianz/a1-design-tokens` package is a dependency of the `@allianz/ngx-brand-kit` package.\n\n```scss\n@use '@allianz/a1-design-tokens/dist/allianz/a1/web/tokens-theme-mixins-index' as a1-tokens;\n@import '@allianz/ng-aquila/styles/theming';\n@import \"@allianz/ngx-brand-kit/scss/themes/allianz-one\";\n\n\n$a1-scope: '.my-custom-scope';\n\n@include a1-tokens.apply-design-tokens('light', 'lively', 'spacious', $a1-scope);\n@include nx-build-theme(allianz-one, $a1-scope);\n```\n\n</div>\n"
      },
      {
        "heading": "custom theming",
        "level": 2,
        "content": "All components in this library are styled by using the style tokens listed [here](./documentation/theming/overview#general-theming-tokens). You can create your own custom theme by overwriting the values of these style tokens.\n\nThe library provides an interface for extending and overwriting properties of our base theme to enable the creation of custom application themes. This is accomplished by using SCSS maps for merging your newly defined style tokens and our base theme tokens and then injecting those into the components by CSS variables.\n"
      },
      {
        "heading": "customizing the base theme",
        "level": 3,
        "content": "In order to define your custom theme first create a file `<your-theme>.scss`.\n\nTo register your theme import the theming utilities:\n\n```scss\n@import '@allianz/ng-aquila/styles/theming';\n```\n\nThen, you should define your new theme as a `scss-map` which overwrites all default theming tokens you want to change:\n\n```scss\n$my-theme: (\n    interactive-primary: green,\n    link-color: interactive-primary,\n    heading-01-font-size: 3.625rem,\n    heading-01-line-height: 4rem,\n    heading-01-font-weight: 500,\n    heading-01-letter-spacing: 0.0125rem,\n);\n\n$nx-themes: nx-register-theme($my-theme, themeName);\n```\n\nBy calling the `nx-register-theme(themeName)` mixin you are merging our base theme with your own theme (overwritten tokens + new tokens).\n\nPer default, the base theme for the new theme is aquila. You can also pass another theme as a base (third argument), but you first have to import or define it:\n\n```scss\n@import \"@allianz/ng-aquila/styles/theming\";\n@import \"@allianz/ng-aquila/styles/themes/your-base-theme\";\n...\n$nx-themes: nx-register-theme($my-theme, themeName, baseThemeName);\n```\n\n<div class=\"docs-private\">\nCurrently the following internal themes are available as a base theme: **aquila** (implicitly), **ndbx**, **ndbx-expert** and **direct**, which have to be explicitly imported as shown in the example above.\n</div>\n"
      },
      {
        "heading": "enabling (building) a new theme",
        "level": 3,
        "content": "In order to inject the newly defined custom theme tokens into the components you have to build your new theme by using the `nx-buid-theme` mixin.\n\n```scss\n@include nx-build-theme(themeName);\n```\n\n**Important:** Keep in mind the theme building should happen after you have registered your custom theme and preferably only once in the whole application. We recommend the following import in your global scss file:\n\n```scss\n@import '@allianz/ng-aquila/styles/theming';\n@import '<path-to-theme-file>/<your-theme>.scss';\n\n@include nx-build-theme(themeName);\n```\n"
      },
      {
        "heading": "using your new theme",
        "level": 3,
        "content": "In order to have access to the newly defined tokens you have to import `<your-theme>.scss` into every SCSS file where you want to use your tokens. You can also import it to a global SCSS stylesheet and import this one wherever needed.\n\nWe provide you with two utility helpers:\n\n-   **nx-theme(token)** for getting a css variable value\n-   **type-style(token)** for getting the defined typography properties of an element. here you have to prefix these tokens in the same way and define font-size, font-weight, letter-spacing and line-height as shown in the snippet with _headline-01_ above.\n\n```scss\n@import '<path-to-theme-file>/<your-theme>.scss';\n\n.test-class {\n    @include type-style(heading-01);\n    background: nx-theme(interactive-primary);\n}\n```\n"
      },
      {
        "heading": "advanced",
        "level": 3,
        "content": "You can also add new tokens when creating your custom theme as well as use exisiting token values for your new tokens:\n\n```scss\n$my-theme: (\n    my-new-token: pink,\n    my-new-token-2: primary-action,\n);\n\n$nx-themes: nx-register-theme($my-theme, themeName);\n```\n\nAnd then use them as stated before:\n\n```scss\n@import '<path-to-theme-file>/<your-theme>.scss';\n\n.test-class {\n    background: nx-theme(my-new-token);\n}\n```\n"
      },
      {
        "heading": "scoped css-only overrides",
        "level": 3,
        "content": "Sometimes a theme needs more than token values — it needs a few raw CSS rules (for example\nto align legacy component classes with the new design). If you emit those rules directly in\nyour theme file they are written globally and **ignore the selector** you pass to\n`nx-build-theme`. On a page with multiple microfrontends, a scoped theme would still leak\nthese rules onto the surrounding page.\n\nTo keep CSS-only overrides scoped together with your tokens, pass an optional override mixin\nas the **4th argument** of `nx-register-theme`. The mixin takes **no arguments** and contains\n**bare CSS rules** — `nx-build-theme` wraps them under the theme's selector automatically, so\nthey are emitted inside the same selector the theme is built for. Use the parent selector `&`\nif you need to target the scope element itself or build compound selectors.\n\n```scss\n@use 'sass:meta';\n@import '@allianz/ng-aquila/styles/theming';\n\n@mixin my-theme-overrides {\n    .my-legacy-class {\n        margin: 0 !important;\n    }\n}\n\n$my-theme: (\n    interactive-primary: green,\n);\n\n$nx-themes: nx-register-theme($my-theme, themeName, null, meta.get-mixin('my-theme-overrides'));\n\n// emitted scoped to '.my-scope' (tokens AND overrides):\n@include nx-build-theme(themeName, '.my-scope');\n```\n\n**`@use 'sass:meta';` is required** in any file that calls `meta.get-mixin(...)`. This is\nneeded whether you `@import` or `@use` the library, because `@use` namespaces are file-local\nand are not inherited through imports. The `meta.get-mixin` call must live in your own theme\nfile — it can only see mixins visible where it is called.\n\nWhen you register a theme on top of a base theme (3rd argument) and do not pass your own\noverride mixin, the base theme's override mixin (if any) is inherited automatically.\n\nBecause every override rule is scoped under the selector you pass, components rendered in CDK\noverlays (dialogs, tooltips, dropdowns) are only covered if `.cdk-overlay-container` is part of\nthat selector — the same caveat that applies to theme tokens (see the note above).\n\n<div class=\"docs-private\">\n\nThe internal A1 themes use this mechanism for their Teams-compatibility CSS overrides\n(headline font-weights, header actions, sidepanel padding). The `allianz-one` variants\n(`allianz-one-compact`, `allianz-one-dark`, …) are based on `allianz-one` and inherit its\noverride mixin.\n\n</div>\n"
      },
      {
        "heading": "general theming tokens",
        "level": 3,
        "content": "Our components are themed by the following general tokens. You can overwrite their values in your custom theme. A full list of the current style tokens can be found [here](https://www.github.com/allianz/ng-aquila/blob/main/projects/ng-aquila/src/shared-styles/theming/tokens.scss).\n\n```scss\n  ui-background: #0f2A3D,\n  ui-01: #0F2A3D,\n  ui-02: #143851,\n  ui-03: #194666,\n  ui-04: #2D7FB8,\n  ui-05: #E9F7FB,\n  ui-06: #FFFFFF,\n\n  interactive-text: #27ABD6,\n  interactive-primary: #27ABD6,\n  hover-primary: #3BB4DB,\n  hover-secondary: #194666,\n\n  active-primary: #66C4E3,\n  hover-link: #51BCDF,\n\n  focus-box-shadow: (\n    0 0 0 2px #0F2A3D,\n    0 0 0 6px #27ABD6\n  ),\n\n  focus-inset-box-shadow: (\n    inset 0 0 0 4px #27ABD6,\n    inset 0 0 0 6px #0F2A3D\n  ),\n\n  // typically used on dark backgrounds\n  text-01: #FFFFFF,\n  // typically used on light backgrounds\n  text-02: #0F2A3D, // text, icon color of buttons, checkbox etc\n\n  info: #7C97D0,\n  warning: #EFBE25,\n  danger: #ED6F7C,\n  success: #26AE31,\n\n  accent-01: #00B17F, // emphasis\n  accent-02: #6B8CFF, // cta\n  accent-03: #C7A7EC, // attention\n\n  disabled-01: #969696,\n  disabled-02: #DBDBDB,\n  disabled-03: #EDEDED,\n  disabled-04: rgba(39, 171, 214, 0.35),\n\n  negative: #0F2A3D,\n  negative-accent: #E5E7E6,\n  negative-01: #23628F,\n  negative-02: #2D7FB8,\n  negative-background: #E5E7E6,\n\n  negative-dimmed: rgba(15, 42, 61, 0.4),\n  negative-01-dimmed: #23628F,\n  negative-02-dimmed: #2D7FB8,\n  negative-background-dimmed: rgba(229, 231, 230, 0.4),\n\n  grid-max-width: 1184px,\n\n  readonly-01: rgba(150, 150, 150, 0.35),\n  readonly-02: #969696,\n  readonly-03: #FFFFFF,\n```\n"
      }
    ]
  },
  {
    "name": "tile.md",
    "title": "Tile",
    "category": "components",
    "alias": [
      "Tiles"
    ],
    "sections": [
      {
        "heading": "auto grid",
        "level": 4,
        "content": "The Tile group automatically arranges the tiles in a grid layout depending on the available space. The maximum number of columns can be adjusted with the `maxColumns` input. The grid layout is responsive and adapts to the size of the outer container. No media queries or container queries are needed for the grid itself. But you can use media or container queries to adjust the size that is available for the tile group.\n**Important:** The `maxColumns` is the maximum columns the grid can have. The actual number of columns is determined by the available space and the size of the tiles. If there is not enough space for the maximum number of columns, fewer columns will be displayed. The tiles also have a minimum width that they won't become too small.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxLabelComponent, NxLabelModule } from '@allianz/ng-aquila/base';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { NxSliderComponent } from '@allianz/ng-aquila/slider';\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Tile Group Auto Grid Example\n */\n@Component({\n  selector: 'tile-group-auto-grid-example',\n  imports: [\n    NxTileGroupComponent,\n    NxTileComponent,\n    NxIconModule,\n    NxBadgeComponent,\n    NxSliderComponent,\n    NxLabelModule,\n    NxLabelComponent,\n  ],\n  templateUrl: './tile-group-auto-grid-example.html',\n  styleUrls: ['./tile-group-auto-grid-example.css'],\n})\nexport class TileGroupAutoGridExampleComponent {\n  tiles = signal([\n    { label: 'Standard', value: 1, icon: 'product-car' },\n    { label: 'Premium', value: 2, icon: 'product-heart' },\n    { label: 'Family', value: 3, icon: 'product-plane' },\n    { label: 'Business', value: 4, icon: 'product-care-insurance' },\n    { label: 'Student', value: 5, icon: 'file' },\n    { label: 'Senior', value: 6, icon: 'globe' },\n  ]);\n  maxColumns = signal(4);\n}\n\n```\n```html\n<div class=\"auto-grid-controls\">\n  <nx-slider\n    id=\"maxColumnsSlider\"\n    [label]=\"'Max columns: ' + maxColumns()\"\n    [min]=\"1\"\n    [max]=\"8\"\n    [step]=\"1\"\n    [value]=\"maxColumns()\"\n    (valueChange)=\"maxColumns.set($event)\"\n    [thumbLabel]=\"false\"\n    style=\"width: 160px; margin-left: 1rem; align-self: center\"\n  ></nx-slider>\n</div>\n<div class=\"resizable-container\">\n  <nx-badge class=\"resize-badge\">Resize me</nx-badge>\n  <nx-tile-group [maxColumns]=\"maxColumns()\">\n    <nx-label>Choose an option</nx-label>\n    @for (tile of tiles(); track tile.value) {\n      <nx-tile [value]=\"tile.value\" [label]=\"tile.label\" [icon]=\"tile.icon\" />\n    }\n  </nx-tile-group>\n</div>\n\n```\n\n"
      },
      {
        "heading": "custom grid or other layouts",
        "level": 4,
        "content": "You can also use the tile group with a custom grid layout or any other layout like a flexbox. You can set the `autoGrid` input to `false` to disable the automatic grid layout and use your own layout by either changing the CSS grid settings of the `.nx-tile-group__tiles` class or by using a container around the tiles and then style it to your needs.\n\nIn this example it shows how you can use CSS to set the CSS grid properties and also use media queries.\n\n\n```ts\nimport { NxLabelComponent, NxLabelModule } from '@allianz/ng-aquila/base';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Tile Group Custom Grid Example\n */\n@Component({\n  selector: 'tile-group-custom-grid-example',\n  standalone: true,\n  imports: [\n    NxTileGroupComponent,\n    NxTileComponent,\n    NxIconModule,\n    NxLabelModule,\n    NxLabelComponent,\n  ],\n  templateUrl: './tile-group-custom-grid-example.html',\n  styleUrls: ['./tile-group-custom-grid-example.css'],\n})\nexport class TileGroupCustomGridExampleComponent {\n  tiles = signal([\n    { label: 'Standard', value: 1, icon: 'product-car' },\n    { label: 'Premium', value: 2, icon: 'product-heart' },\n    { label: 'Family', value: 3, icon: 'product-plane' },\n    { label: 'Business', value: 4, icon: 'product-care-insurance' },\n    { label: 'Student', value: 5, icon: 'file' },\n    { label: 'Senior', value: 6, icon: 'globe' },\n  ]);\n}\n\n```\n```html\n<nx-tile-group [autoGrid]=\"false\" class=\"custom-grid\">\n  <nx-label>Choose an option</nx-label>\n  @for (tile of tiles(); track tile.value) {\n    <nx-tile [value]=\"tile.value\" [label]=\"tile.label\" [icon]=\"tile.icon\" />\n  }\n</nx-tile-group>\n\n```\n\n"
      },
      {
        "heading": "tile layout variants",
        "level": 4,
        "content": "The individual Tile component support two different layout variants: vertical and horizontal. The layout can be set with the `layout` input. The default is vertical.\n\n\n```ts\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tile Layouts Example\n */\n@Component({\n  selector: 'tile-layouts-example',\n  templateUrl: './tile-layouts-example.html',\n  styleUrls: ['./tile-layouts-example.css'],\n  standalone: true,\n  imports: [NxTileComponent, NxTileGroupComponent],\n})\nexport class TileLayoutsExampleComponent {}\n\n```\n```html\n<p>Vertical Layout (with icons):</p>\n<nx-tile-group [tileLayout]=\"'vertical'\" selectionMode=\"single\">\n  <nx-tile\n    [label]=\"'Car Insurance'\"\n    [hint]=\"'Product car'\"\n    [icon]=\"'product-car'\"\n    value=\"car-vertical\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Care Insurance'\"\n    [hint]=\"'Product care insurance'\"\n    [icon]=\"'product-care-insurance'\"\n    value=\"care-vertical\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Heart'\"\n    [hint]=\"'Product heart'\"\n    [icon]=\"'product-heart'\"\n    value=\"heart-vertical\"\n  ></nx-tile>\n</nx-tile-group>\n\n<p>Vertical Layout (without icons):</p>\n<nx-tile-group selectionMode=\"single\" [tileLayout]=\"'vertical'\">\n  <nx-tile\n    [label]=\"'Car Insurance'\"\n    [hint]=\"'Product car'\"\n    value=\"car-vertical\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Care Insurance'\"\n    [hint]=\"'Product care insurance'\"\n    value=\"care-vertical\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Heart'\"\n    [hint]=\"'Product heart'\"\n    value=\"heart-vertical\"\n  ></nx-tile>\n</nx-tile-group>\n\n<p>Horizontal Layout (with icons):</p>\n<nx-tile-group [tileLayout]=\"'horizontal'\" selectionMode=\"multi\">\n  <nx-tile\n    [label]=\"'Plane'\"\n    [hint]=\"'Product plane'\"\n    [icon]=\"'product-plane'\"\n    value=\"plane-horizontal\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Search'\"\n    [hint]=\"'Product search'\"\n    [icon]=\"'product-search'\"\n    value=\"search-horizontal\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Car Insurance'\"\n    [hint]=\"'Product car'\"\n    [icon]=\"'product-car'\"\n    value=\"car-horizontal\"\n  ></nx-tile>\n</nx-tile-group>\n\n<p>Horizontal Layout (without icons):</p>\n<nx-tile-group [tileLayout]=\"'horizontal'\" selectionMode=\"multi\">\n  <nx-tile\n    [label]=\"'Option 1'\"\n    [hint]=\"'Hint 1'\"\n    value=\"option1-horizontal\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Option 2'\"\n    [hint]=\"'Hint 2'\"\n    value=\"option2-horizontal\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Option 3'\"\n    [hint]=\"'Hint 3'\"\n    value=\"option3-horizontal\"\n  ></nx-tile>\n</nx-tile-group>\n\n```\n\n\n"
      },
      {
        "heading": "single select",
        "level": 3,
        "content": "\n```ts\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Single Select Tile Group Example\n */\n@Component({\n  selector: 'tile-group-single-select-example',\n  templateUrl: './tile-group-single-select-example.html',\n  styleUrls: ['./tile-group-single-select-example.css'],\n  standalone: true,\n  imports: [NxTileComponent, NxTileGroupComponent],\n})\nexport class TileGroupSingleSelectExampleComponent {\n  selectedValue: string | null = null;\n}\n\n```\n```html\n<nx-tile-group selectionMode=\"single\" [(value)]=\"selectedValue\">\n  <nx-tile\n    [label]=\"'Car Insurance'\"\n    [icon]=\"'product-car'\"\n    [value]=\"'car'\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Care Insurance'\"\n    [icon]=\"'product-care-insurance'\"\n    [value]=\"'care'\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Heart'\"\n    [icon]=\"'product-heart'\"\n    [value]=\"'heart'\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Plane'\"\n    [icon]=\"'product-plane'\"\n    [value]=\"'plane'\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Search'\"\n    [icon]=\"'product-search'\"\n    [value]=\"'search'\"\n  ></nx-tile>\n</nx-tile-group>\n<p>Selected Value: {{ selectedValue }}</p>\n\n```\n\n"
      },
      {
        "heading": "multi select",
        "level": 3,
        "content": "\n```ts\nimport { NxLabelComponent, NxLabelModule } from '@allianz/ng-aquila/base';\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Multi Select Tile Group Example\n */\n@Component({\n  selector: 'tile-group-multi-select-example',\n  templateUrl: './tile-group-multi-select-example.html',\n  styleUrls: ['./tile-group-multi-select-example.css'],\n  standalone: true,\n  imports: [\n    NxTileComponent,\n    NxTileGroupComponent,\n    NxLabelModule,\n    NxLabelComponent,\n  ],\n})\nexport class TileGroupMultiSelectExampleComponent {\n  selectedValues: string[] = [];\n\n  tiles = signal([\n    {\n      label: 'Standard',\n      value: 'standard',\n      hint: 'Standard option',\n      icon: 'product-car',\n    },\n    {\n      label: 'Premium',\n      value: 'premium',\n      hint: 'Premium option',\n      icon: 'product-heart',\n    },\n    {\n      label: 'Business',\n      value: 'business',\n      hint: 'Business option',\n      icon: 'product-care-insurance',\n    },\n  ]);\n}\n\n```\n```html\n<nx-tile-group selectionMode=\"multi\" [(value)]=\"selectedValues\">\n  <nx-label>Choose options</nx-label>\n  @for (tile of tiles(); track tile.value) {\n    <nx-tile\n      [label]=\"tile.label\"\n      [hint]=\"tile.hint\"\n      [icon]=\"tile.icon\"\n      [value]=\"tile.value\"\n    ></nx-tile>\n  }\n</nx-tile-group>\n<p>Selected Values: {{ selectedValues.join(', ') }}</p>\n\n```\n\n"
      },
      {
        "heading": "readonly and disabled states",
        "level": 3,
        "content": "Tiles can be set to readonly or disabled states.\n**Readonly** tiles should only be used in internal applications because of accessibility restrictions.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxTileComponent,\n  NxTileGroupComponent,\n  NxTileSelectionMode,\n} from '@allianz/ng-aquila/tile';\nimport { Component, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Readonly and Disabled Tiles Example\n */\n@Component({\n  selector: 'tile-readonly-disabled-example',\n  templateUrl: './tile-readonly-disabled-example.html',\n  styleUrls: ['./tile-readonly-disabled-example.css'],\n  standalone: true,\n  imports: [\n    NxTileComponent,\n    NxTileGroupComponent,\n    NxLabelComponent,\n    FormsModule,\n  ],\n})\nexport class TileReadonlyDisabledExampleComponent {\n  readonly selectionMode = model<NxTileSelectionMode>('single');\n}\n\n```\n```html\n<nx-tile-group [(ngModel)]=\"selectionMode\" style=\"max-width: 400px\">\n  <nx-label>Selection mode</nx-label>\n  <nx-tile label=\"Single\" value=\"single\" />\n  <nx-tile label=\"Multi\" value=\"multi\" />\n</nx-tile-group>\n\n<p>Readonly Tiles:</p>\n<nx-tile-group [selectionMode]=\"selectionMode()\" [value]=\"'care'\">\n  <nx-tile\n    [label]=\"'Car Insurance'\"\n    [hint]=\"'Product car'\"\n    [icon]=\"'product-car'\"\n    [readonly]=\"true\"\n    value=\"car\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Care Insurance'\"\n    [hint]=\"'Product care insurance'\"\n    [icon]=\"'product-care-insurance'\"\n    [readonly]=\"true\"\n    value=\"care\"\n  ></nx-tile>\n</nx-tile-group>\n\n<p>Disabled Tiles:</p>\n<nx-tile-group [selectionMode]=\"selectionMode()\" [value]=\"'plane'\">\n  <nx-tile\n    [label]=\"'Heart'\"\n    [hint]=\"'Product heart'\"\n    [icon]=\"'product-heart'\"\n    [disabled]=\"true\"\n    value=\"heart\"\n  ></nx-tile>\n  <nx-tile\n    [label]=\"'Plane'\"\n    [hint]=\"'Product plane'\"\n    [icon]=\"'product-plane'\"\n    [disabled]=\"true\"\n    value=\"plane\"\n  ></nx-tile>\n</nx-tile-group>\n\n```\n\n\n<div class=\"docs-hide-ndbx\">\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "On a dark background the tiles switch to their inverse colors. Placing the group on an `attention` or\n`accent-attention` `nxSurface` does this without any input, and paints the matching background too.\n\n\n```ts\nimport { NxLabelComponent, NxLabelModule } from '@allianz/ng-aquila/base';\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport {\n  NxTileComponent,\n  NxTileGroupComponent,\n  NxTileSelectionMode,\n} from '@allianz/ng-aquila/tile';\nimport { Component, linkedSignal, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Inverse Tile Group Example\n */\n@Component({\n  selector: 'tile-group-negative-example',\n  templateUrl: './tile-group-negative-example.html',\n  styleUrls: ['./tile-group-negative-example.css'],\n  standalone: true,\n  imports: [\n    NxTileComponent,\n    NxTileGroupComponent,\n    NxLabelModule,\n    NxLabelComponent,\n    NxSurface,\n    FormsModule,\n  ],\n})\nexport class TileGroupNegativeExampleComponent {\n  readonlySelectedValue = 'standard';\n  disabledSelectedValue = 'standard';\n\n  readonly selectionMode = signal<NxTileSelectionMode>('single');\n\n  readonly toggleableValue = linkedSignal<\n    NxTileSelectionMode,\n    string | string[] | null\n  >({\n    source: this.selectionMode,\n    computation: (mode) => (mode === 'multi' ? [] : null),\n  });\n\n  tiles = signal([\n    {\n      label: 'Standard',\n      value: 'standard',\n      hint: 'Standard option',\n      icon: 'product-car',\n    },\n    {\n      label: 'Premium',\n      value: 'premium',\n      hint: 'Premium option',\n      icon: 'product-heart',\n    },\n    {\n      label: 'Business',\n      value: 'business',\n      hint: 'Business option',\n      icon: 'product-care-insurance',\n    },\n  ]);\n}\n\n```\n```html\n<div nxSurface=\"attention\" class=\"docs-tile-group-surface\">\n  <nx-tile-group [(ngModel)]=\"selectionMode\">\n    <nx-label [negative]=\"true\">Selection mode</nx-label>\n    <nx-tile label=\"Single\" value=\"single\" />\n    <nx-tile label=\"Multi\" value=\"multi\" />\n  </nx-tile-group>\n  <br />\n  <nx-tile-group [selectionMode]=\"selectionMode()\" [(value)]=\"toggleableValue\">\n    <nx-label [negative]=\"true\">Choose options</nx-label>\n    @for (tile of tiles(); track tile.value) {\n      <nx-tile\n        [label]=\"tile.label\"\n        [hint]=\"tile.hint\"\n        [icon]=\"tile.icon\"\n        [value]=\"tile.value\"\n      ></nx-tile>\n    }\n  </nx-tile-group>\n  <br />\n  <nx-tile-group\n    [selectionMode]=\"selectionMode()\"\n    [(value)]=\"readonlySelectedValue\"\n    [readonly]=\"true\"\n  >\n    <nx-label [negative]=\"true\">Readonly options</nx-label>\n    @for (tile of tiles(); track tile.value) {\n      <nx-tile\n        [label]=\"tile.label\"\n        [hint]=\"tile.hint\"\n        [icon]=\"tile.icon\"\n        [value]=\"tile.value\"\n      ></nx-tile>\n    }\n  </nx-tile-group>\n  <br />\n  <nx-tile-group\n    [selectionMode]=\"selectionMode()\"\n    [(value)]=\"disabledSelectedValue\"\n    [disabled]=\"true\"\n  >\n    <nx-label [negative]=\"true\">Disabled options</nx-label>\n    @for (tile of tiles(); track tile.value) {\n      <nx-tile\n        [label]=\"tile.label\"\n        [hint]=\"tile.hint\"\n        [icon]=\"tile.icon\"\n        [value]=\"tile.value\"\n      ></nx-tile>\n    }\n  </nx-tile-group>\n</div>\n\n```\n\n\nThe error state inverts along with the rest. The projected `nx-error` does not, and keeps its regular critical color.\n\n\n```ts\nimport {\n  NxErrorComponent,\n  NxLabelComponent,\n  NxLabelModule,\n} from '@allianz/ng-aquila/base';\nimport { NxSurface } from '@allianz/ng-aquila/surface';\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { AfterViewInit, Component } from '@angular/core';\nimport {\n  AbstractControl,\n  FormControl,\n  ReactiveFormsModule,\n  ValidationErrors,\n  Validators,\n} from '@angular/forms';\n\nconst premiumOnly = (control: AbstractControl): ValidationErrors | null => {\n  const selected: readonly string[] = Array.isArray(control.value)\n    ? control.value\n    : [control.value];\n\n  return selected.every((value) => value === 'premium')\n    ? null\n    : { premiumOnly: true };\n};\n\n/**\n * @title Inverse Tile Group Error State Example\n */\n@Component({\n  selector: 'tile-group-inverse-error-example',\n  standalone: true,\n  templateUrl: './tile-group-inverse-error-example.html',\n  styleUrls: ['./tile-group-inverse-error-example.css'],\n  imports: [\n    ReactiveFormsModule,\n    NxTileComponent,\n    NxTileGroupComponent,\n    NxErrorComponent,\n    NxLabelModule,\n    NxLabelComponent,\n    NxSurface,\n  ],\n})\nexport class TileGroupInverseErrorExampleComponent implements AfterViewInit {\n  tileControl = new FormControl('standard', [Validators.required, premiumOnly]);\n  multiTileControl = new FormControl(\n    ['standard', 'family'],\n    [Validators.required, premiumOnly],\n  );\n  tiles = [\n    { value: 'standard', label: 'Standard', icon: 'product-car' },\n    { value: 'premium', label: 'Premium', icon: 'product-heart' },\n    { value: 'family', label: 'Family', icon: 'product-plane' },\n  ];\n\n  ngAfterViewInit() {\n    this.tileControl.markAsTouched();\n    this.multiTileControl.markAsTouched();\n  }\n}\n\n```\n```html\n<div nxSurface=\"attention\" class=\"docs-tile-group-surface\">\n  <form>\n    <nx-tile-group [formControl]=\"tileControl\">\n      <nx-label [negative]=\"true\">Choose an option</nx-label>\n      @for (tile of tiles; track tile.value) {\n        <nx-tile\n          [value]=\"tile.value\"\n          [label]=\"tile.label\"\n          [icon]=\"tile.icon\"\n        ></nx-tile>\n      }\n      <nx-error>Only Premium is available right now</nx-error>\n    </nx-tile-group>\n    <br />\n    <nx-tile-group selectionMode=\"multi\" [formControl]=\"multiTileControl\">\n      <nx-label [negative]=\"true\">Choose one or more options</nx-label>\n      @for (tile of tiles; track tile.value) {\n        <nx-tile\n          [value]=\"tile.value\"\n          [label]=\"tile.label\"\n          [icon]=\"tile.icon\"\n        ></nx-tile>\n      }\n      <nx-error>Only Premium is available right now</nx-error>\n    </nx-tile-group>\n  </form>\n</div>\n\n```\n\n\n</div>\n\n"
      },
      {
        "heading": "content projection",
        "level": 3,
        "content": "In case custom content or formatting is desired, the tile label and hint support content projection. If provided, the `label` and `hint` inputs will take priority over projected content.\n\n**Note:** Projected content should be text or screenreader-compatible, as hints are referenced by `aria-describedby` for accessibility.\n"
      },
      {
        "heading": "usage",
        "level": 4,
        "content": "To project content,\n- use `<nxTileLabel>` for the label\n- use `<nxTileHint>` for the hint\n\n\n```ts\nimport {\n  NxTileComponent,\n  NxTileGroupComponent,\n  NxTileHintDirective,\n  NxTileLabelDirective,\n} from '@allianz/ng-aquila/tile';\nimport { Component } from '@angular/core';\n\n/**\n * @title Content Projection Example\n */\n@Component({\n  selector: 'tile-content-projection-example',\n  templateUrl: './tile-content-projection-example.html',\n  styleUrl: './tile-content-projection-example.css',\n  imports: [\n    NxTileGroupComponent,\n    NxTileComponent,\n    NxTileLabelDirective,\n    NxTileHintDirective,\n  ],\n})\nexport class TileContentProjectionExampleComponent {}\n\n```\n```html\n<nx-tile-group>\n  <nx-tile [icon]=\"'product-car'\" value=\"tile1\">\n    <nxTileLabel> Label<br />contains HTML </nxTileLabel>\n    <nxTileHint>\n      Hint <span class=\"nx-font-weight-bold\">contains HTML</span>\n    </nxTileHint>\n  </nx-tile>\n</nx-tile-group>\n\n```\n\n"
      },
      {
        "heading": "forms",
        "level": 3,
        "content": "The tile component supports both the FormsModule and ReactiveFormsModule of Angular.\n"
      },
      {
        "heading": "template-driven forms",
        "level": 4,
        "content": "\n```ts\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Tile Template-driven Forms Example\n */\n@Component({\n  selector: 'tile-template-driven-example',\n  templateUrl: './tile-template-driven-example.html',\n  styleUrls: ['./tile-template-driven-example.css'],\n  standalone: true,\n  imports: [NxTileComponent, NxTileGroupComponent, FormsModule],\n})\nexport class TileTemplateDrivenExampleComponent {\n  selectedTile = 'car';\n}\n\n```\n```html\n<form #form=\"ngForm\">\n  <nx-tile-group name=\"tileGroup\" [(ngModel)]=\"selectedTile\">\n    <nx-tile\n      [label]=\"'Car Insurance'\"\n      [icon]=\"'product-car'\"\n      value=\"car\"\n    ></nx-tile>\n    <nx-tile\n      [label]=\"'Care Insurance'\"\n      [icon]=\"'product-care-insurance'\"\n      value=\"care\"\n    ></nx-tile>\n    <nx-tile [label]=\"'Heart'\" [icon]=\"'product-heart'\" value=\"heart\"></nx-tile>\n  </nx-tile-group>\n</form>\n<p>Selected: {{ selectedTile }}</p>\n\n```\n\n"
      },
      {
        "heading": "reactive forms",
        "level": 4,
        "content": "\n```ts\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { Component } from '@angular/core';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Tile Reactive Forms Example\n */\n@Component({\n  selector: 'tile-reactive-forms-example',\n  templateUrl: './tile-reactive-forms-example.html',\n  styleUrls: ['./tile-reactive-forms-example.css'],\n  standalone: true,\n  imports: [NxTileComponent, NxTileGroupComponent, ReactiveFormsModule],\n})\nexport class TileReactiveFormsExampleComponent {\n  form: FormGroup;\n\n  constructor(private readonly fb: FormBuilder) {\n    this.form = this.fb.group({\n      tileGroup: ['car'],\n    });\n  }\n}\n\n```\n```html\n<form [formGroup]=\"form\">\n  <nx-tile-group formControlName=\"tileGroup\">\n    <nx-tile\n      [label]=\"'Car Insurance'\"\n      [icon]=\"'product-car'\"\n      value=\"car\"\n    ></nx-tile>\n    <nx-tile\n      [label]=\"'Care Insurance'\"\n      [icon]=\"'product-care-insurance'\"\n      value=\"care\"\n    ></nx-tile>\n    <nx-tile [label]=\"'Heart'\" [icon]=\"'product-heart'\" value=\"heart\"></nx-tile>\n  </nx-tile-group>\n</form>\n<p>Selected: {{ form.get('tileGroup')?.value }}</p>\n<p>Touched: {{ form.get('tileGroup')?.touched }}</p>\n\n```\n\n\n"
      },
      {
        "heading": "validation / error state",
        "level": 4,
        "content": "The tile group is compatible with Angular's form validation. The error state will be shown when the form control is invalid and touched.\n\n\n```ts\nimport {\n  NxErrorComponent,\n  NxLabelComponent,\n  NxLabelModule,\n} from '@allianz/ng-aquila/base';\nimport { NxButtonModule } from '@allianz/ng-aquila/button';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { NxTileComponent, NxTileGroupComponent } from '@allianz/ng-aquila/tile';\nimport { AfterViewInit, Component, viewChild } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Tile Validation Error State Example\n */\n@Component({\n  selector: 'tile-validation-error-state-example',\n  standalone: true,\n  templateUrl: './tile-validation-error-state-example.html',\n  styleUrls: ['./tile-validation-error-state-example.css'],\n  imports: [\n    ReactiveFormsModule,\n    NxTileComponent,\n    NxTileGroupComponent,\n    NxIconModule,\n    NxButtonModule,\n    NxErrorComponent,\n    NxLabelModule,\n    NxLabelComponent,\n  ],\n})\nexport class TileValidationErrorStateExample implements AfterViewInit {\n  tileControl = new FormControl('car');\n  tiles = [\n    { value: 'standard', label: 'Standard', icon: 'product-car' },\n    { value: 'premium', label: 'Premium', icon: 'product-heart' },\n    { value: 'family', label: 'Family', icon: 'product-plane' },\n  ];\n  group = viewChild(NxTileGroupComponent);\n\n  ngAfterViewInit() {\n    this.tileControl.markAsTouched();\n    this.tileControl.updateValueAndValidity();\n    this.tileControl.setErrors({ someError: true }, { emitEvent: true });\n  }\n}\n\n```\n```html\n<form>\n  <nx-tile-group #group [formControl]=\"tileControl\">\n    <nx-label>Choose an option</nx-label>\n    @for (tile of tiles; track tile.value) {\n      <nx-tile\n        [value]=\"tile.value\"\n        [label]=\"tile.label\"\n        [icon]=\"tile.icon\"\n      ></nx-tile>\n    }\n    <nx-error>This field is required</nx-error>\n  </nx-tile-group>\n</form>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "timefield.md",
    "title": "Timefield",
    "category": "components",
    "alias": [
      "timepicker",
      "time input"
    ],
    "sections": [
      {
        "heading": "formfield features",
        "level": 3,
        "content": "`nx-timefield` wraps an `nx-formfield` internally and supports the same label, styling and content slots: `label`, `optionalLabel`, `appearance`, `negative`, `inline`, as well as the `nxFormfieldPrefix`, `nxFormfieldSuffix`, `nxFormfieldAppendix` and `nxLabelInfo` content projection slots. See the [formfield documentation](./documentation/formfield) for details on each. The example below shows them combined.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxIconButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxTimefieldModule } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Timefield full features example\n */\n@Component({\n  selector: 'timefield-full-features-example',\n  templateUrl: './timefield-full-features-example.html',\n  styleUrl: './timefield-full-features-example.css',\n  imports: [\n    NxTimefieldModule,\n    ReactiveFormsModule,\n    NxErrorComponent,\n    NxInfoIconComponent,\n    NxIconComponent,\n    NxIconButtonComponent,\n  ],\n})\nexport class TimefieldFullFeaturesExampleComponent {\n  timeControl = new FormControl('', [Validators.required]);\n\n  constructor() {\n    // Mark as touched so the error state is visible on load.\n    this.timeControl.markAsTouched();\n    this.timeControl.updateValueAndValidity();\n  }\n}\n\n```\n```html\n<nx-timefield\n  label=\"Departure time\"\n  optionalLabel=\"optional\"\n  hint=\"Enter the time in 24h format\"\n  withTimepicker\n  [formControl]=\"timeControl\"\n>\n  <span nxFormfieldPrefix>From</span>\n  <span nxFormfieldSuffix>h</span>\n  <button\n    nxFormfieldAppendix\n    nxIconButton=\"tertiary small\"\n    type=\"button\"\n    aria-label=\"Open settings\"\n  >\n    <nx-icon name=\"setting\" size=\"s\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <nx-info-icon nxLabelInfo>\n    The departure time is shown in your local timezone.\n  </nx-info-icon>\n  <nx-error>\n    @if (timeControl.hasError('required')) {\n      A departure time is required.\n    }\n  </nx-error>\n</nx-timefield>\n\n```\n\n"
      },
      {
        "heading": "timefield",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorModule } from '@allianz/ng-aquila/base';\nimport { NxTimefieldModule } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Timefield without timepicker example\n */\n@Component({\n  selector: 'timefield-default-example',\n  templateUrl: './timefield-default-example.html',\n  styleUrls: ['./timefield-default-example.css'],\n  imports: [NxTimefieldModule, NxErrorModule, ReactiveFormsModule],\n})\nexport class TimefieldDefaultExampleComponent {\n  readonly testForm = this.fb.group({\n    timefieldReactive: ['22:54', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-timefield label=\"Time\" hint=\"Hint\" formControlName=\"timefieldReactive\">\n    <nx-error> Invalid time input. </nx-error>\n  </nx-timefield>\n</form>\n\n```\n\n"
      },
      {
        "heading": "with timepicker dropdown",
        "level": 3,
        "content": "You can opt in to use the timepicker dropdown by setting the `withTimepicker` input to `true`. The timepicker dropdown will be displayed either by clicking on the icon button or when the user starts typing inside the input fields.\n\n**Important:** With the timepicker enabled you have to translate the `buttonOpenTimepickerAriaLabel` in the `NxTimefieldIntl` class for non-english languages to provide a meaningful label for the timepicker button.\n\n\n```ts\nimport { NxErrorModule } from '@allianz/ng-aquila/base';\nimport { NxTimefieldModule } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Timefield with timepicker\n */\n@Component({\n  selector: 'timefield-with-timepicker-example',\n  templateUrl: './timefield-with-timepicker-example.html',\n  styleUrls: ['./timefield-with-timepicker-example.css'],\n  imports: [NxTimefieldModule, NxErrorModule, ReactiveFormsModule],\n})\nexport class TimefieldWithTimepickerExampleComponent {}\n\n```\n```html\n<nx-timefield label=\"Time\" withTimepicker></nx-timefield>\n\n```\n\n"
      },
      {
        "heading": "changing the timepicker options",
        "level": 4,
        "content": "You can set the start time, end time or the desired interval via component inputs.\n\n\n```ts\nimport { NxCopytextModule } from '@allianz/ng-aquila/copytext';\nimport { NxTimefieldModule } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\n\n/**\n * @title Timefield different options\n */\n@Component({\n  selector: 'timefield-options-interval-example',\n  templateUrl: './timefield-options-interval-example.html',\n  styleUrls: ['./timefield-options-interval-example.css'],\n  imports: [NxTimefieldModule, NxCopytextModule],\n})\nexport class TimefieldOptionsIntervalExampleComponent {}\n\n```\n```html\n<p nxCopytext=\"large\" class=\"nx-margin-bottom-m\">\n  Timepicker ranging from 10:00 to 18:00 with the default 30 minute interval\n</p>\n<nx-timefield\n  label=\"Time\"\n  pickerStartTime=\"10:00\"\n  pickerEndTime=\"18:30\"\n  withTimepicker\n></nx-timefield>\n\n<p nxCopytext=\"large\" class=\"nx-margin-y-m\">\n  Timepicker with a 60 minute interval\n</p>\n\n<nx-timefield\n  label=\"Time\"\n  pickerTimeInterval=\"60\"\n  withTimepicker\n></nx-timefield>\n\n```\n\n"
      },
      {
        "heading": "enabling timepicker globally",
        "level": 4,
        "content": "You can enable the timepicker globally by providing the `TimefieldDefaultOptions` and set `withTimepicker` to `true`, see the example below.\n\n\n```ts\nimport { NxErrorModule } from '@allianz/ng-aquila/base';\nimport {\n  NxTimefieldModule,\n  TIMEFIELD_DEFAULT_OPTIONS,\n} from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Timefield with timepicker enabled globally\n */\n@Component({\n  selector: 'timefield-with-timepicker-global-example',\n  templateUrl: './timefield-with-timepicker-global-example.html',\n  styleUrls: ['./timefield-with-timepicker-global-example.css'],\n  imports: [NxTimefieldModule, NxErrorModule, ReactiveFormsModule],\n  providers: [\n    {\n      provide: TIMEFIELD_DEFAULT_OPTIONS,\n      useValue: { withTimepicker: true },\n    },\n  ],\n})\nexport class TimefieldWithTimepickerGlobalExampleComponent {}\n\n```\n```html\n<nx-timefield label=\"Time\"></nx-timefield>\n\n```\n\n"
      },
      {
        "heading": "configuring inputmode",
        "level": 3,
        "content": "The timefield component supports different input modes to control the virtual keyboard display in browsers. By default, the input mode is set to 'decimal'. You can configure the input mode using the `inputMode` property\n\n```ts\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Timefield inputmode example\n */\n@Component({\n  selector: 'timefield-with-inputmode',\n  imports: [FormsModule, NxTimefieldComponent],\n  templateUrl: './timefield-with-inputmode-example.html',\n  styleUrl: './timefield-with-inputmode-example.css',\n})\nexport class TimefieldWithInputmode {}\n\n```\n```html\n<nx-timefield label=\"Time\" withTimepicker inputMode=\"text\"></nx-timefield>\n\n```\n\n"
      },
      {
        "heading": "enable time validation",
        "level": 3,
        "content": "You can use `enableTimeValidation` to use the validator for invalid times. This validator adds a `timefieldValueError` error to the form control if the time is invalid, e.g. if the one of the inputs is not set or the numbers are not in the correct range.\n\n\n```ts\nimport { NxErrorModule } from '@allianz/ng-aquila/base';\nimport {\n  NxTimefieldComponent,\n  NxTimefieldModule,\n} from '@allianz/ng-aquila/timefield';\nimport { JsonPipe } from '@angular/common';\nimport { AfterViewInit, Component, viewChild } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Timefield without timepicker example\n */\n@Component({\n  selector: 'timefield-custom-validation-example',\n  templateUrl: './timefield-custom-validation-example.html',\n  styleUrls: ['./timefield-custom-validation-example.css'],\n  imports: [NxTimefieldModule, NxErrorModule, ReactiveFormsModule, JsonPipe],\n})\nexport class TimefieldCustomValidationExampleComponent implements AfterViewInit {\n  timefield = viewChild.required(NxTimefieldComponent);\n\n  readonly testForm = this.fb.group({\n    timefieldReactive: [''],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n\n  ngAfterViewInit() {\n    // this is only to simulate user input that the example already shows the error\n    this.timefield().hours = '33';\n    this.testForm.controls.timefieldReactive.markAsTouched();\n    this.testForm.controls.timefieldReactive.updateValueAndValidity();\n  }\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-timefield\n    label=\"Time\"\n    formControlName=\"timefieldReactive\"\n    enableTimeValidation\n  >\n    <nx-error> Invalid time input. </nx-error>\n  </nx-timefield>\n</form>\n\n<p>Errors: {{ testForm.controls.timefieldReactive.errors | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "reactive forms",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { JsonPipe } from '@angular/common';\nimport { Component } from '@angular/core';\nimport {\n  FormBuilder,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n/**\n * @title Timefield reactive forms example\n */\n@Component({\n  selector: 'timefield-reactive-example',\n  templateUrl: './timefield-reactive-example.html',\n  styleUrls: ['./timefield-reactive-example.css'],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxTimefieldComponent,\n    NxErrorComponent,\n    JsonPipe,\n  ],\n})\nexport class TimefieldReactiveExampleComponent {\n  readonly testForm = this.fb.group({\n    timefieldReactive: ['22:54', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <nx-timefield label=\"Time\" formControlName=\"timefieldReactive\">\n    <nx-error> Invalid time input. </nx-error>\n  </nx-timefield>\n</form>\n\n<p class=\"nx-margin-bottom-0\">Form value (24h): {{ testForm.value | json }}</p>\n<p class=\"nx-margin-y-0\">Form status: {{ testForm.status | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "template driven forms",
        "level": 3,
        "content": "\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/** @title Timefield Template Driven Form */\n@Component({\n  selector: 'timefield-template-driven-example',\n  templateUrl: './timefield-template-driven-example.html',\n  styleUrls: ['./timefield-template-driven-example.css'],\n  imports: [FormsModule, NxTimefieldComponent, NxErrorComponent],\n})\nexport class TimefieldTemplateDrivenExampleComponent {\n  templateModel = '14:54';\n}\n\n```\n```html\n<form>\n  <nx-timefield\n    [(ngModel)]=\"templateModel\"\n    name=\"templateTest\"\n    label=\"Time\"\n    required\n  >\n    <nx-error> Invalid time input. </nx-error>\n  </nx-timefield>\n  <p>Model Value (24h format): {{ templateModel }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "12h time format toggle",
        "level": 3,
        "content": "12h time format AM/PM toggler can be activated using `twelveHourFormat` input. Note that the model value will always be returned in 24h format.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Timefield format toggler example\n */\n@Component({\n  selector: 'timefield-format-toggler-example',\n  templateUrl: './timefield-format-toggler-example.html',\n  styleUrls: ['./timefield-format-toggler-example.css'],\n  imports: [FormsModule, NxTimefieldComponent, NxErrorComponent],\n})\nexport class TimefieldFormatTogglerExampleComponent {\n  templateModel = '12:01';\n}\n\n```\n```html\n<form>\n  <nx-timefield\n    required\n    [(ngModel)]=\"templateModel\"\n    name=\"templateTest\"\n    label=\"Time\"\n    twelveHourFormat\n  >\n    <nx-error> Invalid time input. </nx-error>\n  </nx-timefield>\n  <p>Model Value (24h format): {{ templateModel }}</p>\n</form>\n\n```\n\n"
      },
      {
        "heading": "disabled",
        "level": 3,
        "content": "With `[disabled]` the timefield inputs and radio group can be disabled.\n\n\n```ts\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Timefield disabled example\n */\n@Component({\n  selector: 'timefield-disabled-example',\n  templateUrl: './timefield-disabled-example.html',\n  styleUrls: ['./timefield-disabled-example.css'],\n  imports: [FormsModule, NxTimefieldComponent],\n})\nexport class TimefieldDisabledExampleComponent {\n  templateModel = '12:54';\n}\n\n```\n```html\n<form>\n  <nx-timefield\n    disabled\n    [(ngModel)]=\"templateModel\"\n    name=\"templateTest\"\n    label=\"Time\"\n    twelveHourFormat\n  ></nx-timefield>\n</form>\n\n```\n\n"
      },
      {
        "heading": "readonly",
        "level": 3,
        "content": "With `[readonly]` the timefield inputs and radio group can be set to readonly.\n\n\n```ts\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Timefield readonly example\n */\n@Component({\n  selector: 'timefield-readonly-example',\n  templateUrl: './timefield-readonly-example.html',\n  styleUrls: ['./timefield-readonly-example.css'],\n  imports: [FormsModule, NxTimefieldComponent],\n})\nexport class TimefieldReadonlyExampleComponent {\n  templateModel = '12:54';\n}\n\n```\n```html\n<form>\n  <nx-timefield\n    [readonly]=\"true\"\n    [(ngModel)]=\"templateModel\"\n    name=\"templateTest\"\n    label=\"Time\"\n    twelveHourFormat\n  ></nx-timefield>\n  <nx-timefield\n    class=\"nx-margin-top-s\"\n    [readonly]=\"true\"\n    [(ngModel)]=\"templateModel\"\n    name=\"timepickerTest\"\n    label=\"Time with timepicker\"\n    withTimepicker\n  ></nx-timefield>\n</form>\n\n```\n\n"
      },
      {
        "heading": "negative styling",
        "level": 3,
        "content": "You can apply the negative styling to the timefield by using the `[negative]` input.\n\n\n```ts\nimport { NxTimefieldComponent } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n/**\n * @title Timefield negative example\n */\n@Component({\n  selector: 'timefield-negative-example',\n  templateUrl: './timefield-negative-example.html',\n  styleUrls: ['./timefield-negative-example.css'],\n  imports: [FormsModule, NxTimefieldComponent],\n})\nexport class TimefieldNegativeExampleComponent {\n  templateModel = '00:54';\n  templateModel2 = '12:54';\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <form>\n    <nx-timefield\n      negative\n      twelveHourFormat\n      [(ngModel)]=\"templateModel\"\n      name=\"templateTest\"\n      label=\"Time\"\n    ></nx-timefield>\n    <br />\n    <nx-timefield\n      negative\n      disabled\n      twelveHourFormat\n      [(ngModel)]=\"templateModel2\"\n      name=\"templateTest2\"\n      label=\"Time\"\n    ></nx-timefield>\n  </form>\n</div>\n\n```\n\n"
      },
      {
        "heading": "inline",
        "level": 3,
        "content": "With the `[inline]` input the timefield is rendered in a compact way: the label is visually hidden and the reserved space around the field is removed. The input is forwarded to the underlying formfield. Always provide a meaningful `label` as it is kept for assistive technology.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { NxGridModule } from '@allianz/ng-aquila/grid';\nimport { NxInfoIconComponent } from '@allianz/ng-aquila/info-icon';\nimport { NxListComponent } from '@allianz/ng-aquila/list';\nimport { NxSignalButtonComponent } from '@allianz/ng-aquila/signal-button';\nimport { NxTimefieldModule } from '@allianz/ng-aquila/timefield';\nimport { Component } from '@angular/core';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Timefield inline example\n */\n@Component({\n  selector: 'timefield-inline-example',\n  templateUrl: './timefield-inline-example.html',\n  styleUrl: './timefield-inline-example.css',\n  imports: [\n    NxTimefieldModule,\n    ReactiveFormsModule,\n    NxGridModule,\n    NxErrorComponent,\n    NxSignalButtonComponent,\n    NxListComponent,\n    NxInfoIconComponent,\n  ],\n})\nexport class TimefieldInlineExampleComponent {\n  timeControl = new FormControl('', [Validators.required]);\n\n  constructor() {\n    // Mark as touched so the inline error state is visible on load.\n    this.timeControl.markAsTouched();\n    this.timeControl.updateValueAndValidity();\n  }\n}\n\n```\n```html\n<div class=\"example-row\">\n  <nx-timefield label=\"Time\" inline>\n    <input nxInput aria-labelledby=\"amount-label\" />\n  </nx-timefield>\n</div>\n\n<!--\n  Inline mode hides the projected error message, so the validation state is\n  surfaced with a signal button in the suffix slot instead. The projected\n  `nx-error` is kept (only visually hidden) so the formfield still wires it up\n  as `aria-describedby` / `aria-invalid` on the control for assistive tech.\n-->\n<div class=\"example-row nx-margin-top-s\">\n  <nx-timefield label=\"Time\" inline [formControl]=\"timeControl\" withTimepicker>\n    @if (timeControl.invalid && timeControl.touched) {\n      <nx-signal-button\n        nxFormfieldSuffix\n        context=\"critical\"\n        popoverDirection=\"bottom\"\n        aria-label=\"Show validation errors for Time field\"\n      >\n        <div nxPopoverTitle>\n          <h3 nxHeadline=\"subsection-xsmall\" class=\"nx-margin-bottom-2xs\">\n            Please review this field\n          </h3>\n        </div>\n        <ul nxPopoverMainContent nxList class=\"error-list\">\n          @if (timeControl.hasError('required')) {\n            <li>A time is required.</li>\n          }\n        </ul>\n      </nx-signal-button>\n    }\n\n    <nx-error>\n      @if (timeControl.hasError('required')) {\n        A time is required.\n      }\n    </nx-error>\n\n    <nx-info-icon nxLabelInfo>Hello</nx-info-icon>\n  </nx-timefield>\n</div>\n\n```\n\n"
      },
      {
        "heading": "expert",
        "level": 3,
        "content": "Switching the appearance will typically happen by providers, e.g. from the `NxExpertModule`, then you can omit the `appearance` input property. But you can also set the appearance directly on the component with the `appearance` property.\n\n \n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport { FORMFIELD_DEFAULT_OPTIONS } from '@allianz/ng-aquila/formfield';\nimport { NxGridModule } from '@allianz/ng-aquila/grid';\nimport { NxTimefieldModule } from '@allianz/ng-aquila/timefield';\nimport { JsonPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\n\n/**\n * @title Timefield Expert example\n */\n@Component({\n  selector: 'timefield-expert-example',\n  templateUrl: './timefield-expert-example.html',\n  styleUrl: './timefield-expert-example.css',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  providers: [\n    {\n      // This is usually coming from the NxExpertModule or other providers.\n      // We use this here just for the demo purposes.\n      provide: FORMFIELD_DEFAULT_OPTIONS,\n      useValue: { appearance: 'outline' },\n    },\n  ],\n  imports: [\n    NxTimefieldModule,\n    ReactiveFormsModule,\n    NxGridModule,\n    JsonPipe,\n    NxErrorComponent,\n  ],\n})\nexport class TimefieldExpertExampleComponent {\n  readonly testForm = this.fb.group({\n    timefieldReactive: ['22:54', Validators.required],\n    timefieldPickerReactive: ['20:15', Validators.required],\n    timefield12Reactive: ['', Validators.required],\n  });\n\n  constructor(private readonly fb: FormBuilder) {}\n}\n\n```\n```html\n<form [formGroup]=\"testForm\">\n  <div nxLayout=\"grid\">\n    <div nxRow>\n      <div nxCol=\"12,12,4\">\n        <nx-timefield\n          label=\"Time\"\n          formControlName=\"timefieldReactive\"\n          appearance=\"outline\"\n        >\n          <nx-error> Invalid time input. </nx-error>\n        </nx-timefield>\n      </div>\n      <div nxCol=\"12,12,4\">\n        <nx-timefield\n          label=\"Time\"\n          formControlName=\"timefieldPickerReactive\"\n          appearance=\"outline\"\n          withTimepicker\n        >\n          <nx-error> Invalid time input. </nx-error>\n        </nx-timefield>\n      </div>\n      <div nxCol=\"12,12,4\">\n        <nx-timefield\n          label=\"Time\"\n          formControlName=\"timefield12Reactive\"\n          twelveHourFormat\n          appearance=\"outline\"\n        >\n          <nx-error> Invalid time input. </nx-error>\n        </nx-timefield>\n      </div>\n    </div>\n  </div>\n</form>\n\n<p class=\"nx-margin-bottom-0\">Form value: {{ testForm.value | json }}</p>\n<p class=\"nx-margin-y-0\">Form status: {{ testForm.status | json }}</p>\n\n```\n\n"
      },
      {
        "heading": "localization",
        "level": 3,
        "content": "By default input fields and the timepicker button have english aria-labels. To translate them you can subclass the `NxTimefieldIntl` and provide it in your module.\n\nThe default aria-label's are:\n\n-   hours input (hh): \"hours\"\n-   minutes input (mm): \"minutes\"\n-   timepicker button: \"Open time picker\"\n\nThereby you can provide your own translations for the inputs as given in the example below.\n\n\n```ts\nimport { NxErrorComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxTimefieldComponent,\n  NxTimefieldIntl,\n} from '@allianz/ng-aquila/timefield';\nimport { Component, Injectable, OnInit } from '@angular/core';\nimport {\n  FormControl,\n  FormGroup,\n  FormsModule,\n  ReactiveFormsModule,\n  Validators,\n} from '@angular/forms';\n\n@Injectable()\nexport class MyIntl extends NxTimefieldIntl {\n  inputFieldHoursAriaLabel = 'stunden';\n  inputFieldMinutesAriaLabel = 'minuten';\n}\n\n/**\n * @title Localization example\n */\n@Component({\n  selector: 'timefield-localize-example',\n  templateUrl: './timefield-localize-example.html',\n  styleUrls: ['./timefield-localize-example.css'],\n  providers: [{ provide: NxTimefieldIntl, useClass: MyIntl }],\n  imports: [\n    FormsModule,\n    ReactiveFormsModule,\n    NxTimefieldComponent,\n    NxErrorComponent,\n  ],\n})\nexport class TimefieldLocalizeExampleComponent implements OnInit {\n  testForm!: FormGroup;\n\n  ngOnInit(): void {\n    this.testForm = new FormGroup({\n      today: new FormControl('', {\n        validators: [Validators.required],\n      }),\n    });\n  }\n}\n\n```\n```html\n<form #form=\"ngForm\" [formGroup]=\"testForm\">\n  <nx-timefield formControlName=\"today\">\n    <nx-error class=\"nx-margin-y-xs\"> Invalid time input. </nx-error>\n  </nx-timefield>\n</form>\n\n```\n\n\n"
      }
    ]
  },
  {
    "name": "toggle-button.md",
    "title": "Toggle Button (A1)",
    "category": "components",
    "alias": [
      "toggle button group",
      "choice button"
    ],
    "sections": [
      {
        "heading": "basic",
        "level": 3,
        "content": "The label is projected as a `nx-label`, so all label features such as the info icon are available.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Toggle Button Basic Example\n */\n@Component({\n  selector: 'toggle-button-basic-example',\n  templateUrl: './toggle-button-basic-example.html',\n  imports: [\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class ToggleButtonBasicExampleComponent {\n  intervals = [\n    { value: 'monthly', label: 'Monthly' },\n    { value: 'quarterly', label: 'Quarterly' },\n    { value: 'yearly', label: 'Yearly' },\n  ];\n  interval = signal('monthly');\n}\n\n```\n```html\n<nx-toggle-button-group [(value)]=\"interval\">\n  <nx-label>Payment interval</nx-label>\n  @for (item of intervals; track item.value) {\n    <nx-toggle-button [value]=\"item.value\">{{ item.label }}</nx-toggle-button>\n  }\n</nx-toggle-button-group>\n\n<p>Selected: {{ interval() }}</p>\n\n```\n\n"
      },
      {
        "heading": "layout",
        "level": 3,
        "content": "The group arranges the buttons in as many columns as fit into the available width and wraps the rest\ninto the next line. No media or container queries are needed for the group itself.\n\n- `columnSizing` (default `content`) makes every button as wide as its content. With `equal` all\n  buttons share the same width.\n- `maxColumns` caps the number of columns and only applies to `columnSizing=\"equal\"`. It is a maximum,\n  not a fixed number: if the available space is too small for that many buttons, fewer columns are\n  used. With `content` sizing the number of columns follows from the width of the buttons, so there is\n  nothing to cap and the input has no effect.\n- `autoGrid` set to `false` emits no layout at all, which leaves the buttons to your own CSS on the\n  `.nx-toggle-button-group__buttons` element. `columnSizing` and `maxColumns` then have no effect.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Toggle Button Layout Example\n */\n@Component({\n  selector: 'toggle-button-layout-example',\n  templateUrl: './toggle-button-layout-example.html',\n  styleUrls: ['./toggle-button-layout-example.css'],\n  imports: [\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class ToggleButtonLayoutExampleComponent {\n  countries = [\n    { value: 'de', label: 'Germany' },\n    { value: 'at', label: 'Austria' },\n    { value: 'ch', label: 'Switzerland' },\n    { value: 'it', label: 'Italy' },\n    { value: 'fr', label: 'France' },\n    { value: 'lu', label: 'Luxembourg' },\n  ];\n  hugging = signal('de');\n  equal = signal('de');\n  custom = signal('de');\n}\n\n```\n```html\n<nx-toggle-button-group [(value)]=\"hugging\">\n  <nx-label>Content sizing, wraps into the next line</nx-label>\n  @for (country of countries; track country.value) {\n    <nx-toggle-button [value]=\"country.value\">{{\n      country.label\n    }}</nx-toggle-button>\n  }\n</nx-toggle-button-group>\n\n<nx-toggle-button-group [(value)]=\"equal\" columnSizing=\"equal\" [maxColumns]=\"3\">\n  <nx-label>Equal sizing with at most three columns</nx-label>\n  @for (country of countries; track country.value) {\n    <nx-toggle-button [value]=\"country.value\">{{\n      country.label\n    }}</nx-toggle-button>\n  }\n</nx-toggle-button-group>\n\n<nx-toggle-button-group\n  class=\"custom-layout\"\n  [(value)]=\"custom\"\n  [autoGrid]=\"false\"\n>\n  <nx-label>Own layout, two columns from 600px on</nx-label>\n  @for (country of countries; track country.value) {\n    <nx-toggle-button [value]=\"country.value\">{{\n      country.label\n    }}</nx-toggle-button>\n  }\n</nx-toggle-button-group>\n\n```\n\n"
      },
      {
        "heading": "readonly and disabled",
        "level": 3,
        "content": "Both states can be set on the whole group or on single buttons.\n**Readonly** should only be used in internal applications because of accessibility restrictions.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Toggle Button Readonly and Disabled Example\n */\n@Component({\n  selector: 'toggle-button-readonly-disabled-example',\n  templateUrl: './toggle-button-readonly-disabled-example.html',\n  styleUrls: ['./toggle-button-readonly-disabled-example.css'],\n  imports: [\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class ToggleButtonReadonlyDisabledExampleComponent {\n  intervals = [\n    { value: 'monthly', label: 'Monthly' },\n    { value: 'quarterly', label: 'Quarterly' },\n    { value: 'yearly', label: 'Yearly' },\n  ];\n  single = signal('monthly');\n  readonly = signal('quarterly');\n  disabled = signal('yearly');\n}\n\n```\n```html\n<nx-toggle-button-group [(value)]=\"single\">\n  <nx-label>Single buttons</nx-label>\n  <nx-toggle-button value=\"monthly\">Monthly</nx-toggle-button>\n  <nx-toggle-button value=\"quarterly\" readonly\n    >Quarterly, readonly</nx-toggle-button\n  >\n  <nx-toggle-button value=\"yearly\" disabled>Yearly, disabled</nx-toggle-button>\n</nx-toggle-button-group>\n\n<nx-toggle-button-group [(value)]=\"readonly\" readonly>\n  <nx-label>Readonly group</nx-label>\n  @for (item of intervals; track item.value) {\n    <nx-toggle-button [value]=\"item.value\">{{ item.label }}</nx-toggle-button>\n  }\n</nx-toggle-button-group>\n\n<nx-toggle-button-group [(value)]=\"disabled\" disabled>\n  <nx-label>Disabled group</nx-label>\n  @for (item of intervals; track item.value) {\n    <nx-toggle-button [value]=\"item.value\">{{ item.label }}</nx-toggle-button>\n  }\n</nx-toggle-button-group>\n\n```\n\n"
      },
      {
        "heading": "negative",
        "level": 3,
        "content": "`negative` styles the whole group for a dark surface. It is set on the group, not on single buttons,\nbecause a group always sits on one surface. The projected `nx-label` and any `nx-error` are not\ncovered by it, so set `negative` on the label as well.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\n\n/**\n * @title Toggle Button Negative Example\n */\n@Component({\n  selector: 'toggle-button-negative-example',\n  templateUrl: './toggle-button-negative-example.html',\n  imports: [\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class ToggleButtonNegativeExampleComponent {\n  intervals = [\n    { value: 'monthly', label: 'Monthly' },\n    { value: 'quarterly', label: 'Quarterly' },\n    { value: 'yearly', label: 'Yearly' },\n  ];\n  interval = signal('monthly');\n}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <nx-toggle-button-group negative [(value)]=\"interval\">\n    <nx-label inverse>Payment interval</nx-label>\n    @for (item of intervals; track item.value) {\n      <nx-toggle-button\n        [value]=\"item.value\"\n        [disabled]=\"item.value === 'yearly'\"\n        >{{ item.label }}</nx-toggle-button\n      >\n    }\n  </nx-toggle-button-group>\n</div>\n\n```\n\n"
      },
      {
        "heading": "forms",
        "level": 2,
        "content": "The group is the form control, the single buttons are not. It is a pure signal forms control: it\nimplements Angular's `FormValueControl` contract and does not register a `ControlValueAccessor`.\nSignal forms is the recommended API, but `ngModel` and `formControlName` keep working, because\nAngular drives a `FormValueControl` from template-driven and reactive forms as well.\n"
      },
      {
        "heading": "signal forms",
        "level": 3,
        "content": "Bind a field to the group with `[formField]`. The value and the disabled and readonly state are kept\nin sync with the field. The field is marked as touched once the focus leaves the group, not when the\nfocus moves from one button to another.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\nimport { form, FormField, required } from '@angular/forms/signals';\n\n/**\n * @title Toggle Button Signal Forms Example\n */\n@Component({\n  selector: 'toggle-button-signal-forms-example',\n  templateUrl: './toggle-button-signal-forms-example.html',\n  imports: [\n    FormField,\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n  ],\n})\nexport class ToggleButtonSignalFormsExampleComponent {\n  intervals = [\n    { value: 'monthly', label: 'Monthly' },\n    { value: 'quarterly', label: 'Quarterly' },\n    { value: 'yearly', label: 'Yearly' },\n  ];\n  model = signal({ interval: '' });\n  paymentForm = form(this.model, (path) => {\n    required(path.interval);\n  });\n}\n\n```\n```html\n<nx-toggle-button-group [formField]=\"paymentForm.interval\">\n  <nx-label>Payment interval</nx-label>\n  @for (item of intervals; track item.value) {\n    <nx-toggle-button [value]=\"item.value\">{{ item.label }}</nx-toggle-button>\n  }\n  <nx-error>Please choose a payment interval</nx-error>\n</nx-toggle-button-group>\n\n<p>Value: {{ model().interval || '-' }}</p>\n<p>Touched: {{ paymentForm.interval().touched() }}</p>\n<p>Valid: {{ paymentForm.interval().valid() }}</p>\n\n```\n\n"
      },
      {
        "heading": "template-driven forms",
        "level": 3,
        "content": "\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Toggle Button Template-driven Forms Example\n */\n@Component({\n  selector: 'toggle-button-template-driven-example',\n  templateUrl: './toggle-button-template-driven-example.html',\n  imports: [\n    FormsModule,\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class ToggleButtonTemplateDrivenExampleComponent {\n  interval = 'monthly';\n}\n\n```\n```html\n<form #form=\"ngForm\">\n  <nx-toggle-button-group name=\"interval\" [(ngModel)]=\"interval\">\n    <nx-label>Payment interval</nx-label>\n    <nx-toggle-button value=\"monthly\">Monthly</nx-toggle-button>\n    <nx-toggle-button value=\"quarterly\">Quarterly</nx-toggle-button>\n    <nx-toggle-button value=\"yearly\">Yearly</nx-toggle-button>\n  </nx-toggle-button-group>\n</form>\n\n<p>Selected: {{ interval }}</p>\n\n```\n\n"
      },
      {
        "heading": "reactive forms",
        "level": 3,
        "content": "Angular binds the value and the disabled and required state of the `AbstractControl` to the group.\nThe `readonly` state is not part of reactive forms, so it stays with the `readonly` input.\n\n\n```ts\nimport { NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\n\n/**\n * @title Toggle Button Reactive Forms Example\n */\n@Component({\n  selector: 'toggle-button-reactive-forms-example',\n  templateUrl: './toggle-button-reactive-forms-example.html',\n  imports: [\n    ReactiveFormsModule,\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n  ],\n})\nexport class ToggleButtonReactiveFormsExampleComponent {\n  form = new FormGroup({\n    interval: new FormControl('monthly'),\n  });\n}\n\n```\n```html\n<form [formGroup]=\"form\">\n  <nx-toggle-button-group formControlName=\"interval\">\n    <nx-label>Payment interval</nx-label>\n    <nx-toggle-button value=\"monthly\">Monthly</nx-toggle-button>\n    <nx-toggle-button value=\"quarterly\">Quarterly</nx-toggle-button>\n    <nx-toggle-button value=\"yearly\">Yearly</nx-toggle-button>\n  </nx-toggle-button-group>\n</form>\n\n<p>Selected: {{ form.value.interval }}</p>\n<p>Touched: {{ form.controls.interval.touched }}</p>\n\n```\n\n"
      },
      {
        "heading": "validation and error state",
        "level": 3,
        "content": "The error state needs a form: the [`ErrorStateMatcher`](./documentation/error-handling) decides when\nit is shown, in signal forms as well as in reactive and template-driven forms. A custom matcher\nprovided app wide therefore also applies to the group. In the error state the unselected buttons get\na critical border, the selected one a critical fill.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\nimport { form, FormField, validate } from '@angular/forms/signals';\n\n/**\n * @title Toggle Button Error State Example\n */\n@Component({\n  selector: 'toggle-button-error-state-example',\n  templateUrl: './toggle-button-error-state-example.html',\n  imports: [\n    FormField,\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n  ],\n})\nexport class ToggleButtonErrorStateExampleComponent {\n  intervals = [\n    { value: 'monthly', label: 'Monthly' },\n    { value: 'quarterly', label: 'Quarterly' },\n    { value: 'yearly', label: 'Yearly' },\n  ];\n  model = signal({ interval: 'quarterly' });\n  paymentForm = form(this.model, (path) => {\n    validate(path.interval, ({ value }) =>\n      value() === 'quarterly' ? { kind: 'unavailable' } : undefined,\n    );\n  });\n\n  constructor() {\n    // Only to show the error state right away, a form usually gets there by the user leaving the\n    // group or by `submit()`.\n    this.paymentForm.interval().markAsTouched();\n  }\n}\n\n```\n```html\n<nx-toggle-button-group [formField]=\"paymentForm.interval\">\n  <nx-label>Payment interval</nx-label>\n  @for (item of intervals; track item.value) {\n    <nx-toggle-button [value]=\"item.value\">{{ item.label }}</nx-toggle-button>\n  }\n  <nx-error>Quarterly payment is not available for this product</nx-error>\n</nx-toggle-button-group>\n\n```\n\n\nA projected `nx-error` is shown as soon as the error state is matched. Signal forms marks all fields\nof a form as touched when it is submitted with `submit()`, so the error also shows up for a group the\nuser never focused. Reactive forms does not touch its controls on submit, but the default matcher\nmatches once the parent form was submitted, which gets to the same result.\n\n\n```ts\nimport { NxErrorComponent, NxLabelComponent } from '@allianz/ng-aquila/base';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxToggleButtonComponent,\n  NxToggleButtonGroupComponent,\n} from '@allianz/ng-aquila/toggle-button';\nimport { Component, signal } from '@angular/core';\nimport { form, FormField, required, submit } from '@angular/forms/signals';\n\n/**\n * @title Toggle Button Validation Error State Example\n */\n@Component({\n  selector: 'toggle-button-validation-error-state-example',\n  templateUrl: './toggle-button-validation-error-state-example.html',\n  styleUrls: ['./toggle-button-validation-error-state-example.css'],\n  imports: [\n    FormField,\n    NxToggleButtonGroupComponent,\n    NxToggleButtonComponent,\n    NxLabelComponent,\n    NxErrorComponent,\n    NxButtonComponent,\n  ],\n})\nexport class ToggleButtonValidationErrorStateExampleComponent {\n  model = signal({ interval: '' });\n  paymentForm = form(this.model, (path) => {\n    required(path.interval);\n  });\n\n  async onSubmit(event: Event): Promise<void> {\n    event.preventDefault();\n    await submit(this.paymentForm, () => Promise.resolve());\n  }\n}\n\n```\n```html\n<form class=\"interval-form\" (submit)=\"onSubmit($event)\">\n  <nx-toggle-button-group [formField]=\"paymentForm.interval\">\n    <nx-label>Payment interval</nx-label>\n    <nx-toggle-button value=\"monthly\">Monthly</nx-toggle-button>\n    <nx-toggle-button value=\"quarterly\">Quarterly</nx-toggle-button>\n    <nx-toggle-button value=\"yearly\">Yearly</nx-toggle-button>\n    <nx-error>Please choose a payment interval</nx-error>\n  </nx-toggle-button-group>\n\n  <button nxButton type=\"submit\">Submit</button>\n</form>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 2,
        "content": "The group renders as a `radiogroup` that is labelled by the projected `nx-label` and described by\nthe projected `nx-error`. Every button renders a native radio input, so the selection can be moved\nwith the arrow keys and the whole group is a single tab stop.\n"
      }
    ]
  },
  {
    "name": "toolbar.md",
    "title": "Toolbar",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "toolbar with divider",
        "level": 3,
        "content": "In combination with a business description and a divider line, an icon only back-link can be used. Use `<nx-toolbar-divider>` for the divider.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxToolbarComponent,\n  NxToolbarDividerComponent,\n} from '@allianz/ng-aquila/toolbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Toolbar divider example\n */\n@Component({\n  selector: 'toolbar-divider-a1-example',\n  templateUrl: './toolbar-divider-a1-example.html',\n  styleUrls: ['./toolbar-divider-a1-example.css'],\n  imports: [\n    NxToolbarComponent,\n    NxPlainButtonComponent,\n    NxIconComponent,\n    NxToolbarDividerComponent,\n    NxButtonComponent,\n  ],\n})\nexport class ToolbarDividerA1ExampleComponent {}\n\n```\n```html\n<nx-toolbar class=\"nx-margin-bottom-s\">\n  <button nxPlainButton type=\"button\" aria-label=\"a useful label\" class=\"back\">\n    <nx-icon name=\"chevron-left\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <nx-toolbar-divider></nx-toolbar-divider>\n\n  <div class=\"nx-toolbar-description\">\n    <span>Max Mustermann</span>\n  </div>\n\n  <div class=\"nx-toolbar-actions\">\n    <button nxPlainButton aria-label=\"a useful label\" type=\"button\">\n      <nx-icon name=\"help-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n    <button nxPlainButton aria-label=\"a useful label\" type=\"button\">\n      <nx-icon name=\"bell-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n    <button nxPlainButton aria-label=\"a useful label\" type=\"button\">\n      <nx-icon name=\"setting-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n\n    <button nxButton=\"secondary\" size=\"small\" type=\"button\">\n      <nx-icon name=\"save-o\" aria-hidden=\"true\" nxIconPositionStart></nx-icon\n      >Save\n    </button>\n\n    <button nxButton=\"primary\" size=\"small\" type=\"button\">\n      <nx-icon name=\"plus\" aria-hidden=\"true\" nxIconPositionStart></nx-icon>New\n      Content\n    </button>\n  </div>\n</nx-toolbar>\n\n```\n\n"
      },
      {
        "heading": "positioning toolbar content",
        "level": 3,
        "content": "The toolbar component is a container for its content without any positioning. So you have the freedom to position the content depending on the use case.\n\nThe toolbar uses a flexbox row layout. This makes positioning the elements easy using flex.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxToolbarComponent } from '@allianz/ng-aquila/toolbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Toolbar positioning content example\n */\n@Component({\n  selector: 'toolbar-positioning-content-a1-example',\n  templateUrl: './toolbar-positioning-content-a1-example.html',\n  styleUrls: ['./toolbar-positioning-content-a1-example.css'],\n  imports: [\n    NxToolbarComponent,\n    NxPlainButtonComponent,\n    NxIconComponent,\n    NxContextMenuTriggerDirective,\n    NxButtonComponent,\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n  ],\n})\nexport class ToolbarPositioningContentA1ExampleComponent {}\n\n```\n```html\n<nx-toolbar>\n  <button nxPlainButton type=\"button\" aria-label=\"a useful label\" class=\"back\">\n    <nx-icon\n      name=\"chevron-left\"\n      nxIconPositionStart\n      aria-hidden=\"true\"\n    ></nx-icon\n    >Previous Page Title\n  </button>\n\n  <div class=\"nx-toolbar-actions\">\n    <button nxPlainButton aria-label=\"a useful label\" type=\"button\">\n      <nx-icon name=\"speech-bubble-o\" aria-hidden=\"true\"></nx-icon>\n    </button>\n    <button nxPlainButton aria-label=\"a useful label\" type=\"button\">\n      <nx-icon name=\"close\" aria-hidden=\"true\"></nx-icon>\n    </button>\n    <button nxPlainButton aria-label=\"a useful label\" type=\"button\">\n      <nx-icon name=\"refresh\" aria-hidden=\"true\"></nx-icon>\n    </button>\n\n    <button\n      nxPlainButton\n      [nxContextMenuTriggerFor]=\"menu\"\n      aria-label=\"Open menu\"\n      type=\"button\"\n    >\n      <nx-icon name=\"ellipsis-h\" aria-hidden=\"true\"></nx-icon>\n    </button>\n\n    <button nxButton=\"primary small\" type=\"button\">\n      <nx-icon name=\"save-o\" aria-hidden=\"true\" nxIconPositionStart></nx-icon\n      >Save changes\n    </button>\n  </div>\n</nx-toolbar>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n```\n\n\n</div>\n\n<div class=\"docs-hide-a1 docs-hide-aquila\">\n"
      },
      {
        "heading": "toolbar with divider",
        "level": 3,
        "content": "In combination with a business description and a divider line, an icon only back-link can be used. Use `<nx-toolbar-divider>` for the divider.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport {\n  NxToolbarComponent,\n  NxToolbarDividerComponent,\n} from '@allianz/ng-aquila/toolbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Toolbar divider example\n */\n@Component({\n  selector: 'toolbar-divider-example',\n  templateUrl: './toolbar-divider-example.html',\n  styleUrls: ['./toolbar-divider-example.css'],\n  imports: [\n    NxToolbarComponent,\n    NxPlainButtonComponent,\n    NxIconComponent,\n    NxToolbarDividerComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxButtonComponent,\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n  ],\n})\nexport class ToolbarDividerExampleComponent {}\n\n```\n```html\n<nx-toolbar class=\"nx-margin-bottom-s\">\n  <button nxPlainButton type=\"button\" aria-label=\"a useful label\" class=\"back\">\n    <nx-icon name=\"arrow-left\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <nx-toolbar-divider></nx-toolbar-divider>\n\n  <div class=\"nx-toolbar-description\">\n    <span class=\"nx-margin-right-2xs\">Max Mustermann</span>\n    <span class=\"dot\">ID: FRG4567890</span>\n  </div>\n\n  <button\n    nxIconButton=\"tertiary small\"\n    aria-label=\"a useful label\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"speech-bubble-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"tertiary small\"\n    aria-label=\"a useful label\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"close\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"tertiary small\"\n    aria-label=\"a useful label\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"refresh\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <button\n    nxIconButton=\"tertiary small\"\n    [nxContextMenuTriggerFor]=\"menu\"\n    aria-label=\"Open menu\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"ellipsis-h\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <button nxButton=\"primary small\" type=\"button\">\n    <nx-icon\n      name=\"save-o\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon\n    >Primary\n  </button>\n</nx-toolbar>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n```\n\n\n"
      },
      {
        "heading": "positioning toolbar content",
        "level": 3,
        "content": "The toolbar component is a container for its content without any positioning. So you have the freedom to position the content depending on the use case.\n\nThe toolbar uses a flexbox row layout. This makes positioning the elements easy using flex.\n\n\n```ts\nimport {\n  NxButtonComponent,\n  NxIconButtonComponent,\n  NxPlainButtonComponent,\n} from '@allianz/ng-aquila/button';\nimport {\n  NxContextMenuComponent,\n  NxContextMenuItemComponent,\n  NxContextMenuTriggerDirective,\n} from '@allianz/ng-aquila/context-menu';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { NxToolbarComponent } from '@allianz/ng-aquila/toolbar';\nimport { Component } from '@angular/core';\n\n/**\n * @title Toolbar positioning content example\n */\n@Component({\n  selector: 'toolbar-positioning-content-example',\n  templateUrl: './toolbar-positioning-content-example.html',\n  styleUrls: ['./toolbar-positioning-content-example.css'],\n  imports: [\n    NxToolbarComponent,\n    NxPlainButtonComponent,\n    NxIconComponent,\n    NxIconButtonComponent,\n    NxContextMenuTriggerDirective,\n    NxButtonComponent,\n    NxContextMenuComponent,\n    NxContextMenuItemComponent,\n  ],\n})\nexport class ToolbarPositioningContentExampleComponent {}\n\n```\n```html\n<nx-toolbar>\n  <button nxPlainButton type=\"button\" aria-label=\"a useful label\" class=\"back\">\n    <nx-icon name=\"arrow-left\" nxIconPositionStart aria-hidden=\"true\"></nx-icon\n    >Previous Page Title\n  </button>\n\n  <button\n    nxIconButton=\"tertiary small\"\n    aria-label=\"a useful label\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"speech-bubble-o\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"tertiary small\"\n    aria-label=\"a useful label\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"close\" aria-hidden=\"true\"></nx-icon>\n  </button>\n  <button\n    nxIconButton=\"tertiary small\"\n    aria-label=\"a useful label\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"refresh\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <button\n    nxIconButton=\"tertiary small\"\n    [nxContextMenuTriggerFor]=\"menu\"\n    aria-label=\"Open menu\"\n    type=\"button\"\n    class=\"nx-margin-right-2xs nx-margin-bottom-0\"\n  >\n    <nx-icon name=\"ellipsis-h\" aria-hidden=\"true\"></nx-icon>\n  </button>\n\n  <button nxButton=\"primary small\" type=\"button\">\n    <nx-icon\n      name=\"save-o\"\n      class=\"nx-margin-right-2xs\"\n      aria-hidden=\"true\"\n    ></nx-icon\n    >Save changes\n  </button>\n</nx-toolbar>\n\n<nx-context-menu #menu=\"nxContextMenu\">\n  <button nxContextMenuItem type=\"button\">Settings</button>\n  <button nxContextMenuItem type=\"button\">Download</button>\n  <button nxContextMenuItem type=\"button\">Help</button>\n</nx-context-menu>\n\n```\n\n\n</div>"
      }
    ]
  },
  {
    "name": "tooltip.md",
    "title": "Tooltip",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "ux guidelines",
        "level": 3,
        "content": "The Tooltip provides a text label that is displayed when the user hovers over or focuses an element. It allows to display additional information for supporting the customer, and should **only be used for optional information**.\n\nPlease note that according to our UX guidelines the Tooltip is only supposed to contain **short (1-2 sentences) plain text descriptions**. The Tooltip is not supposed to contain any formatting or control elements and thus does not support this. If you need to display a longer text (like manual instructions, explanations and so on) that needs to be formatted, or you need to insert control elements (buttons, links, etc.), then you have to [use the Popover component instead of the Tooltip](./documentation/popover/overview#ux-guidelines).\n\nFor better accessibility, we recommend using tooltips with interactive elements such as `button`. If you need to use a tooltip with a non-interactive element, add tabindex=\"0\" to make it accessible via keyboard.\n"
      },
      {
        "heading": "basic tooltip",
        "level": 3,
        "content": "\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxTooltipDirective } from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tooltip\n */\n@Component({\n  selector: 'tooltip-basic-example',\n  templateUrl: './tooltip-basic-example.html',\n  styleUrls: ['./tooltip-basic-example.css'],\n  imports: [NxBadgeComponent, NxTooltipDirective],\n})\nexport class TooltipBasicExampleComponent {}\n\n```\n```html\n<button\n  nxButton=\"secondary small\"\n  nxTooltip=\"This message gets displayed in a tooltip\"\n  type=\"button\"\n  class=\"nx-margin-right-m\"\n>\n  I have a tooltip\n</button>\n\n<nx-badge\n  type=\"info\"\n  nxTooltip=\"This message gets displayed in a tooltip\"\n  tabindex=\"0\"\n>\n  I have a tooltip\n</nx-badge>\n\n```\n\n"
      },
      {
        "heading": "positioning",
        "level": 3,
        "content": "By default the tooltip will be displayed below the element, but this can be configured using the `nxTooltipPosition` input. The tooltip can be displayed above, below, left or right of the element.\n\n| Position | Description                         |\n| -------- | ----------------------------------- |\n| top      | Display above the element           |\n| bottom   | Display beneath the element         |\n| left     | Display to the left of the element  |\n| right    | Display to the right of the element |\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport {\n  NxTooltipDirective,\n  TooltipPosition,\n} from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tooltip positions\n */\n@Component({\n  selector: 'tooltip-positions-example',\n  templateUrl: './tooltip-positions-example.html',\n  styleUrls: ['./tooltip-positions-example.css'],\n  imports: [NxBadgeComponent, NxTooltipDirective],\n})\nexport class TooltipPositionsExampleComponent {\n  positions: TooltipPosition[];\n\n  constructor() {\n    this.positions = ['top', 'right', 'bottom', 'left'];\n  }\n}\n\n```\n```html\n@for (position of positions; track position) {\n  <nx-badge\n    type=\"info\"\n    [nxTooltipPosition]=\"position\"\n    [nxTooltip]=\"'This tooltip is on the ' + position\"\n    tabindex=\"0\"\n  >\n    {{ position }}\n  </nx-badge>\n}\n\n```\n\n"
      },
      {
        "heading": "inverse",
        "level": 3,
        "content": "Set `nxTooltipInverse` to use the inverse (light) appearance, for triggers placed on a dark surface.\n\n\n```ts\nimport { NxButtonModule } from '@allianz/ng-aquila/button';\nimport { NxTooltipDirective } from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\n/**\n * @title Inverse styling example\n */\n@Component({\n  selector: 'tooltip-inverse-example',\n  templateUrl: './tooltip-inverse-example.html',\n  styleUrls: ['./tooltip-inverse-example.css'],\n  imports: [NxButtonModule, NxTooltipDirective],\n})\nexport class TooltipInverseExampleComponent {}\n\n```\n```html\n<div class=\"docs-inverse-container\">\n  <button\n    nxButton=\"secondary small\"\n    nxTooltip=\"This message gets displayed in an inverse tooltip\"\n    nxTooltipInverse\n    inverse\n    nxTooltipPosition=\"right\"\n    type=\"button\"\n  >\n    Inverse tooltip\n  </button>\n</div>\n\n```\n\n"
      },
      {
        "heading": "fallback strategy",
        "level": 3,
        "content": "The positioning of the tooltip follows a fallback strategy to make sure that the component is displayed correctly in the most common situations. Fallback means that the tooltip tries to find a fitting position within the window. The following table explains the fallback strategy of the tooltip.\n\n<!-- example(tooltip-fallbacks-table, { \"hideHeader\": true }) -->\n\nNote that the table contains a few positions that are not available to be set by the user. `top-left`, `top-right`, `bottom-left` and `bottom-right` are special positions that are used as a fallback option only.\n"
      },
      {
        "heading": "showing and hiding",
        "level": 3,
        "content": "By default, the tooltip will be shown when the user's mouse hovers over the tooltip's trigger element and hides when the user's mouse leaves.\n"
      },
      {
        "heading": "show and hide delays",
        "level": 3,
        "content": "To change the delay before showing or hiding the tooltip, you can use the inputs `nxTooltipShowDelay` and `nxTooltipHideDelay` to provide a delay time in milliseconds.\n\nThe following example has a tooltip that waits one second to display after the user hovers over the button, and waits another second to hide after the user moves the mouse away.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxTooltipDirective } from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\n/**\n * @title Tooltip with delay\n */\n@Component({\n  selector: 'tooltip-delay-example',\n  templateUrl: './tooltip-delay-example.html',\n  styleUrls: ['./tooltip-delay-example.css'],\n  imports: [NxButtonComponent, NxTooltipDirective],\n})\nexport class TooltipDelayExampleComponent {}\n\n```\n```html\n<button\n  nxButton\n  [nxTooltipShowDelay]=\"1000\"\n  [nxTooltipHideDelay]=\"1500\"\n  nxTooltip=\"This message appears after 1 second\"\n  type=\"button\"\n>\n  Delayed tooltip\n</button>\n\n```\n\n"
      },
      {
        "heading": "disabling the tooltip from showing",
        "level": 3,
        "content": "To completely disable a tooltip, set `nxTooltipDisabled`. While disabled, a tooltip will never be shown.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxTooltipDirective } from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\n/**\n * @title Disabled tooltip\n */\n@Component({\n  selector: 'tooltip-disabled-example',\n  templateUrl: './tooltip-disabled-example.html',\n  styleUrls: ['./tooltip-disabled-example.css'],\n  imports: [NxButtonComponent, NxTooltipDirective],\n})\nexport class TooltipDisabledExampleComponent {\n  disabled = false;\n\n  toggle() {\n    this.disabled = !this.disabled;\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"small secondary\"\n  (click)=\"toggle()\"\n  type=\"button\"\n  class=\"nx-margin-bottom-s\"\n>\n  {{ disabled ? 'en' : 'dis' }}able tooltip\n</button>\n\n<button\n  nxButton\n  [nxTooltipDisabled]=\"disabled\"\n  nxTooltip=\"This is a tooltip\"\n  type=\"button\"\n>\n  I have a tooltip\n</button>\n\n```\n\n"
      },
      {
        "heading": "manually calling show() and hide()",
        "level": 3,
        "content": "To manually cause the tooltip to show or hide, you can call the show and hide directive methods, which both accept a number in milliseconds to delay before applying the display change.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport {\n  NxTooltipDirective,\n  NxTooltipDirective as NxTooltipDirective_1,\n} from '@allianz/ng-aquila/tooltip';\nimport { Component, ViewChild } from '@angular/core';\n\n/**\n * @title Tooltip programmatic toggling\n */\n@Component({\n  selector: 'tooltip-programmatic-example',\n  templateUrl: './tooltip-programmatic-example.html',\n  styleUrls: ['./tooltip-programmatic-example.css'],\n  imports: [NxButtonComponent, NxBadgeComponent, NxTooltipDirective_1],\n})\nexport class TooltipProgrammaticExampleComponent {\n  @ViewChild(NxTooltipDirective, { static: true })\n  tooltip!: NxTooltipDirective;\n\n  toggle() {\n    this.tooltip.toggle();\n  }\n}\n\n```\n```html\n<button\n  nxButton=\"small secondary\"\n  (click)=\"toggle()\"\n  type=\"button\"\n  class=\"nx-margin-bottom-s\"\n>\n  toggle tooltip\n</button>\n\n<nx-badge\n  type=\"info\"\n  nxTooltip=\"This tooltip is controlled by a button\"\n  tabindex=\"0\"\n>\n  I have a tooltip\n</nx-badge>\n\n```\n\n"
      },
      {
        "heading": "global settings",
        "level": 3,
        "content": "You can configure your app's tooltip default show/hide delays and default position by configuring and providing your options using the `NX_TOOLTIP_DEFAULT_OPTIONS` injection token.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport {\n  NX_TOOLTIP_DEFAULT_OPTIONS,\n  NxTooltipDefaultOptions,\n  NxTooltipDirective,\n} from '@allianz/ng-aquila/tooltip';\nimport { Component } from '@angular/core';\n\nconst myDefaultOptions: NxTooltipDefaultOptions = {\n  position: 'right',\n  showDelay: 500,\n  hideDelay: 0,\n  touchendHideDelay: 1500,\n};\n\n/**\n * @title Tooltip global settings\n */\n@Component({\n  selector: 'tooltip-settings-example',\n  templateUrl: './tooltip-settings-example.html',\n  styleUrls: ['./tooltip-settings-example.css'],\n  providers: [\n    { provide: NX_TOOLTIP_DEFAULT_OPTIONS, useValue: myDefaultOptions },\n  ],\n  imports: [NxBadgeComponent, NxTooltipDirective],\n})\nexport class TooltipSettingsExampleComponent {}\n\n```\n```html\n<nx-badge type=\"info\" nxTooltip=\"This is a tooltip\" tabindex=\"0\">\n  I have a tooltip\n</nx-badge>\n\n```\n\n\nIf you want to use a custom scroll strategy, you can use the `NX_TOOLTIP_SCROLL_STRATEGY` injection token with a factory provider. The `Overlay` service from `@angular/cdk/overlay` offers 4 different scroll strategy options:\n\n-   **reposition:** allow background scroll, the overlay moves with the background (default).\n-   **close:** allow background scroll, closes the overlay on scroll.\n-   **block:** disallow background scroll, the overlay does not move.\n-   **noop:** allow background scroll, the overlay does not move.\n\n\n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport {\n  NX_TOOLTIP_SCROLL_STRATEGY,\n  NxTooltipDirective,\n} from '@allianz/ng-aquila/tooltip';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { Component } from '@angular/core';\n\nfunction scrollStrategyFactory(overlay: Overlay): () => ScrollStrategy {\n  return () => overlay.scrollStrategies.close();\n}\n\n/**\n * @title Scroll Strategy Provider Example\n */\n@Component({\n  selector: 'tooltip-scroll-strategy-provider-example',\n  templateUrl: './tooltip-scroll-strategy-provider-example.html',\n  styleUrls: ['./tooltip-scroll-strategy-provider-example.css'],\n  providers: [\n    {\n      provide: NX_TOOLTIP_SCROLL_STRATEGY,\n      useFactory: scrollStrategyFactory,\n      deps: [Overlay],\n    },\n  ],\n  imports: [NxBadgeComponent, NxTooltipDirective],\n})\nexport class TooltipScrollStrategyProviderExampleComponent {}\n\n```\n```html\n<nx-badge type=\"info\" nxTooltip=\"Tooltip\" tabindex=\"0\"\n  >I have a tooltip</nx-badge\n>\n\n```\n\n\nAlternatively, the `NX_TOOLTIP_SCROLL_STRATEGY` injection token can be provided by importing `NxScrollStrategyModule.withConfig({ ... })` into your application or feature module, after your other aquila imports.\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "Elements with the `nxTooltip` will add an `aria-describedby` label that provides a reference to a visually hidden element containing the tooltip's message. This provides screenreaders the information needed to read out the tooltip's contents when the end-user focuses on the element triggering the tooltip. The element referenced via `aria-describedby` is not the tooltip itself, but instead an invisible copy of the tooltip content that is always present in the DOM.\n\n ### Truncating text\nTruncating text with CSS and displaying the full text in a tooltip on hover.\n \n```ts\nimport { NxBadgeComponent } from '@allianz/ng-aquila/badge';\nimport { NxTooltipDirective } from '@allianz/ng-aquila/tooltip';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n  selector: 'tooltip-trim-text-example',\n  templateUrl: './tooltip-trim-text-example.html',\n  styleUrls: ['./tooltip-trim-text-example.css'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxBadgeComponent, NxTooltipDirective],\n})\nexport class TooltipTrimTextExampleComponent {}\n\n```\n```html\n<nx-badge\n  type=\"info\"\n  class=\"trim-text\"\n  nxTooltip=\"Hover me to see full text\"\n  tabindex=\"0\"\n>\n  Hover me to see full text\n</nx-badge>\n\n```\n\n"
      }
    ]
  },
  {
    "name": "tree.md",
    "title": "Tree",
    "category": "components",
    "alias": [
      "treeview"
    ],
    "sections": [
      {
        "heading": "adding expand/collapse",
        "level": 3,
        "content": "The `nxTreeNodeToggle` directive can be used to add expand/collapse feature to the tree node. It can be added to any place on the tree node. For better accessibility this directive should be added on a `button` element.\n"
      },
      {
        "heading": "tree with checkboxes using the cdk",
        "level": 3,
        "content": "The tree component was initially designed mostly for navigation purposes and simple structured data. If you need a tree with checkboxes or other interactive elements, we suggest using the Angular CDK tree. For more information on the CDK tree, see the [Angular CDK documentation](https://material.angular.io/cdk/tree/overview).\nThe following example shows how to use the CDK tree with checkboxes and how to style it according to design guidelines.\n\n\n```ts\nimport { NxButtonModule } from '@allianz/ng-aquila/button';\nimport {\n  NxCheckboxComponent,\n  NxCheckboxModule,\n} from '@allianz/ng-aquila/checkbox';\nimport { NxIconComponent } from '@allianz/ng-aquila/icon';\nimport { ArrayDataSource, SelectionModel } from '@angular/cdk/collections';\nimport { CdkTree, CdkTreeModule } from '@angular/cdk/tree';\nimport {\n  AfterViewInit,\n  Component,\n  Directive,\n  inject,\n  input,\n  ViewChild,\n  viewChildren,\n} from '@angular/core';\n\n/** Flat node with expandable and level information */\ninterface ExampleFlatNode {\n  expandable: boolean;\n  name: string;\n  level: number;\n  isExpanded?: boolean;\n}\n\nconst TREE_DATA: ExampleFlatNode[] = [\n  {\n    name: 'Fruit',\n    expandable: true,\n    level: 0,\n  },\n  {\n    name: 'Apple',\n    expandable: false,\n    level: 1,\n  },\n  {\n    name: 'Banana',\n    expandable: false,\n    level: 1,\n  },\n  {\n    name: 'Fruit loops',\n    expandable: false,\n    level: 1,\n  },\n  {\n    name: 'Vegetables',\n    expandable: true,\n    level: 0,\n  },\n  {\n    name: 'Green',\n    expandable: true,\n    level: 1,\n  },\n  {\n    name: 'Broccoli',\n    expandable: false,\n    level: 2,\n  },\n  {\n    name: 'Brussels sprouts',\n    expandable: false,\n    level: 2,\n  },\n  {\n    name: 'Orange',\n    expandable: true,\n    level: 1,\n  },\n  {\n    name: 'Pumpkins',\n    expandable: false,\n    level: 2,\n  },\n  {\n    name: 'Carrots',\n    expandable: false,\n    level: 2,\n  },\n];\n\n/** Helper because the new CDK Tree API does not expose a form of `getDescendants` anymore. */\n@Directive({\n  selector: '[treeCheckboxNode]',\n})\nexport class TreeCheckboxNode<T> implements AfterViewInit {\n  checkbox = inject(NxCheckboxComponent, { self: true });\n  node = input<T | null>(null, { alias: 'treeCheckboxNode' });\n  parentNode = input<T | null>(null, {\n    alias: 'treeCheckboxParentNode',\n  });\n\n  ngAfterViewInit() {\n    // currently it is not possible to set the tabindex of the checkbox with an input\n    // on the component, doing this little trick, because the focus and keyboard action should\n    // happen on the tree nodes\n    this.checkbox._nativeInput.nativeElement.setAttribute('tabindex', '-1');\n  }\n}\n\n/**\n * @title Tree Example\n */\n@Component({\n  selector: 'tree-with-checkboxes-example',\n  templateUrl: './tree-with-checkboxes-example.html',\n  styleUrls: ['./tree-with-checkboxes-example.css'],\n  standalone: true,\n  imports: [\n    CdkTreeModule,\n    NxCheckboxModule,\n    NxButtonModule,\n    NxIconComponent,\n    TreeCheckboxNode,\n  ],\n})\nexport class TreeWithCheckboxesExampleComponent {\n  @ViewChild(CdkTree)\n  tree!: CdkTree<ExampleFlatNode>;\n\n  levelAccessor = (dataNode: ExampleFlatNode) => dataNode.level;\n\n  dataSource = new ArrayDataSource(TREE_DATA);\n\n  checklistSelection = new SelectionModel<ExampleFlatNode>(true /* multiple */);\n\n  treeCheckboxNodes = viewChildren(TreeCheckboxNode);\n\n  hasChild = (_: number, node: ExampleFlatNode) => node.expandable;\n\n  getParentNode(node: ExampleFlatNode) {\n    const nodeIndex = TREE_DATA.indexOf(node);\n\n    // Determine the node's parent by finding the first preceding node that's\n    // one level shallower.\n    for (let i = nodeIndex - 1; i >= 0; i--) {\n      if (TREE_DATA[i].level === node.level - 1) {\n        return TREE_DATA[i];\n      }\n    }\n\n    return null;\n  }\n\n  shouldRender(node: ExampleFlatNode): boolean {\n    // This node should render if it is a root node or if all of its ancestors are expanded.\n    const parent = this.getParentNode(node);\n    return (\n      !parent || (!!this.tree?.isExpanded(parent) && this.shouldRender(parent))\n    );\n  }\n\n  toggleNode(node: ExampleFlatNode) {\n    this.checklistSelection.toggle(node);\n    const isSelected = this.checklistSelection.isSelected(node);\n    this.setDescendants(node, isSelected);\n    this.checkAllParentsSelection(node);\n  }\n\n  setDescendants(parentNode: ExampleFlatNode, isSelected: boolean) {\n    const descendants = this.getDescendants(parentNode);\n\n    descendants.forEach((item) => {\n      isSelected\n        ? this.checklistSelection.select(item)\n        : this.checklistSelection.deselect(item);\n    });\n  }\n\n  /* Checks all the parents when a leaf node is selected/unselected */\n  checkAllParentsSelection(node: ExampleFlatNode): void {\n    let parent: ExampleFlatNode | null = this.getParentNode(node);\n    while (parent) {\n      this.toggleRootNodeSelection(parent);\n      parent = this.getParentNode(parent);\n    }\n  }\n\n  /** Check root node checked state and change it accordingly */\n  toggleRootNodeSelection(node: ExampleFlatNode): void {\n    const nodeSelected = this.checklistSelection.isSelected(node);\n    const descAllSelected = this.descendantsAllSelected(node);\n    if (nodeSelected && !descAllSelected) {\n      this.checklistSelection.deselect(node);\n    } else if (!nodeSelected && descAllSelected) {\n      this.checklistSelection.select(node);\n    }\n  }\n\n  getDescendants(node: ExampleFlatNode) {\n    const descendants: ExampleFlatNode[] = [];\n    this._getDescendants(descendants, node);\n    return descendants.splice(1);\n  }\n\n  private _getDescendants(\n    descendants: ExampleFlatNode[],\n    node: ExampleFlatNode,\n  ) {\n    descendants.push(node);\n    this.treeCheckboxNodes()\n      ?.filter((item) => item.parentNode() === node)\n      .forEach((item) => {\n        descendants.push(item.node());\n        this._getDescendants(descendants, item.node());\n      });\n  }\n\n  /** Whether all the descendants of the node are selected. */\n  descendantsAllSelected(node: ExampleFlatNode): boolean {\n    const descendants = this.getDescendants(node);\n    const descAllSelected =\n      descendants.length > 0 &&\n      descendants.every((child) => this.checklistSelection.isSelected(child));\n    return descAllSelected;\n  }\n\n  // /** Whether part of the descendants are selected */\n  descendantsPartiallySelected(node: ExampleFlatNode): boolean {\n    const descendants = this.getDescendants(node);\n    const result = descendants.some((child) =>\n      this.checklistSelection.isSelected(child),\n    );\n    return result && !this.descendantsAllSelected(node);\n  }\n}\n\n```\n```html\n<cdk-tree #tree [dataSource]=\"dataSource\" [levelAccessor]=\"levelAccessor\">\n  <!-- This is the tree node template for leaf nodes -->\n  <cdk-tree-node\n    *cdkTreeNodeDef=\"let node\"\n    cdkTreeNodePadding\n    [style.display]=\"shouldRender(node) ? 'flex' : 'none'\"\n    [isDisabled]=\"!shouldRender(node)\"\n    class=\"example-tree-node\"\n    (activation)=\"toggleNode(node)\"\n    [attr.aria-checked]=\"checklistSelection.isSelected(node)\"\n  >\n    <!-- use a disabled button to provide padding for tree leaf -->\n    <button\n      nxPlainButton=\"small\"\n      disabled\n      class=\"custom-toggle-button empty\"\n    ></button>\n    <nx-checkbox\n      tabindex=\"-1\"\n      [treeCheckboxNode]=\"node\"\n      [treeCheckboxParentNode]=\"getParentNode(node)\"\n      [checked]=\"checklistSelection.isSelected(node)\"\n      (checkedChange)=\"toggleNode(node)\"\n      >{{ node.name }}</nx-checkbox\n    >\n  </cdk-tree-node>\n  <!-- This is the tree node template for expandable nodes -->\n  <cdk-tree-node\n    *cdkTreeNodeDef=\"let node; when: hasChild\"\n    cdkTreeNodePadding\n    [cdkTreeNodeTypeaheadLabel]=\"node.name\"\n    [style.display]=\"shouldRender(node) ? 'flex' : 'none'\"\n    [isDisabled]=\"!shouldRender(node)\"\n    [isExpandable]=\"node.expandable\"\n    class=\"example-tree-node\"\n    (activation)=\"toggleNode(node)\"\n    [attr.aria-checked]=\"\n      descendantsAllSelected(node)\n        ? true\n        : descendantsPartiallySelected(node)\n          ? 'mixed'\n          : false\n    \"\n  >\n    <button\n      nxPlainButton=\"small\"\n      class=\"custom-toggle-button\"\n      cdkTreeNodeToggle\n      [attr.aria-label]=\"'Toggle ' + node.name\"\n      [style.visibility]=\"node.expandable ? 'visible' : 'hidden'\"\n    >\n      <nx-icon\n        name=\"{{ tree.isExpanded(node) ? 'chevron-down' : 'chevron-right' }}\"\n      >\n      </nx-icon>\n    </button>\n    <nx-checkbox\n      (checkedChange)=\"toggleNode(node)\"\n      [treeCheckboxNode]=\"node\"\n      [treeCheckboxParentNode]=\"getParentNode(node)\"\n      [checked]=\"descendantsAllSelected(node)\"\n      [indeterminate]=\"descendantsPartiallySelected(node)\"\n      >{{ node.name }}</nx-checkbox\n    >\n  </cdk-tree-node>\n</cdk-tree>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "To provide an accessible tree, the expandable nodes need to contain a `button` element. Similar to this the leaf nodes need to contain a valid `a` or `button` element. The tree can then be traversed by keyboard. You can `TAB` into the tree and go through the individual nodes with `UP` and `DOWN` buttons. You can close/expand them by pressing `LEFT` and `RIGHT` buttons respectively or toggle with `ENTER` or `SPACE`.\n\nTo enable better keyboard support any actionable element (`a`, `button`, etc.) within a node needs to have `nxTreeNodeActionItem` directive set on it. This way when navigating through the tree, the focus state is correctly passed to the actionable item.\n\nThis approach has some limitations, since we are using native DOM `focus` method to pass the focus state to the element. More complex components, like `nx-checkbox` for example, will not pick it up as expected, since the actual input is nested deep within the component and you can not attach the `nxTreeNodeActionItem` to it.\n"
      }
    ]
  },
  {
    "name": "video.md",
    "title": "Video",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic use case",
        "level": 3,
        "content": "Videos on YouTube have a unique id which needs to be provided as input videoId. You should also add descriptive values for `altText` and `playButtonAriaLabel`.\n\nPlease note that the Angular `DomSanitizer` is used (method bypassSecurityTrustResourceUrl) to append the video id to a YouTube URL. You can find more information on that topic in the official [Angular documentation](https://developers.google.com/youtube/player_parameters?hl=en).\n\n\n```ts\nimport { NxVideoComponent } from '@allianz/ng-aquila/video';\nimport { Component } from '@angular/core';\n\n/**\n * @title Video Example\n */\n@Component({\n  selector: 'video-example',\n  templateUrl: './video-example.html',\n  styleUrls: ['./video-example.css'],\n  imports: [NxVideoComponent],\n})\nexport class VideoExampleComponent {}\n\n```\n```html\n<nx-video\n  videoId=\"Lm5cmFY_UAo\"\n  altText=\"Who are we? Everything about Allianz in 100 seconds\"\n  playButtonAriaLabel=\"Play the video: Who are we? Everything about Allianz in 100 seconds\"\n>\n</nx-video>\n\n```\n\n"
      },
      {
        "heading": "custom preview image",
        "level": 3,
        "content": "Based on the `videoId`, YouTube provides a preview image. You can use `previewImageSrc` to override this.\n\n\n```ts\nimport { NxVideoComponent } from '@allianz/ng-aquila/video';\nimport { Component } from '@angular/core';\n\n/**\n * @title Video Custom Example\n */\n@Component({\n  selector: 'video-custom-example',\n  templateUrl: './video-custom-example.html',\n  styleUrls: ['./video-custom-example.css'],\n  imports: [NxVideoComponent],\n})\nexport class VideoCustomExampleComponent {}\n\n```\n```html\n<nx-video\n  videoId=\"Lm5cmFY_UAo\"\n  altText=\"Who are we? Everything about Allianz in 100 seconds\"\n  playButtonAriaLabel=\"Play the video: Who are we? Everything about Allianz in 100 seconds\"\n  previewImageSrc=\"https://placeholdit.com/828x600/dddddd/999999?text=Video\"\n></nx-video>\n\n```\n\n"
      },
      {
        "heading": "advanced configuration",
        "level": 3,
        "content": "All videos are configured to start playing automatically (query parameter \"autoplay\"), to not show related videos (\"rel\") and to not display information like the video title and uploader before the video starts playing (\"showinfo\"). Some additional configuration parameters can be passed to the YouTube iframe. For more information on the effect of the respective query parameters, consult the [Youtube documentation](https://developers.google.com/youtube/player_parameters?hl=en#Parameters). The following parameters are available:\n\n-   `showPlayerControls`: Setting this to false causes the player controls to be hidden (query param \"controls\").\n-   `allowFullScreen`: Setting this to false hides the fullscreen option while the rest of the controls remain visible (query param \"fs\").\n-   `interfaceLanguage`: Use this to override the interface language with a fully specified locale or ISO 639-1 two-letter language code (query param \"hl\"). In the following example, the fullscreen option is disabled and the interface language is set to French.\n\n\n```ts\nimport { NxVideoComponent } from '@allianz/ng-aquila/video';\nimport { Component } from '@angular/core';\n\n/**\n * @title Video Advanced Example\n */\n@Component({\n  selector: 'video-advanced-example',\n  templateUrl: './video-advanced-example.html',\n  styleUrls: ['./video-advanced-example.css'],\n  imports: [NxVideoComponent],\n})\nexport class VideoAdvancedExampleComponent {}\n\n```\n```html\n<nx-video\n  videoId=\"Lm5cmFY_UAo\"\n  altText=\"Who are we? Everything about Allianz in 100 seconds\"\n  playButtonAriaLabel=\"Play the video: Who are we? Everything about Allianz in 100 seconds\"\n  interfaceLanguage=\"fr\"\n  [allowFullScreen]=\"false\"\n>\n</nx-video>\n\n```\n\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "Please remember to provide a descriptive alt-text for the preview image via the `altText` input. If no alt text is provided, screen readers and other assistive technology will ignore the image. You can also set a value for the `aria-label` attribute on the play button (`playButtonAriaLabel`). If no label attribute is provided, the value of the preview image alt attribute is used together with the suffix \"Play Video\". For the video iframe itself, YouTube will take care of accessibility.\n"
      }
    ]
  },
  {
    "name": "virtual-scroll.md",
    "title": "Virtual Scroll",
    "category": "components",
    "alias": [],
    "sections": [
      {
        "heading": "basic usage",
        "level": 3,
        "content": "The simplest usage requires only an array of items. By default, the component expects items to have a `value` property for tracking.\n\n\n```ts\nimport {\n  NxVirtualFor,\n  NxVirtualViewportComponent,\n} from '@allianz/ng-aquila/virtual-scroll';\nimport { Component } from '@angular/core';\n\n/**\n * @title Basic virtual scroll example\n */\n@Component({\n  selector: 'virtual-scroll-basic-example',\n  templateUrl: './virtual-scroll-basic-example.html',\n  styleUrls: ['./virtual-scroll-basic-example.css'],\n  imports: [NxVirtualViewportComponent, NxVirtualFor],\n})\nexport class VirtualScrollBasicExampleComponent {\n  readonly items = Array.from({ length: 10000 }, (_, i) => ({\n    value: i,\n    label: `Item ${i + 1}`,\n  }));\n}\n\n```\n```html\n<nx-virtual-viewport>\n  <div *nxVirtualFor=\"let item of items\" class=\"virtual-item\">\n    {{ item.label }}\n  </div>\n</nx-virtual-viewport>\n\n```\n\n"
      },
      {
        "heading": "custom item template",
        "level": 3,
        "content": "Items are rendered using the `*nxVirtualFor` structural directive, similar to `*ngFor`. The template context provides the following variables:\n\n| Variable | Type | Description |\n| -------- | ---- | ----------- |\n| `$implicit` | `T` | The item data (accessed via `let item`) |\n| `index` | `number` | The index in the items array |\n| `count` | `number` | Total number of items |\n| `first` | `boolean` | Whether this is the first item |\n| `last` | `boolean` | Whether this is the last item |\n| `even` | `boolean` | Whether the index is even |\n| `odd` | `boolean` | Whether the index is odd |\n\n\n```ts\nimport { NxLinkComponent } from '@allianz/ng-aquila/link';\nimport {\n  NxVirtualFor,\n  NxVirtualViewportComponent,\n} from '@allianz/ng-aquila/virtual-scroll';\nimport { Component } from '@angular/core';\n\ninterface User {\n  id: number;\n  name: string;\n  email: string;\n}\n\n/**\n * @title Custom item template example\n */\n@Component({\n  selector: 'virtual-scroll-template-example',\n  templateUrl: './virtual-scroll-template-example.html',\n  styleUrls: ['./virtual-scroll-template-example.css'],\n  imports: [NxVirtualViewportComponent, NxVirtualFor, NxLinkComponent],\n})\nexport class VirtualScrollTemplateExampleComponent {\n  readonly users: User[] = Array.from({ length: 1000 }, (_, i) => ({\n    id: i + 1,\n    name: `User ${i + 1}`,\n    email: `user${i + 1}@example.com`,\n  }));\n}\n\n```\n```html\n<nx-virtual-viewport>\n  <div\n    class=\"user-item\"\n    *nxVirtualFor=\"let user of users; let i = index; trackBy: 'id'\"\n  >\n    <span class=\"user-name\">{{ user.name }}</span>\n    <span>\n      <nx-link>\n        <a href=\"#\">{{ user.email }}</a>\n      </nx-link>\n    </span>\n  </div>\n</nx-virtual-viewport>\n\n```\n\n"
      },
      {
        "heading": "track by",
        "level": 3,
        "content": "Use the `trackBy` option on `*nxVirtualFor` to optimize rendering and height caching when items change.\n\n**String accessor** (property name):\n\n```html\n<ng-container *nxVirtualFor=\"let item of items; trackBy: 'id'\">\n```\n\n**Function accessor** (for complex objects):\n\n```html\n<ng-container *nxVirtualFor=\"let item of items; trackBy: trackByFn\">\n```\n\n```typescript\ntrackByFn = (index: number, item: MyItem) => item.id;\n```\n"
      },
      {
        "heading": "groups",
        "level": 3,
        "content": "To wrap items in a container per group, e.g. a `role=\"group\"` for assistive technology, pass a `groupBy` function and a `groupTemplate`. Mark the place of the items in the template with `nxVirtualGroupOutlet`. `groupBy` returns the group of an item, or `null` for items without one. The items of each group share one container.\n\n`nxVirtualFor` doesn't reorder the data, so pass it in display order, with the items of each group next to each other. If your data comes unsorted, e.g. as a flat list from a backend, sort it by group first. In development mode, a warning is logged for a group that appears more than once. All indices, e.g. for `scrollToIndex()`, the visible range and `index` in the template context, refer to the list you pass in.\n\nGroups are compared by identity. If your groups are objects that are recreated with the data, e.g. a copy per item after parsing a response, pass `groupTrackBy` with a property name or function that identifies a group. Then a group's container and items are kept, and the template gets the new group object.\n\nOnly the groups of the rendered items are in the DOM, and each one only contains its rendered items. Give the container an accessible name that doesn't depend on an element that might not be rendered, e.g. with `aria-label`.\n\nThe items are positioned absolutely within the viewport, so the root element of the group template must only contain the outlet and must not create a containing block: no `position` other than `static`, and no `transform`, `perspective`, `filter`, `contain` or `will-change`. In development mode, a warning is logged otherwise.\n\nThe outlet may be inside control flow, but every group always needs one. To hide the items of a group, remove them from the data.\n\n```html\n<nx-virtual-viewport>\n  <ng-template #groupTemplate let-group>\n    <div role=\"group\" [attr.aria-label]=\"group.name\">\n      <ng-container nxVirtualGroupOutlet />\n    </div>\n  </ng-template>\n  <div\n    *nxVirtualFor=\"\n      let item of items();\n      trackBy: 'id';\n      groupBy: groupOf;\n      groupTrackBy: 'id';\n      groupTemplate: groupTemplate\n    \"\n  >\n    {{ item.name }}\n  </div>\n</nx-virtual-viewport>\n```\n"
      },
      {
        "heading": "item height and performance",
        "level": 3,
        "content": "The component uses a hybrid approach for item heights:\n\n1. **Initial estimate**: Items start with the `itemHeight` value (default: 36px)\n2. **Dynamic measurement**: After rendering, actual heights are measured via ResizeObserver\n3. **Height cache**: Measured heights are cached for optimal performance\n\n| Input | Default | Description |\n| ----- | ------- | ----------- |\n| `itemHeight` | `36` | Estimated height in pixels for items before measurement |\n| `overscan` | `20` | Number of items to render above/below visible area |\n\n**Performance tips:**\n\n- Set `itemHeight` close to your actual item height for smoother initial scroll\n- Increase `overscan` if you see blank areas during fast scrolling\n"
      },
      {
        "heading": "events",
        "level": 3,
        "content": "The viewport emits events when the visible range changes. For item clicks, use standard Angular `(click)` event binding on your item template.\n\n\n```ts\nimport {\n  NxVirtualFor,\n  NxVirtualViewportComponent,\n  VirtualRangeChangeEvent,\n} from '@allianz/ng-aquila/virtual-scroll';\nimport { Component, signal } from '@angular/core';\n\ninterface ItemClickInfo {\n  index: number;\n  value: number;\n}\n\n/**\n * @title Events example\n */\n@Component({\n  selector: 'virtual-scroll-events-example',\n  templateUrl: './virtual-scroll-events-example.html',\n  styleUrls: ['./virtual-scroll-events-example.css'],\n  imports: [NxVirtualViewportComponent, NxVirtualFor],\n})\nexport class VirtualScrollEventsExampleComponent {\n  readonly items = Array.from({ length: 1000 }, (_, i) => ({\n    value: i,\n    label: `Item ${i + 1}`,\n  }));\n\n  readonly lastClicked = signal<ItemClickInfo | null>(null);\n  readonly visibleRange = signal<VirtualRangeChangeEvent | null>(null);\n\n  onItemClick(item: { value: number; label: string }, index: number): void {\n    this.lastClicked.set({ index, value: item.value });\n  }\n}\n\n```\n```html\n<div class=\"event-info\">\n  <p>\n    <strong>Last clicked:</strong>\n    @if (lastClicked(); as clicked) {\n      Index {{ clicked.index }} (value: {{ clicked.value }})\n    } @else {\n      None\n    }\n  </p>\n  <p>\n    <strong>Visible range:</strong>\n    @if (visibleRange(); as range) {\n      {{ range.start }} - {{ range.end }}\n    } @else {\n      Unknown\n    }\n  </p>\n</div>\n\n<nx-virtual-viewport (visibleRangeChange)=\"visibleRange.set($event)\">\n  <div\n    *nxVirtualFor=\"let item of items; let i = index\"\n    class=\"virtual-item\"\n    (click)=\"onItemClick(item, i)\"\n  >\n    {{ item.label }}\n  </div>\n</nx-virtual-viewport>\n\n```\n\n\n| Output | Event Type | Description |\n| ------ | ---------- | ----------- |\n| `visibleRangeChange` | `VirtualRangeChangeEvent` | Emitted when the visible range changes |\n\n**VirtualRangeChangeEvent properties:**\n\n```typescript\ninterface VirtualRangeChangeEvent {\n    start: number;  // First visible index (including overscan)\n    end: number;    // Last visible index (including overscan)\n}\n```\n"
      },
      {
        "heading": "programmatic navigation",
        "level": 3,
        "content": "The viewport provides methods for programmatic scrolling.\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxFormfieldComponent } from '@allianz/ng-aquila/formfield';\nimport { NxInputDirective } from '@allianz/ng-aquila/input';\nimport {\n  NxVirtualFor,\n  NxVirtualViewportComponent,\n} from '@allianz/ng-aquila/virtual-scroll';\nimport { Component, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * @title Programmatic navigation example\n */\n@Component({\n  selector: 'virtual-scroll-navigation-example',\n  templateUrl: './virtual-scroll-navigation-example.html',\n  styleUrls: ['./virtual-scroll-navigation-example.css'],\n  imports: [\n    NxVirtualViewportComponent,\n    NxVirtualFor,\n    NxButtonComponent,\n    NxFormfieldComponent,\n    NxInputDirective,\n    FormsModule,\n  ],\n})\nexport class VirtualScrollNavigationExampleComponent {\n  readonly viewport = viewChild(NxVirtualViewportComponent);\n\n  readonly items = Array.from({ length: 10000 }, (_, i) => ({\n    value: i,\n    label: `Item ${i + 1}`,\n  }));\n\n  targetIndex = 5000;\n\n  scrollToTop(): void {\n    this.viewport()?.scrollToIndex(0, 'smooth');\n  }\n\n  scrollToBottom(): void {\n    this.viewport()?.scrollToIndex(this.items.length - 1, 'smooth');\n  }\n\n  scrollToIndex(): void {\n    this.viewport()?.scrollToIndex(this.targetIndex, 'smooth');\n  }\n\n  scrollToValue(): void {\n    const index = this.items.findIndex(\n      (item) => item.value === this.targetIndex,\n    );\n    if (index >= 0) {\n      this.viewport()?.scrollToIndex(index, 'smooth');\n    }\n  }\n}\n\n```\n```html\n<div class=\"controls\">\n  <button nxButton=\"secondary small\" type=\"button\" (click)=\"scrollToTop()\">\n    Scroll to Top\n  </button>\n  <button nxButton=\"secondary small\" type=\"button\" (click)=\"scrollToBottom()\">\n    Scroll to Bottom\n  </button>\n\n  <nx-formfield label=\"Target index\">\n    <input nxInput type=\"number\" [(ngModel)]=\"targetIndex\" />\n  </nx-formfield>\n\n  <button nxButton=\"secondary small\" type=\"button\" (click)=\"scrollToIndex()\">\n    Scroll to Index\n  </button>\n  <button nxButton=\"secondary small\" type=\"button\" (click)=\"scrollToValue()\">\n    Scroll to Value\n  </button>\n</div>\n\n<nx-virtual-viewport>\n  <div *nxVirtualFor=\"let item of items\" class=\"virtual-item\">\n    {{ item.label }}\n  </div>\n</nx-virtual-viewport>\n\n```\n\n\n**Viewport methods:**\n\n| Method | Parameters | Description |\n| ------ | ---------- | ----------- |\n| `scrollToIndex(index, behavior?)` | `index: number`, `behavior: ScrollBehavior = 'auto'` | Scroll to put a specific index at the top |\n| `scrollIntoView(index)` | `index: number` | Minimal scroll to make an item visible (no-op if already visible) |\n\n**ScrollBehavior options:**\n\n- `'auto'` - Instant scroll (default)\n- `'smooth'` - Animated smooth scroll\n"
      },
      {
        "heading": "accessibility",
        "level": 3,
        "content": "When integrating the virtual viewport with form controls like dropdowns, the parent component is responsible for managing keyboard navigation and active state. Ensure proper ARIA attributes are applied to the container for screen reader support.\n"
      }
    ]
  },
  {
    "name": "web-components.md",
    "title": "Web Components & ShadowDOM",
    "category": "general",
    "alias": [],
    "sections": [
      {
        "heading": "overview",
        "level": 2,
        "content": "When using Angular components with **ViewEncapsulation.ShadowDom** or building **Web Components**, you may encounter issues with overlay-based components (such as popovers, dropdowns, tooltips, modals, and context menus). This guide explains common problems and provides solutions to ensure these components work correctly within Shadow DOM boundaries.\n"
      },
      {
        "heading": "overlay components and style encapsulation",
        "level": 2,
        "content": "**Problem**:\n\nOverlay-based components (popovers, dropdowns, tooltips, modals) render outside Shadow DOM boundaries by default, causing missing styles, theme inconsistencies, and positioning issues.\n\nThe Angular CDK `OverlayContainer` service creates a single global container (`<div class=\"cdk-overlay-container\">`) appended to `document.body`. When your component uses Shadow DOM, overlays created inside it are still rendered in this global container, breaking the Shadow DOM encapsulation.\n\n**Solution**: Dynamic Shadow Root Reference\n\nCreate a custom `OverlayContainer` that renders overlays inside your Shadow DOM root instead of the document body.\n\nHere's a working example demonstrating this solution with a modal component:\n\n\n```ts\nimport { NxButtonComponent } from '@allianz/ng-aquila/button';\nimport { NxCopytextComponent } from '@allianz/ng-aquila/copytext';\nimport { NxHeadlineComponent } from '@allianz/ng-aquila/headline';\nimport { NxDialogService } from '@allianz/ng-aquila/modal';\nimport { Overlay, OverlayContainer } from '@angular/cdk/overlay';\nimport {\n  Component,\n  ElementRef,\n  inject,\n  Injectable,\n  type OnInit,\n  type TemplateRef,\n  ViewChild,\n  ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * Custom OverlayContainer that renders overlays inside Shadow DOM\n */\n@Injectable()\nclass ShadowDomOverlayContainer extends OverlayContainer {\n  private shadowRoot: ShadowRoot | null = null;\n\n  setShadowRoot(shadowRoot: ShadowRoot): void {\n    this.shadowRoot = shadowRoot;\n  }\n\n  protected override _createContainer(): void {\n    const container = this._document.createElement('div');\n    container.classList.add('cdk-overlay-container');\n    // Use the shadow root if available, otherwise fall back to body\n    const parent = this.shadowRoot || this._document.body;\n    parent.appendChild(container);\n    this._containerElement = container;\n  }\n}\n\n/**\n * @title Modal with ShadowDOM encapsulation\n */\n@Component({\n  selector: 'web-components-modal-shadow-dom-example',\n  templateUrl: './web-components-modal-shadow-dom-example.html',\n  styleUrls: ['./web-components-modal-shadow-dom-example.css'],\n  encapsulation: ViewEncapsulation.ShadowDom,\n  imports: [NxButtonComponent, NxHeadlineComponent, NxCopytextComponent],\n  providers: [\n    { provide: OverlayContainer, useClass: ShadowDomOverlayContainer },\n    Overlay, // Provide Overlay at component level so it uses the component's OverlayContainer\n    NxDialogService, // Provide at component level to use the component's OverlayContainer and Overlay\n  ],\n})\nexport class WebComponentsModalShadowDomExampleComponent implements OnInit {\n  @ViewChild('modalTemplate') modalTemplate!: TemplateRef<unknown>;\n\n  private readonly elementRef = inject(ElementRef);\n  private readonly overlayContainer = inject(\n    OverlayContainer,\n  ) as ShadowDomOverlayContainer;\n  private readonly dialogService = inject(NxDialogService);\n\n  ngOnInit(): void {\n    // Get the shadow root from the host element and set it on the overlay container\n    // The host element IS the shadow host, so we access its shadowRoot property\n    // Checked for truthiness rather than `instanceof ShadowRoot`: the global does not exist on the\n    // server, and reading it there throws before the component can render.\n    const shadowRoot: ShadowRoot | null =\n      this.elementRef.nativeElement.shadowRoot ?? null;\n\n    if (shadowRoot) {\n      this.overlayContainer.setShadowRoot(shadowRoot);\n    }\n  }\n\n  openModal(): void {\n    this.dialogService.open(this.modalTemplate, {\n      ariaLabel: 'ShadowDOM Modal Example',\n      showCloseIcon: true,\n    });\n  }\n}\n\n```\n```html\n<p>ViewEncapsulation.shadowDom = true</p>\n<button nxButton=\"primary\" type=\"button\" (click)=\"openModal()\">\n  Show Modal\n</button>\n\n<ng-template #modalTemplate>\n  <h3 nxHeadline=\"subsection-medium\" class=\"nx-modal-margin-bottom\">\n    ShadowDOM Modal Example\n  </h3>\n  <p nxCopytext=\"medium\" class=\"nx-modal-margin-bottom\">\n    This modal is rendered inside a component with\n    <code>ViewEncapsulation.ShadowDom</code>. The overlay container has been\n    configured to render inside the Shadow DOM boundary using a custom\n    <code>OverlayContainer</code> implementation.\n  </p>\n  <p class=\"inside-modal\">\n    This paragraph is styled even though the modal is rendered inside Shadow\n    DOM.\n  </p>\n</ng-template>\n\n```\n\n\n"
      }
    ]
  }
]