@aeris-ui/core 22.0.0-alpha.4 → 22.0.0-alpha.5

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.
Files changed (134) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
  3. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  4. package/fesm2022/aeris-ui-core-auto-complete.mjs +21 -17
  5. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  7. package/fesm2022/aeris-ui-core-avatar.mjs +9 -9
  8. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  9. package/fesm2022/aeris-ui-core-badge.mjs +10 -10
  10. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  11. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  12. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  13. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  14. package/fesm2022/aeris-ui-core-button.mjs +6 -6
  15. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  16. package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
  17. package/fesm2022/aeris-ui-core-cascade-select.mjs +15 -11
  18. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-chart.mjs +3 -3
  20. package/fesm2022/aeris-ui-core-checkbox.mjs +3 -3
  21. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  22. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  23. package/fesm2022/aeris-ui-core-color-picker.mjs +9 -5
  24. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  25. package/fesm2022/aeris-ui-core-compare.mjs +12 -12
  26. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +18 -18
  27. package/fesm2022/aeris-ui-core-confirm-popup.mjs +19 -19
  28. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  29. package/fesm2022/aeris-ui-core-context-menu.mjs +15 -8
  30. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  31. package/fesm2022/aeris-ui-core-date-picker.mjs +9 -5
  32. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  33. package/fesm2022/aeris-ui-core-dialog.mjs +17 -17
  34. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  36. package/fesm2022/aeris-ui-core-drawer.mjs +16 -16
  37. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +6 -6
  39. package/fesm2022/aeris-ui-core-editor.mjs +3 -3
  40. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  41. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  42. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  43. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  44. package/fesm2022/aeris-ui-core-form-field.mjs +181 -0
  45. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  46. package/fesm2022/aeris-ui-core-galleria.mjs +27 -27
  47. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  48. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  49. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  50. package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
  51. package/fesm2022/aeris-ui-core-input-mask.mjs +3 -3
  52. package/fesm2022/aeris-ui-core-input-number.mjs +3 -3
  53. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  54. package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
  55. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  56. package/fesm2022/aeris-ui-core-mega-menu.mjs +15 -7
  57. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-menu.mjs +38 -18
  59. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-menubar.mjs +135 -15
  61. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-message.mjs +9 -9
  63. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  64. package/fesm2022/aeris-ui-core-multi-select.mjs +24 -20
  65. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  67. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  68. package/fesm2022/aeris-ui-core-paginator.mjs +9 -5
  69. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  71. package/fesm2022/aeris-ui-core-password.mjs +18 -14
  72. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  74. package/fesm2022/aeris-ui-core-popover.mjs +30 -19
  75. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  77. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  78. package/fesm2022/aeris-ui-core-radio-button.mjs +3 -3
  79. package/fesm2022/aeris-ui-core-rating.mjs +3 -3
  80. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  81. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  82. package/fesm2022/aeris-ui-core-select.mjs +42 -38
  83. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  85. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  86. package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
  87. package/fesm2022/aeris-ui-core-split-button.mjs +9 -5
  88. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  90. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  91. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  92. package/fesm2022/aeris-ui-core-table.mjs +19 -19
  93. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-tabs.mjs +76 -25
  95. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
  97. package/fesm2022/aeris-ui-core-theming.mjs +3 -3
  98. package/fesm2022/aeris-ui-core-tiered-menu.mjs +29 -10
  99. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  101. package/fesm2022/aeris-ui-core-toast.mjs +12 -12
  102. package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
  103. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  104. package/fesm2022/aeris-ui-core-tooltip.mjs +29 -30
  105. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-tree-select.mjs +24 -20
  107. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-tree-table.mjs +16 -16
  109. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-tree.mjs +12 -12
  111. package/fesm2022/aeris-ui-core.mjs +165 -42
  112. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  113. package/package.json +6 -2
  114. package/styles/aeris.css +7 -0
  115. package/types/aeris-ui-core-auto-complete.d.ts +3 -2
  116. package/types/aeris-ui-core-cascade-select.d.ts +3 -2
  117. package/types/aeris-ui-core-color-picker.d.ts +3 -2
  118. package/types/aeris-ui-core-context-menu.d.ts +3 -1
  119. package/types/aeris-ui-core-date-picker.d.ts +3 -2
  120. package/types/aeris-ui-core-form-field.d.ts +65 -0
  121. package/types/aeris-ui-core-mega-menu.d.ts +4 -2
  122. package/types/aeris-ui-core-menu.d.ts +3 -2
  123. package/types/aeris-ui-core-menubar.d.ts +27 -3
  124. package/types/aeris-ui-core-multi-select.d.ts +3 -2
  125. package/types/aeris-ui-core-paginator.d.ts +3 -2
  126. package/types/aeris-ui-core-password.d.ts +3 -2
  127. package/types/aeris-ui-core-popover.d.ts +2 -2
  128. package/types/aeris-ui-core-select.d.ts +3 -2
  129. package/types/aeris-ui-core-split-button.d.ts +3 -2
  130. package/types/aeris-ui-core-tabs.d.ts +23 -5
  131. package/types/aeris-ui-core-tiered-menu.d.ts +5 -3
  132. package/types/aeris-ui-core-tooltip.d.ts +2 -4
  133. package/types/aeris-ui-core-tree-select.d.ts +3 -2
  134. package/types/aeris-ui-core.d.ts +40 -26
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-cascade-select.mjs","sources":["../../../projects/aeris-ui/cascade-select/aeris-cascade-select.ts","../../../projects/aeris-ui/cascade-select/aeris-ui-core-cascade-select.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵAerisAppendTo, type AerisAppendTo } from '@aeris-ui/core';\n\nexport type AerisCascadeSelectSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisCascadeSelectAppearance = 'outline' | 'filled';\n\nexport interface AerisCascadeSelectOption {\n readonly label: string;\n readonly value: string;\n readonly disabled?: boolean;\n readonly description?: string;\n readonly children?: readonly AerisCascadeSelectOption[];\n}\n\nexport interface AerisCascadeSelectChangeEvent {\n readonly originalEvent: Event;\n readonly value: string | null;\n readonly option: AerisCascadeSelectOption | null;\n readonly path: readonly AerisCascadeSelectOption[];\n}\n\ninterface AerisCascadeSelectColumn {\n readonly parent: AerisCascadeSelectOption | null;\n readonly options: readonly AerisCascadeSelectOption[];\n}\n\ninterface AerisCascadeSelectOptionContext {\n readonly $implicit: AerisCascadeSelectOption;\n readonly option: AerisCascadeSelectOption;\n readonly active: boolean;\n readonly selected: boolean;\n readonly level: number;\n readonly hasChildren: boolean;\n}\n\n@Directive({ selector: 'ng-template[aerisCascadeSelectOption]' })\nexport class AerisCascadeSelectOptionTemplate {\n readonly template = inject<TemplateRef<AerisCascadeSelectOptionContext>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: AerisCascadeSelectOptionTemplate,\n context: unknown,\n ): context is AerisCascadeSelectOptionContext {\n return true;\n }\n}\n\n@Directive({ selector: 'ng-template[aerisCascadeSelectEmpty]' })\nexport class AerisCascadeSelectEmptyTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\nlet nextCascadeSelectId = 0;\n\n@Component({\n selector: 'aeris-cascade-select',\n imports: [NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <div\n class=\"aeris-cascade-select\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-open]=\"open() || null\"\n [attr.data-invalid]=\"invalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name() && value() !== null) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"value()\" />\n }\n\n <div class=\"aeris-cascade-select__control\">\n <button\n #trigger\n class=\"aeris-cascade-select__trigger\"\n type=\"button\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [id]=\"resolvedInputId()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-activedescendant]=\"open() ? activeOptionId() : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n [disabled]=\"effectiveDisabled()\"\n (click)=\"toggle()\"\n (keydown)=\"handleKeydown($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n <span\n class=\"aeris-cascade-select__value\"\n [class.aeris-cascade-select__placeholder]=\"!selectedPath().length\"\n >\n @if (selectedPath().length) {\n {{ displayValue() }}\n } @else {\n {{ placeholder() }}\n }\n </span>\n </button>\n\n @if (showClearButton()) {\n <button\n type=\"button\"\n class=\"aeris-cascade-select__clear\"\n [attr.aria-label]=\"clearButtonAriaLabel()\"\n (click)=\"clear()\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n\n <span class=\"aeris-cascade-select__chevron\" aria-hidden=\"true\"></span>\n </div>\n\n @if (open()) {\n <button\n type=\"button\"\n class=\"aeris-cascade-select__dismiss\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (click)=\"closePanel()\"\n ></button>\n\n <div\n #optionsPanel\n class=\"aeris-cascade-select__panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"triggerElement()?.nativeElement ?? null\"\n [aerisInternalAppendToMatchWidth]=\"true\"\n (aerisInternalAppendToOutside)=\"closePanel()\"\n [id]=\"panelId\"\n [style.max-height]=\"panelMaxHeight()\"\n >\n @if (columns().length === 0) {\n <div class=\"aeris-cascade-select__state\">\n @if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n } @else {\n @for (column of columns(); track columnKey(column, $index); let level = $index) {\n <div\n class=\"aeris-cascade-select__column\"\n role=\"listbox\"\n [attr.aria-label]=\"columnLabel(level)\"\n >\n @for (option of column.options; track option.value) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"aeris-cascade-select__option\"\n [id]=\"optionId(level, option.value)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-expanded]=\"hasChildren(option) ? isInActivePath(option) : null\"\n [attr.data-active]=\"isActive(level, option) || null\"\n [attr.data-has-children]=\"hasChildren(option) || null\"\n (mouseenter)=\"activateOption(level, option)\"\n (focus)=\"activateOption(level, option)\"\n (click)=\"handleOptionClick(level, option, $event)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option,\n active: isActive(level, option),\n selected: isSelected(option),\n level,\n hasChildren: hasChildren(option)\n }\"\n />\n } @else {\n <span class=\"aeris-cascade-select__option-copy\">\n <span>{{ option.label }}</span>\n @if (option.description) {\n <small>{{ option.description }}</small>\n }\n </span>\n @if (hasChildren(option)) {\n <span class=\"aeris-cascade-select__option-chevron\" aria-hidden=\"true\"></span>\n }\n }\n </button>\n }\n </div>\n }\n }\n </div>\n }\n </div>\n `,\n styleUrl: './aeris-cascade-select.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisCascadeSelect),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisCascadeSelect implements ControlValueAccessor {\n protected readonly triggerElement = viewChild<ElementRef<HTMLButtonElement>>('trigger');\n private readonly optionsPanel = viewChild<ElementRef<HTMLElement>>('optionsPanel');\n private readonly panelPortal = viewChild(ɵAerisAppendTo);\n private readonly generatedId = `aeris-cascade-select-${++nextCascadeSelectId}`;\n private readonly formDisabled = signal(false);\n private readonly panelOpen = signal(false);\n private readonly activePath = signal<readonly AerisCascadeSelectOption[]>([]);\n private readonly activeLevel = signal(0);\n private onChange: (value: string | null) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model<string | null>(null);\n readonly options = input<readonly AerisCascadeSelectOption[]>([]);\n readonly inputId = input('');\n readonly name = input('');\n readonly placeholder = input('Select an option');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledby = input<string>();\n readonly ariaDescribedby = input<string>();\n readonly clearButtonAriaLabel = input('Clear value');\n readonly emptyMessage = input('No options available');\n readonly size = input<AerisCascadeSelectSize>('md');\n readonly appearance = input<AerisCascadeSelectAppearance>('outline');\n readonly separator = input(' / ');\n readonly panelMaxHeight = input('18rem');\n readonly appendTo = input<AerisAppendTo>();\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly clearable = input(false, { transform: booleanAttribute });\n readonly selectBranches = input(false, { transform: booleanAttribute });\n\n readonly changed = output<AerisCascadeSelectChangeEvent>();\n readonly cleared = output<void>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly optionTemplate = contentChild(AerisCascadeSelectOptionTemplate);\n protected readonly emptyTemplate = contentChild(AerisCascadeSelectEmptyTemplate);\n protected readonly panelId = `${this.generatedId}-panel`;\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly open = computed(() => this.panelOpen());\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly selectedPath = computed(() => this.findPathByValue(this.value()));\n protected readonly displayValue = computed(() =>\n this.selectedPath().map((option) => option.label).join(this.separator()),\n );\n protected readonly showClearButton = computed(\n () => this.clearable() && this.value() !== null && !this.effectiveDisabled(),\n );\n protected readonly columns = computed<readonly AerisCascadeSelectColumn[]>(() => {\n const root = this.options();\n if (root.length === 0) return [];\n\n const path = this.activePath();\n const columns: AerisCascadeSelectColumn[] = [{ parent: null, options: root }];\n\n for (const option of path) {\n if (!this.hasChildren(option)) break;\n columns.push({ parent: option, options: option.children ?? [] });\n }\n\n return columns;\n });\n protected readonly activeOptionId = computed(() => {\n const option = this.activePath()[this.activeLevel()];\n return option ? this.optionId(this.activeLevel(), option.value) : null;\n });\n\n writeValue(value: unknown): void {\n this.value.set(typeof value === 'string' ? value : value == null ? null : String(value));\n }\n\n registerOnChange(callback: (value: string | null) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.triggerElement()?.nativeElement.focus(options);\n }\n\n openPanel(): void {\n if (this.effectiveDisabled()) return;\n if (!this.panelOpen()) {\n this.activePath.set([]);\n this.activeLevel.set(0);\n this.panelOpen.set(true);\n this.opened.emit();\n }\n }\n\n closePanel(): void {\n if (!this.panelOpen()) return;\n this.panelPortal()?.restore();\n this.panelOpen.set(false);\n this.activePath.set([]);\n this.activeLevel.set(0);\n this.closed.emit();\n }\n\n toggle(): void {\n if (this.panelOpen()) {\n this.closePanel();\n } else {\n this.openPanel();\n }\n }\n\n clear(): void {\n if (this.effectiveDisabled()) return;\n this.setValue(null, null, new Event('clear'));\n this.activePath.set([]);\n this.cleared.emit();\n this.closePanel();\n this.focus();\n }\n\n reset(): void {\n this.setValue(null, null, new Event('reset'));\n this.activePath.set([]);\n this.closePanel();\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.touch.emit();\n this.onTouched();\n this.blurred.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget as Node | null;\n const currentTarget = event.currentTarget as HTMLElement;\n if (\n !nextTarget ||\n (!currentTarget.contains(nextTarget) && !this.optionsPanel()?.nativeElement.contains(nextTarget))\n ) {\n this.closePanel();\n }\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.openPanel();\n this.moveActive(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.openPanel();\n this.moveActive(-1);\n break;\n case 'ArrowRight':\n event.preventDefault();\n this.openPanel();\n this.enterChildColumn();\n break;\n case 'ArrowLeft':\n if (this.panelOpen()) {\n event.preventDefault();\n this.leaveChildColumn();\n }\n break;\n case 'Home':\n if (this.panelOpen()) {\n event.preventDefault();\n this.setBoundaryActive('first');\n }\n break;\n case 'End':\n if (this.panelOpen()) {\n event.preventDefault();\n this.setBoundaryActive('last');\n }\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n if (!this.panelOpen()) {\n this.openPanel();\n return;\n }\n this.commitActiveOption(event);\n break;\n case 'Escape':\n if (this.panelOpen()) {\n event.preventDefault();\n this.closePanel();\n }\n break;\n default:\n break;\n }\n }\n\n protected activateOption(level: number, option: AerisCascadeSelectOption): void {\n if (option.disabled) return;\n this.activeLevel.set(level);\n this.activePath.update((path) => [...path.slice(0, level), option]);\n }\n\n protected handleOptionClick(\n level: number,\n option: AerisCascadeSelectOption,\n event: Event,\n ): void {\n if (option.disabled) return;\n this.activateOption(level, option);\n if (this.hasChildren(option) && !this.selectBranches()) return;\n this.selectOption(option, event);\n }\n\n protected hasChildren(option: AerisCascadeSelectOption): boolean {\n return (option.children?.length ?? 0) > 0;\n }\n\n protected isSelected(option: AerisCascadeSelectOption): boolean {\n return this.value() === option.value;\n }\n\n protected isActive(level: number, option: AerisCascadeSelectOption): boolean {\n return this.activePath()[level]?.value === option.value;\n }\n\n protected isInActivePath(option: AerisCascadeSelectOption): boolean {\n return this.activePath().some((active) => active.value === option.value);\n }\n\n protected optionId(level: number, value: string): string {\n return `${this.panelId}-${level}-${this.sanitizeId(value)}`;\n }\n\n protected columnLabel(level: number): string {\n return level === 0 ? 'Root options' : `Level ${level + 1} options`;\n }\n\n protected columnKey(column: AerisCascadeSelectColumn, index: number): string {\n return `${index}-${column.parent?.value ?? 'root'}`;\n }\n\n private moveActive(direction: 1 | -1): void {\n const options = this.enabledOptionsAtLevel(this.activeLevel());\n if (options.length === 0) return;\n\n const current = this.activePath()[this.activeLevel()];\n const currentIndex = options.findIndex((option) => option.value === current?.value);\n const nextIndex =\n currentIndex < 0\n ? direction > 0\n ? 0\n : options.length - 1\n : (currentIndex + direction + options.length) % options.length;\n const next = options[nextIndex];\n if (next) this.activateOption(this.activeLevel(), next);\n }\n\n private setBoundaryActive(boundary: 'first' | 'last'): void {\n const options = this.enabledOptionsAtLevel(this.activeLevel());\n const next = boundary === 'first' ? options[0] : options.at(-1);\n if (next) this.activateOption(this.activeLevel(), next);\n }\n\n private enterChildColumn(): void {\n const active = this.resolveOption(this.activePath()[this.activeLevel()] ?? null);\n if (!active || !this.hasChildren(active)) return;\n const child = this.firstEnabled(active.children ?? []);\n if (!child) return;\n const nextLevel = this.activeLevel() + 1;\n this.activeLevel.set(nextLevel);\n this.activePath.update((path) => [...path.slice(0, nextLevel), child]);\n }\n\n private leaveChildColumn(): void {\n if (this.activeLevel() === 0) return;\n this.activeLevel.update((level) => level - 1);\n this.activePath.update((path) => path.slice(0, this.activeLevel() + 1));\n }\n\n private commitActiveOption(event: Event): void {\n const active = this.resolveOption(this.activePath()[this.activeLevel()] ?? null);\n if (!active || active.disabled) return;\n if (this.hasChildren(active) && !this.selectBranches()) {\n this.enterChildColumn();\n return;\n }\n this.selectOption(active, event);\n }\n\n private selectOption(option: AerisCascadeSelectOption, originalEvent: Event): void {\n this.setValue(option.value, option, originalEvent);\n this.closePanel();\n this.focus();\n }\n\n private setValue(\n value: string | null,\n option: AerisCascadeSelectOption | null,\n originalEvent: Event,\n ): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.onChange(value);\n this.changed.emit({\n originalEvent,\n value,\n option,\n path: value === null ? [] : this.findPathByValue(value),\n });\n }\n\n private enabledOptionsAtLevel(level: number): readonly AerisCascadeSelectOption[] {\n return (this.columns()[level]?.options ?? []).filter((option) => !option.disabled);\n }\n\n private firstEnabled(options: readonly AerisCascadeSelectOption[]): AerisCascadeSelectOption | null {\n return options.find((option) => !option.disabled) ?? null;\n }\n\n private findPathByValue(value: string | null): readonly AerisCascadeSelectOption[] {\n if (value === null) return [];\n return this.findPath(this.options(), value) ?? [];\n }\n\n private resolveOption(\n option: AerisCascadeSelectOption | null,\n ): AerisCascadeSelectOption | null {\n if (!option) return null;\n return this.findPathByValue(option.value).at(-1) ?? option;\n }\n\n private findPath(\n options: readonly AerisCascadeSelectOption[],\n value: string,\n path: readonly AerisCascadeSelectOption[] = [],\n ): readonly AerisCascadeSelectOption[] | null {\n for (const option of options) {\n const nextPath = [...path, option];\n if (option.value === value) return nextPath;\n const childPath = this.findPath(option.children ?? [], value, nextPath);\n if (childPath) return childPath;\n }\n return null;\n }\n\n private sanitizeId(value: string): string {\n const sanitized = value.toLocaleLowerCase().replace(/[^a-z0-9_-]+/g, '-');\n return sanitized || 'option';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;;;MAqDa,gCAAgC,CAAA;AAClC,IAAA,QAAQ,GAAG,MAAM,CAA+C,WAAW,CAAC;AAErF,IAAA,OAAO,sBAAsB,CAC3B,UAA4C,EAC5C,OAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI;IACb;uGARW,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAhC,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAD5C,SAAS;mBAAC,EAAE,QAAQ,EAAE,uCAAuC,EAAE;;MAanD,+BAA+B,CAAA;AACjC,IAAA,QAAQ,GAAG,MAAM,CAAoB,WAAW,CAAC;uGAD/C,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA/B,+BAA+B,EAAA,UA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,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACjRjF;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-cascade-select.mjs","sources":["../../../projects/aeris-ui/cascade-select/aeris-cascade-select.ts","../../../projects/aeris-ui/cascade-select/aeris-ui-core-cascade-select.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵAerisAppendTo, type AerisAppendTo, type AerisOverlayCollisionPadding } from '@aeris-ui/core';\n\nexport type AerisCascadeSelectSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisCascadeSelectAppearance = 'outline' | 'filled';\n\nexport interface AerisCascadeSelectOption {\n readonly label: string;\n readonly value: string;\n readonly disabled?: boolean;\n readonly description?: string;\n readonly children?: readonly AerisCascadeSelectOption[];\n}\n\nexport interface AerisCascadeSelectChangeEvent {\n readonly originalEvent: Event;\n readonly value: string | null;\n readonly option: AerisCascadeSelectOption | null;\n readonly path: readonly AerisCascadeSelectOption[];\n}\n\ninterface AerisCascadeSelectColumn {\n readonly parent: AerisCascadeSelectOption | null;\n readonly options: readonly AerisCascadeSelectOption[];\n}\n\ninterface AerisCascadeSelectOptionContext {\n readonly $implicit: AerisCascadeSelectOption;\n readonly option: AerisCascadeSelectOption;\n readonly active: boolean;\n readonly selected: boolean;\n readonly level: number;\n readonly hasChildren: boolean;\n}\n\n@Directive({ selector: 'ng-template[aerisCascadeSelectOption]' })\nexport class AerisCascadeSelectOptionTemplate {\n readonly template = inject<TemplateRef<AerisCascadeSelectOptionContext>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: AerisCascadeSelectOptionTemplate,\n context: unknown,\n ): context is AerisCascadeSelectOptionContext {\n return true;\n }\n}\n\n@Directive({ selector: 'ng-template[aerisCascadeSelectEmpty]' })\nexport class AerisCascadeSelectEmptyTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\nlet nextCascadeSelectId = 0;\n\n@Component({\n selector: 'aeris-cascade-select',\n imports: [NgTemplateOutlet, ɵAerisAppendTo],\n template: `\n <div\n class=\"aeris-cascade-select\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-open]=\"open() || null\"\n [attr.data-invalid]=\"invalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (name() && value() !== null) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"value()\" />\n }\n\n <div class=\"aeris-cascade-select__control\">\n <button\n #trigger\n class=\"aeris-cascade-select__trigger\"\n type=\"button\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [id]=\"resolvedInputId()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-activedescendant]=\"open() ? activeOptionId() : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n [disabled]=\"effectiveDisabled()\"\n (click)=\"toggle()\"\n (keydown)=\"handleKeydown($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n <span\n class=\"aeris-cascade-select__value\"\n [class.aeris-cascade-select__placeholder]=\"!selectedPath().length\"\n >\n @if (selectedPath().length) {\n {{ displayValue() }}\n } @else {\n {{ placeholder() }}\n }\n </span>\n </button>\n\n @if (showClearButton()) {\n <button\n type=\"button\"\n class=\"aeris-cascade-select__clear\"\n [attr.aria-label]=\"clearButtonAriaLabel()\"\n (click)=\"clear()\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n\n <span class=\"aeris-cascade-select__chevron\" aria-hidden=\"true\"></span>\n </div>\n\n @if (open()) {\n <button\n type=\"button\"\n class=\"aeris-cascade-select__dismiss\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (click)=\"closePanel()\"\n ></button>\n\n <div\n #optionsPanel\n class=\"aeris-cascade-select__panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"triggerElement()?.nativeElement ?? null\"\n [aerisInternalAppendToMatchWidth]=\"true\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n (aerisInternalAppendToOutside)=\"closePanel()\"\n [id]=\"panelId\"\n [style.max-height]=\"panelMaxHeight()\"\n >\n @if (columns().length === 0) {\n <div class=\"aeris-cascade-select__state\">\n @if (emptyTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n } @else {\n @for (column of columns(); track columnKey(column, $index); let level = $index) {\n <div\n class=\"aeris-cascade-select__column\"\n role=\"listbox\"\n [attr.aria-label]=\"columnLabel(level)\"\n >\n @for (option of column.options; track option.value) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"aeris-cascade-select__option\"\n [id]=\"optionId(level, option.value)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-expanded]=\"hasChildren(option) ? isInActivePath(option) : null\"\n [attr.data-active]=\"isActive(level, option) || null\"\n [attr.data-has-children]=\"hasChildren(option) || null\"\n (mouseenter)=\"activateOption(level, option)\"\n (focus)=\"activateOption(level, option)\"\n (click)=\"handleOptionClick(level, option, $event)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option,\n active: isActive(level, option),\n selected: isSelected(option),\n level,\n hasChildren: hasChildren(option)\n }\"\n />\n } @else {\n <span class=\"aeris-cascade-select__option-copy\">\n <span>{{ option.label }}</span>\n @if (option.description) {\n <small>{{ option.description }}</small>\n }\n </span>\n @if (hasChildren(option)) {\n <span class=\"aeris-cascade-select__option-chevron\" aria-hidden=\"true\"></span>\n }\n }\n </button>\n }\n </div>\n }\n }\n </div>\n }\n </div>\n `,\n styleUrl: './aeris-cascade-select.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisCascadeSelect),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisCascadeSelect implements ControlValueAccessor {\n protected readonly triggerElement = viewChild<ElementRef<HTMLButtonElement>>('trigger');\n private readonly optionsPanel = viewChild<ElementRef<HTMLElement>>('optionsPanel');\n private readonly panelPortal = viewChild(ɵAerisAppendTo);\n private readonly generatedId = `aeris-cascade-select-${++nextCascadeSelectId}`;\n private readonly formDisabled = signal(false);\n private readonly panelOpen = signal(false);\n private readonly activePath = signal<readonly AerisCascadeSelectOption[]>([]);\n private readonly activeLevel = signal(0);\n private onChange: (value: string | null) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly value = model<string | null>(null);\n readonly options = input<readonly AerisCascadeSelectOption[]>([]);\n readonly inputId = input('');\n readonly name = input('');\n readonly placeholder = input('Select an option');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledby = input<string>();\n readonly ariaDescribedby = input<string>();\n readonly clearButtonAriaLabel = input('Clear value');\n readonly emptyMessage = input('No options available');\n readonly size = input<AerisCascadeSelectSize>('md');\n readonly appearance = input<AerisCascadeSelectAppearance>('outline');\n readonly separator = input(' / ');\n readonly panelMaxHeight = input('18rem');\n readonly appendTo = input<AerisAppendTo>();\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly clearable = input(false, { transform: booleanAttribute });\n readonly selectBranches = input(false, { transform: booleanAttribute });\n\n readonly changed = output<AerisCascadeSelectChangeEvent>();\n readonly cleared = output<void>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly optionTemplate = contentChild(AerisCascadeSelectOptionTemplate);\n protected readonly emptyTemplate = contentChild(AerisCascadeSelectEmptyTemplate);\n protected readonly panelId = `${this.generatedId}-panel`;\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly open = computed(() => this.panelOpen());\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly selectedPath = computed(() => this.findPathByValue(this.value()));\n protected readonly displayValue = computed(() =>\n this.selectedPath().map((option) => option.label).join(this.separator()),\n );\n protected readonly showClearButton = computed(\n () => this.clearable() && this.value() !== null && !this.effectiveDisabled(),\n );\n protected readonly columns = computed<readonly AerisCascadeSelectColumn[]>(() => {\n const root = this.options();\n if (root.length === 0) return [];\n\n const path = this.activePath();\n const columns: AerisCascadeSelectColumn[] = [{ parent: null, options: root }];\n\n for (const option of path) {\n if (!this.hasChildren(option)) break;\n columns.push({ parent: option, options: option.children ?? [] });\n }\n\n return columns;\n });\n protected readonly activeOptionId = computed(() => {\n const option = this.activePath()[this.activeLevel()];\n return option ? this.optionId(this.activeLevel(), option.value) : null;\n });\n\n writeValue(value: unknown): void {\n this.value.set(typeof value === 'string' ? value : value == null ? null : String(value));\n }\n\n registerOnChange(callback: (value: string | null) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.triggerElement()?.nativeElement.focus(options);\n }\n\n openPanel(): void {\n if (this.effectiveDisabled()) return;\n if (!this.panelOpen()) {\n this.activePath.set([]);\n this.activeLevel.set(0);\n this.panelOpen.set(true);\n this.opened.emit();\n }\n }\n\n closePanel(): void {\n if (!this.panelOpen()) return;\n this.panelPortal()?.restore();\n this.panelOpen.set(false);\n this.activePath.set([]);\n this.activeLevel.set(0);\n this.closed.emit();\n }\n\n toggle(): void {\n if (this.panelOpen()) {\n this.closePanel();\n } else {\n this.openPanel();\n }\n }\n\n clear(): void {\n if (this.effectiveDisabled()) return;\n this.setValue(null, null, new Event('clear'));\n this.activePath.set([]);\n this.cleared.emit();\n this.closePanel();\n this.focus();\n }\n\n reset(): void {\n this.setValue(null, null, new Event('reset'));\n this.activePath.set([]);\n this.closePanel();\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.touch.emit();\n this.onTouched();\n this.blurred.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget as Node | null;\n const currentTarget = event.currentTarget as HTMLElement;\n if (\n !nextTarget ||\n (!currentTarget.contains(nextTarget) && !this.optionsPanel()?.nativeElement.contains(nextTarget))\n ) {\n this.closePanel();\n }\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.openPanel();\n this.moveActive(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.openPanel();\n this.moveActive(-1);\n break;\n case 'ArrowRight':\n event.preventDefault();\n this.openPanel();\n this.enterChildColumn();\n break;\n case 'ArrowLeft':\n if (this.panelOpen()) {\n event.preventDefault();\n this.leaveChildColumn();\n }\n break;\n case 'Home':\n if (this.panelOpen()) {\n event.preventDefault();\n this.setBoundaryActive('first');\n }\n break;\n case 'End':\n if (this.panelOpen()) {\n event.preventDefault();\n this.setBoundaryActive('last');\n }\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n if (!this.panelOpen()) {\n this.openPanel();\n return;\n }\n this.commitActiveOption(event);\n break;\n case 'Escape':\n if (this.panelOpen()) {\n event.preventDefault();\n this.closePanel();\n }\n break;\n default:\n break;\n }\n }\n\n protected activateOption(level: number, option: AerisCascadeSelectOption): void {\n if (option.disabled) return;\n this.activeLevel.set(level);\n this.activePath.update((path) => [...path.slice(0, level), option]);\n }\n\n protected handleOptionClick(\n level: number,\n option: AerisCascadeSelectOption,\n event: Event,\n ): void {\n if (option.disabled) return;\n this.activateOption(level, option);\n if (this.hasChildren(option) && !this.selectBranches()) return;\n this.selectOption(option, event);\n }\n\n protected hasChildren(option: AerisCascadeSelectOption): boolean {\n return (option.children?.length ?? 0) > 0;\n }\n\n protected isSelected(option: AerisCascadeSelectOption): boolean {\n return this.value() === option.value;\n }\n\n protected isActive(level: number, option: AerisCascadeSelectOption): boolean {\n return this.activePath()[level]?.value === option.value;\n }\n\n protected isInActivePath(option: AerisCascadeSelectOption): boolean {\n return this.activePath().some((active) => active.value === option.value);\n }\n\n protected optionId(level: number, value: string): string {\n return `${this.panelId}-${level}-${this.sanitizeId(value)}`;\n }\n\n protected columnLabel(level: number): string {\n return level === 0 ? 'Root options' : `Level ${level + 1} options`;\n }\n\n protected columnKey(column: AerisCascadeSelectColumn, index: number): string {\n return `${index}-${column.parent?.value ?? 'root'}`;\n }\n\n private moveActive(direction: 1 | -1): void {\n const options = this.enabledOptionsAtLevel(this.activeLevel());\n if (options.length === 0) return;\n\n const current = this.activePath()[this.activeLevel()];\n const currentIndex = options.findIndex((option) => option.value === current?.value);\n const nextIndex =\n currentIndex < 0\n ? direction > 0\n ? 0\n : options.length - 1\n : (currentIndex + direction + options.length) % options.length;\n const next = options[nextIndex];\n if (next) this.activateOption(this.activeLevel(), next);\n }\n\n private setBoundaryActive(boundary: 'first' | 'last'): void {\n const options = this.enabledOptionsAtLevel(this.activeLevel());\n const next = boundary === 'first' ? options[0] : options.at(-1);\n if (next) this.activateOption(this.activeLevel(), next);\n }\n\n private enterChildColumn(): void {\n const active = this.resolveOption(this.activePath()[this.activeLevel()] ?? null);\n if (!active || !this.hasChildren(active)) return;\n const child = this.firstEnabled(active.children ?? []);\n if (!child) return;\n const nextLevel = this.activeLevel() + 1;\n this.activeLevel.set(nextLevel);\n this.activePath.update((path) => [...path.slice(0, nextLevel), child]);\n }\n\n private leaveChildColumn(): void {\n if (this.activeLevel() === 0) return;\n this.activeLevel.update((level) => level - 1);\n this.activePath.update((path) => path.slice(0, this.activeLevel() + 1));\n }\n\n private commitActiveOption(event: Event): void {\n const active = this.resolveOption(this.activePath()[this.activeLevel()] ?? null);\n if (!active || active.disabled) return;\n if (this.hasChildren(active) && !this.selectBranches()) {\n this.enterChildColumn();\n return;\n }\n this.selectOption(active, event);\n }\n\n private selectOption(option: AerisCascadeSelectOption, originalEvent: Event): void {\n this.setValue(option.value, option, originalEvent);\n this.closePanel();\n this.focus();\n }\n\n private setValue(\n value: string | null,\n option: AerisCascadeSelectOption | null,\n originalEvent: Event,\n ): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.onChange(value);\n this.changed.emit({\n originalEvent,\n value,\n option,\n path: value === null ? [] : this.findPathByValue(value),\n });\n }\n\n private enabledOptionsAtLevel(level: number): readonly AerisCascadeSelectOption[] {\n return (this.columns()[level]?.options ?? []).filter((option) => !option.disabled);\n }\n\n private firstEnabled(options: readonly AerisCascadeSelectOption[]): AerisCascadeSelectOption | null {\n return options.find((option) => !option.disabled) ?? null;\n }\n\n private findPathByValue(value: string | null): readonly AerisCascadeSelectOption[] {\n if (value === null) return [];\n return this.findPath(this.options(), value) ?? [];\n }\n\n private resolveOption(\n option: AerisCascadeSelectOption | null,\n ): AerisCascadeSelectOption | null {\n if (!option) return null;\n return this.findPathByValue(option.value).at(-1) ?? option;\n }\n\n private findPath(\n options: readonly AerisCascadeSelectOption[],\n value: string,\n path: readonly AerisCascadeSelectOption[] = [],\n ): readonly AerisCascadeSelectOption[] | null {\n for (const option of options) {\n const nextPath = [...path, option];\n if (option.value === value) return nextPath;\n const childPath = this.findPath(option.children ?? [], value, nextPath);\n if (childPath) return childPath;\n }\n return null;\n }\n\n private sanitizeId(value: string): string {\n const sanitized = value.toLocaleLowerCase().replace(/[^a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A,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAwCN,gCAAgC,+FACjC,+BAA+B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACnRjF;;AAEG;;;;"}
@@ -238,8 +238,8 @@ class AerisChart {
238
238
  objectValue(value) {
239
239
  return value && typeof value === 'object' ? value : {};
240
240
  }
241
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
242
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisChart, isStandalone: true, selector: "aeris-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, redraw: { classPropertyName: "redraw", publicName: "redraw", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaDescription: { classPropertyName: "ariaDescription", publicName: "ariaDescription", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { chartReady: "chartReady", chartError: "chartError" }, host: { properties: { "attr.data-chart-type": "type()", "attr.data-responsive": "responsive() || null" }, classAttribute: "aeris-chart" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
241
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
242
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisChart, isStandalone: true, selector: "aeris-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, redraw: { classPropertyName: "redraw", publicName: "redraw", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaDescription: { classPropertyName: "ariaDescription", publicName: "ariaDescription", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { chartReady: "chartReady", chartError: "chartError" }, host: { properties: { "attr.data-chart-type": "type()", "attr.data-responsive": "responsive() || null" }, classAttribute: "aeris-chart" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
243
243
  <div class="aeris-chart__canvas-wrap" [style.block-size]="height()">
244
244
  <canvas
245
245
  #canvas
@@ -259,7 +259,7 @@ class AerisChart {
259
259
  <p class="aeris-chart__summary">{{ accessibleSummary() }}</p>
260
260
  `, isInline: true, styles: [":host{display:block;min-inline-size:0;color:var(--aeris-chart-color, var(--aeris-text, #222222))}.aeris-chart__canvas-wrap{position:relative;box-sizing:border-box;min-block-size:var(--aeris-chart-min-height, 12rem);inline-size:100%;min-inline-size:0;padding:var(--aeris-chart-padding, 1rem);overflow:hidden;border:1px solid var(--aeris-chart-border, var(--aeris-border));border-radius:var(--aeris-chart-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-chart-background, var(--aeris-surface, #fff))}.aeris-chart__canvas{display:block;inline-size:100%!important;block-size:100%!important}.aeris-chart__canvas:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #3b4729) 26%,transparent);outline-offset:-3px}.aeris-chart__empty{position:absolute;inset:0;display:grid;place-items:center;padding:1rem;color:var(--aeris-chart-empty-color, var(--aeris-text-muted, #6d7068));font-size:.875rem;font-weight:650;text-align:center}.aeris-chart__description,.aeris-chart__summary{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:reduce){.aeris-chart__canvas{transition:none!important}}\n"] });
261
261
  }
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChart, decorators: [{
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChart, decorators: [{
263
263
  type: Component,
264
264
  args: [{ selector: 'aeris-chart', template: `
265
265
  <div class="aeris-chart__canvas-wrap" [style.block-size]="height()">
@@ -100,8 +100,8 @@ class AerisCheckbox {
100
100
  this.checkedInput.emit(checked);
101
101
  this.onChange(checked);
102
102
  }
103
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
104
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisCheckbox, isStandalone: true, selector: "aeris-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", indeterminate: "indeterminateChange", checkedInput: "checkedInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-checked": "checked() || null", "attr.data-indeterminate": "indeterminate() || null", "attr.data-disabled": "effectiveDisabled() || null" } }, providers: [
103
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
104
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisCheckbox, isStandalone: true, selector: "aeris-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", indeterminate: "indeterminateChange", checkedInput: "checkedInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-checked": "checked() || null", "attr.data-indeterminate": "indeterminate() || null", "attr.data-disabled": "effectiveDisabled() || null" } }, providers: [
105
105
  {
106
106
  provide: NG_VALUE_ACCESSOR,
107
107
  useExisting: forwardRef(() => AerisCheckbox),
@@ -153,7 +153,7 @@ class AerisCheckbox {
153
153
  </label>
154
154
  `, isInline: true, styles: [":host{display:inline-block;max-width:100%;vertical-align:middle}.aeris-checkbox{--_control-size: 1.125rem;display:inline-flex;align-items:flex-start;gap:.625rem;max-width:100%;color:var(--aeris-text-2, #555555);font:inherit;font-size:.875rem;line-height:1.45;cursor:pointer}.aeris-checkbox[data-label-position=start]{flex-direction:row-reverse}.aeris-checkbox input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}.aeris-checkbox__control{position:relative;box-sizing:border-box;width:var(--_control-size);min-width:var(--_control-size);max-width:var(--_control-size);height:var(--_control-size);min-height:var(--_control-size);max-height:var(--_control-size);display:grid;place-items:center;flex:0 0 auto;margin-top:.0625rem;border:1.5px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-checkbox-radius, .3125rem);background:var(--aeris-surface, #fff);color:var(--aeris-on-primary, #ffffff);transition:background-color .15s,border-color .15s,box-shadow .15s}.aeris-checkbox__icon{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;contain:layout paint;font-size:0;line-height:0}.aeris-checkbox:hover:not([data-disabled]) .aeris-checkbox__control{border-color:var(--aeris-primary, #5f6f36)}.aeris-checkbox__check-mark,.aeris-checkbox__mixed-mark{width:72%;height:72%;opacity:0;transform:scale(.7);transition:opacity .12s,transform .12s}.aeris-checkbox__check-mark{position:relative;top:-.0625rem;width:52%;height:30%;border-bottom:2px solid currentColor;border-left:2px solid currentColor;transform:rotate(-45deg) scale(.7)}.aeris-checkbox__mixed-mark{width:56%;height:2px;border-radius:999px;background:currentColor}.aeris-checkbox input:checked+.aeris-checkbox__control,.aeris-checkbox input:indeterminate+.aeris-checkbox__control{border-color:var(--aeris-primary, #5f6f36);background:var(--aeris-primary, #5f6f36)}.aeris-checkbox input:checked+.aeris-checkbox__control .aeris-checkbox__check-mark,.aeris-checkbox input:indeterminate+.aeris-checkbox__control .aeris-checkbox__mixed-mark{opacity:1;transform:scale(1)}.aeris-checkbox input:checked+.aeris-checkbox__control .aeris-checkbox__check-mark{transform:rotate(-45deg) scale(1)}.aeris-checkbox input:focus-visible+.aeris-checkbox__control{outline:3px solid color-mix(in srgb,var(--aeris-focus, #3b4729) 44%,transparent);outline-offset:2px}.aeris-checkbox[data-invalid] .aeris-checkbox__control{border-color:var(--aeris-danger, #c81e2a)}.aeris-checkbox[data-invalid] input:focus-visible+.aeris-checkbox__control{outline-color:color-mix(in srgb,var(--aeris-danger, #c81e2a) 42%,transparent)}.aeris-checkbox[data-disabled]{opacity:.5;cursor:not-allowed}.aeris-checkbox__label{min-width:0;display:inline;color:inherit}.aeris-checkbox__label:empty{display:none}.aeris-checkbox[data-size=xs]{--_control-size: .875rem;gap:.45rem;font-size:.75rem}.aeris-checkbox[data-size=sm]{--_control-size: 1rem;gap:.5rem;font-size:.8125rem}.aeris-checkbox[data-size=lg]{--_control-size: 1.375rem;gap:.7rem;font-size:.9375rem}@media(prefers-reduced-motion:reduce){.aeris-checkbox__control,.aeris-checkbox__check-mark,.aeris-checkbox__mixed-mark{transition:none}}\n"] });
155
155
  }
156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisCheckbox, decorators: [{
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisCheckbox, decorators: [{
157
157
  type: Component,
158
158
  args: [{ selector: 'aeris-checkbox', template: `
159
159
  <label
@@ -3,10 +3,10 @@ import * as i0 from '@angular/core';
3
3
  import { Directive, inject, TemplateRef, input, booleanAttribute, model, output, contentChild, signal, computed, Component } from '@angular/core';
4
4
 
5
5
  class AerisChipLeading {
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChipLeading, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisChipLeading, isStandalone: true, selector: "[aerisChipLeading]", host: { attributes: { "aria-hidden": "true" }, properties: { "style.inline-size": "\"100%\"", "style.block-size": "\"100%\"" }, classAttribute: "aeris-chip__leading" }, ngImport: i0 });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChipLeading, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisChipLeading, isStandalone: true, selector: "[aerisChipLeading]", host: { attributes: { "aria-hidden": "true" }, properties: { "style.inline-size": "\"100%\"", "style.block-size": "\"100%\"" }, classAttribute: "aeris-chip__leading" }, ngImport: i0 });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChipLeading, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChipLeading, decorators: [{
10
10
  type: Directive,
11
11
  args: [{
12
12
  selector: '[aerisChipLeading]',
@@ -20,10 +20,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
20
20
  }] });
21
21
  class AerisChipRemoveIconTemplate {
22
22
  template = inject(TemplateRef);
23
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChipRemoveIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisChipRemoveIconTemplate, isStandalone: true, selector: "ng-template[aerisChipRemoveIcon]", ngImport: i0 });
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChipRemoveIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisChipRemoveIconTemplate, isStandalone: true, selector: "ng-template[aerisChipRemoveIcon]", ngImport: i0 });
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChipRemoveIconTemplate, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChipRemoveIconTemplate, decorators: [{
27
27
  type: Directive,
28
28
  args: [{ selector: 'ng-template[aerisChipRemoveIcon]' }]
29
29
  }] });
