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

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 (222) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +80 -72
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +38 -56
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +61 -55
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +3 -3
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +24 -21
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-color-picker.mjs +28 -40
  37. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-compare.mjs +21 -25
  39. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +45 -43
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-popup.mjs +43 -39
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-context-menu.mjs +14 -17
  45. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-date-picker.mjs +321 -319
  47. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dialog.mjs +44 -35
  49. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  51. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-drawer.mjs +39 -34
  53. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +23 -23
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-editor.mjs +22 -19
  57. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  59. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  61. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-form-field.mjs +31 -26
  67. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-galleria.mjs +30 -30
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  71. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-icon-field.mjs +22 -17
  73. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  75. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-group.mjs +25 -20
  77. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-mask.mjs +25 -24
  79. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-number.mjs +113 -46
  81. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-otp.mjs +28 -28
  83. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-text.mjs +32 -31
  85. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  87. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +23 -26
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +17 -17
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +12 -12
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +52 -60
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  101. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-paginator.mjs +4 -4
  105. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  107. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-password.mjs +54 -48
  109. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  111. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-popover.mjs +27 -28
  113. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-radio-button.mjs +24 -21
  119. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-rating.mjs +12 -14
  121. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select.mjs +105 -89
  127. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  129. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-slider.mjs +42 -52
  131. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs +46 -22
  133. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-split-button.mjs +38 -37
  135. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  137. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  139. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  141. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-table.mjs +28 -22
  143. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
  145. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-textarea.mjs +37 -35
  147. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs +1 -1
  149. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theming.mjs +4 -4
  151. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs +14 -17
  153. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  155. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-toast.mjs +59 -37
  157. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs +24 -21
  159. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  161. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-tooltip.mjs +13 -19
  163. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tree-select.mjs +110 -82
  165. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-table.mjs +25 -19
  167. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree.mjs +14 -14
  169. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core.mjs +215 -55
  171. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  172. package/package.json +1 -1
  173. package/schematics/runtime/theme-builder/aeris-theme.js +1 -1
  174. package/styles/aeris.css +56 -0
  175. package/styles/controls.css +9 -2
  176. package/types/aeris-ui-core-auto-complete.d.ts +7 -4
  177. package/types/aeris-ui-core-badge.d.ts +4 -3
  178. package/types/aeris-ui-core-button.d.ts +13 -16
  179. package/types/aeris-ui-core-cascade-select.d.ts +7 -3
  180. package/types/aeris-ui-core-checkbox.d.ts +5 -4
  181. package/types/aeris-ui-core-color-picker.d.ts +5 -4
  182. package/types/aeris-ui-core-compare.d.ts +3 -4
  183. package/types/aeris-ui-core-confirm-dialog.d.ts +13 -13
  184. package/types/aeris-ui-core-confirm-popup.d.ts +13 -13
  185. package/types/aeris-ui-core-context-menu.d.ts +4 -5
  186. package/types/aeris-ui-core-date-picker.d.ts +7 -4
  187. package/types/aeris-ui-core-dialog.d.ts +8 -7
  188. package/types/aeris-ui-core-drawer.d.ts +8 -7
  189. package/types/aeris-ui-core-dynamic-dialog.d.ts +9 -9
  190. package/types/aeris-ui-core-editor.d.ts +5 -4
  191. package/types/aeris-ui-core-filter-service.d.ts +1 -1
  192. package/types/aeris-ui-core-form-field.d.ts +6 -4
  193. package/types/aeris-ui-core-galleria.d.ts +2 -2
  194. package/types/aeris-ui-core-icon-field.d.ts +3 -1
  195. package/types/aeris-ui-core-input-group.d.ts +22 -20
  196. package/types/aeris-ui-core-input-mask.d.ts +5 -4
  197. package/types/aeris-ui-core-input-number.d.ts +7 -4
  198. package/types/aeris-ui-core-input-otp.d.ts +5 -4
  199. package/types/aeris-ui-core-input-text.d.ts +7 -5
  200. package/types/aeris-ui-core-menu.d.ts +4 -5
  201. package/types/aeris-ui-core-menubar.d.ts +5 -4
  202. package/types/aeris-ui-core-message.d.ts +3 -2
  203. package/types/aeris-ui-core-multi-select.d.ts +7 -4
  204. package/types/aeris-ui-core-password.d.ts +5 -4
  205. package/types/aeris-ui-core-popover.d.ts +4 -5
  206. package/types/aeris-ui-core-radio-button.d.ts +5 -4
  207. package/types/aeris-ui-core-rating.d.ts +3 -4
  208. package/types/aeris-ui-core-select.d.ts +9 -4
  209. package/types/aeris-ui-core-slider.d.ts +5 -4
  210. package/types/aeris-ui-core-speed-dial.d.ts +4 -4
  211. package/types/aeris-ui-core-split-button.d.ts +10 -12
  212. package/types/aeris-ui-core-table.d.ts +3 -1
  213. package/types/aeris-ui-core-textarea.d.ts +8 -5
  214. package/types/aeris-ui-core-theme-builder.d.ts +1 -1
  215. package/types/aeris-ui-core-theming.d.ts +1 -1
  216. package/types/aeris-ui-core-tiered-menu.d.ts +4 -5
  217. package/types/aeris-ui-core-toast.d.ts +6 -3
  218. package/types/aeris-ui-core-toggle-switch.d.ts +5 -4
  219. package/types/aeris-ui-core-tooltip.d.ts +3 -3
  220. package/types/aeris-ui-core-tree-select.d.ts +7 -4
  221. package/types/aeris-ui-core-tree-table.d.ts +3 -1
  222. package/types/aeris-ui-core.d.ts +20 -4
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-checkbox.mjs","sources":["../../../projects/aeris-ui/checkbox/aeris-checkbox.ts","../../../projects/aeris-ui/checkbox/aeris-ui-core-checkbox.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nexport type AerisCheckboxSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisCheckboxLabelPosition = 'start' | 'end';\n\nexport interface AerisCheckboxChangeEvent {\n readonly originalEvent: Event;\n readonly checked: boolean;\n readonly indeterminate: boolean;\n readonly value: string;\n}\n\nlet checkboxId = 0;\n\n@Component({\n selector: 'aeris-checkbox',\n template: `\n <label\n class=\"aeris-checkbox\"\n [attr.data-size]=\"size()\"\n [attr.data-label-position]=\"labelPosition()\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-invalid]=\"invalid() || null\"\n >\n <input\n #checkboxInput\n type=\"checkbox\"\n [id]=\"resolvedInputId()\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"effectiveDisabled()\"\n [required]=\"required()\"\n [attr.tabindex]=\"tabIndex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (change)=\"handleChange($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n />\n <span class=\"aeris-checkbox__control\" aria-hidden=\"true\">\n <span class=\"aeris-checkbox__icon\">\n @if (indeterminate()) {\n <span class=\"aeris-checkbox__mixed-mark\"></span>\n } @else {\n <span class=\"aeris-checkbox__check-mark\"></span>\n }\n </span>\n </span>\n <span class=\"aeris-checkbox__label\">\n @if (label()) {\n <span>{{ label() }}</span>\n }\n <ng-content />\n </span>\n </label>\n `,\n styleUrl: './aeris-checkbox.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisCheckbox),\n multi: true,\n },\n ],\n host: {\n '[attr.data-checked]': 'checked() || null',\n '[attr.data-indeterminate]': 'indeterminate() || null',\n '[attr.data-disabled]': 'effectiveDisabled() || null',\n },\n})\nexport class AerisCheckbox implements ControlValueAccessor {\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('checkboxInput');\n private readonly generatedId = `aeris-checkbox-${++checkboxId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: boolean) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly checked = model(false);\n readonly indeterminate = model(false);\n readonly inputId = input('');\n readonly name = input('');\n readonly value = input('on');\n readonly label = input('');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledby = input<string>();\n readonly ariaDescribedby = input<string>();\n readonly size = input<AerisCheckboxSize>('md');\n readonly labelPosition = input<AerisCheckboxLabelPosition>('end');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly tabIndex = input(0);\n\n readonly checkedInput = output<boolean>();\n readonly changed = output<AerisCheckboxChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n writeValue(value: unknown): void {\n this.checked.set(Boolean(value));\n }\n\n registerOnChange(callback: (value: boolean) => 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 reset(): void {\n this.indeterminate.set(false);\n this.setChecked(false);\n }\n\n toggle(): void {\n if (this.effectiveDisabled()) return;\n if (this.indeterminate()) this.indeterminate.set(false);\n this.setChecked(!this.checked());\n this.focus();\n }\n\n protected handleChange(event: Event): void {\n if (this.effectiveDisabled()) return;\n const inputElement = event.target as HTMLInputElement;\n if (this.indeterminate()) this.indeterminate.set(false);\n this.setChecked(inputElement.checked);\n this.changed.emit({\n originalEvent: event,\n checked: inputElement.checked,\n indeterminate: false,\n value: this.value(),\n });\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.touch.emit();\n this.onTouched();\n this.blurred.emit(event);\n }\n\n private setChecked(checked: boolean): void {\n if (this.checked() === checked) return;\n this.checked.set(checked);\n this.checkedInput.emit(checked);\n this.onChange(checked);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAwBA,IAAI,UAAU,GAAG,CAAC;MA+DL,aAAa,CAAA;IACP,YAAY,GAAG,SAAS,CAA+B,eAAe;qFAAC;AACvE,IAAA,WAAW,GAAG,CAAA,eAAA,EAAkB,EAAE,UAAU,EAAE;IAC9C,YAAY,GAAG,MAAM,CAAC,KAAK;qFAAC;AACrC,IAAA,QAAQ,GAA6B,MAAM,SAAS;AACpD,IAAA,SAAS,GAAe,MAAM,SAA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,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACxFzF;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-checkbox.mjs","sources":["../../../projects/aeris-ui/checkbox/aeris-checkbox.ts","../../../projects/aeris-ui/checkbox/aeris-ui-core-checkbox.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\n\nexport type AerisCheckboxSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisCheckboxLabelPosition = 'start' | 'end';\n\nexport interface AerisCheckboxChangeEvent {\n readonly originalEvent: Event;\n readonly checked: boolean;\n readonly indeterminate: boolean;\n readonly value: string;\n}\n\nlet checkboxId = 0;\n\n@Component({\n selector: 'aeris-checkbox',\n template: `\n <label\n class=\"aeris-checkbox\"\n [attr.data-size]=\"size()\"\n [attr.data-label-position]=\"labelPosition()\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n >\n <input\n #checkboxInput\n type=\"checkbox\"\n [id]=\"resolvedInputId()\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"effectiveDisabled()\"\n [required]=\"required()\"\n [attr.tabindex]=\"tabIndex()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (change)=\"handleChange($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n />\n <span class=\"aeris-checkbox__control\" aria-hidden=\"true\">\n <span class=\"aeris-checkbox__icon\">\n @if (indeterminate()) {\n <span class=\"aeris-checkbox__mixed-mark\"></span>\n } @else {\n <span class=\"aeris-checkbox__check-mark\"></span>\n }\n </span>\n </span>\n <span class=\"aeris-checkbox__label\">\n @if (label()) {\n <span>{{ label() }}</span>\n }\n <ng-content />\n </span>\n </label>\n `,\n styleUrl: './aeris-checkbox.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisCheckbox),\n multi: true,\n },\n ],\n host: {\n '[attr.data-checked]': 'checked() || null',\n '[attr.data-indeterminate]': 'indeterminate() || null',\n '[attr.data-disabled]': 'effectiveDisabled() || null',\n },\n})\nexport class AerisCheckbox implements ControlValueAccessor {\n private readonly inputElement = viewChild<ElementRef<HTMLInputElement>>('checkboxInput');\n private readonly generatedId = `aeris-checkbox-${++checkboxId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: boolean) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly checked = model(false);\n readonly indeterminate = model(false);\n readonly inputId = input('');\n readonly name = input('');\n readonly value = input('on');\n readonly label = input('');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledBy = input<string>();\n readonly ariaDescribedBy = input<string>();\n readonly size = input<AerisCheckboxSize>('md');\n readonly labelPosition = input<AerisCheckboxLabelPosition>('end');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly tabIndex = input(0);\n\n readonly changed = output<AerisCheckboxChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n writeValue(value: unknown): void {\n this.checked.set(Boolean(value));\n }\n\n registerOnChange(callback: (value: boolean) => 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 reset(): void {\n this.indeterminate.set(false);\n this.setChecked(false);\n }\n\n toggle(): void {\n if (this.effectiveDisabled()) return;\n if (this.indeterminate()) this.indeterminate.set(false);\n this.setChecked(!this.checked());\n this.focus();\n }\n\n protected handleChange(event: Event): void {\n if (this.effectiveDisabled()) return;\n const inputElement = event.target as HTMLInputElement;\n if (this.indeterminate()) this.indeterminate.set(false);\n this.setChecked(inputElement.checked);\n this.changed.emit({\n originalEvent: event,\n checked: inputElement.checked,\n indeterminate: false,\n value: this.value(),\n });\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.touch.emit();\n this.onTouched();\n this.blurred.emit(event);\n }\n\n private setChecked(checked: boolean): void {\n if (this.checked() === checked) return;\n this.checked.set(checked);\n this.onChange(checked);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵaerisDisplayInvalid"],"mappings":";;;;;AAyBA,IAAI,UAAU,GAA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AA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACzFzF;;AAEG;;"}
@@ -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.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 });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisChipLeading, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.6", 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.3", ngImport: i0, type: AerisChipLeading, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", 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.3", ngImpor
20
20
  }] });
21
21
  class AerisChipRemoveIconTemplate {
22
22
  template = inject(TemplateRef);
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 });
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisChipRemoveIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.6", type: AerisChipRemoveIconTemplate, isStandalone: true, selector: "ng-template[aerisChipRemoveIcon]", ngImport: i0 });
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisChipRemoveIconTemplate, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", 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.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: `
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisChip, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", 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.3", ngImport: i0, type: AerisChip, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisChip, decorators: [{
134
134
  type: Component,
135
135
  args: [{ selector: 'aeris-chip', imports: [NgTemplateOutlet], template: `
136
136
  @if (visible()) {
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-chip.mjs","sources":["../../../projects/aeris-ui/chip/aeris-chip.ts","../../../projects/aeris-ui/chip/aeris-ui-core-chip.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\n\nexport type AerisChipSize = 'sm' | 'md' | 'lg';\nexport type AerisChipVariant = 'soft' | 'outline';\nexport type AerisChipTone = 'primary' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';\nexport type AerisChipShape = 'pill' | 'rounded';\n\nexport interface AerisChipRemoveEvent {\n readonly originalEvent: Event | null;\n readonly label: string;\n}\n\nexport interface AerisChipRemoveIconContext {\n readonly $implicit: AerisChip;\n readonly disabled: boolean;\n}\n\n@Directive({\n selector: '[aerisChipLeading]',\n host: {\n class: 'aeris-chip__leading',\n 'aria-hidden': 'true',\n '[style.inline-size]': '\"100%\"',\n '[style.block-size]': '\"100%\"',\n },\n})\nexport class AerisChipLeading {}\n\n@Directive({ selector: 'ng-template[aerisChipRemoveIcon]' })\nexport class AerisChipRemoveIconTemplate {\n readonly template = inject<TemplateRef<AerisChipRemoveIconContext>>(TemplateRef);\n}\n\n@Component({\n selector: 'aeris-chip',\n imports: [NgTemplateOutlet],\n template: `\n @if (visible()) {\n @if (showImage()) {\n <img\n class=\"aeris-chip__image\"\n [src]=\"imageSrc()\"\n [alt]=\"resolvedImageAlt()\"\n loading=\"lazy\"\n decoding=\"async\"\n draggable=\"false\"\n (error)=\"handleImageError()\"\n />\n }\n\n <span class=\"aeris-chip__leading\"><ng-content select=\"[aerisChipLeading]\" /></span>\n\n @if (label()) {\n <span class=\"aeris-chip__label\">{{ label() }}</span>\n }\n\n <span class=\"aeris-chip__content\"><ng-content /></span>\n\n @if (removable()) {\n <button\n class=\"aeris-chip__remove\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"resolvedRemoveAriaLabel()\"\n (click)=\"remove($event)\"\n (keydown)=\"handleRemoveKeydown($event)\"\n >\n @if (removeIconTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"removeIconContext()\"\n />\n } @else {\n <span class=\"aeris-chip__remove-icon\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n }\n `,\n styleUrl: './aeris-chip.scss',\n host: {\n class: 'aeris-chip',\n '[attr.data-visible]': 'visible() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-tone]': 'tone()',\n '[attr.data-shape]': 'shape()',\n '[attr.data-removable]': 'removable() || null',\n '[attr.data-disabled]': 'disabled() || null',\n '[attr.role]': 'semanticRole()',\n '[attr.aria-label]': 'semanticRole() ? ariaLabel() || label() || null : null',\n '[attr.aria-labelledby]': 'semanticRole() ? ariaLabelledBy() || null : null',\n '[attr.aria-disabled]': 'disabled() || null',\n '[attr.aria-hidden]': 'visible() ? null : \"true\"',\n },\n})\nexport class AerisChip {\n readonly label = input('');\n readonly imageSrc = input('');\n readonly imageAlt = input('');\n readonly removable = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AerisChipSize>('md');\n readonly variant = input<AerisChipVariant>('soft');\n readonly tone = input<AerisChipTone>('neutral');\n readonly shape = input<AerisChipShape>('pill');\n readonly removeAriaLabel = input('');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly visible = model(true);\n\n readonly removed = output<AerisChipRemoveEvent>();\n\n protected readonly removeIconTemplate = contentChild(AerisChipRemoveIconTemplate);\n private readonly failedImageSrc = signal('');\n protected readonly showImage = computed(\n () => !!this.imageSrc() && this.failedImageSrc() !== this.imageSrc(),\n );\n protected readonly resolvedImageAlt = computed(() =>\n this.label() || this.ariaLabel() || this.ariaLabelledBy() ? '' : this.imageAlt(),\n );\n protected readonly resolvedRemoveAriaLabel = computed(\n () => this.removeAriaLabel() || (this.label() ? `Remove ${this.label()}` : 'Remove chip'),\n );\n protected readonly semanticRole = computed(() =>\n this.ariaLabel() || this.ariaLabelledBy() ? 'group' : null,\n );\n protected readonly removeIconContext = computed<AerisChipRemoveIconContext>(() => ({\n $implicit: this,\n disabled: this.disabled(),\n }));\n\n remove(originalEvent: Event | null = null): void {\n if (!this.removable() || this.disabled() || !this.visible()) return;\n this.visible.set(false);\n this.removed.emit({ originalEvent, label: this.label() });\n }\n\n protected handleRemoveKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Backspace' && event.key !== 'Delete') return;\n event.preventDefault();\n this.remove(event);\n }\n\n protected handleImageError(): void {\n this.failedImageSrc.set(this.imageSrc());\n }\n}\n\nexport const AerisChipModule = [AerisChip, AerisChipLeading, AerisChipRemoveIconTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAuCa,gBAAgB,CAAA;uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,qBAAA,EAAA,EAAA,QAAA,EAAA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jB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CT,EAAA,IAAA,EAEK;AACJ,wBAAA,KAAK,EAAE,YAAY;AACnB,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,kBAAkB,EAAE,QAAQ;AAC5B,wBAAA,qBAAqB,EAAE,WAAW;AAClC,wBAAA,kBAAkB,EAAE,QAAQ;AAC5B,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,uBAAuB,EAAE,qBAAqB;AAC9C,wBAAA,sBAAsB,EAAE,oBAAoB;AAC5C,wBAAA,aAAa,EAAE,gBAAgB;AAC/B,wBAAA,mBAAmB,EAAE,wDAAwD;AAC7E,wBAAA,wBAAwB,EAAE,kDAAkD;AAC5E,wBAAA,sBAAsB,EAAE,oBAAoB;AAC5C,wBAAA,oBAAoB,EAAE,2BAA2B;AAClD,qBAAA,EAAA,MAAA,EAAA,CAAA,ojIAAA,CAAA,EAAA;s6CAmBoD,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAoC3E,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,gBAAgB,EAAE,2BAA2B;;AClKxF;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-chip.mjs","sources":["../../../projects/aeris-ui/chip/aeris-chip.ts","../../../projects/aeris-ui/chip/aeris-ui-core-chip.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\n\nexport type AerisChipSize = 'sm' | 'md' | 'lg';\nexport type AerisChipVariant = 'soft' | 'outline';\nexport type AerisChipTone = 'primary' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';\nexport type AerisChipShape = 'pill' | 'rounded';\n\nexport interface AerisChipRemoveEvent {\n readonly originalEvent: Event | null;\n readonly label: string;\n}\n\nexport interface AerisChipRemoveIconContext {\n readonly $implicit: AerisChip;\n readonly disabled: boolean;\n}\n\n@Directive({\n selector: '[aerisChipLeading]',\n host: {\n class: 'aeris-chip__leading',\n 'aria-hidden': 'true',\n '[style.inline-size]': '\"100%\"',\n '[style.block-size]': '\"100%\"',\n },\n})\nexport class AerisChipLeading {}\n\n@Directive({ selector: 'ng-template[aerisChipRemoveIcon]' })\nexport class AerisChipRemoveIconTemplate {\n readonly template = inject<TemplateRef<AerisChipRemoveIconContext>>(TemplateRef);\n}\n\n@Component({\n selector: 'aeris-chip',\n imports: [NgTemplateOutlet],\n template: `\n @if (visible()) {\n @if (showImage()) {\n <img\n class=\"aeris-chip__image\"\n [src]=\"imageSrc()\"\n [alt]=\"resolvedImageAlt()\"\n loading=\"lazy\"\n decoding=\"async\"\n draggable=\"false\"\n (error)=\"handleImageError()\"\n />\n }\n\n <span class=\"aeris-chip__leading\"><ng-content select=\"[aerisChipLeading]\" /></span>\n\n @if (label()) {\n <span class=\"aeris-chip__label\">{{ label() }}</span>\n }\n\n <span class=\"aeris-chip__content\"><ng-content /></span>\n\n @if (removable()) {\n <button\n class=\"aeris-chip__remove\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"resolvedRemoveAriaLabel()\"\n (click)=\"remove($event)\"\n (keydown)=\"handleRemoveKeydown($event)\"\n >\n @if (removeIconTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"removeIconContext()\"\n />\n } @else {\n <span class=\"aeris-chip__remove-icon\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n }\n `,\n styleUrl: './aeris-chip.scss',\n host: {\n class: 'aeris-chip',\n '[attr.data-visible]': 'visible() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-tone]': 'tone()',\n '[attr.data-shape]': 'shape()',\n '[attr.data-removable]': 'removable() || null',\n '[attr.data-disabled]': 'disabled() || null',\n '[attr.role]': 'semanticRole()',\n '[attr.aria-label]': 'semanticRole() ? ariaLabel() || label() || null : null',\n '[attr.aria-labelledby]': 'semanticRole() ? ariaLabelledBy() || null : null',\n '[attr.aria-disabled]': 'disabled() || null',\n '[attr.aria-hidden]': 'visible() ? null : \"true\"',\n },\n})\nexport class AerisChip {\n readonly label = input('');\n readonly imageSrc = input('');\n readonly imageAlt = input('');\n readonly removable = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AerisChipSize>('md');\n readonly variant = input<AerisChipVariant>('soft');\n readonly tone = input<AerisChipTone>('neutral');\n readonly shape = input<AerisChipShape>('pill');\n readonly removeAriaLabel = input('');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly visible = model(true);\n\n readonly removed = output<AerisChipRemoveEvent>();\n\n protected readonly removeIconTemplate = contentChild(AerisChipRemoveIconTemplate);\n private readonly failedImageSrc = signal('');\n protected readonly showImage = computed(\n () => !!this.imageSrc() && this.failedImageSrc() !== this.imageSrc(),\n );\n protected readonly resolvedImageAlt = computed(() =>\n this.label() || this.ariaLabel() || this.ariaLabelledBy() ? '' : this.imageAlt(),\n );\n protected readonly resolvedRemoveAriaLabel = computed(\n () => this.removeAriaLabel() || (this.label() ? `Remove ${this.label()}` : 'Remove chip'),\n );\n protected readonly semanticRole = computed(() =>\n this.ariaLabel() || this.ariaLabelledBy() ? 'group' : null,\n );\n protected readonly removeIconContext = computed<AerisChipRemoveIconContext>(() => ({\n $implicit: this,\n disabled: this.disabled(),\n }));\n\n remove(originalEvent: Event | null = null): void {\n if (!this.removable() || this.disabled() || !this.visible()) return;\n this.visible.set(false);\n this.removed.emit({ originalEvent, label: this.label() });\n }\n\n protected handleRemoveKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Backspace' && event.key !== 'Delete') return;\n event.preventDefault();\n this.remove(event);\n }\n\n protected handleImageError(): void {\n this.failedImageSrc.set(this.imageSrc());\n }\n}\n\nexport const AerisChipModule = [AerisChip, AerisChipLeading, AerisChipRemoveIconTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAuCa,gBAAgB,CAAA;uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,qBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAT5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,qBAAqB;AAC5B,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,qBAAqB,EAAE,QAAQ;AAC/B,wBAAA,oBAAoB,EAAE,QAAQ;AAC/B,qBAAA;AACF,iBAAA;;MAIY,2BAA2B,CAAA;AAC7B,IAAA,QAAQ,GAAG,MAAM,CAA0C,WAAW,CAAC;uGADrE,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,SAAS;mBAAC,EAAE,QAAQ,EAAE,kCAAkC,EAAE;;MAoE9C,SAAS,CAAA;IACX,KAAK,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AAS,EAAE,gBAAgB,EAAE,2BAA2B;;AClKxF;;AAEG;;"}
@@ -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.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 });
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisClassNamesDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", 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.3", ngImport: i0, type: AerisClassNamesDirective, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisClassNamesDirective, decorators: [{
54
54
  type: Directive,
55
55
  args: [{
56
56
  selector: '[aerisClassNames]',
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-class-names.mjs","sources":["../../../projects/aeris-ui/class-names/aeris-class-names.ts","../../../projects/aeris-ui/class-names/aeris-ui-core-class-names.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, effect, inject, input } from '@angular/core';\n\nexport type AerisClassNamesMap = Readonly<Record<string, boolean | null | undefined>>;\nexport type AerisClassNamesValue =\n | string\n | AerisClassNamesMap\n | readonly AerisClassNamesValue[]\n | false\n | null\n | undefined;\n\n@Directive({\n selector: '[aerisClassNames]',\n exportAs: 'aerisClassNames',\n})\nexport class AerisClassNamesDirective {\n readonly value = input<AerisClassNamesValue>(null, { alias: 'aerisClassNames' });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly initialClasses = new Set(\n this.tokenize(this.element.getAttribute('class') ?? ''),\n );\n private appliedClasses = new Set<string>();\n\n constructor() {\n effect(() => this.apply(this.resolve(this.value())));\n }\n\n private apply(nextClasses: ReadonlySet<string>): void {\n for (const className of this.appliedClasses) {\n if (!nextClasses.has(className) && !this.initialClasses.has(className)) {\n this.renderer.removeClass(this.element, className);\n }\n }\n\n for (const className of nextClasses) {\n if (!this.appliedClasses.has(className)) {\n this.renderer.addClass(this.element, className);\n }\n }\n\n this.appliedClasses = new Set(nextClasses);\n }\n\n private resolve(value: AerisClassNamesValue, classes = new Set<string>()): Set<string> {\n if (!value) return classes;\n\n if (typeof value === 'string') {\n for (const className of this.tokenize(value)) classes.add(className);\n return classes;\n }\n\n if (Array.isArray(value)) {\n for (const entry of value) this.resolve(entry, classes);\n return classes;\n }\n\n for (const [classNames, enabled] of Object.entries(value as AerisClassNamesMap)) {\n if (!enabled) continue;\n for (const className of this.tokenize(classNames)) classes.add(className);\n }\n\n return classes;\n }\n\n private tokenize(value: string): readonly string[] {\n return value.split(/\\s+/u).filter(Boolean);\n }\n}\n\nexport const AerisClassNamesModule = [AerisClassNamesDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAea,wBAAwB,CAAA;IAC1B,KAAK,GAAG,KAAK,CAAuB,IAAI,6EAAI,KAAK,EAAE,iBAAiB,EAAA,CAAG;AAE/D,IAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CA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oBAAA,QAAQ,EAAE,iBAAiB;AAC5B,iBAAA;;AAyDM,MAAM,qBAAqB,GAAG,CAAC,wBAAwB;;ACvE9D;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-class-names.mjs","sources":["../../../projects/aeris-ui/class-names/aeris-class-names.ts","../../../projects/aeris-ui/class-names/aeris-ui-core-class-names.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, effect, inject, input } from '@angular/core';\n\nexport type AerisClassNamesMap = Readonly<Record<string, boolean | null | undefined>>;\nexport type AerisClassNamesValue =\n | string\n | AerisClassNamesMap\n | readonly AerisClassNamesValue[]\n | false\n | null\n | undefined;\n\n@Directive({\n selector: '[aerisClassNames]',\n exportAs: 'aerisClassNames',\n})\nexport class AerisClassNamesDirective {\n readonly value = input<AerisClassNamesValue>(null, { alias: 'aerisClassNames' });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly initialClasses = new Set(\n this.tokenize(this.element.getAttribute('class') ?? ''),\n );\n private appliedClasses = new Set<string>();\n\n constructor() {\n effect(() => this.apply(this.resolve(this.value())));\n }\n\n private apply(nextClasses: ReadonlySet<string>): void {\n for (const className of this.appliedClasses) {\n if (!nextClasses.has(className) && !this.initialClasses.has(className)) {\n this.renderer.removeClass(this.element, className);\n }\n }\n\n for (const className of nextClasses) {\n if (!this.appliedClasses.has(className)) {\n this.renderer.addClass(this.element, className);\n }\n }\n\n this.appliedClasses = new Set(nextClasses);\n }\n\n private resolve(value: AerisClassNamesValue, classes = new Set<string>()): Set<string> {\n if (!value) return classes;\n\n if (typeof value === 'string') {\n for (const className of this.tokenize(value)) classes.add(className);\n return classes;\n }\n\n if (Array.isArray(value)) {\n for (const entry of value) this.resolve(entry, classes);\n return classes;\n }\n\n for (const [classNames, enabled] of Object.entries(value as AerisClassNamesMap)) {\n if (!enabled) continue;\n for (const className of this.tokenize(classNames)) classes.add(className);\n }\n\n return classes;\n }\n\n private tokenize(value: string): readonly string[] {\n return value.split(/\\s+/u).filter(Boolean);\n }\n}\n\nexport const AerisClassNamesModule = [AerisClassNamesDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAea,wBAAwB,CAAA;IAC1B,KAAK,GAAG,KAAK,CAAuB,IAAI,6EAAI,KAAK,EAAE,iBAAiB,EAAA,CAAG;AAE/D,IAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AACnE,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,cAAc,GAAG,IAAI,GAAG,CACvC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CACxD;AACO,IAAA,cAAc,GAAG,IAAI,GAAG,EAAU;AAE1C,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACtD;AAEQ,IAAA,KAAK,CAAC,WAAgC,EAAA;AAC5C,QAAA,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,cAAc,EAAE;AAC3C,YAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;gBACtE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC;YACpD;QACF;AAEA,QAAA,KAAK,MAAM,SAAS,IAAI,WAAW,EAAE;YACnC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;gBACvC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC;YACjD;QACF;QAEA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AAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,QAAQ,EAAE,iBAAiB;AAC5B,iBAAA;;AAyDM,MAAM,qBAAqB,GAAG,CAAC,wBAAwB;;ACvE9D;;AAEG;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, Injector, viewChild, signal, model, input, booleanAttribute, output, computed, effect, afterNextRender, forwardRef, Component } from '@angular/core';
2
+ import { inject, ElementRef, Injector, viewChild, signal, model, input, booleanAttribute, computed, output, effect, afterNextRender, forwardRef, Component } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { aerisInternalCreateFrameScheduler, ɵAerisAppendTo as _AerisAppendTo, aerisInternalClampOverlayPoint } from '@aeris-ui/core';
4
+ import { aerisInternalCreateFrameScheduler, ɵAerisAppendTo as _AerisAppendTo, ɵaerisDisplayInvalid as _aerisDisplayInvalid, aerisInternalClampOverlayPoint } from '@aeris-ui/core';
5
5
 
6
6
  let colorPickerId = 0;
7
7
  class AerisColorPicker {
@@ -48,10 +48,10 @@ class AerisColorPicker {
48
48
  ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
49
49
  ariaLabel = input(/* @ts-ignore */
50
50
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
51
- ariaLabelledby = input(/* @ts-ignore */
52
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
53
- ariaDescribedby = input(/* @ts-ignore */
54
- ...(ngDevMode ? [undefined, { debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
51
+ ariaLabelledBy = input(/* @ts-ignore */
52
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
53
+ ariaDescribedBy = input(/* @ts-ignore */
54
+ ...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
55
55
  triggerAriaLabel = input('Choose color', /* @ts-ignore */
56
56
  ...(ngDevMode ? [{ debugName: "triggerAriaLabel" }] : /* istanbul ignore next */ []));
57
57
  /** @deprecated Use panelAriaLabel instead. */
@@ -94,8 +94,11 @@ class AerisColorPicker {
94
94
  readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
95
95
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
96
96
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
97
+ touched = input(null, /* @ts-ignore */
98
+ ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
99
+ displayInvalid = computed(() => _aerisDisplayInvalid(this.invalid(), this.touched()), /* @ts-ignore */
100
+ ...(ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []));
97
101
  fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
98
- valueInput = output();
99
102
  changed = output();
100
103
  focused = output();
101
104
  blurred = output();
@@ -492,7 +495,6 @@ class AerisColorPicker {
492
495
  if (this.value() === value)
493
496
  return;
494
497
  this.value.set(value);
495
- this.valueInput.emit(value);
496
498
  this.onChange(value);
497
499
  }
498
500
  coerceValue(value) {
@@ -501,8 +503,8 @@ class AerisColorPicker {
501
503
  const parsed = parseColor(value);
502
504
  return parsed ? formatColor(parsed.rgb, this.format()) : value;
503
505
  }
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: [
506
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisColorPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
507
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", 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 }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", format: "formatChange", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch", cleared: "cleared", opened: "opened", closed: "closed" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
506
508
  {
507
509
  provide: NG_VALUE_ACCESSOR,
508
510
  useExisting: forwardRef(() => AerisColorPicker),
@@ -515,7 +517,7 @@ class AerisColorPicker {
515
517
  [attr.data-appearance]="appearance()"
516
518
  [attr.data-disabled]="effectiveDisabled() || null"
517
519
  [attr.data-readonly]="readonly() || null"
518
- [attr.data-invalid]="invalid() || null"
520
+ [attr.data-invalid]="displayInvalid() || null"
519
521
  [attr.data-fluid]="fluid() || null"
520
522
  [attr.data-open]="isOpen() || null"
521
523
  (focusout)="handleFocusOut($event)"
@@ -531,9 +533,9 @@ class AerisColorPicker {
531
533
  [id]="resolvedInputId()"
532
534
  [disabled]="effectiveDisabled() || readonly()"
533
535
  [attr.aria-label]="ariaLabel() || triggerAriaLabel()"
534
- [attr.aria-labelledby]="ariaLabelledby()"
535
- [attr.aria-describedby]="ariaDescribedby()"
536
- [attr.aria-invalid]="invalid() || null"
536
+ [attr.aria-labelledby]="ariaLabelledBy()"
537
+ [attr.aria-describedby]="ariaDescribedBy()"
538
+ [attr.aria-invalid]="displayInvalid() || null"
537
539
  [attr.aria-required]="required() || null"
538
540
  [attr.aria-expanded]="isOpen()"
539
541
  [attr.aria-controls]="panelId"
@@ -565,8 +567,8 @@ class AerisColorPicker {
565
567
  [readOnly]="readonly()"
566
568
  [required]="required()"
567
569
  [attr.aria-label]="textAriaLabel()"
568
- [attr.aria-describedby]="ariaDescribedby()"
569
- [attr.aria-invalid]="invalid() || textInvalid() || null"
570
+ [attr.aria-describedby]="ariaDescribedBy()"
571
+ [attr.aria-invalid]="displayInvalid() || textInvalid() || null"
570
572
  autocomplete="off"
571
573
  spellcheck="false"
572
574
  (input)="handleTextInput($event)"
@@ -590,13 +592,6 @@ class AerisColorPicker {
590
592
  }
591
593
 
592
594
  @if (isOpen()) {
593
- <button
594
- class="aeris-color-picker__dismiss"
595
- type="button"
596
- tabindex="-1"
597
- [attr.aria-label]="closeButtonAriaLabel()"
598
- (click)="close(true)"
599
- ></button>
600
595
  <section
601
596
  #pickerPanel
602
597
  class="aeris-color-picker__panel"
@@ -752,9 +747,9 @@ class AerisColorPicker {
752
747
  </section>
753
748
  }
754
749
  </div>
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"] }] });
750
+ `, 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;box-shadow:none}.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:1.5rem;height:1.5rem;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:transparent}.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__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__panel-value input:hover{border-color:var(--aeris-primary, #5f6f36)}.aeris-color-picker__clear:hover,.aeris-color-picker__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-color-picker__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.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__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:user-invalid,.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", "aerisInternalAppendToDefault", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth", "aerisInternalAppendToPlacement", "aerisInternalAppendToAlignment", "aerisInternalAppendToCollisionPadding", "aerisInternalAppendToPositionSelf"], outputs: ["aerisInternalAppendToOutside"] }] });
756
751
  }
757
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisColorPicker, decorators: [{
752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisColorPicker, decorators: [{
758
753
  type: Component,
759
754
  args: [{ selector: 'aeris-color-picker', imports: [_AerisAppendTo], template: `
760
755
  <div
@@ -763,7 +758,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
763
758
  [attr.data-appearance]="appearance()"
764
759
  [attr.data-disabled]="effectiveDisabled() || null"
765
760
  [attr.data-readonly]="readonly() || null"
766
- [attr.data-invalid]="invalid() || null"
761
+ [attr.data-invalid]="displayInvalid() || null"
767
762
  [attr.data-fluid]="fluid() || null"
768
763
  [attr.data-open]="isOpen() || null"
769
764
  (focusout)="handleFocusOut($event)"
@@ -779,9 +774,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
779
774
  [id]="resolvedInputId()"
780
775
  [disabled]="effectiveDisabled() || readonly()"
781
776
  [attr.aria-label]="ariaLabel() || triggerAriaLabel()"
782
- [attr.aria-labelledby]="ariaLabelledby()"
783
- [attr.aria-describedby]="ariaDescribedby()"
784
- [attr.aria-invalid]="invalid() || null"
777
+ [attr.aria-labelledby]="ariaLabelledBy()"
778
+ [attr.aria-describedby]="ariaDescribedBy()"
779
+ [attr.aria-invalid]="displayInvalid() || null"
785
780
  [attr.aria-required]="required() || null"
786
781
  [attr.aria-expanded]="isOpen()"
787
782
  [attr.aria-controls]="panelId"
@@ -813,8 +808,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
813
808
  [readOnly]="readonly()"
814
809
  [required]="required()"
815
810
  [attr.aria-label]="textAriaLabel()"
816
- [attr.aria-describedby]="ariaDescribedby()"
817
- [attr.aria-invalid]="invalid() || textInvalid() || null"
811
+ [attr.aria-describedby]="ariaDescribedBy()"
812
+ [attr.aria-invalid]="displayInvalid() || textInvalid() || null"
818
813
  autocomplete="off"
819
814
  spellcheck="false"
820
815
  (input)="handleTextInput($event)"
@@ -838,13 +833,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
838
833
  }
839
834
 
840
835
  @if (isOpen()) {
841
- <button
842
- class="aeris-color-picker__dismiss"
843
- type="button"
844
- tabindex="-1"
845
- [attr.aria-label]="closeButtonAriaLabel()"
846
- (click)="close(true)"
847
- ></button>
848
836
  <section
849
837
  #pickerPanel
850
838
  class="aeris-color-picker__panel"
@@ -1008,8 +996,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
1008
996
  },
1009
997
  ], host: {
1010
998
  '[attr.data-fluid]': 'fluid() || null',
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"] }]
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"] }] } });
999
+ }, 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;box-shadow:none}.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:1.5rem;height:1.5rem;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .5rem));background:transparent}.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__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__panel-value input:hover{border-color:var(--aeris-primary, #5f6f36)}.aeris-color-picker__clear:hover,.aeris-color-picker__clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-color-picker__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.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__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:user-invalid,.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"] }]
1000
+ }], 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 }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], 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"] }] } });
1013
1001
  function isColorFormat(value) {
1014
1002
  return value === 'hex' || value === 'rgb' || value === 'hsl';
1015
1003
  }