aeb-ui-kit 9.1.0-preview.1113 → 9.1.0-preview.1120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ViewChild, Input, ViewEncapsulation, Component, NgModule, HostBinding, Directive, inject, ElementRef, HostListener, ContentChild, ChangeDetectionStrategy, Renderer2, EventEmitter, forwardRef, Output, ComponentFactoryResolver, Injector, ApplicationRef, RendererFactory2, Injectable, NgZone, Pipe, LOCALE_ID, ChangeDetectorRef, ViewChildren, ContentChildren, TemplateRef } from '@angular/core';
2
+ import { ViewChild, Input, ViewEncapsulation, Component, NgModule, HostBinding, Directive, inject, ElementRef, HostListener, ContentChild, ChangeDetectionStrategy, Renderer2, EventEmitter, forwardRef, Output, ComponentFactoryResolver, Injector, ApplicationRef, RendererFactory2, Injectable, NgZone, Pipe, LOCALE_ID, ChangeDetectorRef, input, output, computed, signal, effect, ContentChildren, TemplateRef, ViewChildren } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
5
5
  import * as i3 from '@angular/forms';
6
6
  import { NG_VALUE_ACCESSOR, FormBuilder, FormControl, Validators, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
7
- import { Subject, timer, map, takeUntil, Subscription, Observable, BehaviorSubject, withLatestFrom, filter, switchMap, take, merge, startWith, mergeMap, iif, of, tap, fromEvent, debounce, debounceTime } from 'rxjs';
7
+ import { Subject, timer, map, takeUntil, Subscription, filter, fromEvent, debounce, debounceTime } from 'rxjs';
8
8
  import { trigger, state, transition, style, animate } from '@angular/animations';
9
9
  import { DomSanitizer } from '@angular/platform-browser';
10
10
  import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
@@ -790,7 +790,7 @@ class FormFieldComponent {
790
790
  return false;
791
791
  }
792
792
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
793
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: FormFieldComponent, isStandalone: false, selector: "aeb-form-field", inputs: { isInvalid: "isInvalid", showIcon: "showIcon", showDescription: "showDescription", showErrorMessage: "showErrorMessage", validateOnDirty: "validateOnDirty", disabled: "disabled" }, host: { properties: { "class": "this.class", "class.aeb-form-field--focused": "this.focused", "class.aeb-form-field--has-value": "this.hasValue", "class.aeb-form-field--error": "this.error", "class.aeb-form-field--disabled": "this.isDisabled", "class.aeb-form-field--has-icon": "this.hasIcon" } }, queries: [{ propertyName: "formField", first: true, predicate: FormFieldDirective, descendants: true }], ngImport: i0, template: "<ng-content />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.aeb-form-field--error .aeb-input{border-color:var(--border-color-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);overflow-wrap:break-word}.aeb-form-field--error-message:has(*:empty){display:none}.aeb-form-field--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);line-height:140%;padding:24px 16px 7px;font-size:var(--font-size-m);border:var(--border-thin) solid var(--border-color-default);background-color:var(--background-color-default);border-radius:var(--border-medium-rounded);box-shadow:none;transition:all ease-in-out .2s linear;font-weight:300}.aeb-form-field .aeb-input:hover{background-color:var(--background-color-hovered);border:var(--border-thin) solid var(--border-color-hovered)}.aeb-form-field .aeb-input:focus{outline:none;background-color:var(--background-color-focused);border:var(--border-thin) solid var(--background-color-focused)}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{appearance:none}.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{appearance:textfield}.aeb-form-field textarea{resize:vertical;cursor:auto;scroll-behavior:smooth}.aeb-form-field textarea.aeb-input{min-height:70px;scrollbar-color:var(--color-blue-50) transparent;scrollbar-width:thin}.aeb-form-field textarea.aeb-input::-webkit-scrollbar{width:16px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-thumb{border:6px solid rgba(0,0,0,0);background-color:var(--color-blue-50);background-clip:padding-box;border-radius:9999px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-corner{background-color:transparent}.aeb-form-field textarea.aeb-input::-webkit-resizer{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI1IiB2aWV3Qm94PSIwIDAgNSA1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iTTMuMjc5NTMgNC44Mzg1NkMzLjA2NDI3IDUuMDUzODEgMi43MTUyNyA1LjA1MzgxIDIuNTAwMDEgNC44Mzg1NkMyLjI4NDc1IDQuNjIzMyAyLjI4NDc1IDQuMjc0MyAyLjUwMDAxIDQuMDU5MDVMNC4wNTkwNCAyLjUwMDAzQzQuMjc0MyAyLjI4NDc3IDQuNjIzMyAyLjI4NDc3IDQuODM4NTYgMi41MDAwM0M1LjA1MzgxIDIuNzE1MjggNS4wNTM4MSAzLjA2NDI4IDQuODM4NTYgMy4yNzk1NEwzLjI3OTUzIDQuODM4NTZaIiBmaWxsPSIjM0I0MDRBIi8+DQo8cGF0aCBkPSJNMC45NDA5NTkgNC4wNTlDMC43MjU3MDIgNC4yNzQyNSAwLjM3NjcgNC4yNzQyNSAwLjE2MTQ0MyA0LjA1OUMtMC4wNTM4MTQzIDMuODQzNzQgLTAuMDUzODE0NCAzLjQ5NDc0IDAuMTYxNDQzIDMuMjc5NDlMMy4yNzk1MSAwLjE2MTQ0MkMzLjQ5NDc2IC0wLjA1MzgxNCAzLjg0Mzc2IC0wLjA1MzgxNCA0LjA1OTAyIDAuMTYxNDQyQzQuMjc0MjggMC4zNzY2OTggNC4yNzQyOCAwLjcyNTY5NyA0LjA1OTAyIDAuOTQwOTUzTDAuOTQwOTU5IDQuMDU5WiIgZmlsbD0iIzNCNDA0QSIvPg0KPC9zdmc+DQo=);background-repeat:no-repeat;background-position:center}.aeb-form-field .aeb-label__container{display:inline-block;position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--font-size-m);pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-form-field.aeb-form-field--focused .aeb-label__container,.aeb-form-field.aeb-form-field--has-value .aeb-label__container{line-height:14px;top:8px;font-size:var(--font-size-xxs)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label__container{color:var(--label-color-active)}.aeb-form-field.aeb-form-field--has-icon .aeb-input{padding-right:38px}.aeb-form-field.aeb-form-field--has-icon .aeb-label__container{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}\n"], animations: [
793
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: FormFieldComponent, isStandalone: false, selector: "aeb-form-field", inputs: { isInvalid: "isInvalid", showIcon: "showIcon", showDescription: "showDescription", showErrorMessage: "showErrorMessage", validateOnDirty: "validateOnDirty", disabled: "disabled" }, host: { properties: { "class": "this.class", "class.aeb-form-field--focused": "this.focused", "class.aeb-form-field--has-value": "this.hasValue", "class.aeb-form-field--error": "this.error", "class.aeb-form-field--disabled": "this.isDisabled", "class.aeb-form-field--has-icon": "this.hasIcon" } }, queries: [{ propertyName: "formField", first: true, predicate: FormFieldDirective, descendants: true }], ngImport: i0, template: "<ng-content />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.aeb-form-field--error .aeb-input{border-color:var(--border-color-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);overflow-wrap:break-word}.aeb-form-field--error-message:has(*:empty){display:none}.aeb-form-field--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);padding:24px 16px 7px;font-size:16px;border:var(--border-thin) solid var(--border-color-default);background-color:var(--background-color-default);border-radius:var(--border-medium-rounded);box-shadow:none;transition:all ease-in-out .2s linear;font-weight:300}.aeb-form-field .aeb-input:hover{background-color:var(--background-color-hovered);border:var(--border-thin) solid var(--border-color-hovered)}.aeb-form-field .aeb-input:focus{outline:none;background-color:var(--background-color-focused);border:var(--border-thin) solid var(--background-color-focused)}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{appearance:none}.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{appearance:textfield}.aeb-form-field textarea{resize:vertical;cursor:auto;scroll-behavior:smooth}.aeb-form-field textarea.aeb-input{min-height:70px;scrollbar-color:var(--color-blue-50) transparent;scrollbar-width:thin}.aeb-form-field textarea.aeb-input::-webkit-scrollbar{width:16px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-thumb{border:6px solid rgba(0,0,0,0);background-color:var(--color-blue-50);background-clip:padding-box;border-radius:9999px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-corner{background-color:transparent}.aeb-form-field textarea.aeb-input::-webkit-resizer{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI1IiB2aWV3Qm94PSIwIDAgNSA1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iTTMuMjc5NTMgNC44Mzg1NkMzLjA2NDI3IDUuMDUzODEgMi43MTUyNyA1LjA1MzgxIDIuNTAwMDEgNC44Mzg1NkMyLjI4NDc1IDQuNjIzMyAyLjI4NDc1IDQuMjc0MyAyLjUwMDAxIDQuMDU5MDVMNC4wNTkwNCAyLjUwMDAzQzQuMjc0MyAyLjI4NDc3IDQuNjIzMyAyLjI4NDc3IDQuODM4NTYgMi41MDAwM0M1LjA1MzgxIDIuNzE1MjggNS4wNTM4MSAzLjA2NDI4IDQuODM4NTYgMy4yNzk1NEwzLjI3OTUzIDQuODM4NTZaIiBmaWxsPSIjM0I0MDRBIi8+DQo8cGF0aCBkPSJNMC45NDA5NTkgNC4wNTlDMC43MjU3MDIgNC4yNzQyNSAwLjM3NjcgNC4yNzQyNSAwLjE2MTQ0MyA0LjA1OUMtMC4wNTM4MTQzIDMuODQzNzQgLTAuMDUzODE0NCAzLjQ5NDc0IDAuMTYxNDQzIDMuMjc5NDlMMy4yNzk1MSAwLjE2MTQ0MkMzLjQ5NDc2IC0wLjA1MzgxNCAzLjg0Mzc2IC0wLjA1MzgxNCA0LjA1OTAyIDAuMTYxNDQyQzQuMjc0MjggMC4zNzY2OTggNC4yNzQyOCAwLjcyNTY5NyA0LjA1OTAyIDAuOTQwOTUzTDAuOTQwOTU5IDQuMDU5WiIgZmlsbD0iIzNCNDA0QSIvPg0KPC9zdmc+DQo=);background-repeat:no-repeat;background-position:center}.aeb-form-field .aeb-label__container{display:inline-block;position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-form-field.aeb-form-field--focused .aeb-label__container,.aeb-form-field.aeb-form-field--has-value .aeb-label__container{line-height:14px;top:8px;font-size:var(--font-size-xxs)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label__container{color:var(--label-color-active)}.aeb-form-field.aeb-form-field--has-icon .aeb-input{padding-right:38px}.aeb-form-field.aeb-form-field--has-icon .aeb-label__container{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}\n"], animations: [
794
794
  trigger('labelVisibility', [
795
795
  state('void', style({
796
796
  'font-size': '0'
@@ -816,7 +816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
816
816
  transition('void => visible', [animate('.1s')]),
817
817
  transition('visible => void', [animate('.05s')])
818
818
  ])
819
- ], standalone: false, template: "<ng-content />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.aeb-form-field--error .aeb-input{border-color:var(--border-color-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);overflow-wrap:break-word}.aeb-form-field--error-message:has(*:empty){display:none}.aeb-form-field--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);line-height:140%;padding:24px 16px 7px;font-size:var(--font-size-m);border:var(--border-thin) solid var(--border-color-default);background-color:var(--background-color-default);border-radius:var(--border-medium-rounded);box-shadow:none;transition:all ease-in-out .2s linear;font-weight:300}.aeb-form-field .aeb-input:hover{background-color:var(--background-color-hovered);border:var(--border-thin) solid var(--border-color-hovered)}.aeb-form-field .aeb-input:focus{outline:none;background-color:var(--background-color-focused);border:var(--border-thin) solid var(--background-color-focused)}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{appearance:none}.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{appearance:textfield}.aeb-form-field textarea{resize:vertical;cursor:auto;scroll-behavior:smooth}.aeb-form-field textarea.aeb-input{min-height:70px;scrollbar-color:var(--color-blue-50) transparent;scrollbar-width:thin}.aeb-form-field textarea.aeb-input::-webkit-scrollbar{width:16px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-thumb{border:6px solid rgba(0,0,0,0);background-color:var(--color-blue-50);background-clip:padding-box;border-radius:9999px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-corner{background-color:transparent}.aeb-form-field textarea.aeb-input::-webkit-resizer{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI1IiB2aWV3Qm94PSIwIDAgNSA1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iTTMuMjc5NTMgNC44Mzg1NkMzLjA2NDI3IDUuMDUzODEgMi43MTUyNyA1LjA1MzgxIDIuNTAwMDEgNC44Mzg1NkMyLjI4NDc1IDQuNjIzMyAyLjI4NDc1IDQuMjc0MyAyLjUwMDAxIDQuMDU5MDVMNC4wNTkwNCAyLjUwMDAzQzQuMjc0MyAyLjI4NDc3IDQuNjIzMyAyLjI4NDc3IDQuODM4NTYgMi41MDAwM0M1LjA1MzgxIDIuNzE1MjggNS4wNTM4MSAzLjA2NDI4IDQuODM4NTYgMy4yNzk1NEwzLjI3OTUzIDQuODM4NTZaIiBmaWxsPSIjM0I0MDRBIi8+DQo8cGF0aCBkPSJNMC45NDA5NTkgNC4wNTlDMC43MjU3MDIgNC4yNzQyNSAwLjM3NjcgNC4yNzQyNSAwLjE2MTQ0MyA0LjA1OUMtMC4wNTM4MTQzIDMuODQzNzQgLTAuMDUzODE0NCAzLjQ5NDc0IDAuMTYxNDQzIDMuMjc5NDlMMy4yNzk1MSAwLjE2MTQ0MkMzLjQ5NDc2IC0wLjA1MzgxNCAzLjg0Mzc2IC0wLjA1MzgxNCA0LjA1OTAyIDAuMTYxNDQyQzQuMjc0MjggMC4zNzY2OTggNC4yNzQyOCAwLjcyNTY5NyA0LjA1OTAyIDAuOTQwOTUzTDAuOTQwOTU5IDQuMDU5WiIgZmlsbD0iIzNCNDA0QSIvPg0KPC9zdmc+DQo=);background-repeat:no-repeat;background-position:center}.aeb-form-field .aeb-label__container{display:inline-block;position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--font-size-m);pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-form-field.aeb-form-field--focused .aeb-label__container,.aeb-form-field.aeb-form-field--has-value .aeb-label__container{line-height:14px;top:8px;font-size:var(--font-size-xxs)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label__container{color:var(--label-color-active)}.aeb-form-field.aeb-form-field--has-icon .aeb-input{padding-right:38px}.aeb-form-field.aeb-form-field--has-icon .aeb-label__container{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}\n"] }]
819
+ ], standalone: false, template: "<ng-content />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);position:relative;display:flex;flex-direction:column;color:var(--label-color-default)}.aeb-form-field.aeb-form-field--error .aeb-input{border-color:var(--border-color-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.aeb-form-field--error-message{padding:8px 0;font-size:var(--font-size-xxs);color:var(--error-text-color);overflow-wrap:break-word}.aeb-form-field--error-message:has(*:empty){display:none}.aeb-form-field--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{color:var(--label-color-disabled)}.aeb-form-field .aeb-input{display:block;box-sizing:border-box;width:100%;min-height:auto;color:var(--input-text-color-default);padding:24px 16px 7px;font-size:16px;border:var(--border-thin) solid var(--border-color-default);background-color:var(--background-color-default);border-radius:var(--border-medium-rounded);box-shadow:none;transition:all ease-in-out .2s linear;font-weight:300}.aeb-form-field .aeb-input:hover{background-color:var(--background-color-hovered);border:var(--border-thin) solid var(--border-color-hovered)}.aeb-form-field .aeb-input:focus{outline:none;background-color:var(--background-color-focused);border:var(--border-thin) solid var(--background-color-focused)}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{appearance:none}.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{appearance:textfield}.aeb-form-field textarea{resize:vertical;cursor:auto;scroll-behavior:smooth}.aeb-form-field textarea.aeb-input{min-height:70px;scrollbar-color:var(--color-blue-50) transparent;scrollbar-width:thin}.aeb-form-field textarea.aeb-input::-webkit-scrollbar{width:16px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-thumb{border:6px solid rgba(0,0,0,0);background-color:var(--color-blue-50);background-clip:padding-box;border-radius:9999px}.aeb-form-field textarea.aeb-input::-webkit-scrollbar-corner{background-color:transparent}.aeb-form-field textarea.aeb-input::-webkit-resizer{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNSIgaGVpZ2h0PSI1IiB2aWV3Qm94PSIwIDAgNSA1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iTTMuMjc5NTMgNC44Mzg1NkMzLjA2NDI3IDUuMDUzODEgMi43MTUyNyA1LjA1MzgxIDIuNTAwMDEgNC44Mzg1NkMyLjI4NDc1IDQuNjIzMyAyLjI4NDc1IDQuMjc0MyAyLjUwMDAxIDQuMDU5MDVMNC4wNTkwNCAyLjUwMDAzQzQuMjc0MyAyLjI4NDc3IDQuNjIzMyAyLjI4NDc3IDQuODM4NTYgMi41MDAwM0M1LjA1MzgxIDIuNzE1MjggNS4wNTM4MSAzLjA2NDI4IDQuODM4NTYgMy4yNzk1NEwzLjI3OTUzIDQuODM4NTZaIiBmaWxsPSIjM0I0MDRBIi8+DQo8cGF0aCBkPSJNMC45NDA5NTkgNC4wNTlDMC43MjU3MDIgNC4yNzQyNSAwLjM3NjcgNC4yNzQyNSAwLjE2MTQ0MyA0LjA1OUMtMC4wNTM4MTQzIDMuODQzNzQgLTAuMDUzODE0NCAzLjQ5NDc0IDAuMTYxNDQzIDMuMjc5NDlMMy4yNzk1MSAwLjE2MTQ0MkMzLjQ5NDc2IC0wLjA1MzgxNCAzLjg0Mzc2IC0wLjA1MzgxNCA0LjA1OTAyIDAuMTYxNDQyQzQuMjc0MjggMC4zNzY2OTggNC4yNzQyOCAwLjcyNTY5NyA0LjA1OTAyIDAuOTQwOTUzTDAuOTQwOTU5IDQuMDU5WiIgZmlsbD0iIzNCNDA0QSIvPg0KPC9zdmc+DQo=);background-repeat:no-repeat;background-position:center}.aeb-form-field .aeb-label__container{display:inline-block;position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-form-field.aeb-form-field--focused .aeb-label__container,.aeb-form-field.aeb-form-field--has-value .aeb-label__container{line-height:14px;top:8px;font-size:var(--font-size-xxs)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label__container{color:var(--label-color-active)}.aeb-form-field.aeb-form-field--has-icon .aeb-input{padding-right:38px}.aeb-form-field.aeb-form-field--has-icon .aeb-label__container{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}\n"] }]
820
820
  }], propDecorators: { formField: [{
821
821
  type: ContentChild,
822
822
  args: [FormFieldDirective]
@@ -2280,258 +2280,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
2280
2280
  }]
2281
2281
  }] });
