@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.3

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 (163) hide show
  1. package/README.md +191 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +14 -14
  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-auto-complete.mjs +17 -17
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  7. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  8. package/fesm2022/aeris-ui-core-avatar.mjs +9 -9
  9. package/fesm2022/aeris-ui-core-badge.mjs +10 -10
  10. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  11. package/fesm2022/aeris-ui-core-breadcrumb.mjs +14 -14
  12. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  14. package/fesm2022/aeris-ui-core-button.mjs +10 -10
  15. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-card.mjs +20 -20
  17. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-carousel.mjs +14 -14
  19. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-cascade-select.mjs +11 -11
  21. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-chart.mjs +5 -5
  23. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-checkbox.mjs +5 -5
  25. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-chip.mjs +11 -11
  27. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  28. package/fesm2022/aeris-ui-core-color-picker.mjs +7 -7
  29. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-compare.mjs +14 -14
  31. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +18 -18
  33. package/fesm2022/aeris-ui-core-confirm-popup.mjs +20 -20
  34. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-context-menu.mjs +8 -8
  36. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-date-picker.mjs +5 -5
  38. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  39. package/fesm2022/aeris-ui-core-dialog.mjs +17 -17
  40. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  41. package/fesm2022/aeris-ui-core-divider.mjs +5 -5
  42. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-drawer.mjs +17 -17
  44. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  45. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +6 -6
  46. package/fesm2022/aeris-ui-core-editor.mjs +5 -5
  47. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-file-upload.mjs +26 -26
  49. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  51. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  52. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  53. package/fesm2022/aeris-ui-core-galleria.mjs +29 -29
  54. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  55. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  56. package/fesm2022/aeris-ui-core-icon-field.mjs +14 -14
  57. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-inplace.mjs +11 -11
  59. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-input-group.mjs +16 -16
  61. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-input-mask.mjs +5 -5
  63. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-input-number.mjs +5 -5
  65. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-input-otp.mjs +8 -8
  67. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-input-text.mjs +8 -8
  69. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  70. package/fesm2022/aeris-ui-core-mega-menu.mjs +8 -8
  71. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-menu.mjs +17 -17
  73. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-menubar.mjs +14 -14
  75. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-message.mjs +11 -11
  77. package/fesm2022/aeris-ui-core-meter-group.mjs +17 -17
  78. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-multi-select.mjs +20 -20
  80. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  81. package/fesm2022/aeris-ui-core-order-list.mjs +11 -11
  82. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-organization-chart.mjs +11 -11
  84. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  85. package/fesm2022/aeris-ui-core-paginator.mjs +5 -5
  86. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  87. package/fesm2022/aeris-ui-core-panel.mjs +17 -17
  88. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-password.mjs +14 -14
  90. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  91. package/fesm2022/aeris-ui-core-pick-list.mjs +11 -11
  92. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  93. package/fesm2022/aeris-ui-core-popover.mjs +17 -17
  94. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  95. package/fesm2022/aeris-ui-core-progress-bar.mjs +11 -11
  96. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  97. package/fesm2022/aeris-ui-core-progress-spinner.mjs +8 -8
  98. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  99. package/fesm2022/aeris-ui-core-radio-button.mjs +5 -5
  100. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  101. package/fesm2022/aeris-ui-core-rating.mjs +5 -5
  102. package/fesm2022/aeris-ui-core-scroll-panel.mjs +5 -5
  103. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-scroll-top.mjs +5 -5
  105. package/fesm2022/aeris-ui-core-select.mjs +38 -38
  106. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  107. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  108. package/fesm2022/aeris-ui-core-slider.mjs +5 -5
  109. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-speed-dial.mjs +5 -5
  111. package/fesm2022/aeris-ui-core-split-button.mjs +5 -5
  112. package/fesm2022/aeris-ui-core-splitter.mjs +8 -8
  113. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-stepper.mjs +14 -14
  115. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  117. package/fesm2022/aeris-ui-core-table.mjs +20 -20
  118. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-tabs.mjs +33 -21
  120. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  121. package/fesm2022/aeris-ui-core-textarea.mjs +8 -8
  122. package/fesm2022/aeris-ui-core-theme-builder.mjs +61 -43
  123. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-theming.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-tiered-menu.mjs +8 -8
  126. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
  128. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-toast.mjs +553 -158
  130. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-toggle-switch.mjs +5 -5
  132. package/fesm2022/aeris-ui-core-toolbar.mjs +20 -20
  133. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
  135. package/fesm2022/aeris-ui-core-tree-select.mjs +20 -20
  136. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-tree-table.mjs +17 -17
  138. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-tree.mjs +14 -14
  140. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core.mjs +1 -1
  142. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  143. package/package.json +1 -1
  144. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  145. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  146. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  147. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  148. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  149. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  150. package/schematics/runtime/theme-builder/aeris-theme.js +17 -17
  151. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  152. package/styles/_fallback-colors.scss +10 -0
  153. package/styles/_tokens.scss +5 -5
  154. package/styles/aeris.css +20 -12
  155. package/styles/controls.css +4 -4
  156. package/types/aeris-ui-core-badge.d.ts +2 -2
  157. package/types/aeris-ui-core-breadcrumb.d.ts +1 -1
  158. package/types/aeris-ui-core-progress-spinner.d.ts +1 -1
  159. package/types/aeris-ui-core-splitter.d.ts +1 -1
  160. package/types/aeris-ui-core-tabs.d.ts +1 -1
  161. package/types/aeris-ui-core-theme-builder.d.ts +18 -17
  162. package/types/aeris-ui-core-toast.d.ts +45 -8
  163. package/types/aeris-ui-core.d.ts +1 -1
@@ -1,19 +1,20 @@
1
1
  import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, ElementRef, input, booleanAttribute, viewChild, contentChild, Component, PLATFORM_ID, DestroyRef, model, output, contentChildren, computed, viewChildren, signal, afterNextRender, effect } from '@angular/core';
3
+ import { InjectionToken, inject, TemplateRef, Directive, input, booleanAttribute, viewChild, contentChild, Component, ElementRef, PLATFORM_ID, DestroyRef, model, output, contentChildren, computed, viewChildren, signal, afterNextRender, effect } from '@angular/core';
4
4
 
5
+ const AERIS_TABS_OWNER = new InjectionToken('AerisTabsOwner');
5
6
  class AerisTabHeaderTemplate {
6
7
  template = inject(TemplateRef);
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTabHeaderTemplate, isStandalone: true, selector: "ng-template[aerisTabHeader]", ngImport: i0 });
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTabHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: AerisTabHeaderTemplate, isStandalone: true, selector: "ng-template[aerisTabHeader]", ngImport: i0 });
9
10
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabHeaderTemplate, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTabHeaderTemplate, decorators: [{
11
12
  type: Directive,
12
13
  args: [{ selector: 'ng-template[aerisTabHeader]' }]
13
14
  }] });
14
15
  let nextPanelId = 0;