@@ -85,8 +85,8 @@ class AerisChip {
85
85
  handleImageError() {
86
86
  this.failedImageSrc.set(this.imageSrc());
87
87
  }
88
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChip, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisChip, isStandalone: true, selector: "aeris-chip", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, imageSrc: { classPropertyName: "imageSrc", publicName: "imageSrc", isSignal: true, isRequired: false, transformFunction: null }, imageAlt: { classPropertyName: "imageAlt", publicName: "imageAlt", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, removeAriaLabel: { classPropertyName: "removeAriaLabel", publicName: "removeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", removed: "removed" }, host: { properties: { "attr.data-visible": "visible() || null", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.data-tone": "tone()", "attr.data-shape": "shape()", "attr.data-removable": "removable() || null", "attr.data-disabled": "disabled() || null", "attr.role": "semanticRole()", "attr.aria-label": "semanticRole() ? ariaLabel() || label() || null : null", "attr.aria-labelledby": "semanticRole() ? ariaLabelledBy() || null : null", "attr.aria-disabled": "disabled() || null", "attr.aria-hidden": "visible() ? null : \"true\"" }, classAttribute: "aeris-chip" }, queries: [{ propertyName: "removeIconTemplate", first: true, predicate: AerisChipRemoveIconTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChip, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisChip, isStandalone: true, selector: "aeris-chip", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, imageSrc: { classPropertyName: "imageSrc", publicName: "imageSrc", isSignal: true, isRequired: false, transformFunction: null }, imageAlt: { classPropertyName: "imageAlt", publicName: "imageAlt", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, removeAriaLabel: { classPropertyName: "removeAriaLabel", publicName: "removeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", removed: "removed" }, host: { properties: { "attr.data-visible": "visible() || null", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.data-tone": "tone()", "attr.data-shape": "shape()", "attr.data-removable": "removable() || null", "attr.data-disabled": "disabled() || null", "attr.role": "semanticRole()", "attr.aria-label": "semanticRole() ? ariaLabel() || label() || null : null", "attr.aria-labelledby": "semanticRole() ? ariaLabelledBy() || null : null", "attr.aria-disabled": "disabled() || null", "attr.aria-hidden": "visible() ? null : \"true\"" }, classAttribute: "aeris-chip" }, queries: [{ propertyName: "removeIconTemplate", first: true, predicate: AerisChipRemoveIconTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
90
90
  @if (visible()) {
91
91
  @if (showImage()) {
92
92
  <img
@@ -130,7 +130,7 @@ class AerisChip {
130
130
  }
131
131
  `, isInline: true, styles: [":host,.aeris-chip,.aeris-chip *{box-sizing:border-box}:host(.aeris-chip){--_aeris-chip-accent: var(--aeris-text-2, #555555);--_aeris-chip-height: var( --aeris-chip-height, calc(var(--aeris-control-height, 2.625rem) - .5rem) );max-inline-size:100%;min-inline-size:0;min-block-size:var(--_aeris-chip-height);display:inline-flex;align-items:center;gap:var(--aeris-chip-gap, calc(var(--aeris-density-gap, .5rem) * .75));padding-block:var(--aeris-chip-padding-block, .25rem);padding-inline:var(--aeris-chip-padding-inline, .75rem);border:1px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:color-mix(in srgb,var(--_aeris-chip-accent) 12%,var(--aeris-surface, #fff));color:color-mix(in srgb,var(--_aeris-chip-accent) 76%,var(--aeris-text, #222222));font:inherit;font-size:var(--aeris-chip-font-size, .8125rem);font-weight:var(--aeris-chip-font-weight, 650);line-height:1.3;vertical-align:middle}:host(.aeris-chip:not([data-visible=true])){display:none}:host(.aeris-chip[data-size=sm]){--_aeris-chip-height: var( --aeris-chip-sm-height, calc(var(--aeris-control-height, 2.625rem) - .875rem) );padding-inline:var(--aeris-chip-sm-padding-inline, .625rem);font-size:var(--aeris-chip-sm-font-size, .75rem)}:host(.aeris-chip[data-size=lg]){--_aeris-chip-height: var( --aeris-chip-lg-height, calc(var(--aeris-control-height, 2.625rem) + .125rem) );padding-inline:var(--aeris-chip-lg-padding-inline, .875rem);font-size:var(--aeris-chip-lg-font-size, .875rem)}:host(.aeris-chip[data-shape=rounded]){border-radius:min(var(--aeris-chip-radius, var(--aeris-radius-md, .6875rem)),1rem)}:host(.aeris-chip[data-variant=outline]){border-color:color-mix(in srgb,var(--_aeris-chip-accent) 42%,var(--aeris-border, #deddd7));background:transparent}:host(.aeris-chip[data-tone=primary]){--_aeris-chip-accent: var(--aeris-primary, #5f6f36)}:host(.aeris-chip[data-tone=success]){--_aeris-chip-accent: var(--aeris-success, #6f8a68)}:host(.aeris-chip[data-tone=info]){--_aeris-chip-accent: var(--aeris-info, #6b8793)}:host(.aeris-chip[data-tone=warning]){--_aeris-chip-accent: var(--aeris-warning, #c38600)}:host(.aeris-chip[data-tone=danger]){--_aeris-chip-accent: var(--aeris-danger, #c81e2a)}:host(.aeris-chip[data-disabled=true]){opacity:var(--aeris-disabled-opacity, .52)}.aeris-chip__image{flex:0 0 auto;inline-size:calc(var(--_aeris-chip-height) - .5rem);block-size:calc(var(--_aeris-chip-height) - .5rem);max-inline-size:none;max-block-size:none;margin-inline-start:calc(var(--aeris-chip-padding-inline, .75rem) * -.55);border:0;border-radius:50%;object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none}.aeris-chip__leading{flex:0 0 auto;inline-size:var(--aeris-chip-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-chip-icon-size, var(--aeris-icon-size, 1rem));display:grid;place-items:center}.aeris-chip__leading>svg{inline-size:100%;block-size:100%}.aeris-chip__leading:empty{display:none}.aeris-chip__label,.aeris-chip__content{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-chip__content:empty{display:none}.aeris-chip__remove{flex:0 0 auto;inline-size:var(--aeris-chip-remove-size, 1.25rem);block-size:var(--aeris-chip-remove-size, 1.25rem);display:grid;place-items:center;margin-inline-end:calc(var(--aeris-chip-padding-inline, .75rem) * -.45);padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}.aeris-chip__remove:hover:not(:disabled){background:color-mix(in srgb,currentColor 12%,transparent)}.aeris-chip__remove:focus-visible{outline:2px solid var(--aeris-focus, #59674b);outline-offset:2px}.aeris-chip__remove:disabled{cursor:not-allowed}.aeris-chip__remove-icon{inline-size:var(--aeris-chip-remove-icon-size, .75rem);block-size:var(--aeris-chip-remove-icon-size, .75rem);display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@media(prefers-reduced-motion:reduce){:host(.aeris-chip),.aeris-chip__remove{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
132
132
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisChip, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChip, decorators: [{
134
134
  type: Component,
135
135
  args: [{ selector: 'aeris-chip', imports: [NgTemplateOutlet], template: `
136
136
  @if (visible()) {
@@ -47,10 +47,10 @@ class AerisClassNamesDirective {
47
47
  tokenize(value) {
48
48
  return value.split(/\s+/u).filter(Boolean);
49
49
  }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisClassNamesDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: AerisClassNamesDirective, isStandalone: true, selector: "[aerisClassNames]", inputs: { value: { classPropertyName: "value", publicName: "aerisClassNames", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["aerisClassNames"], ngImport: i0 });
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisClassNamesDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: AerisClassNamesDirective, isStandalone: true, selector: "[aerisClassNames]", inputs: { value: { classPropertyName: "value", publicName: "aerisClassNames", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["aerisClassNames"], ngImport: i0 });
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisClassNamesDirective, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisClassNamesDirective, decorators: [{
54
54
  type: Directive,
55
55
  args: [{
56
56
  selector: '[aerisClassNames]',
@@ -42,6 +42,8 @@ class AerisColorPicker {
42
42
  ...(ngDevMode ? [{ debugName: "formats" }] : /* istanbul ignore next */ []));
43
43
  appendTo = input(/* @ts-ignore */
44
44
  ...(ngDevMode ? [undefined, { debugName: "appendTo" }] : /* istanbul ignore next */ []));
45
+ viewportMargin = input(8, /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []));
45
47
  placeholder = input('Enter color', /* @ts-ignore */
46
48
  ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
47
49
  ariaLabel = input(/* @ts-ignore */
@@ -499,8 +501,8 @@ class AerisColorPicker {
499
501
  const parsed = parseColor(value);
500
502
  return parsed ? formatColor(parsed.rgb, this.format()) : value;
501
503
  }
502
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisColorPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
503
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisColorPicker, isStandalone: true, selector: "aeris-color-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, formats: { classPropertyName: "formats", publicName: "formats", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, triggerAriaLabel: { classPropertyName: "triggerAriaLabel", publicName: "triggerAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nativeAriaLabel: { classPropertyName: "nativeAriaLabel", publicName: "nativeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, panelAriaLabel: { classPropertyName: "panelAriaLabel", publicName: "panelAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, textAriaLabel: { classPropertyName: "textAriaLabel", publicName: "textAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, formatAriaLabel: { classPropertyName: "formatAriaLabel", publicName: "formatAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, hueAriaLabel: { classPropertyName: "hueAriaLabel", publicName: "hueAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, planeAriaLabel: { classPropertyName: "planeAriaLabel", publicName: "planeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, presetsAriaLabel: { classPropertyName: "presetsAriaLabel", publicName: "presetsAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, presetsLabel: { classPropertyName: "presetsLabel", publicName: "presetsLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyLabel: { classPropertyName: "emptyLabel", publicName: "emptyLabel", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeButtonAriaLabel: { classPropertyName: "closeButtonAriaLabel", publicName: "closeButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, eyeDropperAriaLabel: { classPropertyName: "eyeDropperAriaLabel", publicName: "eyeDropperAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null }, showInput: { classPropertyName: "showInput", publicName: "showInput", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, showFormat: { classPropertyName: "showFormat", publicName: "showFormat", isSignal: true, isRequired: false, transformFunction: null }, showEyeDropper: { classPropertyName: "showEyeDropper", publicName: "showEyeDropper", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", format: "formatChange", valueInput: "valueInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch", cleared: "cleared", opened: "opened", closed: "closed" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
504
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisColorPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
505
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisColorPicker, isStandalone: true, selector: "aeris-color-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, formats: { classPropertyName: "formats", publicName: "formats", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, viewportMargin: { classPropertyName: "viewportMargin", publicName: "viewportMargin", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, triggerAriaLabel: { classPropertyName: "triggerAriaLabel", publicName: "triggerAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nativeAriaLabel: { classPropertyName: "nativeAriaLabel", publicName: "nativeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, panelAriaLabel: { classPropertyName: "panelAriaLabel", publicName: "panelAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, textAriaLabel: { classPropertyName: "textAriaLabel", publicName: "textAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, formatAriaLabel: { classPropertyName: "formatAriaLabel", publicName: "formatAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, hueAriaLabel: { classPropertyName: "hueAriaLabel", publicName: "hueAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, planeAriaLabel: { classPropertyName: "planeAriaLabel", publicName: "planeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, presetsAriaLabel: { classPropertyName: "presetsAriaLabel", publicName: "presetsAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, presetsLabel: { classPropertyName: "presetsLabel", publicName: "presetsLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyLabel: { classPropertyName: "emptyLabel", publicName: "emptyLabel", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeButtonAriaLabel: { classPropertyName: "closeButtonAriaLabel", publicName: "closeButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, eyeDropperAriaLabel: { classPropertyName: "eyeDropperAriaLabel", publicName: "eyeDropperAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null }, showInput: { classPropertyName: "showInput", publicName: "showInput", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, showFormat: { classPropertyName: "showFormat", publicName: "showFormat", isSignal: true, isRequired: false, transformFunction: null }, showEyeDropper: { classPropertyName: "showEyeDropper", publicName: "showEyeDropper", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", format: "formatChange", valueInput: "valueInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch", cleared: "cleared", opened: "opened", closed: "closed" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
504
506
  {
505
507
  provide: NG_VALUE_ACCESSOR,
506
508
  useExisting: forwardRef(() => AerisColorPicker),
@@ -600,6 +602,7 @@ class AerisColorPicker {
600
602
  class="aeris-color-picker__panel"
601
603
  [aerisInternalAppendTo]="appendTo()"
602
604
  [aerisInternalAppendToAnchor]="this.triggerButton()?.nativeElement ?? null"
605
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
603
606
  (aerisInternalAppendToOutside)="close(false)"
604
607
  role="dialog"
605
608
  [id]="panelId"
@@ -749,9 +752,9 @@ class AerisColorPicker {
749
752
  </section>
750
753
  }
751
754
  </div>
752
- `, isInline: true, styles: [":host{--_aeris-color-picker-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_aeris-color-picker-eyedropper-mask: var( --aeris-icon-eyedropper, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27m13.7%205.2%205.1%205.1M15.6%203.3l5.1%205.1-3%203-1.5-1.5-7.7%207.7-3.5%201%201-3.5%207.7-7.7-1.5-1.5%203-3Z%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-color-picker{--aeris-color-picker-height: var(--aeris-control-height, 2.5rem);--aeris-color-picker-font-size: .9375rem;--aeris-color-picker-panel-width: 20rem;--aeris-color-picker-panel-background: var(--aeris-surface, #fff);--aeris-color-picker-panel-border: var(--aeris-border, var(--aeris-border, #deddd7));--aeris-color-picker-panel-radius: var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));--aeris-color-picker-panel-shadow: 0 1.25rem 3.5rem rgb(31 35 27 / 22%);--aeris-color-picker-panel-padding: calc(var(--aeris-density-gap, .5rem) + .375rem);display:inline-grid;grid-template-columns:minmax(0,auto) minmax(8rem,1fr) auto;align-items:center;gap:.5rem;max-width:100%;color:var(--aeris-text, #222222);font-size:var(--aeris-color-picker-font-size)}.aeris-color-picker,.aeris-color-picker *,.aeris-color-picker *:before,.aeris-color-picker *:after{box-sizing:border-box}.aeris-color-picker[data-fluid]{width:100%}.aeris-color-picker[data-size=xs]{--aeris-color-picker-height: 1.875rem;--aeris-color-picker-font-size: .75rem}.aeris-color-picker[data-size=sm]{--aeris-color-picker-height: 2.1875rem;--aeris-color-picker-font-size: .8125rem}.aeris-color-picker[data-size=lg]{--aeris-color-picker-height: 2.875rem;--aeris-color-picker-font-size: 1rem}.aeris-color-picker button,.aeris-color-picker input{font:inherit}.aeris-color-picker__trigger,.aeris-color-picker__text{min-height:var(--aeris-color-picker-height);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface, #fff);color:inherit}.aeris-color-picker[data-appearance=filled] .aeris-color-picker__trigger,.aeris-color-picker[data-appearance=filled] .aeris-color-picker__text{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-color-picker__trigger{display:inline-flex;align-items:center;gap:.55rem;min-width:8rem;padding:0 .625rem;text-align:start;cursor:pointer}.aeris-color-picker__trigger[data-swatch-only]{width:var(--aeris-color-picker-height);min-width:var(--aeris-color-picker-height);justify-content:center;padding:0}.aeris-color-picker__swatch{width:calc(var(--aeris-color-picker-height) - .85rem);height:calc(var(--aeris-color-picker-height) - .85rem);flex:0 0 auto;border:0;border-radius:min(var(--aeris-radius-sm, .5rem),.35rem);box-shadow:0 0 0 1px var(--aeris-border, #deddd7)}.aeris-color-picker__value{min-width:0;flex:1;overflow:hidden;color:var(--aeris-text-2, #555555);font-weight:650;text-overflow:ellipsis;white-space:nowrap}.aeris-color-picker__indicator{position:relative;width:1rem;height:1rem;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-color-picker__indicator:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .16s ease;-webkit-mask:var(--_aeris-color-picker-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-color-picker-chevron-mask) center/100% 100% no-repeat}.aeris-color-picker__trigger[data-swatch-only] .aeris-color-picker__indicator{display:none}.aeris-color-picker[data-open] .aeris-color-picker__indicator:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-color-picker__text{width:100%;min-width:0;padding:0 .75rem}.aeris-color-picker__text::placeholder,.aeris-color-picker__panel-value input::placeholder{color:var(--aeris-text-2, #555555);opacity:.72}.aeris-color-picker__clear,.aeris-color-picker__close,.aeris-color-picker__eyedropper{display:grid;place-items:center;padding:0;border:1px solid var(--aeris-border, #deddd7);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-color-picker__clear{width:var(--aeris-color-picker-height);height:var(--aeris-color-picker-height);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem))}.aeris-color-picker__close,.aeris-color-picker__eyedropper{width:2rem;height:2rem;border-color:transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:transparent}.aeris-color-picker__clear span,.aeris-color-picker__close span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-color-picker__eyedropper span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--_aeris-color-picker-eyedropper-mask) center/100% 100% no-repeat;mask:var(--_aeris-color-picker-eyedropper-mask) center/100% 100% no-repeat}.aeris-color-picker__dismiss{position:fixed;z-index:var(--aeris-color-picker-dismiss-z-index, 999);inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;border-radius:0;background:transparent;cursor:default}.aeris-color-picker__panel{position:fixed;z-index:var(--aeris-color-picker-panel-z-index, 1000);width:min(var(--aeris-color-picker-panel-width),100vw - 1rem);max-height:calc(100vh - 1rem);max-height:calc(100dvh - 1rem);padding:var(--aeris-color-picker-panel-padding);border:1px solid var(--aeris-color-picker-panel-border);border-radius:var(--aeris-color-picker-panel-radius);background:var(--aeris-color-picker-panel-background);box-shadow:var(--aeris-color-picker-panel-shadow);overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--aeris-border, #deddd7) transparent;scrollbar-width:thin;visibility:hidden}.aeris-color-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-color-picker__panel::-webkit-scrollbar-track,.aeris-color-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-color-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #deddd7);background-clip:content-box}.aeris-color-picker__panel[data-positioned]{animation:aeris-color-picker-panel-in .16s ease-out;visibility:visible}.aeris-color-picker__panel-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;margin-bottom:.75rem}.aeris-color-picker__panel-actions{display:flex;align-items:center;gap:.125rem;margin-inline-start:auto}.aeris-color-picker__preview{width:2.25rem;height:2.25rem;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));box-shadow:0 0 0 1px var(--aeris-border, #deddd7)}.aeris-color-picker__panel-header>span:nth-child(2){min-width:0;display:grid;gap:.125rem}.aeris-color-picker__panel-header strong,.aeris-color-picker__panel-header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-color-picker__panel-header strong{color:var(--aeris-text, #222222);font-size:.8125rem}.aeris-color-picker__panel-header small{color:var(--aeris-text-2, #555555);font-size:.6875rem}.aeris-color-picker__plane{position:relative;height:11rem;border:1px solid color-mix(in srgb,var(--aeris-border, #deddd7) 72%,#000);border-radius:calc(var(--aeris-color-picker-panel-radius) - .25rem);background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--aeris-color-picker-plane-hue));box-shadow:inset 0 0 0 1px #ffffff2e;cursor:crosshair;touch-action:none}.aeris-color-picker__plane-thumb{position:absolute;width:.875rem;height:.875rem;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000000b8,0 .125rem .4rem #00000059;transform:translate(-50%,-50%);pointer-events:none}.aeris-color-picker__hue{display:grid;gap:.375rem;margin-top:.75rem}.aeris-color-picker__hue>span,.aeris-color-picker__panel-value>span,.aeris-color-picker__preset-section>span{display:flex;justify-content:space-between;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-color-picker__hue output{color:var(--aeris-text, #222222);font:inherit}.aeris-color-picker__hue input[type=range]{width:100%;height:1.25rem;margin:0;padding:0;border:0;background:transparent;direction:ltr;appearance:none;cursor:pointer}.aeris-color-picker__hue input[type=range]::-webkit-slider-runnable-track{height:.625rem;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.aeris-color-picker__hue input[type=range]::-moz-range-track{height:.625rem;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.aeris-color-picker__hue input[type=range]::-webkit-slider-thumb{width:1.125rem;height:1.125rem;margin-top:-.3125rem;border:2px solid #fff;border-radius:50%;background:var(--aeris-color-picker-hue-color);box-shadow:0 0 0 1px #00000047,0 .125rem .35rem #0000003d;appearance:none}.aeris-color-picker__hue input[type=range]::-moz-range-thumb{width:.875rem;height:.875rem;border:2px solid #fff;border-radius:50%;background:var(--aeris-color-picker-hue-color);box-shadow:0 0 0 1px #00000047,0 .125rem .35rem #0000003d}.aeris-color-picker__formats{display:flex;gap:.25rem;margin-top:.75rem;padding:.25rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface-2, #f2f0ec)}.aeris-color-picker__formats button{min-width:0;flex:1;min-height:1.875rem;padding:0 .5rem;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:750;cursor:pointer}.aeris-color-picker__formats button[aria-pressed=true]{background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);box-shadow:0 .125rem .4rem #1f231b1a}.aeris-color-picker__panel-value{display:grid;gap:.375rem;margin-top:.75rem}.aeris-color-picker__panel-value input{width:100%;min-height:2.25rem;padding:0 .625rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font-size:.8125rem}.aeris-color-picker__preset-section{display:grid;gap:.5rem;margin-top:.75rem}.aeris-color-picker__presets{display:flex;flex-wrap:wrap;gap:.45rem}.aeris-color-picker__presets button{width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:min(var(--aeris-radius-sm, .5rem),.45rem);box-shadow:0 0 0 1px var(--aeris-border, #deddd7);cursor:pointer}.aeris-color-picker__presets button[aria-pressed=true]{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:2px}.aeris-color-picker__trigger:hover,.aeris-color-picker__clear:hover,.aeris-color-picker__panel-value input:hover{border-color:var(--aeris-primary, #5f6f36)}.aeris-color-picker__presets button:hover{box-shadow:0 0 0 1px var(--aeris-primary, #5f6f36)}.aeris-color-picker__close:hover,.aeris-color-picker__eyedropper:hover,.aeris-color-picker__formats button:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-color-picker__trigger:focus-visible,.aeris-color-picker__text:focus,.aeris-color-picker__clear:focus-visible,.aeris-color-picker__close:focus-visible,.aeris-color-picker__eyedropper:focus-visible,.aeris-color-picker__formats button:focus-visible,.aeris-color-picker__panel-value input:focus,.aeris-color-picker__presets button:focus-visible,.aeris-color-picker__plane:focus-visible,.aeris-color-picker__hue input:focus-visible{border-color:var(--aeris-focus, #3b4729);outline:3px solid color-mix(in srgb,var(--aeris-focus, #3b4729) 24%,transparent);outline-offset:1px}.aeris-color-picker__eyedropper:disabled{cursor:wait;opacity:.64}.aeris-color-picker[data-invalid] .aeris-color-picker__trigger,.aeris-color-picker[data-invalid] .aeris-color-picker__text,.aeris-color-picker__text[aria-invalid=true],.aeris-color-picker__panel-value input[aria-invalid=true]{border-color:var(--aeris-danger, #c81e2a)}.aeris-color-picker[data-disabled],.aeris-color-picker[data-readonly]{opacity:.72}.aeris-color-picker[data-disabled] .aeris-color-picker__trigger,.aeris-color-picker[data-disabled] .aeris-color-picker__text,.aeris-color-picker[data-disabled] .aeris-color-picker__clear,.aeris-color-picker[data-readonly] .aeris-color-picker__trigger,.aeris-color-picker[data-readonly] .aeris-color-picker__text,.aeris-color-picker[data-readonly] .aeris-color-picker__clear{cursor:not-allowed}@keyframes aeris-color-picker-panel-in{0%{opacity:0;transform:translateY(-.25rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:36rem){.aeris-color-picker{grid-template-columns:1fr auto}.aeris-color-picker__text{grid-column:1/-1}.aeris-color-picker__trigger:not([data-swatch-only]){grid-column:1/-1}}@media(prefers-reduced-motion:reduce){.aeris-color-picker__indicator:before{transition:none}.aeris-color-picker__panel{animation:none}}\n"], dependencies: [{ kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth"], outputs: ["aerisInternalAppendToOutside"] }] });
755
+ `, isInline: true, styles: [":host{--_aeris-color-picker-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_aeris-color-picker-eyedropper-mask: var( --aeris-icon-eyedropper, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27m13.7%205.2%205.1%205.1M15.6%203.3l5.1%205.1-3%203-1.5-1.5-7.7%207.7-3.5%201%201-3.5%207.7-7.7-1.5-1.5%203-3Z%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-color-picker{--aeris-color-picker-height: var(--aeris-control-height, 2.5rem);--aeris-color-picker-font-size: .9375rem;--aeris-color-picker-panel-width: 20rem;--aeris-color-picker-panel-background: var(--aeris-surface, #fff);--aeris-color-picker-panel-border: var(--aeris-border, var(--aeris-border, #deddd7));--aeris-color-picker-panel-radius: var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));--aeris-color-picker-panel-shadow: 0 1.25rem 3.5rem rgb(31 35 27 / 22%);--aeris-color-picker-panel-padding: calc(var(--aeris-density-gap, .5rem) + .375rem);display:inline-grid;grid-template-columns:minmax(0,auto) minmax(8rem,1fr) auto;align-items:center;gap:.5rem;max-width:100%;color:var(--aeris-text, #222222);font-size:var(--aeris-color-picker-font-size)}.aeris-color-picker,.aeris-color-picker *,.aeris-color-picker *:before,.aeris-color-picker *:after{box-sizing:border-box}.aeris-color-picker[data-fluid]{width:100%}.aeris-color-picker[data-size=xs]{--aeris-color-picker-height: 1.875rem;--aeris-color-picker-font-size: .75rem}.aeris-color-picker[data-size=sm]{--aeris-color-picker-height: 2.1875rem;--aeris-color-picker-font-size: .8125rem}.aeris-color-picker[data-size=lg]{--aeris-color-picker-height: 2.875rem;--aeris-color-picker-font-size: 1rem}.aeris-color-picker button,.aeris-color-picker input{font:inherit}.aeris-color-picker__trigger,.aeris-color-picker__text{min-height:var(--aeris-color-picker-height);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface, #fff);color:inherit}.aeris-color-picker[data-appearance=filled] .aeris-color-picker__trigger,.aeris-color-picker[data-appearance=filled] .aeris-color-picker__text{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-color-picker__trigger{display:inline-flex;align-items:center;gap:.55rem;min-width:8rem;padding:0 .625rem;text-align:start;cursor:pointer}.aeris-color-picker__trigger[data-swatch-only]{width:var(--aeris-color-picker-height);min-width:var(--aeris-color-picker-height);justify-content:center;padding:0}.aeris-color-picker__swatch{width:calc(var(--aeris-color-picker-height) - .85rem);height:calc(var(--aeris-color-picker-height) - .85rem);flex:0 0 auto;border:0;border-radius:min(var(--aeris-radius-sm, .5rem),.35rem);box-shadow:0 0 0 1px var(--aeris-border, #deddd7)}.aeris-color-picker__value{min-width:0;flex:1;overflow:hidden;color:var(--aeris-text-2, #555555);font-weight:650;text-overflow:ellipsis;white-space:nowrap}.aeris-color-picker__indicator{position:relative;width:1rem;height:1rem;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-color-picker__indicator:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .16s ease;-webkit-mask:var(--_aeris-color-picker-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-color-picker-chevron-mask) center/100% 100% no-repeat}.aeris-color-picker__trigger[data-swatch-only] .aeris-color-picker__indicator{display:none}.aeris-color-picker[data-open] .aeris-color-picker__indicator:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-color-picker__text{width:100%;min-width:0;padding:0 .75rem}.aeris-color-picker__text::placeholder,.aeris-color-picker__panel-value input::placeholder{color:var(--aeris-text-2, #555555);opacity:.72}.aeris-color-picker__clear,.aeris-color-picker__close,.aeris-color-picker__eyedropper{display:grid;place-items:center;padding:0;border:1px solid var(--aeris-border, #deddd7);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-color-picker__clear{width:var(--aeris-color-picker-height);height:var(--aeris-color-picker-height);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem))}.aeris-color-picker__close,.aeris-color-picker__eyedropper{width:2rem;height:2rem;border-color:transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:transparent}.aeris-color-picker__clear span,.aeris-color-picker__close span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-color-picker__eyedropper span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--_aeris-color-picker-eyedropper-mask) center/100% 100% no-repeat;mask:var(--_aeris-color-picker-eyedropper-mask) center/100% 100% no-repeat}.aeris-color-picker__dismiss{position:fixed;z-index:var(--aeris-color-picker-dismiss-z-index, 999);inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;border-radius:0;background:transparent;cursor:default}.aeris-color-picker__panel{position:fixed;z-index:var(--aeris-color-picker-panel-z-index, 1000);width:min(var(--aeris-color-picker-panel-width),100vw - 1rem);max-height:calc(100vh - 1rem);max-height:calc(100dvh - 1rem);padding:var(--aeris-color-picker-panel-padding);border:1px solid var(--aeris-color-picker-panel-border);border-radius:var(--aeris-color-picker-panel-radius);background:var(--aeris-color-picker-panel-background);box-shadow:var(--aeris-color-picker-panel-shadow);overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--aeris-border, #deddd7) transparent;scrollbar-width:thin;visibility:hidden}.aeris-color-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-color-picker__panel::-webkit-scrollbar-track,.aeris-color-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-color-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #deddd7);background-clip:content-box}.aeris-color-picker__panel[data-positioned]{animation:aeris-color-picker-panel-in .16s ease-out;visibility:visible}.aeris-color-picker__panel-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;margin-bottom:.75rem}.aeris-color-picker__panel-actions{display:flex;align-items:center;gap:.125rem;margin-inline-start:auto}.aeris-color-picker__preview{width:2.25rem;height:2.25rem;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));box-shadow:0 0 0 1px var(--aeris-border, #deddd7)}.aeris-color-picker__panel-header>span:nth-child(2){min-width:0;display:grid;gap:.125rem}.aeris-color-picker__panel-header strong,.aeris-color-picker__panel-header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-color-picker__panel-header strong{color:var(--aeris-text, #222222);font-size:.8125rem}.aeris-color-picker__panel-header small{color:var(--aeris-text-2, #555555);font-size:.6875rem}.aeris-color-picker__plane{position:relative;height:11rem;border:1px solid color-mix(in srgb,var(--aeris-border, #deddd7) 72%,#000);border-radius:calc(var(--aeris-color-picker-panel-radius) - .25rem);background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--aeris-color-picker-plane-hue));box-shadow:inset 0 0 0 1px #ffffff2e;cursor:crosshair;touch-action:none}.aeris-color-picker__plane-thumb{position:absolute;width:.875rem;height:.875rem;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000000b8,0 .125rem .4rem #00000059;transform:translate(-50%,-50%);pointer-events:none}.aeris-color-picker__hue{display:grid;gap:.375rem;margin-top:.75rem}.aeris-color-picker__hue>span,.aeris-color-picker__panel-value>span,.aeris-color-picker__preset-section>span{display:flex;justify-content:space-between;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-color-picker__hue output{color:var(--aeris-text, #222222);font:inherit}.aeris-color-picker__hue input[type=range]{width:100%;height:1.25rem;margin:0;padding:0;border:0;background:transparent;direction:ltr;appearance:none;cursor:pointer}.aeris-color-picker__hue input[type=range]::-webkit-slider-runnable-track{height:.625rem;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.aeris-color-picker__hue input[type=range]::-moz-range-track{height:.625rem;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.aeris-color-picker__hue input[type=range]::-webkit-slider-thumb{width:1.125rem;height:1.125rem;margin-top:-.3125rem;border:2px solid #fff;border-radius:50%;background:var(--aeris-color-picker-hue-color);box-shadow:0 0 0 1px #00000047,0 .125rem .35rem #0000003d;appearance:none}.aeris-color-picker__hue input[type=range]::-moz-range-thumb{width:.875rem;height:.875rem;border:2px solid #fff;border-radius:50%;background:var(--aeris-color-picker-hue-color);box-shadow:0 0 0 1px #00000047,0 .125rem .35rem #0000003d}.aeris-color-picker__formats{display:flex;gap:.25rem;margin-top:.75rem;padding:.25rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface-2, #f2f0ec)}.aeris-color-picker__formats button{min-width:0;flex:1;min-height:1.875rem;padding:0 .5rem;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:750;cursor:pointer}.aeris-color-picker__formats button[aria-pressed=true]{background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);box-shadow:0 .125rem .4rem #1f231b1a}.aeris-color-picker__panel-value{display:grid;gap:.375rem;margin-top:.75rem}.aeris-color-picker__panel-value input{width:100%;min-height:2.25rem;padding:0 .625rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font-size:.8125rem}.aeris-color-picker__preset-section{display:grid;gap:.5rem;margin-top:.75rem}.aeris-color-picker__presets{display:flex;flex-wrap:wrap;gap:.45rem}.aeris-color-picker__presets button{width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:min(var(--aeris-radius-sm, .5rem),.45rem);box-shadow:0 0 0 1px var(--aeris-border, #deddd7);cursor:pointer}.aeris-color-picker__presets button[aria-pressed=true]{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:2px}.aeris-color-picker__trigger:hover,.aeris-color-picker__clear:hover,.aeris-color-picker__panel-value input:hover{border-color:var(--aeris-primary, #5f6f36)}.aeris-color-picker__presets button:hover{box-shadow:0 0 0 1px var(--aeris-primary, #5f6f36)}.aeris-color-picker__close:hover,.aeris-color-picker__eyedropper:hover,.aeris-color-picker__formats button:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-color-picker__trigger:focus-visible,.aeris-color-picker__text:focus,.aeris-color-picker__clear:focus-visible,.aeris-color-picker__close:focus-visible,.aeris-color-picker__eyedropper:focus-visible,.aeris-color-picker__formats button:focus-visible,.aeris-color-picker__panel-value input:focus,.aeris-color-picker__presets button:focus-visible,.aeris-color-picker__plane:focus-visible,.aeris-color-picker__hue input:focus-visible{border-color:var(--aeris-focus, #3b4729);outline:3px solid color-mix(in srgb,var(--aeris-focus, #3b4729) 24%,transparent);outline-offset:1px}.aeris-color-picker__eyedropper:disabled{cursor:wait;opacity:.64}.aeris-color-picker[data-invalid] .aeris-color-picker__trigger,.aeris-color-picker[data-invalid] .aeris-color-picker__text,.aeris-color-picker__text[aria-invalid=true],.aeris-color-picker__panel-value input[aria-invalid=true]{border-color:var(--aeris-danger, #c81e2a)}.aeris-color-picker[data-disabled],.aeris-color-picker[data-readonly]{opacity:.72}.aeris-color-picker[data-disabled] .aeris-color-picker__trigger,.aeris-color-picker[data-disabled] .aeris-color-picker__text,.aeris-color-picker[data-disabled] .aeris-color-picker__clear,.aeris-color-picker[data-readonly] .aeris-color-picker__trigger,.aeris-color-picker[data-readonly] .aeris-color-picker__text,.aeris-color-picker[data-readonly] .aeris-color-picker__clear{cursor:not-allowed}@keyframes aeris-color-picker-panel-in{0%{opacity:0;transform:translateY(-.25rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:36rem){.aeris-color-picker{grid-template-columns:1fr auto}.aeris-color-picker__text{grid-column:1/-1}.aeris-color-picker__trigger:not([data-swatch-only]){grid-column:1/-1}}@media(prefers-reduced-motion:reduce){.aeris-color-picker__indicator:before{transition:none}.aeris-color-picker__panel{animation:none}}\n"], dependencies: [{ kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth", "aerisInternalAppendToPlacement", "aerisInternalAppendToAlignment", "aerisInternalAppendToCollisionPadding", "aerisInternalAppendToPositionSelf"], outputs: ["aerisInternalAppendToOutside"] }] });
753
756
  }
754
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisColorPicker, decorators: [{
757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisColorPicker, decorators: [{
755
758
  type: Component,
756
759
  args: [{ selector: 'aeris-color-picker', imports: [_AerisAppendTo], template: `
757
760
  <div
@@ -847,6 +850,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
847
850
  class="aeris-color-picker__panel"
848
851
  [aerisInternalAppendTo]="appendTo()"
849
852
  [aerisInternalAppendToAnchor]="this.triggerButton()?.nativeElement ?? null"
853
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
850
854
  (aerisInternalAppendToOutside)="close(false)"
851
855
  role="dialog"
852
856
  [id]="panelId"
@@ -1005,7 +1009,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
1005
1009
  ], host: {
1006
1010
  '[attr.data-fluid]': 'fluid() || null',
1007
1011
  }, styles: [":host{--_aeris-color-picker-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_aeris-color-picker-eyedropper-mask: var( --aeris-icon-eyedropper, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27m13.7%205.2%205.1%205.1M15.6%203.3l5.1%205.1-3%203-1.5-1.5-7.7%207.7-3.5%201%201-3.5%207.7-7.7-1.5-1.5%203-3Z%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-color-picker{--aeris-color-picker-height: var(--aeris-control-height, 2.5rem);--aeris-color-picker-font-size: .9375rem;--aeris-color-picker-panel-width: 20rem;--aeris-color-picker-panel-background: var(--aeris-surface, #fff);--aeris-color-picker-panel-border: var(--aeris-border, var(--aeris-border, #deddd7));--aeris-color-picker-panel-radius: var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));--aeris-color-picker-panel-shadow: 0 1.25rem 3.5rem rgb(31 35 27 / 22%);--aeris-color-picker-panel-padding: calc(var(--aeris-density-gap, .5rem) + .375rem);display:inline-grid;grid-template-columns:minmax(0,auto) minmax(8rem,1fr) auto;align-items:center;gap:.5rem;max-width:100%;color:var(--aeris-text, #222222);font-size:var(--aeris-color-picker-font-size)}.aeris-color-picker,.aeris-color-picker *,.aeris-color-picker *:before,.aeris-color-picker *:after{box-sizing:border-box}.aeris-color-picker[data-fluid]{width:100%}.aeris-color-picker[data-size=xs]{--aeris-color-picker-height: 1.875rem;--aeris-color-picker-font-size: .75rem}.aeris-color-picker[data-size=sm]{--aeris-color-picker-height: 2.1875rem;--aeris-color-picker-font-size: .8125rem}.aeris-color-picker[data-size=lg]{--aeris-color-picker-height: 2.875rem;--aeris-color-picker-font-size: 1rem}.aeris-color-picker button,.aeris-color-picker input{font:inherit}.aeris-color-picker__trigger,.aeris-color-picker__text{min-height:var(--aeris-color-picker-height);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface, #fff);color:inherit}.aeris-color-picker[data-appearance=filled] .aeris-color-picker__trigger,.aeris-color-picker[data-appearance=filled] .aeris-color-picker__text{border-color:transparent;background:var(--aeris-surface-2, #f2f0ec)}.aeris-color-picker__trigger{display:inline-flex;align-items:center;gap:.55rem;min-width:8rem;padding:0 .625rem;text-align:start;cursor:pointer}.aeris-color-picker__trigger[data-swatch-only]{width:var(--aeris-color-picker-height);min-width:var(--aeris-color-picker-height);justify-content:center;padding:0}.aeris-color-picker__swatch{width:calc(var(--aeris-color-picker-height) - .85rem);height:calc(var(--aeris-color-picker-height) - .85rem);flex:0 0 auto;border:0;border-radius:min(var(--aeris-radius-sm, .5rem),.35rem);box-shadow:0 0 0 1px var(--aeris-border, #deddd7)}.aeris-color-picker__value{min-width:0;flex:1;overflow:hidden;color:var(--aeris-text-2, #555555);font-weight:650;text-overflow:ellipsis;white-space:nowrap}.aeris-color-picker__indicator{position:relative;width:1rem;height:1rem;flex:0 0 auto;color:var(--aeris-text-2, #555555)}.aeris-color-picker__indicator:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .16s ease;-webkit-mask:var(--_aeris-color-picker-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-color-picker-chevron-mask) center/100% 100% no-repeat}.aeris-color-picker__trigger[data-swatch-only] .aeris-color-picker__indicator{display:none}.aeris-color-picker[data-open] .aeris-color-picker__indicator:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-color-picker__text{width:100%;min-width:0;padding:0 .75rem}.aeris-color-picker__text::placeholder,.aeris-color-picker__panel-value input::placeholder{color:var(--aeris-text-2, #555555);opacity:.72}.aeris-color-picker__clear,.aeris-color-picker__close,.aeris-color-picker__eyedropper{display:grid;place-items:center;padding:0;border:1px solid var(--aeris-border, #deddd7);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-color-picker__clear{width:var(--aeris-color-picker-height);height:var(--aeris-color-picker-height);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem))}.aeris-color-picker__close,.aeris-color-picker__eyedropper{width:2rem;height:2rem;border-color:transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:transparent}.aeris-color-picker__clear span,.aeris-color-picker__close span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-color-picker__eyedropper span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--_aeris-color-picker-eyedropper-mask) center/100% 100% no-repeat;mask:var(--_aeris-color-picker-eyedropper-mask) center/100% 100% no-repeat}.aeris-color-picker__dismiss{position:fixed;z-index:var(--aeris-color-picker-dismiss-z-index, 999);inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;border-radius:0;background:transparent;cursor:default}.aeris-color-picker__panel{position:fixed;z-index:var(--aeris-color-picker-panel-z-index, 1000);width:min(var(--aeris-color-picker-panel-width),100vw - 1rem);max-height:calc(100vh - 1rem);max-height:calc(100dvh - 1rem);padding:var(--aeris-color-picker-panel-padding);border:1px solid var(--aeris-color-picker-panel-border);border-radius:var(--aeris-color-picker-panel-radius);background:var(--aeris-color-picker-panel-background);box-shadow:var(--aeris-color-picker-panel-shadow);overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--aeris-border, #deddd7) transparent;scrollbar-width:thin;visibility:hidden}.aeris-color-picker__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-color-picker__panel::-webkit-scrollbar-track,.aeris-color-picker__panel::-webkit-scrollbar-corner{background:transparent}.aeris-color-picker__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #deddd7);background-clip:content-box}.aeris-color-picker__panel[data-positioned]{animation:aeris-color-picker-panel-in .16s ease-out;visibility:visible}.aeris-color-picker__panel-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;margin-bottom:.75rem}.aeris-color-picker__panel-actions{display:flex;align-items:center;gap:.125rem;margin-inline-start:auto}.aeris-color-picker__preview{width:2.25rem;height:2.25rem;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));box-shadow:0 0 0 1px var(--aeris-border, #deddd7)}.aeris-color-picker__panel-header>span:nth-child(2){min-width:0;display:grid;gap:.125rem}.aeris-color-picker__panel-header strong,.aeris-color-picker__panel-header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-color-picker__panel-header strong{color:var(--aeris-text, #222222);font-size:.8125rem}.aeris-color-picker__panel-header small{color:var(--aeris-text-2, #555555);font-size:.6875rem}.aeris-color-picker__plane{position:relative;height:11rem;border:1px solid color-mix(in srgb,var(--aeris-border, #deddd7) 72%,#000);border-radius:calc(var(--aeris-color-picker-panel-radius) - .25rem);background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--aeris-color-picker-plane-hue));box-shadow:inset 0 0 0 1px #ffffff2e;cursor:crosshair;touch-action:none}.aeris-color-picker__plane-thumb{position:absolute;width:.875rem;height:.875rem;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000000b8,0 .125rem .4rem #00000059;transform:translate(-50%,-50%);pointer-events:none}.aeris-color-picker__hue{display:grid;gap:.375rem;margin-top:.75rem}.aeris-color-picker__hue>span,.aeris-color-picker__panel-value>span,.aeris-color-picker__preset-section>span{display:flex;justify-content:space-between;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:700}.aeris-color-picker__hue output{color:var(--aeris-text, #222222);font:inherit}.aeris-color-picker__hue input[type=range]{width:100%;height:1.25rem;margin:0;padding:0;border:0;background:transparent;direction:ltr;appearance:none;cursor:pointer}.aeris-color-picker__hue input[type=range]::-webkit-slider-runnable-track{height:.625rem;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.aeris-color-picker__hue input[type=range]::-moz-range-track{height:.625rem;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.aeris-color-picker__hue input[type=range]::-webkit-slider-thumb{width:1.125rem;height:1.125rem;margin-top:-.3125rem;border:2px solid #fff;border-radius:50%;background:var(--aeris-color-picker-hue-color);box-shadow:0 0 0 1px #00000047,0 .125rem .35rem #0000003d;appearance:none}.aeris-color-picker__hue input[type=range]::-moz-range-thumb{width:.875rem;height:.875rem;border:2px solid #fff;border-radius:50%;background:var(--aeris-color-picker-hue-color);box-shadow:0 0 0 1px #00000047,0 .125rem .35rem #0000003d}.aeris-color-picker__formats{display:flex;gap:.25rem;margin-top:.75rem;padding:.25rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface-2, #f2f0ec)}.aeris-color-picker__formats button{min-width:0;flex:1;min-height:1.875rem;padding:0 .5rem;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-size:.6875rem;font-weight:750;cursor:pointer}.aeris-color-picker__formats button[aria-pressed=true]{background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);box-shadow:0 .125rem .4rem #1f231b1a}.aeris-color-picker__panel-value{display:grid;gap:.375rem;margin-top:.75rem}.aeris-color-picker__panel-value input{width:100%;min-height:2.25rem;padding:0 .625rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font-size:.8125rem}.aeris-color-picker__preset-section{display:grid;gap:.5rem;margin-top:.75rem}.aeris-color-picker__presets{display:flex;flex-wrap:wrap;gap:.45rem}.aeris-color-picker__presets button{width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:min(var(--aeris-radius-sm, .5rem),.45rem);box-shadow:0 0 0 1px var(--aeris-border, #deddd7);cursor:pointer}.aeris-color-picker__presets button[aria-pressed=true]{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:2px}.aeris-color-picker__trigger:hover,.aeris-color-picker__clear:hover,.aeris-color-picker__panel-value input:hover{border-color:var(--aeris-primary, #5f6f36)}.aeris-color-picker__presets button:hover{box-shadow:0 0 0 1px var(--aeris-primary, #5f6f36)}.aeris-color-picker__close:hover,.aeris-color-picker__eyedropper:hover,.aeris-color-picker__formats button:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-color-picker__trigger:focus-visible,.aeris-color-picker__text:focus,.aeris-color-picker__clear:focus-visible,.aeris-color-picker__close:focus-visible,.aeris-color-picker__eyedropper:focus-visible,.aeris-color-picker__formats button:focus-visible,.aeris-color-picker__panel-value input:focus,.aeris-color-picker__presets button:focus-visible,.aeris-color-picker__plane:focus-visible,.aeris-color-picker__hue input:focus-visible{border-color:var(--aeris-focus, #3b4729);outline:3px solid color-mix(in srgb,var(--aeris-focus, #3b4729) 24%,transparent);outline-offset:1px}.aeris-color-picker__eyedropper:disabled{cursor:wait;opacity:.64}.aeris-color-picker[data-invalid] .aeris-color-picker__trigger,.aeris-color-picker[data-invalid] .aeris-color-picker__text,.aeris-color-picker__text[aria-invalid=true],.aeris-color-picker__panel-value input[aria-invalid=true]{border-color:var(--aeris-danger, #c81e2a)}.aeris-color-picker[data-disabled],.aeris-color-picker[data-readonly]{opacity:.72}.aeris-color-picker[data-disabled] .aeris-color-picker__trigger,.aeris-color-picker[data-disabled] .aeris-color-picker__text,.aeris-color-picker[data-disabled] .aeris-color-picker__clear,.aeris-color-picker[data-readonly] .aeris-color-picker__trigger,.aeris-color-picker[data-readonly] .aeris-color-picker__text,.aeris-color-picker[data-readonly] .aeris-color-picker__clear{cursor:not-allowed}@keyframes aeris-color-picker-panel-in{0%{opacity:0;transform:translateY(-.25rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:36rem){.aeris-color-picker{grid-template-columns:1fr auto}.aeris-color-picker__text{grid-column:1/-1}.aeris-color-picker__trigger:not([data-swatch-only]){grid-column:1/-1}}@media(prefers-reduced-motion:reduce){.aeris-color-picker__indicator:before{transition:none}.aeris-color-picker__panel{animation:none}}\n"] }]
1008
- }], ctorParameters: () => [], propDecorators: { pickerPanel: [{ type: i0.ViewChild, args: ['pickerPanel', { isSignal: true }] }], panelPortal: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _AerisAppendTo), { isSignal: true }] }], colorPlane: [{ type: i0.ViewChild, args: ['colorPlane', { isSignal: true }] }], triggerButton: [{ type: i0.ViewChild, args: ['triggerButton', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }, { type: i0.Output, args: ["formatChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], formats: [{ type: i0.Input, args: [{ isSignal: true, alias: "formats", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], triggerAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerAriaLabel", required: false }] }], nativeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeAriaLabel", required: false }] }], panelAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelAriaLabel", required: false }] }], textAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "textAriaLabel", required: false }] }], formatAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatAriaLabel", required: false }] }], hueAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hueAriaLabel", required: false }] }], planeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "planeAriaLabel", required: false }] }], presetsAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetsAriaLabel", required: false }] }], presetsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetsLabel", required: false }] }], emptyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyLabel", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], closeButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonAriaLabel", required: false }] }], eyeDropperAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "eyeDropperAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], showInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInput", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], showFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFormat", required: false }] }], showEyeDropper: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEyeDropper", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
1012
+ }], ctorParameters: () => [], propDecorators: { pickerPanel: [{ type: i0.ViewChild, args: ['pickerPanel', { isSignal: true }] }], panelPortal: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _AerisAppendTo), { isSignal: true }] }], colorPlane: [{ type: i0.ViewChild, args: ['colorPlane', { isSignal: true }] }], triggerButton: [{ type: i0.ViewChild, args: ['triggerButton', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }, { type: i0.Output, args: ["formatChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], formats: [{ type: i0.Input, args: [{ isSignal: true, alias: "formats", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], viewportMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportMargin", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], triggerAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerAriaLabel", required: false }] }], nativeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeAriaLabel", required: false }] }], panelAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelAriaLabel", required: false }] }], textAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "textAriaLabel", required: false }] }], formatAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatAriaLabel", required: false }] }], hueAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hueAriaLabel", required: false }] }], planeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "planeAriaLabel", required: false }] }], presetsAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetsAriaLabel", required: false }] }], presetsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetsLabel", required: false }] }], emptyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyLabel", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], closeButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonAriaLabel", required: false }] }], eyeDropperAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "eyeDropperAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], showInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInput", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], showFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFormat", required: false }] }], showEyeDropper: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEyeDropper", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
1009
1013
  function isColorFormat(value) {
1010
1014
  return value === 'hex' || value === 'rgb' || value === 'hsl';
1011
1015
  }