2282
2282
 
2283
- class DropdownContainerComponent {
2283
+ class DropdownMenu {
2284
2284
  constructor() {
2285
- this.sourceOptionsChanged$ = new Subject();
2286
- this.subscriptions = new Subscription();
2287
- this.viewOptionsLength = 0;
2288
- this.latestDropdownFieldValue = '';
2289
- this.options = [];
2290
- this.filter = true;
2291
- this.hasError = false;
2292
- this.dropdownFieldValueChanges$ = new Observable();
2293
- this.arrowKeyPress$ = new Observable();
2294
- this.enterKeyPress$ = new Observable();
2295
- this.isOpen$ = new Observable();
2296
- this.selected = new EventEmitter();
2297
- this.viewOptionsChange = new EventEmitter();
2298
- this.viewOptions$ = new Observable();
2299
- this.focusedOption$ = new BehaviorSubject(-1);
2300
- }
2301
- ngOnInit() {
2302
- this.subscriptions.add(this.arrowKeyPress$.subscribe({
2303
- next: (direction) => {
2304
- this.handleArrowKeys(direction, this.focusedOption$.value);
2305
- }
2306
- }));
2307
- this.subscriptions.add(this.enterKeyPress$
2308
- .pipe(withLatestFrom(this.isOpen$, this.focusedOption$), filter(([, isOpen, focused]) => isOpen && focused !== -1), switchMap(() => this.viewOptions$.pipe(take(1))))
2309
- .subscribe({
2310
- next: (value) => {
2311
- this.selectHandler(value.at(this.focusedOption$.value), this.focusedOption$.value);
2285
+ this.isOpen = input(true, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
2286
+ this.direction = input('bottom', ...(ngDevMode ? [{ debugName: "direction" }] : []));
2287
+ this.maxShownOptions = input(5, ...(ngDevMode ? [{ debugName: "maxShownOptions" }] : []));
2288
+ this.optionSize = input('L', ...(ngDevMode ? [{ debugName: "optionSize" }] : []));
2289
+ this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
2290
+ this.selectedOption = input(...(ngDevMode ? [undefined, { debugName: "selectedOption" }] : []));
2291
+ this.outsideClick = output();
2292
+ this.optionSelect = output();
2293
+ this.optionHeightPx = computed(() => {
2294
+ if (this.optionSize() === 'S') {
2295
+ return 40;
2312
2296
  }
2313
- }));
2314
- this.viewOptions$ = merge(this.dropdownFieldValueChanges$, this.sourceOptionsChanged$).pipe(startWith(undefined), map((value) => {
2315
- if (value === undefined) {
2316
- value = this.latestDropdownFieldValue;
2297
+ else if (this.optionSize() === 'M') {
2298
+ return 48;
2317
2299
  }
2318
- else {
2319
- this.latestDropdownFieldValue = value;
2300
+ else if (this.optionSize() === 'L') {
2301
+ return 56;
2320
2302
  }
2321
- return value;
2322
- }), mergeMap((value) => iif(() => this.filter, of(this.filterOptions(value)), of(this.options))), tap((options) => {
2323
- this.viewOptionsLength = options.length;
2324
- this.viewOptionsChange.emit([...options]);
2325
- }));
2326
- }
2327
- ngOnDestroy() {
2328
- this.subscriptions.unsubscribe();
2329
- }
2330
- ngOnChanges(changes) {
2331
- if (changes.options) {
2332
- this.sourceOptionsChanged$.next();
2333
- }
2334
- }
2335
- selectHandler(item, index) {
2336
- this.optionElementList.toArray().at(index).nativeElement.focus();
2337
- this.selected.emit([item, index]);
2303
+ }, ...(ngDevMode ? [{ debugName: "optionHeightPx" }] : []));
2338
2304
  }
2339
- handleArrowKeys(direction, index) {
2340
- const indexVary = direction === 'down' ? 1 : -1;
2341
- let nextOptionIndex = index + indexVary;
2342
- if (nextOptionIndex === this.viewOptionsLength) {
2343
- nextOptionIndex -= 1;
2344
- }
2345
- else if (nextOptionIndex < -1) {
2346
- nextOptionIndex = -1;
2347
- }
2348
- this.focusedOption$.next(nextOptionIndex);
2349
- }
2350
- handleMouse(type, index) {
2351
- if (type === 'move') {
2352
- if (this.focusedOption$.value === index) {
2353
- return;
2354
- }
2355
- this.focusedOption$.next(index);
2356
- }
2357
- else if (type === 'leave') {
2358
- this.focusedOption$.next(-1);
2359
- }
2305
+ selectOption(optionValue) {
2306
+ this.optionSelect.emit(optionValue);
2360
2307
  }
2361
- filterOptions(value) {
2362
- const values = (this.options || []).filter((item) => item.label.slice(0, value.length).toLocaleLowerCase() ===
2363
- value.toLocaleLowerCase());
2364
- return values;
2308
+ clickOutside() {
2309
+ this.outsideClick.emit();
2365
2310
  }
2366
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2367
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DropdownContainerComponent, isStandalone: false, selector: "aeb-dropdown-container", inputs: { options: "options", filter: "filter", hasError: "hasError", dropdownFieldValueChanges$: "dropdownFieldValueChanges$", arrowKeyPress$: "arrowKeyPress$", enterKeyPress$: "enterKeyPress$", isOpen$: "isOpen$" }, outputs: { selected: "selected", viewOptionsChange: "viewOptionsChange" }, viewQueries: [{ propertyName: "optionElementList", predicate: ["option"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if ((isOpen$ | async) && viewOptions$ | async; as viewOptions) {\n <ul\n class=\"aeb-dropdown-container\"\n [ngClass]=\"{\n 'aeb-dropdown-container--empty': viewOptions.length === 0,\n 'aeb-dropdown-container--on-error': hasError\n }\"\n >\n @for (option of viewOptions; track option; let i = $index) {\n <li\n #option\n tabindex=\"{{ i }}\"\n class=\"aeb-dropdown-container__option\"\n (click)=\"selectHandler(option, i)\"\n (mousemove)=\"handleMouse('move', i)\"\n (mouseleave)=\"handleMouse('leave', i)\"\n [ngClass]=\"{\n 'aeb-dropdown__option--active': (focusedOption$ | async) === i\n }\"\n >\n <p [title]=\"option.label\">{{ option.label }}</p>\n @if (option.additional) {\n <small [title]=\"option.additional\">{{ option.additional }}</small>\n }\n </li>\n }\n </ul>\n}\n", styles: [".aeb-dropdown-container{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px;background-color:var(--color-mono-0)}.aeb-dropdown-container--empty{border:none}.aeb-dropdown-container--on-error{border-color:var(--color-red-500)}.aeb-dropdown-container__option{box-sizing:border-box;width:100%;height:56px;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none;color:var(--color-mono-900)}.aeb-dropdown-container__option--active{background-color:var(--color-blue-50)}.aeb-dropdown-container__option:last-child{border-radius:0 0 10px 10px}.aeb-dropdown-container__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-container__option:has(small){padding:10px 16px}.aeb-dropdown-container__option:has(small) small{display:block;margin-top:4px;line-height:16px;font-size:var(--font-size-xs);color:var(--color-mono-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.dark .aeb-dropdown-container{background-color:#1e2632}body.dark .aeb-dropdown-container__option{color:var(--color-mono-0)}body.dark .aeb-dropdown-container__option--active{background-color:var(--color-mono-900)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
2311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2312
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DropdownMenu, isStandalone: false, selector: "aeb-dropdown-menu", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, maxShownOptions: { classPropertyName: "maxShownOptions", publicName: "maxShownOptions", isSignal: true, isRequired: false, transformFunction: null }, optionSize: { classPropertyName: "optionSize", publicName: "optionSize", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, selectedOption: { classPropertyName: "selectedOption", publicName: "selectedOption", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { outsideClick: "outsideClick", optionSelect: "optionSelect" }, ngImport: i0, template: "<ul\n class=\"aeb-dropdown-menu\"\n [class.open]=\"isOpen()\"\n [class.top]=\"direction() === 'top'\"\n [class.bottom]=\"direction() === 'bottom'\"\n [style.max-height]=\"maxShownOptions() * optionHeightPx() + 'px'\"\n (clickOutside)=\"clickOutside()\"\n>\n @for (option of options(); track option.value) {\n <ul\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n (click)=\"selectOption(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </ul>\n }\n</ul>\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:2;width:100%;left:0;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;display:block;opacity:0;visibility:hidden;color:var(--c-t-primary);transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"], dependencies: [{ kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }] }); }
2368
2313
  }
2369
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownContainerComponent, decorators: [{
2314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenu, decorators: [{
2370
2315
  type: Component,
2371
- args: [{ selector: 'aeb-dropdown-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if ((isOpen$ | async) && viewOptions$ | async; as viewOptions) {\n <ul\n class=\"aeb-dropdown-container\"\n [ngClass]=\"{\n 'aeb-dropdown-container--empty': viewOptions.length === 0,\n 'aeb-dropdown-container--on-error': hasError\n }\"\n >\n @for (option of viewOptions; track option; let i = $index) {\n <li\n #option\n tabindex=\"{{ i }}\"\n class=\"aeb-dropdown-container__option\"\n (click)=\"selectHandler(option, i)\"\n (mousemove)=\"handleMouse('move', i)\"\n (mouseleave)=\"handleMouse('leave', i)\"\n [ngClass]=\"{\n 'aeb-dropdown__option--active': (focusedOption$ | async) === i\n }\"\n >\n <p [title]=\"option.label\">{{ option.label }}</p>\n @if (option.additional) {\n <small [title]=\"option.additional\">{{ option.additional }}</small>\n }\n </li>\n }\n </ul>\n}\n", styles: [".aeb-dropdown-container{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px;background-color:var(--color-mono-0)}.aeb-dropdown-container--empty{border:none}.aeb-dropdown-container--on-error{border-color:var(--color-red-500)}.aeb-dropdown-container__option{box-sizing:border-box;width:100%;height:56px;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none;color:var(--color-mono-900)}.aeb-dropdown-container__option--active{background-color:var(--color-blue-50)}.aeb-dropdown-container__option:last-child{border-radius:0 0 10px 10px}.aeb-dropdown-container__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-container__option:has(small){padding:10px 16px}.aeb-dropdown-container__option:has(small) small{display:block;margin-top:4px;line-height:16px;font-size:var(--font-size-xs);color:var(--color-mono-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.dark .aeb-dropdown-container{background-color:#1e2632}body.dark .aeb-dropdown-container__option{color:var(--color-mono-0)}body.dark .aeb-dropdown-container__option--active{background-color:var(--color-mono-900)}\n"] }]
2372
- }], propDecorators: { optionElementList: [{
2373
- type: ViewChildren,
2374
- args: ['option']
2375
- }], options: [{
2376
- type: Input
2377
- }], filter: [{
2378
- type: Input
2379
- }], hasError: [{
2380
- type: Input
2381
- }], dropdownFieldValueChanges$: [{
2382
- type: Input
2383
- }], arrowKeyPress$: [{
2384
- type: Input
2385
- }], enterKeyPress$: [{
2386
- type: Input
2387
- }], isOpen$: [{
2388
- type: Input
2389
- }], selected: [{
2390
- type: Output
2391
- }], viewOptionsChange: [{
2392
- type: Output
2393
- }] } });
2316
+ args: [{ selector: 'aeb-dropdown-menu', standalone: false, template: "<ul\n class=\"aeb-dropdown-menu\"\n [class.open]=\"isOpen()\"\n [class.top]=\"direction() === 'top'\"\n [class.bottom]=\"direction() === 'bottom'\"\n [style.max-height]=\"maxShownOptions() * optionHeightPx() + 'px'\"\n (clickOutside)=\"clickOutside()\"\n>\n @for (option of options(); track option.value) {\n <ul\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n (click)=\"selectOption(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </ul>\n }\n</ul>\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:2;width:100%;left:0;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;display:block;opacity:0;visibility:hidden;color:var(--c-t-primary);transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"] }]
2317
+ }] });
2318
+
2319
+ class DropdownMenuModule {
2320
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2321
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule, declarations: [DropdownMenu], imports: [ClickOutsideDirective], exports: [DropdownMenu] }); }
2322
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule }); }
2323
+ }
2324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule, decorators: [{
2325
+ type: NgModule,
2326
+ args: [{
2327
+ declarations: [DropdownMenu],
2328
+ imports: [ClickOutsideDirective],
2329
+ exports: [DropdownMenu]
2330
+ }]
2331
+ }] });
2394
2332
 