15
16
  class AerisTabPanel {
16
- element = inject(ElementRef);
17
+ owner = inject(AERIS_TABS_OWNER, { optional: true });
17
18
  instanceId = nextPanelId++;
18
19
  value = input.required(/* @ts-ignore */
19
20
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
@@ -26,18 +27,16 @@ class AerisTabPanel {
26
27
  ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
27
28
  headerTemplate = contentChild(AerisTabHeaderTemplate, { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
28
29
  isDirectPanelOf(tabsHost) {
29
- const parent = this.element.nativeElement.parentElement;
30
- return (parent?.classList.contains('aeris-tabs__panel-source') === true &&
31
- parent.parentElement === tabsHost);
30
+ return this.owner?.host === tabsHost;
32
31
  }
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: AerisTabPanel, isStandalone: true, selector: "aeris-tab-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "\"none\"" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisTabHeaderTemplate, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
32
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
33
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: AerisTabPanel, isStandalone: true, selector: "aeris-tab-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "\"none\"" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisTabHeaderTemplate, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
35
34
  <ng-template #content>
36
35
  <ng-content />
37
36
  </ng-template>
38
37
  `, isInline: true });
39
38
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabPanel, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTabPanel, decorators: [{
41
40
  type: Component,
42
41
  args: [{
43
42
  selector: 'aeris-tab-panel',
@@ -109,10 +108,9 @@ class AerisTabs {
109
108
  this.observeTabSizing();
110
109
  });
111
110
  effect(() => {
112
- const panelSignature = this.panels()
113
- .map((panel) => `${panel.value()}:${panel.label()}:${panel.disabled()}`)
114
- .join('|');
115
- if (!panelSignature)
111
+ const panelCount = this.panels().length;
112
+ this.tabButtons();
113
+ if (panelCount === 0)
116
114
  return;
117
115
  queueMicrotask(() => this.updateScrollState());
118
116
  });
@@ -250,8 +248,15 @@ class AerisTabs {
250
248
  }
251
249
  return undefined;
252
250
  }
253
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
254
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisTabs, isStandalone: true, selector: "aeris-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, panelTabIndex: { classPropertyName: "panelTabIndex", publicName: "panelTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed", tabFocused: "tabFocused" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-justify": "justify()", "attr.data-scrollable": "scrollable() || null" }, classAttribute: "aeris-tabs" }, queries: [{ propertyName: "discoveredPanels", predicate: AerisTabPanel, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tabButtons", predicate: ["tabButton"], descendants: true, isSignal: true }, { propertyName: "tabList", first: true, predicate: ["tabList"], descendants: true, isSignal: true }, { propertyName: "tabHeader", first: true, predicate: ["tabHeader"], descendants: true, isSignal: true }], ngImport: i0, template: `
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
252
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AerisTabs, isStandalone: true, selector: "aeris-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, panelTabIndex: { classPropertyName: "panelTabIndex", publicName: "panelTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed", tabFocused: "tabFocused" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-justify": "justify()", "attr.data-scrollable": "scrollable() || null" }, classAttribute: "aeris-tabs" }, providers: [
253
+ {
254
+ provide: AERIS_TABS_OWNER,
255
+ useFactory: () => ({
256
+ host: inject(ElementRef).nativeElement,
257
+ }),
258
+ },
259
+ ], queries: [{ propertyName: "discoveredPanels", predicate: AerisTabPanel, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tabButtons", predicate: ["tabButton"], descendants: true, isSignal: true }, { propertyName: "tabList", first: true, predicate: ["tabList"], descendants: true, isSignal: true }, { propertyName: "tabHeader", first: true, predicate: ["tabHeader"], descendants: true, isSignal: true }], ngImport: i0, template: `
255
260
  <div class="aeris-tabs__panel-source" aria-hidden="true">
256
261
  <ng-content />
257
262
  </div>
@@ -332,11 +337,18 @@ class AerisTabs {
332
337
  <ng-container [ngTemplateOutlet]="panel.content()" />
333
338
  </div>
334
339
  }
335
- `, isInline: true, styles: [":host{--_aeris-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) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: .875rem;display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: .75rem}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: .9375rem}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, .4375rem);background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_tab-font-size);font-weight:600;white-space:nowrap;cursor:pointer}.aeris-tabs__list button:after{position:absolute;right:.75rem;bottom:-1px;left:.75rem;height:2px;border-radius:99px 99px 0 0;background:transparent;content:\"\"}.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #879566))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(var(--aeris-tabs-radius, .4375rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f2f0ec))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}:host([data-variant=pill]) .aeris-tabs__list button:after{display:none}:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #222222)}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a;color:var(--aeris-text, #222222)}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}:host([data-orientation=vertical]) .aeris-tabs__list button:after{top:.5rem;right:-1px;bottom:.5rem;left:auto;width:2px;height:auto}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
340
+ `, isInline: true, styles: [":host{--_aeris-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) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: .875rem;display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: .75rem}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: .9375rem}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, .4375rem);background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_tab-font-size);font-weight:600;white-space:nowrap;cursor:pointer}.aeris-tabs__list button:after{position:absolute;right:.75rem;bottom:-1px;left:.75rem;height:2px;border-radius:99px 99px 0 0;background:transparent;content:\"\"}.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #5f6f36))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #5f6f36))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #5f6f36))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #3b4729);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(var(--aeris-tabs-radius, .4375rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f2f0ec))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}:host([data-variant=pill]) .aeris-tabs__list button:after{display:none}:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #222222)}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a;color:var(--aeris-text, #222222)}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}:host([data-orientation=vertical]) .aeris-tabs__list button:after{top:.5rem;right:-1px;bottom:.5rem;left:auto;width:2px;height:auto}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
336
341
  }
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabs, decorators: [{
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTabs, decorators: [{
338
343
  type: Component,
339
- args: [{ selector: 'aeris-tabs', imports: [NgTemplateOutlet], template: `
344
+ args: [{ selector: 'aeris-tabs', providers: [
345
+ {
346
+ provide: AERIS_TABS_OWNER,
347
+ useFactory: () => ({
348
+ host: inject(ElementRef).nativeElement,
349
+ }),
350
+ },
351
+ ], imports: [NgTemplateOutlet], template: `
340
352
  <div class="aeris-tabs__panel-source" aria-hidden="true">
341
353
  <ng-content />
342
354
  </div>
@@ -424,7 +436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
424
436
  '[attr.data-size]': 'size()',
425
437
  '[attr.data-justify]': 'justify()',
426
438
  '[attr.data-scrollable]': 'scrollable() || null',
427
- }, styles: [":host{--_aeris-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) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: .875rem;display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: .75rem}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: .9375rem}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, .4375rem);background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_tab-font-size);font-weight:600;white-space:nowrap;cursor:pointer}.aeris-tabs__list button:after{position:absolute;right:.75rem;bottom:-1px;left:.75rem;height:2px;border-radius:99px 99px 0 0;background:transparent;content:\"\"}.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #879566))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(var(--aeris-tabs-radius, .4375rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f2f0ec))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}:host([data-variant=pill]) .aeris-tabs__list button:after{display:none}:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #222222)}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a;color:var(--aeris-text, #222222)}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}:host([data-orientation=vertical]) .aeris-tabs__list button:after{top:.5rem;right:-1px;bottom:.5rem;left:auto;width:2px;height:auto}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"] }]
439
+ }, styles: [":host{--_aeris-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) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: .875rem;display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: .75rem}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: .9375rem}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, .4375rem);background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_tab-font-size);font-weight:600;white-space:nowrap;cursor:pointer}.aeris-tabs__list button:after{position:absolute;right:.75rem;bottom:-1px;left:.75rem;height:2px;border-radius:99px 99px 0 0;background:transparent;content:\"\"}.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #5f6f36))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #5f6f36))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #5f6f36))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #3b4729);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(var(--aeris-tabs-radius, .4375rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f2f0ec))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}:host([data-variant=pill]) .aeris-tabs__list button:after{display:none}:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #222222)}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a;color:var(--aeris-text, #222222)}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}:host([data-orientation=vertical]) .aeris-tabs__list button:after{top:.5rem;right:-1px;bottom:.5rem;left:auto;width:2px;height:auto}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"] }]
428
440
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], activationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "activationMode", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], panelTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTabIndex", required: false }] }], changed: [{ type: i0.Output, args: ["changed"] }], tabFocused: [{ type: i0.Output, args: ["tabFocused"] }], discoveredPanels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AerisTabPanel), { ...{
429
441
  descendants: true,
430
442
  }, isSignal: true }] }], tabButtons: [{ type: i0.ViewChildren, args: ['tabButton', { isSignal: true }] }], tabList: [{ type: i0.ViewChild, args: ['tabList', { isSignal: true }] }], tabHeader: [{ type: i0.ViewChild, args: ['tabHeader', { isSignal: true }] }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-tabs.mjs","sources":["../../../projects/aeris-ui/tabs/aeris-tabs.ts","../../../projects/aeris-ui/tabs/aeris-ui-core-tabs.ts"],"sourcesContent":["import { NgTemplateOutlet, isPlatformBrowser } from '@angular/common';\nimport {\n PLATFORM_ID,\n DestroyRef,\n afterNextRender,\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\n\nexport type AerisTabsOrientation = 'horizontal' | 'vertical';\nexport type AerisTabsActivationMode = 'automatic' | 'manual';\nexport type AerisTabsVariant = 'line' | 'pill';\nexport type AerisTabsSize = 'sm' | 'md' | 'lg';\nexport type AerisTabsJustify = 'start' | 'center' | 'end' | 'stretch';\n\nexport interface AerisTabChangeEvent {\n readonly originalEvent: Event | null;\n readonly value: string;\n readonly previousValue: string;\n}\n\ninterface AerisTabHeaderContext {\n readonly $implicit: boolean;\n readonly selected: boolean;\n readonly disabled: boolean;\n}\n\n@Directive({ selector: 'ng-template[aerisTabHeader]' })\nexport class AerisTabHeaderTemplate {\n readonly template = inject<TemplateRef<AerisTabHeaderContext>>(TemplateRef);\n}\n\nlet nextPanelId = 0;\n\n@Component({\n selector: 'aeris-tab-panel',\n template: `\n <ng-template #content>\n <ng-content />\n </ng-template>\n `,\n host: {\n '[style.display]': '\"none\"',\n },\n})\nexport class AerisTabPanel {\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly instanceId = nextPanelId++;\n readonly value = input.required<string>();\n readonly label = input.required<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly panelId = `aeris-tab-panel-${this.instanceId}`;\n readonly tabId = `aeris-tab-${this.instanceId}`;\n readonly content = viewChild.required<TemplateRef<unknown>>('content');\n readonly headerTemplate = contentChild(AerisTabHeaderTemplate, {\n descendants: false,\n });\n\n isDirectPanelOf(tabsHost: HTMLElement): boolean {\n const parent = this.element.nativeElement.parentElement;\n return (\n parent?.classList.contains('aeris-tabs__panel-source') === true &&\n parent.parentElement === tabsHost\n );\n }\n}\n\n@Component({\n selector: 'aeris-tabs',\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"aeris-tabs__panel-source\" aria-hidden=\"true\">\n <ng-content />\n </div>\n\n <div #tabHeader class=\"aeris-tabs__header\">\n @if (showScrollControls()) {\n <button\n class=\"aeris-tabs__scroll aeris-tabs__scroll--previous\"\n type=\"button\"\n aria-label=\"Scroll tabs backward\"\n [disabled]=\"!canScrollPrevious()\"\n (click)=\"scrollTabs(-1)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n\n <div\n #tabList\n class=\"aeris-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n (keydown)=\"handleKeydown($event)\"\n (scroll)=\"updateScrollState()\"\n >\n @for (panel of panels(); track panel.value()) {\n <button\n #tabButton\n type=\"button\"\n role=\"tab\"\n [id]=\"panel.tabId\"\n [disabled]=\"panel.disabled()\"\n [attr.aria-selected]=\"panel === activePanel()\"\n [attr.aria-controls]=\"panel.panelId\"\n [attr.tabindex]=\"panel === focusedPanel() ? 0 : -1\"\n (click)=\"select(panel, $event)\"\n (focus)=\"handleTabFocus(panel, $event)\"\n >\n @if (panel.headerTemplate(); as header) {\n <ng-container\n [ngTemplateOutlet]=\"header.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: panel === activePanel(),\n selected: panel === activePanel(),\n disabled: panel.disabled(),\n }\"\n />\n } @else {\n {{ panel.label() }}\n }\n </button>\n }\n </div>\n\n @if (showScrollControls()) {\n <button\n class=\"aeris-tabs__scroll aeris-tabs__scroll--next\"\n type=\"button\"\n aria-label=\"Scroll tabs forward\"\n [disabled]=\"!canScrollNext()\"\n (click)=\"scrollTabs(1)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n </div>\n\n @if (activePanel(); as panel) {\n <div\n class=\"aeris-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"panel.panelId\"\n [attr.aria-labelledby]=\"panel.tabId\"\n [attr.tabindex]=\"panelTabIndex()\"\n >\n <ng-container [ngTemplateOutlet]=\"panel.content()\" />\n </div>\n }\n `,\n styleUrl: './aeris-tabs.scss',\n host: {\n class: 'aeris-tabs',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-justify]': 'justify()',\n '[attr.data-scrollable]': 'scrollable() || null',\n },\n})\nexport class AerisTabs {\n private readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly destroyRef = inject(DestroyRef);\n readonly value = model('');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly orientation = input<AerisTabsOrientation>('horizontal');\n readonly activationMode = input<AerisTabsActivationMode>('automatic');\n readonly variant = input<AerisTabsVariant>('line');\n readonly size = input<AerisTabsSize>('md');\n readonly justify = input<AerisTabsJustify>('start');\n readonly scrollable = input(true, { transform: booleanAttribute });\n readonly panelTabIndex = input<0 | -1>(0);\n\n readonly changed = output<AerisTabChangeEvent>();\n readonly tabFocused = output<string>();\n\n private readonly discoveredPanels = contentChildren(AerisTabPanel, {\n descendants: true,\n });\n protected readonly panels = computed(() =>\n this.discoveredPanels().filter((panel) => panel.isDirectPanelOf(this.hostElement)),\n );\n protected readonly tabButtons = viewChildren<ElementRef<HTMLButtonElement>>('tabButton');\n private readonly tabList = viewChild<ElementRef<HTMLElement>>('tabList');\n private readonly tabHeader = viewChild<ElementRef<HTMLElement>>('tabHeader');\n private readonly focusedValue = signal('');\n private readonly hasOverflow = signal(false);\n protected readonly canScrollPrevious = signal(false);\n protected readonly canScrollNext = signal(false);\n protected readonly showScrollControls = computed(\n () => this.scrollable() && this.orientation() === 'horizontal' && this.hasOverflow(),\n );\n protected readonly activePanel = computed(\n () =>\n this.panels().find((panel) => !panel.disabled() && panel.value() === this.value()) ??\n this.panels().find((panel) => !panel.disabled()),\n );\n protected readonly focusedPanel = computed(\n () =>\n this.panels().find((panel) => !panel.disabled() && panel.value() === this.focusedValue()) ??\n this.activePanel(),\n );\n\n constructor() {\n afterNextRender(() => {\n this.updateScrollState();\n this.observeTabSizing();\n });\n\n effect(() => {\n const panelSignature = this.panels()\n .map((panel) => `${panel.value()}:${panel.label()}:${panel.disabled()}`)\n .join('|');\n if (!panelSignature) return;\n queueMicrotask(() => this.updateScrollState());\n });\n }\n\n select(valueOrPanel: string | AerisTabPanel, originalEvent: Event | null = null): void {\n const panel =\n typeof valueOrPanel === 'string'\n ? this.panels().find((candidate) => candidate.value() === valueOrPanel)\n : valueOrPanel;\n if (!panel || panel.disabled()) return;\n const previousValue = this.activePanel()?.value() ?? '';\n this.focusedValue.set(panel.value());\n if (previousValue === panel.value() && this.value() === panel.value()) return;\n this.value.set(panel.value());\n this.changed.emit({\n originalEvent,\n value: panel.value(),\n previousValue,\n });\n }\n\n focusTab(value: string, options?: FocusOptions): void {\n const panelIndex = this.panels().findIndex(\n (panel) => !panel.disabled() && panel.value() === value,\n );\n if (panelIndex < 0) return;\n this.focusedValue.set(value);\n this.tabButtons()[panelIndex]?.nativeElement.focus(options);\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n if (this.activationMode() === 'manual' && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n const panel = this.focusedPanel();\n if (panel) this.select(panel, event);\n return;\n }\n\n const direction = this.keyDirection(event.key);\n if (direction === undefined) return;\n event.preventDefault();\n const enabledPanels = this.panels().filter((panel) => !panel.disabled());\n if (enabledPanels.length === 0) return;\n\n const currentPanel = this.focusedPanel() ?? this.activePanel();\n const currentIndex = Math.max(enabledPanels.indexOf(currentPanel!), 0);\n const nextIndex =\n direction === 'first'\n ? 0\n : direction === 'last'\n ? enabledPanels.length - 1\n : (currentIndex + direction + enabledPanels.length) % enabledPanels.length;\n const nextPanel = enabledPanels[nextIndex];\n if (!nextPanel) return;\n\n this.focusedValue.set(nextPanel.value());\n if (this.activationMode() === 'automatic') this.select(nextPanel, event);\n this.focusTab(nextPanel.value());\n this.scrollPanelIntoView(nextPanel);\n }\n\n protected handleTabFocus(panel: AerisTabPanel, event: FocusEvent): void {\n this.focusedValue.set(panel.value());\n this.tabFocused.emit(panel.value());\n if (this.activationMode() === 'automatic' && panel !== this.activePanel()) {\n this.select(panel, event);\n }\n }\n\n protected scrollTabs(direction: -1 | 1): void {\n const list = this.tabList()?.nativeElement;\n if (!list) return;\n const left = direction * Math.max(list.clientWidth * 0.75, 160);\n if (typeof list.scrollBy === 'function') {\n list.scrollBy({ left, behavior: 'smooth' });\n } else {\n list.scrollLeft += left;\n }\n queueMicrotask(() => this.updateScrollState());\n }\n\n protected updateScrollState(): void {\n const list = this.tabList()?.nativeElement;\n const header = this.tabHeader()?.nativeElement;\n if (!list || !header) return;\n\n const overflow =\n this.scrollable() &&\n this.orientation() === 'horizontal' &&\n list.scrollWidth > header.clientWidth + 1;\n this.hasOverflow.set(overflow);\n\n if (!overflow) {\n this.canScrollPrevious.set(false);\n this.canScrollNext.set(false);\n return;\n }\n\n this.canScrollPrevious.set(list.scrollLeft > 1);\n this.canScrollNext.set(list.scrollLeft + list.clientWidth < list.scrollWidth - 1);\n }\n\n private observeTabSizing(): void {\n if (!this.isBrowser || typeof globalThis.ResizeObserver !== 'function') return;\n\n const header = this.tabHeader()?.nativeElement;\n const list = this.tabList()?.nativeElement;\n if (!header || !list) return;\n\n const observer = new ResizeObserver(() => this.updateScrollState());\n observer.observe(header);\n observer.observe(list);\n for (const button of this.tabButtons()) observer.observe(button.nativeElement);\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private scrollPanelIntoView(panel: AerisTabPanel): void {\n const panelIndex = this.panels().indexOf(panel);\n const tab = this.tabButtons()[panelIndex]?.nativeElement;\n if (typeof tab?.scrollIntoView === 'function') {\n tab.scrollIntoView({\n behavior: this.isBrowser ? 'smooth' : 'auto',\n block: 'nearest',\n inline: 'nearest',\n });\n }\n queueMicrotask(() => this.updateScrollState());\n }\n\n private keyDirection(key: string): -1 | 1 | 'first' | 'last' | undefined {\n if (key === 'Home') return 'first';\n if (key === 'End') return 'last';\n if (\n (this.orientation() === 'horizontal' && key === 'ArrowLeft') ||\n (this.orientation() === 'vertical' && key === 'ArrowUp')\n ) {\n return -1;\n }\n if (\n (this.orientation() === 'horizontal' && key === 'ArrowRight') ||\n (this.orientation() === 'vertical' && key === 'ArrowDown')\n ) {\n return 1;\n }\n return undefined;\n }\n}\n\nexport const AerisTabsModule = [AerisTabs, AerisTabPanel, AerisTabHeaderTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MA0Ca,sBAAsB,CAAA;AACxB,IAAA,QAAQ,GAAG,MAAM,CAAqC,WAAW,CAAC;uGADhE,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,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AI2E,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACzB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACP,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAkLtE,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,aAAa,EAAE,sBAAsB;;AC5XhF;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-tabs.mjs","sources":["../../../projects/aeris-ui/tabs/aeris-tabs.ts","../../../projects/aeris-ui/tabs/aeris-ui-core-tabs.ts"],"sourcesContent":["import { NgTemplateOutlet, isPlatformBrowser } from '@angular/common';\nimport {\n PLATFORM_ID,\n DestroyRef,\n afterNextRender,\n Component,\n Directive,\n ElementRef,\n InjectionToken,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\n\nexport type AerisTabsOrientation = 'horizontal' | 'vertical';\nexport type AerisTabsActivationMode = 'automatic' | 'manual';\nexport type AerisTabsVariant = 'line' | 'pill';\nexport type AerisTabsSize = 'sm' | 'md' | 'lg';\nexport type AerisTabsJustify = 'start' | 'center' | 'end' | 'stretch';\n\nexport interface AerisTabChangeEvent {\n readonly originalEvent: Event | null;\n readonly value: string;\n readonly previousValue: string;\n}\n\ninterface AerisTabHeaderContext {\n readonly $implicit: boolean;\n readonly selected: boolean;\n readonly disabled: boolean;\n}\n\ninterface AerisTabsOwner {\n readonly host: HTMLElement;\n}\n\nconst AERIS_TABS_OWNER = new InjectionToken<AerisTabsOwner>('AerisTabsOwner');\n\n@Directive({ selector: 'ng-template[aerisTabHeader]' })\nexport class AerisTabHeaderTemplate {\n readonly template = inject<TemplateRef<AerisTabHeaderContext>>(TemplateRef);\n}\n\nlet nextPanelId = 0;\n\n@Component({\n selector: 'aeris-tab-panel',\n template: `\n <ng-template #content>\n <ng-content />\n </ng-template>\n `,\n host: {\n '[style.display]': '\"none\"',\n },\n})\nexport class AerisTabPanel {\n private readonly owner = inject(AERIS_TABS_OWNER, { optional: true });\n private readonly instanceId = nextPanelId++;\n readonly value = input.required<string>();\n readonly label = input.required<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly panelId = `aeris-tab-panel-${this.instanceId}`;\n readonly tabId = `aeris-tab-${this.instanceId}`;\n readonly content = viewChild.required<TemplateRef<unknown>>('content');\n readonly headerTemplate = contentChild(AerisTabHeaderTemplate, {\n descendants: false,\n });\n\n isDirectPanelOf(tabsHost: HTMLElement): boolean {\n return this.owner?.host === tabsHost;\n }\n}\n\n@Component({\n selector: 'aeris-tabs',\n providers: [\n {\n provide: AERIS_TABS_OWNER,\n useFactory: () => ({\n host: inject<ElementRef<HTMLElement>>(ElementRef).nativeElement,\n }),\n },\n ],\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"aeris-tabs__panel-source\" aria-hidden=\"true\">\n <ng-content />\n </div>\n\n <div #tabHeader class=\"aeris-tabs__header\">\n @if (showScrollControls()) {\n <button\n class=\"aeris-tabs__scroll aeris-tabs__scroll--previous\"\n type=\"button\"\n aria-label=\"Scroll tabs backward\"\n [disabled]=\"!canScrollPrevious()\"\n (click)=\"scrollTabs(-1)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n\n <div\n #tabList\n class=\"aeris-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n (keydown)=\"handleKeydown($event)\"\n (scroll)=\"updateScrollState()\"\n >\n @for (panel of panels(); track panel.value()) {\n <button\n #tabButton\n type=\"button\"\n role=\"tab\"\n [id]=\"panel.tabId\"\n [disabled]=\"panel.disabled()\"\n [attr.aria-selected]=\"panel === activePanel()\"\n [attr.aria-controls]=\"panel.panelId\"\n [attr.tabindex]=\"panel === focusedPanel() ? 0 : -1\"\n (click)=\"select(panel, $event)\"\n (focus)=\"handleTabFocus(panel, $event)\"\n >\n @if (panel.headerTemplate(); as header) {\n <ng-container\n [ngTemplateOutlet]=\"header.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: panel === activePanel(),\n selected: panel === activePanel(),\n disabled: panel.disabled(),\n }\"\n />\n } @else {\n {{ panel.label() }}\n }\n </button>\n }\n </div>\n\n @if (showScrollControls()) {\n <button\n class=\"aeris-tabs__scroll aeris-tabs__scroll--next\"\n type=\"button\"\n aria-label=\"Scroll tabs forward\"\n [disabled]=\"!canScrollNext()\"\n (click)=\"scrollTabs(1)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n </div>\n\n @if (activePanel(); as panel) {\n <div\n class=\"aeris-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"panel.panelId\"\n [attr.aria-labelledby]=\"panel.tabId\"\n [attr.tabindex]=\"panelTabIndex()\"\n >\n <ng-container [ngTemplateOutlet]=\"panel.content()\" />\n </div>\n }\n `,\n styleUrl: './aeris-tabs.scss',\n host: {\n class: 'aeris-tabs',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-justify]': 'justify()',\n '[attr.data-scrollable]': 'scrollable() || null',\n },\n})\nexport class AerisTabs {\n private readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly destroyRef = inject(DestroyRef);\n readonly value = model('');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly orientation = input<AerisTabsOrientation>('horizontal');\n readonly activationMode = input<AerisTabsActivationMode>('automatic');\n readonly variant = input<AerisTabsVariant>('line');\n readonly size = input<AerisTabsSize>('md');\n readonly justify = input<AerisTabsJustify>('start');\n readonly scrollable = input(true, { transform: booleanAttribute });\n readonly panelTabIndex = input<0 | -1>(0);\n\n readonly changed = output<AerisTabChangeEvent>();\n readonly tabFocused = output<string>();\n\n private readonly discoveredPanels = contentChildren(AerisTabPanel, {\n descendants: true,\n });\n protected readonly panels = computed(() =>\n this.discoveredPanels().filter((panel) => panel.isDirectPanelOf(this.hostElement)),\n );\n protected readonly tabButtons = viewChildren<ElementRef<HTMLButtonElement>>('tabButton');\n private readonly tabList = viewChild<ElementRef<HTMLElement>>('tabList');\n private readonly tabHeader = viewChild<ElementRef<HTMLElement>>('tabHeader');\n private readonly focusedValue = signal('');\n private readonly hasOverflow = signal(false);\n protected readonly canScrollPrevious = signal(false);\n protected readonly canScrollNext = signal(false);\n protected readonly showScrollControls = computed(\n () => this.scrollable() && this.orientation() === 'horizontal' && this.hasOverflow(),\n );\n protected readonly activePanel = computed(\n () =>\n this.panels().find((panel) => !panel.disabled() && panel.value() === this.value()) ??\n this.panels().find((panel) => !panel.disabled()),\n );\n protected readonly focusedPanel = computed(\n () =>\n this.panels().find((panel) => !panel.disabled() && panel.value() === this.focusedValue()) ??\n this.activePanel(),\n );\n\n constructor() {\n afterNextRender(() => {\n this.updateScrollState();\n this.observeTabSizing();\n });\n\n effect(() => {\n const panelCount = this.panels().length;\n this.tabButtons();\n if (panelCount === 0) return;\n queueMicrotask(() => this.updateScrollState());\n });\n }\n\n select(valueOrPanel: string | AerisTabPanel, originalEvent: Event | null = null): void {\n const panel =\n typeof valueOrPanel === 'string'\n ? this.panels().find((candidate) => candidate.value() === valueOrPanel)\n : valueOrPanel;\n if (!panel || panel.disabled()) return;\n const previousValue = this.activePanel()?.value() ?? '';\n this.focusedValue.set(panel.value());\n if (previousValue === panel.value() && this.value() === panel.value()) return;\n this.value.set(panel.value());\n this.changed.emit({\n originalEvent,\n value: panel.value(),\n previousValue,\n });\n }\n\n focusTab(value: string, options?: FocusOptions): void {\n const panelIndex = this.panels().findIndex(\n (panel) => !panel.disabled() && panel.value() === value,\n );\n if (panelIndex < 0) return;\n this.focusedValue.set(value);\n this.tabButtons()[panelIndex]?.nativeElement.focus(options);\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n if (this.activationMode() === 'manual' && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n const panel = this.focusedPanel();\n if (panel) this.select(panel, event);\n return;\n }\n\n const direction = this.keyDirection(event.key);\n if (direction === undefined) return;\n event.preventDefault();\n const enabledPanels = this.panels().filter((panel) => !panel.disabled());\n if (enabledPanels.length === 0) return;\n\n const currentPanel = this.focusedPanel() ?? this.activePanel();\n const currentIndex = Math.max(enabledPanels.indexOf(currentPanel!), 0);\n const nextIndex =\n direction === 'first'\n ? 0\n : direction === 'last'\n ? enabledPanels.length - 1\n : (currentIndex + direction + enabledPanels.length) % enabledPanels.length;\n const nextPanel = enabledPanels[nextIndex];\n if (!nextPanel) return;\n\n this.focusedValue.set(nextPanel.value());\n if (this.activationMode() === 'automatic') this.select(nextPanel, event);\n this.focusTab(nextPanel.value());\n this.scrollPanelIntoView(nextPanel);\n }\n\n protected handleTabFocus(panel: AerisTabPanel, event: FocusEvent): void {\n this.focusedValue.set(panel.value());\n this.tabFocused.emit(panel.value());\n if (this.activationMode() === 'automatic' && panel !== this.activePanel()) {\n this.select(panel, event);\n }\n }\n\n protected scrollTabs(direction: -1 | 1): void {\n const list = this.tabList()?.nativeElement;\n if (!list) return;\n const left = direction * Math.max(list.clientWidth * 0.75, 160);\n if (typeof list.scrollBy === 'function') {\n list.scrollBy({ left, behavior: 'smooth' });\n } else {\n list.scrollLeft += left;\n }\n queueMicrotask(() => this.updateScrollState());\n }\n\n protected updateScrollState(): void {\n const list = this.tabList()?.nativeElement;\n const header = this.tabHeader()?.nativeElement;\n if (!list || !header) return;\n\n const overflow =\n this.scrollable() &&\n this.orientation() === 'horizontal' &&\n list.scrollWidth > header.clientWidth + 1;\n this.hasOverflow.set(overflow);\n\n if (!overflow) {\n this.canScrollPrevious.set(false);\n this.canScrollNext.set(false);\n return;\n }\n\n this.canScrollPrevious.set(list.scrollLeft > 1);\n this.canScrollNext.set(list.scrollLeft + list.clientWidth < list.scrollWidth - 1);\n }\n\n private observeTabSizing(): void {\n if (!this.isBrowser || typeof globalThis.ResizeObserver !== 'function') return;\n\n const header = this.tabHeader()?.nativeElement;\n const list = this.tabList()?.nativeElement;\n if (!header || !list) return;\n\n const observer = new ResizeObserver(() => this.updateScrollState());\n observer.observe(header);\n observer.observe(list);\n for (const button of this.tabButtons()) observer.observe(button.nativeElement);\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n\n private scrollPanelIntoView(panel: AerisTabPanel): void {\n const panelIndex = this.panels().indexOf(panel);\n const tab = this.tabButtons()[panelIndex]?.nativeElement;\n if (typeof tab?.scrollIntoView === 'function') {\n tab.scrollIntoView({\n behavior: this.isBrowser ? 'smooth' : 'auto',\n block: 'nearest',\n inline: 'nearest',\n });\n }\n queueMicrotask(() => this.updateScrollState());\n }\n\n private keyDirection(key: string): -1 | 1 | 'first' | 'last' | undefined {\n if (key === 'Home') return 'first';\n if (key === 'End') return 'last';\n if (\n (this.orientation() === 'horizontal' && key === 'ArrowLeft') ||\n (this.orientation() === 'vertical' && key === 'ArrowUp')\n ) {\n return -1;\n }\n if (\n (this.orientation() === 'horizontal' && key === 'ArrowRight') ||\n (this.orientation() === 'vertical' && key === 'ArrowDown')\n ) {\n return 1;\n }\n return undefined;\n }\n}\n\nexport const AerisTabsModule = [AerisTabs, AerisTabPanel, AerisTabHeaderTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AA8CA,MAAM,gBAAgB,GAAG,IAAI,cAAc,CAAiB,gBAAgB,CAAC;MAGhE,sBAAsB,CAAA;AACxB,IAAA,QAAQ,GAAG,MAAM,CAAqC,WAAW,C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AAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,aAAa,CAAA,EAAA,EAAA,GAAE;AACjE,4BAAA,WAAW,EAAE,IAAI;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAI2E,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACzB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACP,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAiLtE,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,aAAa,EAAE,sBAAsB;;ACtYhF;;AAEG;;;;"}
@@ -11,10 +11,10 @@ class AerisTextareaDirective {
11
11
  ...(ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []));
12
12
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
13
13
  fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.6", type: AerisTextareaDirective, isStandalone: true, selector: "textarea[aerisTextarea]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", 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 } }, host: { properties: { "class.aeris-textarea--xs": "size() === \"xs\"", "class.aeris-textarea--sm": "size() === \"sm\"", "class.aeris-textarea--md": "size() === \"md\"", "class.aeris-textarea--lg": "size() === \"lg\"", "class.aeris-textarea--filled": "appearance() === \"filled\"", "class.aeris-textarea--invalid": "invalid()", "class.aeris-textarea--fluid": "fluid()", "attr.data-resize": "resize()", "attr.aria-invalid": "invalid() || null" }, classAttribute: "aeris-textarea" }, ngImport: i0 });
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTextareaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: AerisTextareaDirective, isStandalone: true, selector: "textarea[aerisTextarea]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", 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 } }, host: { properties: { "class.aeris-textarea--xs": "size() === \"xs\"", "class.aeris-textarea--sm": "size() === \"sm\"", "class.aeris-textarea--md": "size() === \"md\"", "class.aeris-textarea--lg": "size() === \"lg\"", "class.aeris-textarea--filled": "appearance() === \"filled\"", "class.aeris-textarea--invalid": "invalid()", "class.aeris-textarea--fluid": "fluid()", "attr.data-resize": "resize()", "attr.aria-invalid": "invalid() || null" }, classAttribute: "aeris-textarea" }, ngImport: i0 });
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaDirective, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTextareaDirective, decorators: [{
18
18
  type: Directive,
19
19
  args: [{
20
20
  selector: 'textarea[aerisTextarea]',
@@ -177,8 +177,8 @@ class AerisTextareaComponent {
177
177
  queueMicrotask(() => this.resizeToContent());
178
178
  }
179
179
  }
180
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
181
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisTextareaComponent, isStandalone: true, selector: "aeris-textarea", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", 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 }, autoResize: { classPropertyName: "autoResize", publicName: "autoResize", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, countLive: { classPropertyName: "countLive", publicName: "countLive", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", focused: "focused", blurred: "blurred", scrolled: "scrolled", touch: "touch", cleared: "cleared" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
180
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
181
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AerisTextareaComponent, isStandalone: true, selector: "aeris-textarea", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", 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 }, autoResize: { classPropertyName: "autoResize", publicName: "autoResize", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, countLive: { classPropertyName: "countLive", publicName: "countLive", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", focused: "focused", blurred: "blurred", scrolled: "scrolled", touch: "touch", cleared: "cleared" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
182
182
  {
183
183
  provide: NG_VALUE_ACCESSOR,
184
184
  useExisting: forwardRef(() => AerisTextareaComponent),
@@ -251,9 +251,9 @@ class AerisTextareaComponent {
251
251
  </span>
252
252
  }
253
253
  </span>
254
- `, isInline: true, styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-textarea-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-textarea-component__clear 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-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #555555);font-size:.75rem;line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: AerisTextareaDirective, selector: "textarea[aerisTextarea]", inputs: ["size", "appearance", "resize", "invalid", "fluid"] }] });
254
+ `, isInline: true, styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-textarea-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-textarea-component__clear 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-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #555555);font-size:.75rem;line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: AerisTextareaDirective, selector: "textarea[aerisTextarea]", inputs: ["size", "appearance", "resize", "invalid", "fluid"] }] });
255
255
  }
256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaComponent, decorators: [{
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AerisTextareaComponent, decorators: [{
257
257
  type: Component,
258
258
  args: [{ selector: 'aeris-textarea', imports: [AerisTextareaDirective], template: `
259
259
  <span
@@ -330,7 +330,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
330
330
  },
331
331
  ], host: {
332
332
  '[attr.data-fluid]': 'fluid() || null',
333
- }, styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-textarea-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-textarea-component__clear 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-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #555555);font-size:.75rem;line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}\n"] }]
333
+ }, styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-textarea-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:1px}.aeris-textarea-component__clear 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-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #555555);font-size:.75rem;line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}\n"] }]
334
334
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", 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 }] }], autoResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoResize", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", required: false }] }], countLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "countLive", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], scrolled: [{ type: i0.Output, args: ["scrolled"] }], touch: [{ type: i0.Output, args: ["touch"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], textarea: [{ type: i0.ViewChild, args: ['textarea', { isSignal: true }] }] } });
335
335
  const AerisTextarea = [
336
336
  AerisTextareaDirective,
@@ -166,29 +166,29 @@ const AERIS_MONOCHROME_DARK_STATUS_TONES = {
166
166
  const AERIS_THEME_PRESETS = {
167
167
  earth: {
168
168
  palette: {
169
- surface: '#e8dfe0',
170
- primary: '#879566',
171
- secondary: '#80939b',
172
- accent: '#dab692',
173
- contrast: '#8f5b34',
169
+ surface: '#f6f3e8',
170
+ primary: '#5f6f36',
171
+ secondary: '#b75e26',
172
+ accent: '#d79a32',
173
+ contrast: '#28351a',
174
174
  },
175
175
  },
176
176
  coastal: {
177
177
  palette: {
178
- surface: '#dfe8ee',
179
- primary: '#7196b4',
180
- secondary: '#6d9992',
181
- accent: '#d8ad70',
182
- contrast: '#31536a',
178
+ surface: '#eef3f5',
179
+ primary: '#357a9e',
180
+ secondary: '#347b73',
181
+ accent: '#d46f58',
182
+ contrast: '#163e54',
183
183
  },
184
184
  },
185
185
  orchid: {
186
186
  palette: {
187
- surface: '#e9e1ec',
188
- primary: '#9579b2',
189
- secondary: '#b68194',
190
- accent: '#d1a570',
191
- contrast: '#5c4b6b',
187
+ surface: '#f3eef5',
188
+ primary: '#7654ad',
189
+ secondary: '#a94f79',
190
+ accent: '#d59a36',
191
+ contrast: '#3a2949',
192
192
  },
193
193
  },
194
194
  monochrome: {
@@ -209,7 +209,7 @@ const AERIS_THEME_PRESETS = {
209
209
  text: '#111111',
210
210
  text2: '#242424',
211
211
  text3: '#454545',
212
- border: '#767676',
212
+ border: '#efefef',
213
213
  borderStrong: '#111111',
214
214
  focus: '#111111',
215
215
  shadowXs: '0 1px 2px rgb(0 0 0 / 10%)',
@@ -231,7 +231,7 @@ const AERIS_THEME_PRESETS = {
231
231
  text: '#f8f8f8',
232
232
  text2: '#ededed',
233
233
  text3: '#d0d0d0',
234
- border: '#a3a3a3',
234
+ border: '#242424',
235
235
  borderStrong: '#ffffff',
236
236
  focus: '#ffffff',
237
237
  shadowXs: '0 1px 2px rgb(0 0 0 / 48%)',
@@ -594,31 +594,37 @@ function resolveAerisFoundation(theme, mode) {
594
594
  const borderSeed = theme.palette.secondary;
595
595
  if (mode === 'light') {
596
596
  const surface2 = scheme.surface2 ?? mixAerisColor('#f7f6f2', surfaceSeed, 0.24);
597
+ const surface = scheme.surface ?? '#ffffff';
598
+ const border = scheme.border ??
599
+ mixAerisColor(surface, mixAerisColor('#5f625d', borderSeed, 0.42), 0.12);
597
600
  return {
598
601
  page: scheme.page ?? mixAerisColor('#faf9f7', surfaceSeed, 0.18),
599
- surface: scheme.surface ?? '#ffffff',
602
+ surface,
600
603
  surface2,
601
604
  surface3: scheme.surface3 ?? mixAerisColor('#f1f0eb', surfaceSeed, 0.42),
602
605
  interactiveHover: scheme.interactiveHover ?? mixAerisColor(surface2, theme.palette.primary, 0.1),
603
606
  text: scheme.text ?? LIGHT_TEXT,
604
607
  text2: scheme.text2 ?? LIGHT_TEXT_SECONDARY,
605
608
  text3: scheme.text3 ?? LIGHT_TEXT_TERTIARY,
606
- border: scheme.border ?? mixAerisColor('#5f625d', borderSeed, 0.42),
609
+ border,
607
610
  borderStrong: scheme.borderStrong ?? mixAerisColor('#444842', borderSeed, 0.3),
608
611
  focus: scheme.focus ?? mixAerisColor('#1d2119', theme.palette.primary, 0.5),
609
612
  };
610
613
  }
611
614
  const surface2 = scheme.surface2 ?? mixAerisColor('#171b22', surfaceSeed, 0.008);
615
+ const surface = scheme.surface ?? mixAerisColor('#101318', surfaceSeed, 0.006);
616
+ const border = scheme.border ??
617
+ mixAerisColor(surface, mixAerisColor('#70746d', borderSeed, 0.35), 0.16);
612
618
  return {
613
619
  page: scheme.page ?? mixAerisColor('#090b0f', surfaceSeed, 0.004),
614
- surface: scheme.surface ?? mixAerisColor('#101318', surfaceSeed, 0.006),
620
+ surface,
615
621
  surface2,
616
622
  surface3: scheme.surface3 ?? mixAerisColor('#202632', surfaceSeed, 0.01),
617
623
  interactiveHover: scheme.interactiveHover ?? mixAerisColor(surface2, theme.palette.primary, 0.12),
618
624
  text: scheme.text ?? DARK_TEXT,
619
625
  text2: scheme.text2 ?? DARK_TEXT_SECONDARY,
620
626
  text3: scheme.text3 ?? DARK_TEXT_TERTIARY,
621
- border: scheme.border ?? mixAerisColor('#70746d', borderSeed, 0.35),
627
+ border,
622
628
  borderStrong: scheme.borderStrong ?? mixAerisColor('#8d9289', borderSeed, 0.3),
623
629
  focus: scheme.focus ?? mixAerisColor('#ffffff', theme.palette.primary, 0.56),
624
630
  };
@@ -660,11 +666,11 @@ function resolveAerisSemanticTones(theme, mode) {
660
666
  const overrides = scheme.tones?.[name] ?? {};
661
667
  const base = overrides.base ?? defaultBase(theme, mode, name);
662
668
  const boundary = overrides.boundary ?? base;
663
- const hover = overrides.hover ?? deriveState(base, mode, stateMix(mode, 'hover'));
664
- const active = overrides.active ?? deriveState(base, mode, stateMix(mode, 'active'));
669
+ const onBase = overrides.onBase ?? contrastingForeground(base);
670
+ const hover = overrides.hover ?? deriveState(base, mode, stateMix(mode, 'hover'), onBase);
671
+ const active = overrides.active ?? deriveState(base, mode, stateMix(mode, 'active'), onBase);
665
672
  const soft = overrides.soft ?? mixAerisColor(surface, base, mode === 'dark' ? 0.2 : 0.14);
666
673
  const text = overrides.text ?? ensureTextContrast(base, surface, mode);
667
- const onBase = overrides.onBase ?? contrastingForeground(base);
668
674
  const onHover = overrides.onHover ?? contrastingForeground(hover, onBase);
669
675
  const onActive = overrides.onActive ?? contrastingForeground(active, onHover);
670
676
  const onSoft = overrides.onSoft ?? ensureTextContrast(text, soft, mode);
@@ -703,8 +709,31 @@ function resolveSurface(theme, scheme, mode) {
703
709
  ? LIGHT_FOREGROUND
704
710
  : mixAerisColor('#1f221c', theme.palette.surface, 0.02);
705
711
  }
706
- function deriveState(base, mode, amount) {
707
- return mixAerisColor(base, mode === 'light' ? DARK_FOREGROUND : LIGHT_FOREGROUND, amount);
712
+ function deriveState(base, mode, amount, foreground) {
713
+ const state = mixAerisColor(base, mode === 'light' ? DARK_FOREGROUND : LIGHT_FOREGROUND, amount);
714
+ const stateColor = parseAerisColor(state);
715
+ const foregroundColor = parseAerisColor(foreground);
716
+ if (mode === 'dark' ||
717
+ !stateColor ||
718
+ !foregroundColor ||
719
+ aerisRgbContrastRatio(stateColor, foregroundColor) >= REQUIRED_TEXT_CONTRAST) {
720
+ return state;
721
+ }
722
+ const dark = parseAerisColor(DARK_FOREGROUND);
723
+ const light = parseAerisColor(LIGHT_FOREGROUND);
724
+ const target = aerisRgbContrastRatio(foregroundColor, light) >
725
+ aerisRgbContrastRatio(foregroundColor, dark)
726
+ ? LIGHT_FOREGROUND
727
+ : DARK_FOREGROUND;
728
+ for (let mix = amount; mix <= 1; mix += 0.01) {
729
+ const candidate = mixAerisColor(base, target, mix);
730
+ const candidateColor = parseAerisColor(candidate);
731
+ if (candidateColor &&
732
+ aerisRgbContrastRatio(candidateColor, foregroundColor) >= REQUIRED_TEXT_CONTRAST) {
733
+ return candidate;
734
+ }
735
+ }
736
+ return target;
708
737
  }
709
738
  function stateMix(mode, state) {
710
739
  if (mode === 'light')
@@ -842,38 +871,27 @@ function auditAerisThemeContrast(theme, mode) {
842
871
  requiredRatio: 3,
843
872
  guidance: 'Strengthen the focus color against the page background.',
844
873
  }),
845
- createCheck({
846
- id: 'border-surface',
847
- label: 'Standard border on surface',
848
- description: 'Default structural boundary against a primary surface.',
849
- category: 'boundary',
850
- kind: 'non-text',
851
- foreground: scheme.border,
852
- background: scheme.surface,
853
- requiredRatio: 3,
854
- guidance: 'Use the stronger border token when the boundary identifies a control.',
855
- }),
856
874
  createCheck({
857
875
  id: 'border-strong-surface',
858
- label: 'Control border on surface',
859
- description: 'Strong border used to identify interactive controls.',
876
+ label: 'Emphasized boundary on surface',
877
+ description: 'Optional strong boundary against a primary surface.',
860
878
  category: 'boundary',
861
879
  kind: 'non-text',
862
880
  foreground: scheme.borderStrong,
863
881
  background: scheme.surface,
864
882
  requiredRatio: 3,
865
- guidance: 'Increase the strong border contrast against the primary surface.',
883
+ guidance: 'Increase the emphasized boundary contrast against the primary surface.',
866
884
  }),
867
885
  createCheck({
868
886
  id: 'border-strong-raised',
869
- label: 'Control border on raised surface',
870
- description: 'Strong border used on the secondary surface layer.',
887
+ label: 'Emphasized boundary on raised surface',
888
+ description: 'Optional strong boundary used on the secondary surface layer.',
871
889
  category: 'boundary',
872
890
  kind: 'non-text',
873
891
  foreground: scheme.borderStrong,
874
892
  background: scheme.surface2,
875
893
  requiredRatio: 3,
876
- guidance: 'Increase the strong border contrast against the raised surface.',
894
+ guidance: 'Increase the emphasized boundary contrast against the raised surface.',
877
895
  }),
878
896
  ...TONE_NAMES.map((name) => createCheck({
879
897
  id: `${name}-boundary`,