2395
- /* eslint-disable @angular-eslint/no-conflicting-lifecycle */
2396
2333
  class DropdownComponent {
2397
- get fieldValue() {
2398
- return this._fieldValue;
2399
- }
2400
- get value() {
2401
- return this._value;
2402
- }
2403
- set disabled(value) {
2404
- if (value === true) {
2405
- this.dropdownIsOpen$.next(false);
2406
- }
2407
- this._disabled = value;
2408
- this.statusChanges$.next();
2409
- }
2410
- get disabled() {
2411
- return this._disabled;
2412
- }
2413
- set fieldValue(vl) {
2414
- const match = (this.options || []).find((item) => item.value === vl);
2415
- if (match) {
2416
- this.value = match.label;
2417
- this._fieldValue = match.value;
2418
- this.selected = match;
2419
- }
2420
- else if (vl === null || vl === '') {
2421
- // обработка сброса значения поля
2422
- this._fieldValue = '';
2423
- this._value = '';
2424
- this.selected = null;
2425
- }
2426
- }
2427
- set value(value) {
2428
- if (!value) {
2429
- this.resetValue();
2430
- return;
2431
- }
2432
- this._value = value;
2433
- }
2434
2334
  constructor() {
2435
- this.cdr = inject(ChangeDetectorRef);
2436
- this.hasErrorChanges$ = new Subject();
2437
- this.pending = false;
2438
- this.valid = false;
2439
- this.dirty = false;
2440
- this.touched = false;
2441
- this._fieldValue = '';
2442
- this._value = '';
2443
- this._disabled = false;
2444
- this.optionSelect = new EventEmitter();
2445
- this.inputChange = new EventEmitter();
2446
- this.label = '';
2447
- this.options = [];
2448
- this.filter = true;
2449
- this.hasError = false;
2450
- this.errorMessageText = '';
2451
- this.validateOnDirty = false;
2452
2335
  this.ngControl = inject(NgControl, { optional: true, self: true });
2453
- this.dropdownIsOpen$ = new BehaviorSubject(false);
2454
- this.arrowKeyPress$ = new Subject();
2455
- this.enterKeyPress$ = new Subject();
2456
- this.inputBlured$ = new Subject();
2457
- this.statusChanges$ = new Subject();
2458
- this.hasError$ = new Observable();
2459
- this.viewOptionsLength = 0;
2460
- if (this.ngControl) {
2461
- this.ngControl.valueAccessor = this;
2462
- }
2463
- }
2464
- ngOnInit() {
2465
- if (this.ngControl) {
2466
- this.dirty = this.ngControl.control.dirty;
2467
- this.touched = this.ngControl.control.touched;
2468
- this.pending = this.ngControl.control.pending;
2469
- this.valid = this.ngControl.control.valid;
2470
- }
2471
- this.hasError$ = merge(this.dropdownIsOpen$, this.arrowKeyPress$, this.enterKeyPress$, this.inputBlured$, this.statusChanges$, this.hasErrorChanges$).pipe(switchMap((value) => {
2472
- if (this.hasError) {
2473
- return of(this.hasError && !this.disabled);
2474
- }
2475
- else {
2476
- return of(value).pipe(map(() => {
2477
- if (this.ngControl &&
2478
- (!!this.ngControl.control.validator ||
2479
- !!this.ngControl.control.asyncValidator) &&
2480
- !this.formFieldRef?.isFocused &&
2481
- !this.dropdownIsOpen$.value &&
2482
- this.ngControl.control.touched &&
2483
- (this.validateOnDirty ? this.ngControl.control.dirty : true) &&
2484
- !this.ngControl.control.valid &&
2485
- !this.ngControl.control.pending &&
2486
- !this.disabled) {
2487
- return true;
2488
- }
2489
- else {
2490
- return false;
2491
- }
2492
- }));
2493
- }
2494
- }));
2495
- }
2496
- ngDoCheck() {
2497
- if (this.ngControl) {
2498
- if (this.dirty !== this.ngControl.control.dirty) {
2499
- this.dirty = this.ngControl.control.dirty;
2500
- this.statusChanges$.next();
2501
- }
2502
- if (this.touched !== this.ngControl.control.touched) {
2503
- this.touched = this.ngControl.control.touched;
2504
- this.statusChanges$.next();
2505
- }
2506
- if (this.valid !== this.ngControl.control.valid) {
2507
- this.valid = this.ngControl.control.valid;
2508
- this.statusChanges$.next();
2509
- }
2510
- if (this.pending !== this.ngControl.control.pending) {
2511
- this.pending = this.ngControl.control.pending;
2512
- this.statusChanges$.next();
2513
- }
2514
- }
2515
- }
2516
- ngOnDestroy() {
2517
- this.dropdownIsOpen$.complete();
2518
- this.arrowKeyPress$.complete();
2519
- this.enterKeyPress$.complete();
2520
- this.inputBlured$.complete();
2521
- this.statusChanges$.complete();
2522
- this.hasErrorChanges$.complete();
2523
- }
2524
- ngOnChanges(changes) {
2525
- if (changes.hasError) {
2526
- this.hasErrorChanges$.next();
2527
- }
2336
+ // Control state
2337
+ this.controlState = signal({
2338
+ dirty: false,
2339
+ touched: false,
2340
+ pending: false,
2341
+ valid: false
2342
+ }, ...(ngDevMode ? [{ debugName: "controlState" }] : []));
2343
+ // Input signals
2344
+ this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
2345
+ this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
2346
+ this.errorMessageText = input('', ...(ngDevMode ? [{ debugName: "errorMessageText" }] : []));
2347
+ this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : []));
2348
+ this.hasError = input(false, ...(ngDevMode ? [{ debugName: "hasError" }] : []));
2349
+ this.validateOnDirty = input(false, ...(ngDevMode ? [{ debugName: "validateOnDirty" }] : []));
2350
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
2351
+ // Output signals
2352
+ this.optionSelect = output();
2353
+ this.inputChange = output();
2354
+ // State signals
2355
+ this.dropdownIsOpen = signal(false, ...(ngDevMode ? [{ debugName: "dropdownIsOpen" }] : []));
2356
+ this.viewOptionsLength = signal(0, ...(ngDevMode ? [{ debugName: "viewOptionsLength" }] : []));
2357
+ this.hasErrorSignal = signal(false, ...(ngDevMode ? [{ debugName: "hasErrorSignal" }] : []));
2358
+ this.valueLabel = signal('', ...(ngDevMode ? [{ debugName: "valueLabel" }] : []));
2359
+ this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : []));
2360
+ this.selectedOption = signal(null, ...(ngDevMode ? [{ debugName: "selectedOption" }] : []));
2361
+ this.filteredOptions = signal([], ...(ngDevMode ? [{ debugName: "filteredOptions" }] : []));
2362
+ this.setupControlValueAccessor();
2363
+ this.setupEffects();
2528
2364
  }
2529
2365
  writeValue(value) {
2530
- if (this.disabled) {
2366
+ if (this.disabled()) {
2531
2367
  return;
2532
2368
  }
2533
- this.fieldValue = value;
2534
- this.optionSelect.emit(this.selected);
2369
+ this.value.set(value);
2370
+ this.optionSelect.emit(this.selectedOption());
2535
2371
  }
2536
2372
  registerOnChange(fn) {
2537
2373
  this.onChange = fn;
@@ -2540,142 +2376,233 @@ class DropdownComponent {
2540
2376
  this.onTouch = fn;
2541
2377
  }
2542
2378
  setDisabledState(disabled) {
2543
- this.disabled = disabled;
2544
- }
2545
- handleArrowKeys(direction) {
2546
- this.arrowKeyPress$.next(direction);
2379
+ // This is called by Angular forms API
2380
+ // We'll use our disabled input signal instead
2547
2381
  }
2548
2382
  handleEnterKey() {
2549
- this.enterKeyPress$.next();
2383
+ // Implement enter key logic here
2550
2384
  }
2551
2385
  openHandler() {
2552
- if (this.disabled) {
2386
+ if (this.disabled()) {
2553
2387
  return;
2554
2388
  }
2555
- this.dropdownIsOpen$.next(!this.dropdownIsOpen$.value);
2389
+ this.dropdownIsOpen.set(!this.dropdownIsOpen());
2556
2390
  this.onTouch();
2557
2391
  }
2558
2392
  clickOutsideHandler() {
2559
- if (this.dropdownIsOpen$.value) {
2560
- this.dropdownIsOpen$.next(false);
2393
+ if (this.dropdownIsOpen()) {
2394
+ this.dropdownIsOpen.set(false);
2561
2395
  }
2562
2396
  }
2563
2397
  inputHandler(term) {
2564
- if (this.disabled) {
2398
+ if (this.disabled()) {
2565
2399
  return;
2566
2400
  }
2567
2401
  const target = term.target;
2568
- this.value = target.value;
2569
- this.inputChange.emit(this.value);
2570
- if (!this.value) {
2571
- this.onChange({
2572
- label: this.value,
2573
- value: undefined
2574
- });
2402
+ const newValue = target.value;
2403
+ this.handleInputChange(newValue);
2404
+ }
2405
+ clickInput() {
2406
+ if (this.disabled()) {
2575
2407
  return;
2576
2408
  }
2577
- const match = (this.options || []).find((item) => item.label === this.value);
2578
- if (match) {
2579
- if (match.value !== this.fieldValue) {
2580
- this.selected = null;
2581
- this.writeValue(null);
2582
- }
2583
- this.writeValue(match.value);
2584
- this.selected = match;
2585
- this.onChange(this.selected);
2409
+ this.onTouch();
2410
+ if (!this.dropdownIsOpen()) {
2411
+ this.dropdownIsOpen.set(true);
2586
2412
  }
2587
- else {
2588
- this.onChange({
2589
- label: this.value,
2590
- value: undefined
2591
- });
2413
+ }
2414
+ selectHandler(optionValue) {
2415
+ this.selectOption(optionValue);
2416
+ }
2417
+ viewOptionsChangeHandler(options) {
2418
+ this.viewOptionsLength.set(options.length);
2419
+ }
2420
+ setupControlValueAccessor() {
2421
+ if (this.ngControl) {
2422
+ this.ngControl.valueAccessor = this;
2592
2423
  }
2593
2424
  }
2594
- clickInput() {
2595
- if (this.disabled) {
2425
+ setupEffects() {
2426
+ this.setupFilterEffect();
2427
+ this.setupDisabledEffect();
2428
+ this.setupErrorEffect();
2429
+ this.setupControlStateEffect();
2430
+ this.setupValueSyncEffect();
2431
+ }
2432
+ setupFilterEffect() {
2433
+ effect(() => {
2434
+ const options = this.options();
2435
+ const filterEnabled = this.filter();
2436
+ const searchTerm = this.valueLabel();
2437
+ const filtered = filterEnabled && searchTerm
2438
+ ? this.filterOptions(options, searchTerm)
2439
+ : options;
2440
+ this.filteredOptions.set(filtered);
2441
+ this.viewOptionsLength.set(filtered.length);
2442
+ });
2443
+ }
2444
+ setupDisabledEffect() {
2445
+ effect(() => {
2446
+ if (this.disabled()) {
2447
+ this.dropdownIsOpen.set(false);
2448
+ }
2449
+ });
2450
+ }
2451
+ setupErrorEffect() {
2452
+ effect(() => {
2453
+ const error = this.calculateErrorState();
2454
+ this.hasErrorSignal.set(error);
2455
+ });
2456
+ }
2457
+ setupControlStateEffect() {
2458
+ if (!this.ngControl) {
2596
2459
  return;
2597
2460
  }
2598
- this.onTouch();
2599
- if (!this.dropdownIsOpen$.value) {
2600
- this.dropdownIsOpen$.next(true);
2461
+ effect(() => {
2462
+ const control = this.ngControl?.control;
2463
+ if (control) {
2464
+ this.controlState.set({
2465
+ dirty: control.dirty,
2466
+ touched: control.touched,
2467
+ pending: control.pending,
2468
+ valid: control.valid
2469
+ });
2470
+ }
2471
+ });
2472
+ }
2473
+ setupValueSyncEffect() {
2474
+ effect(() => {
2475
+ const fieldValue = this.value();
2476
+ const options = this.options();
2477
+ if (fieldValue) {
2478
+ this.handleValueWithOptions(fieldValue, options);
2479
+ }
2480
+ else if (fieldValue === null || fieldValue === '') {
2481
+ this.valueLabel.set('');
2482
+ this.selectedOption.set(null);
2483
+ }
2484
+ });
2485
+ }
2486
+ filterOptions(options, searchTerm) {
2487
+ return options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
2488
+ }
2489
+ handleInputChange(newValue) {
2490
+ this.valueLabel.set(newValue);
2491
+ this.inputChange.emit(newValue);
2492
+ if (!newValue) {
2493
+ this.clearSelection();
2494
+ return;
2601
2495
  }
2496
+ this.findAndSetMatch(newValue);
2602
2497
  }
2603
- selectHandler(selectionData) {
2604
- const [item] = selectionData;
2605
- this.value = item.label;
2606
- this.selected = item;
2607
- this.fieldValue = item.value;
2608
- this.writeValue(item.value);
2609
- this.onChange(this.selected);
2610
- this.dropdownIsOpen$.next(false);
2498
+ clearSelection() {
2499
+ this.onChange({
2500
+ label: '',
2501
+ value: undefined
2502
+ });
2503
+ this.value.set('');
2611
2504
  }
2612
- viewOptionsChangeHandler(options) {
2613
- this.viewOptionsLength = options.length;
2614
- this.cdr.detectChanges();
2505
+ findAndSetMatch(newValue) {
2506
+ const match = this.options().find((item) => item.label === newValue);
2507
+ if (match) {
2508
+ this.handleMatchFound(match);
2509
+ }
2510
+ else {
2511
+ this.handleNoMatch(newValue);
2512
+ }
2615
2513
  }
2616
- resetValue() {
2617
- this._value = '';
2618
- this.selected = null;
2619
- this.writeValue(null);
2514
+ handleMatchFound(match) {
2515
+ if (match.value !== this.value()) {
2516
+ this.selectedOption.set(null);
2517
+ this.value.set('');
2518
+ }
2519
+ this.value.set(match.value);
2520
+ this.selectedOption.set(match);
2521
+ this.onChange(this.selectedOption());
2522
+ }
2523
+ handleNoMatch(newValue) {
2524
+ this.onChange({
2525
+ label: newValue,
2526
+ value: undefined
2527
+ });
2528
+ this.value.set('');
2529
+ }
2530
+ selectOption(optionValue) {
2531
+ const match = this.options().find((item) => item.value === optionValue);
2532
+ if (match) {
2533
+ this.valueLabel.set(match.label);
2534
+ }
2535
+ this.value.set(optionValue);
2536
+ this.onChange(this.selectedOption());
2537
+ this.dropdownIsOpen.set(false);
2538
+ }
2539
+ handleValueWithOptions(fieldValue, options) {
2540
+ const match = options.find((item) => item.value === fieldValue);
2541
+ if (match) {
2542
+ this.valueLabel.set(match.label);
2543
+ this.selectedOption.set(match);
2544
+ }
2545
+ }
2546
+ calculateErrorState() {
2547
+ if (this.hasError()) {
2548
+ return this.hasError() && !this.disabled();
2549
+ }
2550
+ if (!this.ngControl) {
2551
+ return false;
2552
+ }
2553
+ const control = this.ngControl.control;
2554
+ const state = this.controlState();
2555
+ return this.shouldShowError(control, state);
2556
+ }
2557
+ shouldShowError(control, state) {
2558
+ return (!!control &&
2559
+ (!!control.validator || !!control.asyncValidator) &&
2560
+ !this.formFieldRef?.isFocused &&
2561
+ !this.dropdownIsOpen() &&
2562
+ state.touched &&
2563
+ (this.validateOnDirty() ? state.dirty : true) &&
2564
+ !state.valid &&
2565
+ !state.pending &&
2566
+ !this.disabled());
2620
2567
  }
2621
- // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
2622
2568
  onChange(value) { }
2623
2569
  onTouch() { }
2624
2570
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2625
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: DropdownComponent, isStandalone: false, selector: "aeb-dropdown", inputs: { label: "label", options: "options", filter: "filter", hasError: "hasError", errorMessageText: "errorMessageText", validateOnDirty: "validateOnDirty", disabled: "disabled", fieldValue: "fieldValue", value: "value" }, outputs: { optionSelect: "optionSelect", inputChange: "inputChange" }, viewQueries: [{ propertyName: "formFieldRef", first: true, predicate: FormFieldComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-dropdown--on-error': hasError$ | async,\n 'aeb-dropdown--disabled': disabled\n }\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--is-open': dropdownIsOpen$ | async,\n 'aeb-dropdown__input--is-empty': viewOptionsLength === 0\n }\"\n (keydown.arrowdown)=\"handleArrowKeys('down')\"\n (keydown.arrowup)=\"handleArrowKeys('up')\"\n (keydown.enter)=\"handleEnterKey()\"\n >\n <aeb-form-field [isInvalid]=\"hasError$ | async\">\n <label aebLabel>{{ label }}</label>\n <input\n aebInput\n type=\"text\"\n [(ngModel)]=\"value\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n (blur)=\"inputBlured$.next()\"\n />\n <aeb-dropdown-container\n [options]=\"options\"\n [filter]=\"filter\"\n [dropdownFieldValueChanges$]=\"inputChange.asObservable()\"\n [isOpen$]=\"dropdownIsOpen$.asObservable()\"\n [arrowKeyPress$]=\"arrowKeyPress$.asObservable()\"\n [enterKeyPress$]=\"enterKeyPress$.asObservable()\"\n [hasError]=\"hasError$ | async\"\n (selected)=\"selectHandler($event)\"\n (viewOptionsChange)=\"viewOptionsChangeHandler($event)\"\n ></aeb-dropdown-container>\n <label [errorMessage]>{{ errorMessageText }}</label>\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': this.dropdownIsOpen$ | async\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#94A8BE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown--disabled{pointer-events:none;opacity:var(--50-medium)}.aeb-dropdown--on-error .aeb-input{border-color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-label__container{color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-dropdown__icon svg path{stroke:var(--color-red-500)}.aeb-dropdown__input-wrapper{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}.aeb-dropdown__icon--is-open svg path{stroke:var(--color-blue-500)}.aeb-dropdown__input--is-open:not(.aeb-dropdown__input--is-empty) .aeb-form-field .aeb-input{border:var(--border-skinny) solid var(--color-blue-500);padding-bottom:17px;border-bottom:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.aeb-dropdown__items{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__items--is-empty{border:none}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--color-blue-50)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-0)}body.dark .aeb-dropdown__items{background-color:var(--color-mono-1000)}body.dark .aeb-dropdown__option{color:var(--color-mono-0)}body.dark .aeb-dropdown__option--active{background-color:var(--color-mono-900)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DropdownContainerComponent, selector: "aeb-dropdown-container", inputs: ["options", "filter", "hasError", "dropdownFieldValueChanges$", "arrowKeyPress$", "enterKeyPress$", "isOpen$"], outputs: ["selected", "viewOptionsChange"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
2571
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: DropdownComponent, isStandalone: false, selector: "aeb-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, errorMessageText: { classPropertyName: "errorMessageText", publicName: "errorMessageText", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, hasError: { classPropertyName: "hasError", publicName: "hasError", isSignal: true, isRequired: false, transformFunction: null }, validateOnDirty: { classPropertyName: "validateOnDirty", publicName: "validateOnDirty", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { optionSelect: "optionSelect", inputChange: "inputChange" }, viewQueries: [{ propertyName: "formFieldRef", first: true, predicate: FormFieldComponent, descendants: true }], ngImport: i0, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <aeb-form-field [isInvalid]=\"hasErrorSignal()\" [disabled]=\"disabled()\">\n <label aebLabel>{{ label() }}</label>\n <input\n aebInput\n type=\"text\"\n [ngModel]=\"valueLabel()\"\n (ngModelChange)=\"valueLabel.set($event)\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n />\n <aeb-dropdown-menu\n [options]=\"filteredOptions()\"\n [isOpen]=\"dropdownIsOpen()\"\n (optionSelect)=\"selectHandler($event)\"\n ></aeb-dropdown-menu>\n <label [errorMessage]>{{ errorMessageText() }}</label>\n </aeb-form-field>\n\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': dropdownIsOpen()\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DropdownMenu, selector: "aeb-dropdown-menu", inputs: ["isOpen", "direction", "maxShownOptions", "optionSize", "options", "selectedOption"], outputs: ["outsideClick", "optionSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
2626
2572
  }
2627
2573
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownComponent, decorators: [{
2628
2574
  type: Component,
2629
- args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-dropdown--on-error': hasError$ | async,\n 'aeb-dropdown--disabled': disabled\n }\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <div class=\"aeb-dropdown__input-wrapper\">\n <div\n class=\"aeb-dropdown__input\"\n [ngClass]=\"{\n 'aeb-dropdown__input--is-open': dropdownIsOpen$ | async,\n 'aeb-dropdown__input--is-empty': viewOptionsLength === 0\n }\"\n (keydown.arrowdown)=\"handleArrowKeys('down')\"\n (keydown.arrowup)=\"handleArrowKeys('up')\"\n (keydown.enter)=\"handleEnterKey()\"\n >\n <aeb-form-field [isInvalid]=\"hasError$ | async\">\n <label aebLabel>{{ label }}</label>\n <input\n aebInput\n type=\"text\"\n [(ngModel)]=\"value\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n (blur)=\"inputBlured$.next()\"\n />\n <aeb-dropdown-container\n [options]=\"options\"\n [filter]=\"filter\"\n [dropdownFieldValueChanges$]=\"inputChange.asObservable()\"\n [isOpen$]=\"dropdownIsOpen$.asObservable()\"\n [arrowKeyPress$]=\"arrowKeyPress$.asObservable()\"\n [enterKeyPress$]=\"enterKeyPress$.asObservable()\"\n [hasError]=\"hasError$ | async\"\n (selected)=\"selectHandler($event)\"\n (viewOptionsChange)=\"viewOptionsChangeHandler($event)\"\n ></aeb-dropdown-container>\n <label [errorMessage]>{{ errorMessageText }}</label>\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': this.dropdownIsOpen$ | async\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 14L11.9293 10.0707C11.9683 10.0317 12.0317 10.0317 12.0707 10.0707L16 14\"\n stroke=\"#94A8BE\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown--disabled{pointer-events:none;opacity:var(--50-medium)}.aeb-dropdown--on-error .aeb-input{border-color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-label__container{color:var(--color-red-500)!important}.aeb-dropdown--on-error .aeb-dropdown__icon svg path{stroke:var(--color-red-500)}.aeb-dropdown__input-wrapper{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}.aeb-dropdown__icon--is-open svg path{stroke:var(--color-blue-500)}.aeb-dropdown__input--is-open:not(.aeb-dropdown__input--is-empty) .aeb-form-field .aeb-input{border:var(--border-skinny) solid var(--color-blue-500);padding-bottom:17px;border-bottom:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.aeb-dropdown__items{position:absolute;z-index:1;box-sizing:border-box;width:100%;padding-left:0;margin:0;list-style-type:none;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-blue-500);border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown__items--is-empty{border:none}.aeb-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;line-height:20px;text-decoration:none;cursor:pointer;outline:none}.aeb-dropdown__option--active{background-color:var(--color-blue-50)}.aeb-dropdown__option:last-child{border-radius:0 0 10px 10px}body.dark .aeb-dropdown .aeb-input,body.dark .aeb-dropdown .aeb-label{color:var(--color-mono-0)}body.dark .aeb-dropdown__items{background-color:var(--color-mono-1000)}body.dark .aeb-dropdown__option{color:var(--color-mono-0)}body.dark .aeb-dropdown__option--active{background-color:var(--color-mono-900)}\n"] }]
2575
+ args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <aeb-form-field [isInvalid]=\"hasErrorSignal()\" [disabled]=\"disabled()\">\n <label aebLabel>{{ label() }}</label>\n <input\n aebInput\n type=\"text\"\n [ngModel]=\"valueLabel()\"\n (ngModelChange)=\"valueLabel.set($event)\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n />\n <aeb-dropdown-menu\n [options]=\"filteredOptions()\"\n [isOpen]=\"dropdownIsOpen()\"\n (optionSelect)=\"selectHandler($event)\"\n ></aeb-dropdown-menu>\n <label [errorMessage]>{{ errorMessageText() }}</label>\n </aeb-form-field>\n\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': dropdownIsOpen()\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-dropdown__icon svg{transition:transform,.2s}.aeb-dropdown__icon--is-open svg{transform:rotate(180deg)}\n"] }]
2630
2576
  }], ctorParameters: () => [], propDecorators: { formFieldRef: [{
2631
2577
  type: ViewChild,
2632
2578
  args: [FormFieldComponent]
2633
- }], optionSelect: [{
2634
- type: Output
2635
- }], inputChange: [{
2636
- type: Output
2637
- }], label: [{
2638
- type: Input
2639
- }], options: [{
2640
- type: Input
2641
- }], filter: [{
2642
- type: Input
2643
- }], hasError: [{
2644
- type: Input
2645
- }], errorMessageText: [{
2646
- type: Input
2647
- }], validateOnDirty: [{
2648
- type: Input
2649
- }], disabled: [{
2650
- type: Input
2651
- }], fieldValue: [{
2652
- type: Input
2653
- }], value: [{
2654
- type: Input
2655
2579
  }] } });
2656
2580
 
2657
2581
  class DropdownModule {
2658
2582
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2659
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent, DropdownContainerComponent], imports: [CommonModule,
2583
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent], imports: [CommonModule,
2660
2584
  FormFieldModule,
2661
2585
  ClickOutsideDirective,
2662
2586
  FormsModule,
2663
- ReactiveFormsModule], exports: [DropdownComponent] }); }
2587
+ ReactiveFormsModule,
2588
+ DropdownMenuModule], exports: [DropdownComponent] }); }
2664
2589
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, imports: [CommonModule,
2665
2590
  FormFieldModule,
2666
2591
  FormsModule,
2667
- ReactiveFormsModule] }); }
2592
+ ReactiveFormsModule,
2593
+ DropdownMenuModule] }); }
2668
2594
  }
2669
2595
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, decorators: [{
2670
2596
  type: NgModule,
2671
2597
  args: [{
2672
- declarations: [DropdownComponent, DropdownContainerComponent],
2598
+ declarations: [DropdownComponent],
2673
2599
  imports: [
2674
2600
  CommonModule,
2675
2601
  FormFieldModule,
2676
2602
  ClickOutsideDirective,
2677
2603
  FormsModule,
2678
- ReactiveFormsModule
2604
+ ReactiveFormsModule,
2605
+ DropdownMenuModule
2679
2606
  ],
2680
2607
  exports: [DropdownComponent]
2681
2608
  }]
@@ -3834,7 +3761,7 @@ class SelectComponent {
3834
3761
  useExisting: forwardRef(() => SelectComponent),
3835
3762
  multi: true
3836
3763
  }
3837
- ], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div class=\"aeb-select\" [class.disabled]=\"disabled\">\n <div\n class=\"aeb-select__selected-item\"\n [class.open]=\"isOpen\"\n [class.error]=\"hasError\"\n (click)=\"!disabled && openDropdown()\"\n >\n <label\n class=\"aeb-select__label\"\n [class.float]=\"selectedOption\"\n [class.placeholder]=\"!selectedOption\"\n >\n {{ label }}\n </label>\n\n @if (selectedOption) {\n <div class=\"aeb-select__selected-text\">\n {{ selectedOption.label }}\n </div>\n }\n </div>\n\n <div\n class=\"aeb-select__icon\"\n [class.open]=\"isOpen\"\n [class.disabled]=\"disabled\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n\n <ul\n class=\"aeb-select__menu\"\n [class.open]=\"isOpen\"\n [class.top]=\"direction === 'top'\"\n [class.bottom]=\"direction === 'bottom'\"\n [style.--max-items]=\"maxShownItems\"\n >\n @for (option of options; track option.value) {\n <li\n class=\"aeb-select__menu-item\"\n [class.active]=\"option.value === selectedOption?.value\"\n [class.has-additional]=\"option.additional\"\n (click)=\"setValue(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </li>\n }\n </ul>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:16px;color:var(--c-t-primary);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default;pointer-events:none;color:var(--c-t-secondary)}.aeb-select__selected-item{display:flex;align-items:center;width:100%;height:54px;padding:0 52px 0 14px;background:var(--c-bg-surface-medium);border-radius:12px;border:1px solid transparent;position:relative}.aeb-select__selected-item:hover:not(.disabled){background-color:var(--c-bg-surface)}.aeb-select__selected-item.open{border-color:var(--c-btn-p-default);background-color:var(--c-bg-default)}.aeb-select__selected-item.error{background:var(--c-btn-ws-pressed);border-color:var(--c-btn-ws-pressed)}.aeb-select__selected-item.error:hover{background-color:var(--c-btn-ws-default);border-color:var(--c-btn-ws-default)}.aeb-select__selected-item.error.open{background-color:var(--c-bg-default);border-color:var(--c-btn-w-default)}.aeb-select__selected-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;bottom:8px;left:16px;right:52px}.aeb-select__label{font-size:12px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.aeb-select__label.float{position:absolute;left:16px;top:8px;width:calc(100% - 68px)}.aeb-select__label.placeholder{color:var(--c-t-secondary);top:18px;font-size:16px;font-weight:300px;line-height:20px}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:transform .3s cubic-bezier(.4,0,.2,1)}.aeb-select__icon.disabled svg path{stroke:var(--c-i-secondary)}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__menu{position:absolute;z-index:2;width:100%;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;max-height:calc(var(--max-items, 5) * 56px);overflow-y:auto;display:block;opacity:0;visibility:hidden;transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-select__menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-select__menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-select__menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}.aeb-select__menu-item{padding:18px 14px;height:56px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer}.aeb-select__menu-item:hover,.aeb-select__menu-item.active{background-color:var(--c-bg-surface)}.aeb-select__menu-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-select__menu-item.has-additional{padding:10px 14px}.aeb-select__menu-item.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"], encapsulation: i0.ViewEncapsulation.None }); }
3764
+ ], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div class=\"aeb-select\" [class.disabled]=\"disabled\">\n <div\n class=\"aeb-select__selected-item\"\n [class.open]=\"isOpen\"\n [class.error]=\"hasError\"\n (click)=\"!disabled && openDropdown()\"\n >\n <label\n class=\"aeb-select__label\"\n [class.float]=\"selectedOption\"\n [class.placeholder]=\"!selectedOption\"\n >\n {{ label }}\n </label>\n\n @if (selectedOption) {\n <div class=\"aeb-select__selected-text\">\n {{ selectedOption.label }}\n </div>\n }\n </div>\n\n <div\n class=\"aeb-select__icon\"\n [class.open]=\"isOpen\"\n [class.disabled]=\"disabled\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n\n <aeb-dropdown-menu\n [options]=\"options\"\n [direction]=\"direction\"\n [isOpen]=\"isOpen\"\n [selectedOption]=\"selectedOption\"\n (optionSelect)=\"setValue($event)\"\n ></aeb-dropdown-menu>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:16px;color:var(--c-t-primary);cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-select.disabled{cursor:default;pointer-events:none;color:var(--c-t-secondary)}.aeb-select__selected-item{display:flex;align-items:center;width:100%;height:54px;padding:0 52px 0 14px;background:var(--c-bg-surface-medium);border-radius:12px;border:1px solid transparent;position:relative}.aeb-select__selected-item:hover:not(.disabled){background-color:var(--c-bg-surface)}.aeb-select__selected-item.open{border-color:var(--c-btn-p-default);background-color:var(--c-bg-default)}.aeb-select__selected-item.error{background:var(--c-btn-ws-pressed);border-color:var(--c-btn-ws-pressed)}.aeb-select__selected-item.error:hover{background-color:var(--c-btn-ws-default);border-color:var(--c-btn-ws-default)}.aeb-select__selected-item.error.open{background-color:var(--c-bg-default);border-color:var(--c-btn-w-default)}.aeb-select__selected-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;bottom:8px;left:16px;right:52px}.aeb-select__label{font-size:12px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.aeb-select__label.float{position:absolute;left:16px;top:8px;width:calc(100% - 68px)}.aeb-select__label.placeholder{color:var(--c-t-secondary);top:18px;font-size:16px;font-weight:300px;line-height:20px}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:transform .3s cubic-bezier(.4,0,.2,1)}.aeb-select__icon.disabled svg path{stroke:var(--c-i-secondary)}.aeb-select__icon.open{transform:rotate(180deg)}\n"], dependencies: [{ kind: "component", type: DropdownMenu, selector: "aeb-dropdown-menu", inputs: ["isOpen", "direction", "maxShownOptions", "optionSize", "options", "selectedOption"], outputs: ["outsideClick", "optionSelect"] }], encapsulation: i0.ViewEncapsulation.None }); }
3838
3765
  }
3839
3766
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectComponent, decorators: [{
3840
3767
  type: Component,
@@ -3849,7 +3776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
3849
3776
  useExisting: forwardRef(() => SelectComponent),
3850
3777
  multi: true
3851
3778
  }
3852
- ], standalone: false, template: "<div class=\"aeb-select\" [class.disabled]=\"disabled\">\n <div\n class=\"aeb-select__selected-item\"\n [class.open]=\"isOpen\"\n [class.error]=\"hasError\"\n (click)=\"!disabled && openDropdown()\"\n >\n <label\n class=\"aeb-select__label\"\n [class.float]=\"selectedOption\"\n [class.placeholder]=\"!selectedOption\"\n >\n {{ label }}\n </label>\n\n @if (selectedOption) {\n <div class=\"aeb-select__selected-text\">\n {{ selectedOption.label }}\n </div>\n }\n </div>\n\n <div\n class=\"aeb-select__icon\"\n [class.open]=\"isOpen\"\n [class.disabled]=\"disabled\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n\n <ul\n class=\"aeb-select__menu\"\n [class.open]=\"isOpen\"\n [class.top]=\"direction === 'top'\"\n [class.bottom]=\"direction === 'bottom'\"\n [style.--max-items]=\"maxShownItems\"\n >\n @for (option of options; track option.value) {\n <li\n class=\"aeb-select__menu-item\"\n [class.active]=\"option.value === selectedOption?.value\"\n [class.has-additional]=\"option.additional\"\n (click)=\"setValue(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </li>\n }\n </ul>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:16px;color:var(--c-t-primary);cursor:pointer;-webkit-user-select:none;user-select:none}.aeb-select.disabled{cursor:default;pointer-events:none;color:var(--c-t-secondary)}.aeb-select__selected-item{display:flex;align-items:center;width:100%;height:54px;padding:0 52px 0 14px;background:var(--c-bg-surface-medium);border-radius:12px;border:1px solid transparent;position:relative}.aeb-select__selected-item:hover:not(.disabled){background-color:var(--c-bg-surface)}.aeb-select__selected-item.open{border-color:var(--c-btn-p-default);background-color:var(--c-bg-default)}.aeb-select__selected-item.error{background:var(--c-btn-ws-pressed);border-color:var(--c-btn-ws-pressed)}.aeb-select__selected-item.error:hover{background-color:var(--c-btn-ws-default);border-color:var(--c-btn-ws-default)}.aeb-select__selected-item.error.open{background-color:var(--c-bg-default);border-color:var(--c-btn-w-default)}.aeb-select__selected-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;bottom:8px;left:16px;right:52px}.aeb-select__label{font-size:12px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.aeb-select__label.float{position:absolute;left:16px;top:8px;width:calc(100% - 68px)}.aeb-select__label.placeholder{color:var(--c-t-secondary);top:18px;font-size:16px;font-weight:300px;line-height:20px}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:transform .3s cubic-bezier(.4,0,.2,1)}.aeb-select__icon.disabled svg path{stroke:var(--c-i-secondary)}.aeb-select__icon.open{transform:rotate(180deg)}.aeb-select__menu{position:absolute;z-index:2;width:100%;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;max-height:calc(var(--max-items, 5) * 56px);overflow-y:auto;display:block;opacity:0;visibility:hidden;transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-select__menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-select__menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-select__menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}.aeb-select__menu-item{padding:18px 14px;height:56px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer}.aeb-select__menu-item:hover,.aeb-select__menu-item.active{background-color:var(--c-bg-surface)}.aeb-select__menu-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-select__menu-item.has-additional{padding:10px 14px}.aeb-select__menu-item.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"] }]
3779
+ ], standalone: false, template: "<div class=\"aeb-select\" [class.disabled]=\"disabled\">\n <div\n class=\"aeb-select__selected-item\"\n [class.open]=\"isOpen\"\n [class.error]=\"hasError\"\n (click)=\"!disabled && openDropdown()\"\n >\n <label\n class=\"aeb-select__label\"\n [class.float]=\"selectedOption\"\n [class.placeholder]=\"!selectedOption\"\n >\n {{ label }}\n </label>\n\n @if (selectedOption) {\n <div class=\"aeb-select__selected-text\">\n {{ selectedOption.label }}\n </div>\n }\n </div>\n\n <div\n class=\"aeb-select__icon\"\n [class.open]=\"isOpen\"\n [class.disabled]=\"disabled\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n\n <aeb-dropdown-menu\n [options]=\"options\"\n [direction]=\"direction\"\n [isOpen]=\"isOpen\"\n [selectedOption]=\"selectedOption\"\n (optionSelect)=\"setValue($event)\"\n ></aeb-dropdown-menu>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:16px;color:var(--c-t-primary);cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-select.disabled{cursor:default;pointer-events:none;color:var(--c-t-secondary)}.aeb-select__selected-item{display:flex;align-items:center;width:100%;height:54px;padding:0 52px 0 14px;background:var(--c-bg-surface-medium);border-radius:12px;border:1px solid transparent;position:relative}.aeb-select__selected-item:hover:not(.disabled){background-color:var(--c-bg-surface)}.aeb-select__selected-item.open{border-color:var(--c-btn-p-default);background-color:var(--c-bg-default)}.aeb-select__selected-item.error{background:var(--c-btn-ws-pressed);border-color:var(--c-btn-ws-pressed)}.aeb-select__selected-item.error:hover{background-color:var(--c-btn-ws-default);border-color:var(--c-btn-ws-default)}.aeb-select__selected-item.error.open{background-color:var(--c-bg-default);border-color:var(--c-btn-w-default)}.aeb-select__selected-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;bottom:8px;left:16px;right:52px}.aeb-select__label{font-size:12px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.aeb-select__label.float{position:absolute;left:16px;top:8px;width:calc(100% - 68px)}.aeb-select__label.placeholder{color:var(--c-t-secondary);top:18px;font-size:16px;font-weight:300px;line-height:20px}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:transform .3s cubic-bezier(.4,0,.2,1)}.aeb-select__icon.disabled svg path{stroke:var(--c-i-secondary)}.aeb-select__icon.open{transform:rotate(180deg)}\n"] }]
3853
3780
  }], ctorParameters: () => [], propDecorators: { label: [{
3854
3781
  type: Input
3855
3782
  }], options: [{
@@ -3875,14 +3802,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
3875
3802
 
3876
3803
  class SelectModule {
3877
3804
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3878
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, declarations: [SelectComponent], imports: [CommonModule, ClickOutsideDirective, FormFieldModule], exports: [SelectComponent] }); }
3879
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, imports: [CommonModule, FormFieldModule] }); }
3805
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, declarations: [SelectComponent], imports: [CommonModule,
3806
+ ClickOutsideDirective,
3807
+ FormFieldModule,
3808
+ DropdownMenuModule], exports: [SelectComponent] }); }
3809
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, imports: [CommonModule,
3810
+ FormFieldModule,
3811
+ DropdownMenuModule] }); }
3880
3812
  }
3881
3813
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, decorators: [{
3882
3814
  type: NgModule,
3883
3815
  args: [{
3884
3816
  declarations: [SelectComponent],
3885
- imports: [CommonModule, ClickOutsideDirective, FormFieldModule],
3817
+ imports: [
3818
+ CommonModule,
3819
+ ClickOutsideDirective,
3820
+ FormFieldModule,
3821
+ DropdownMenuModule
3822
+ ],
3886
3823
  exports: [SelectComponent]
3887
3824
  }]
3888
3825
  }] });
@@ -5201,6 +5138,7 @@ class AebUiKitModule {
5201
5138
  ActionBarModule,
5202
5139
  NewsCardModule,
5203
5140
  DropdownModule,
5141
+ DropdownMenuModule,
5204
5142
  TableModule,
5205
5143
  ModalModule,
5206
5144
  ResponseModule], exports: [ButtonModule,
@@ -5233,6 +5171,7 @@ class AebUiKitModule {
5233
5171
  ActionBarModule,
5234
5172
  NewsCardModule,
5235
5173
  DropdownModule,
5174
+ DropdownMenuModule,
5236
5175
  TableModule,
5237
5176
  ModalModule,
5238
5177
  ResponseModule] }); }
@@ -5267,6 +5206,7 @@ class AebUiKitModule {
5267
5206
  ActionBarModule,
5268
5207
  NewsCardModule,
5269
5208
  DropdownModule,
5209
+ DropdownMenuModule,
5270
5210
  TableModule,
5271
5211
  ModalModule,
5272
5212
  ResponseModule, ButtonModule,
@@ -5299,6 +5239,7 @@ class AebUiKitModule {
5299
5239
  ActionBarModule,
5300
5240
  NewsCardModule,
5301
5241
  DropdownModule,
5242
+ DropdownMenuModule,
5302
5243
  TableModule,
5303
5244
  ModalModule,
5304
5245
  ResponseModule] }); }
@@ -5338,6 +5279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
5338
5279
  ActionBarModule,
5339
5280
  NewsCardModule,
5340
5281
  DropdownModule,
5282
+ DropdownMenuModule,
5341
5283
  TableModule,
5342
5284
  ModalModule,
5343
5285
  ResponseModule
@@ -5373,6 +5315,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
5373
5315
  ActionBarModule,
5374
5316
  NewsCardModule,
5375
5317
  DropdownModule,
5318
+ DropdownMenuModule,
5376
5319
  TableModule,
5377
5320
  ModalModule,
5378
5321
  ResponseModule
@@ -5539,5 +5482,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
5539
5482
  * Generated bundle index. Do not edit.
5540
5483
  */
5541
5484
 
5542
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5485
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownMenu, DropdownMenuModule, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5543
5486
  //# sourceMappingURL=aeb-ui-kit.mjs.map