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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
  3. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  4. package/fesm2022/aeris-ui-core-auto-complete.mjs +21 -17
  5. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  7. package/fesm2022/aeris-ui-core-avatar.mjs +9 -9
  8. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  9. package/fesm2022/aeris-ui-core-badge.mjs +10 -10
  10. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  11. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  12. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  13. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  14. package/fesm2022/aeris-ui-core-button.mjs +6 -6
  15. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  16. package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
  17. package/fesm2022/aeris-ui-core-cascade-select.mjs +15 -11
  18. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-chart.mjs +3 -3
  20. package/fesm2022/aeris-ui-core-checkbox.mjs +3 -3
  21. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  22. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  23. package/fesm2022/aeris-ui-core-color-picker.mjs +9 -5
  24. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  25. package/fesm2022/aeris-ui-core-compare.mjs +12 -12
  26. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +18 -18
  27. package/fesm2022/aeris-ui-core-confirm-popup.mjs +19 -19
  28. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  29. package/fesm2022/aeris-ui-core-context-menu.mjs +15 -8
  30. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  31. package/fesm2022/aeris-ui-core-date-picker.mjs +9 -5
  32. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  33. package/fesm2022/aeris-ui-core-dialog.mjs +17 -17
  34. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  36. package/fesm2022/aeris-ui-core-drawer.mjs +16 -16
  37. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +6 -6
  39. package/fesm2022/aeris-ui-core-editor.mjs +3 -3
  40. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  41. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  42. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  43. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  44. package/fesm2022/aeris-ui-core-form-field.mjs +181 -0
  45. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  46. package/fesm2022/aeris-ui-core-galleria.mjs +27 -27
  47. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  48. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  49. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  50. package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
  51. package/fesm2022/aeris-ui-core-input-mask.mjs +3 -3
  52. package/fesm2022/aeris-ui-core-input-number.mjs +3 -3
  53. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  54. package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
  55. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  56. package/fesm2022/aeris-ui-core-mega-menu.mjs +15 -7
  57. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-menu.mjs +38 -18
  59. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-menubar.mjs +135 -15
  61. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-message.mjs +9 -9
  63. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  64. package/fesm2022/aeris-ui-core-multi-select.mjs +24 -20
  65. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  67. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  68. package/fesm2022/aeris-ui-core-paginator.mjs +9 -5
  69. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  71. package/fesm2022/aeris-ui-core-password.mjs +18 -14
  72. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  74. package/fesm2022/aeris-ui-core-popover.mjs +30 -19
  75. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  77. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  78. package/fesm2022/aeris-ui-core-radio-button.mjs +3 -3
  79. package/fesm2022/aeris-ui-core-rating.mjs +3 -3
  80. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  81. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  82. package/fesm2022/aeris-ui-core-select.mjs +42 -38
  83. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  85. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  86. package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
  87. package/fesm2022/aeris-ui-core-split-button.mjs +9 -5
  88. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  90. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  91. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  92. package/fesm2022/aeris-ui-core-table.mjs +19 -19
  93. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-tabs.mjs +76 -25
  95. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
  97. package/fesm2022/aeris-ui-core-theming.mjs +3 -3
  98. package/fesm2022/aeris-ui-core-tiered-menu.mjs +29 -10
  99. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  101. package/fesm2022/aeris-ui-core-toast.mjs +12 -12
  102. package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
  103. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  104. package/fesm2022/aeris-ui-core-tooltip.mjs +29 -30
  105. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-tree-select.mjs +24 -20
  107. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-tree-table.mjs +16 -16
  109. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-tree.mjs +12 -12
  111. package/fesm2022/aeris-ui-core.mjs +165 -42
  112. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  113. package/package.json +6 -2
  114. package/styles/aeris.css +7 -0
  115. package/types/aeris-ui-core-auto-complete.d.ts +3 -2
  116. package/types/aeris-ui-core-cascade-select.d.ts +3 -2
  117. package/types/aeris-ui-core-color-picker.d.ts +3 -2
  118. package/types/aeris-ui-core-context-menu.d.ts +3 -1
  119. package/types/aeris-ui-core-date-picker.d.ts +3 -2
  120. package/types/aeris-ui-core-form-field.d.ts +65 -0
  121. package/types/aeris-ui-core-mega-menu.d.ts +4 -2
  122. package/types/aeris-ui-core-menu.d.ts +3 -2
  123. package/types/aeris-ui-core-menubar.d.ts +27 -3
  124. package/types/aeris-ui-core-multi-select.d.ts +3 -2
  125. package/types/aeris-ui-core-paginator.d.ts +3 -2
  126. package/types/aeris-ui-core-password.d.ts +3 -2
  127. package/types/aeris-ui-core-popover.d.ts +2 -2
  128. package/types/aeris-ui-core-select.d.ts +3 -2
  129. package/types/aeris-ui-core-split-button.d.ts +3 -2
  130. package/types/aeris-ui-core-tabs.d.ts +23 -5
  131. package/types/aeris-ui-core-tiered-menu.d.ts +5 -3
  132. package/types/aeris-ui-core-tooltip.d.ts +2 -4
  133. package/types/aeris-ui-core-tree-select.d.ts +3 -2
  134. package/types/aeris-ui-core.d.ts +40 -26
@@ -7,19 +7,19 @@ class AerisOrderListItemTemplate {
7
7
  static ngTemplateContextGuard(_directive, context) {
8
8
  return true;
9
9
  }
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrderListItemTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisOrderListItemTemplate, isStandalone: true, selector: "ng-template[aerisOrderListItem]", ngImport: i0 });
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrderListItemTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisOrderListItemTemplate, isStandalone: true, selector: "ng-template[aerisOrderListItem]", ngImport: i0 });
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrderListItemTemplate, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrderListItemTemplate, decorators: [{
14
14
  type: Directive,
15
15
  args: [{ selector: 'ng-template[aerisOrderListItem]' }]
16
16
  }] });
17
17
  class AerisOrderListEmptyTemplate {
18
18
  template = inject(TemplateRef);
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrderListEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisOrderListEmptyTemplate, isStandalone: true, selector: "ng-template[aerisOrderListEmpty]", ngImport: i0 });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrderListEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisOrderListEmptyTemplate, isStandalone: true, selector: "ng-template[aerisOrderListEmpty]", ngImport: i0 });
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrderListEmptyTemplate, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrderListEmptyTemplate, decorators: [{
23
23
  type: Directive,
24
24
  args: [{ selector: 'ng-template[aerisOrderListEmpty]' }]
25
25
  }] });
@@ -182,8 +182,8 @@ class AerisOrderList {
182
182
  ? item[property]
183
183
  : undefined;
184
184
  }
185
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrderList, deps: [], target: i0.ɵɵFactoryTarget.Component });
186
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisOrderList, isStandalone: true, selector: "aeris-order-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, moveTopAriaLabel: { classPropertyName: "moveTopAriaLabel", publicName: "moveTopAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, moveUpAriaLabel: { classPropertyName: "moveUpAriaLabel", publicName: "moveUpAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, moveDownAriaLabel: { classPropertyName: "moveDownAriaLabel", publicName: "moveDownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, moveBottomAriaLabel: { classPropertyName: "moveBottomAriaLabel", publicName: "moveBottomAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { items: "itemsChange", selectedKeys: "selectedKeysChange", selectionChanged: "selectionChanged", reordered: "reordered" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: (AerisOrderListItemTemplate), descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisOrderListEmptyTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
185
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrderList, deps: [], target: i0.ɵɵFactoryTarget.Component });
186
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisOrderList, isStandalone: true, selector: "aeris-order-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, moveTopAriaLabel: { classPropertyName: "moveTopAriaLabel", publicName: "moveTopAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, moveUpAriaLabel: { classPropertyName: "moveUpAriaLabel", publicName: "moveUpAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, moveDownAriaLabel: { classPropertyName: "moveDownAriaLabel", publicName: "moveDownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, moveBottomAriaLabel: { classPropertyName: "moveBottomAriaLabel", publicName: "moveBottomAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { items: "itemsChange", selectedKeys: "selectedKeysChange", selectionChanged: "selectionChanged", reordered: "reordered" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: (AerisOrderListItemTemplate), descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisOrderListEmptyTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
187
187
  <div
188
188
  class="aeris-order-list"
189
189
  [attr.data-fluid]="fluid() || null"
@@ -259,7 +259,7 @@ class AerisOrderList {
259
259
  </div>
260
260
  `, isInline: true, styles: [".aeris-order-list{--_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) );--aeris-order-list-density-gap: var(--aeris-density-gap, .5rem);--aeris-order-list-item-min-height: var(--aeris-item-height, 2.5rem);--aeris-order-list-item-padding: var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);width:max-content;min-width:min(100%,22rem);border:1px solid var(--aeris-border);border-radius:var(--aeris-order-list-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);overflow:hidden}.aeris-order-list[data-fluid=true]{width:100%}.aeris-order-list__header{padding:var(--aeris-order-list-header-padding, calc(var(--aeris-item-padding-y, .5rem) * 1.4) var(--aeris-item-padding-x, .75rem));border-bottom:1px solid var(--aeris-border);background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222);font-size:.875rem;font-weight:700}.aeris-order-list__body{display:grid;grid-template-columns:auto minmax(0,1fr)}.aeris-order-list__controls{display:grid;align-content:center;gap:calc(var(--aeris-order-list-density-gap) * .75);padding:var(--aeris-order-list-controls-padding, var(--aeris-item-padding-x, .75rem));border-right:1px solid var(--aeris-border);background:color-mix(in srgb,var(--aeris-surface-2, #f2f0ec) 54%,transparent)}.aeris-order-list__controls button{width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);display:grid;place-items:center;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);cursor:pointer}.aeris-order-list__controls button:not(:disabled):hover{border-color:var(--aeris-focus, #3b4729);background:var(--aeris-surface-2, #f2f0ec)}.aeris-order-list__controls button:disabled{cursor:not-allowed;opacity:.45}.aeris-order-list__controls button:focus-visible,.aeris-order-list__item:focus-visible,.aeris-order-list__viewport:focus-visible{outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 24%,transparent)}.aeris-order-list__controls span{width:.875rem;height:.875rem;display:block;position:relative}.aeris-order-list__controls span:before,.aeris-order-list__controls span:after{position:absolute;inset:0;margin:auto;content:\"\"}.aeris-order-list__controls span:before{width:1rem;height:1rem;background:currentColor;transform:rotate(180deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-order-list__controls span[data-icon=down]:before,.aeris-order-list__controls span[data-icon=bottom]:before{transform:none}.aeris-order-list__controls span[data-icon=top]:after,.aeris-order-list__controls span[data-icon=bottom]:after{width:.75rem;height:1.75px;border-radius:var(--aeris-radius-pill, 999px);background:currentColor}.aeris-order-list__controls span[data-icon=top]:after{top:-.55rem}.aeris-order-list__controls span[data-icon=bottom]:after{bottom:-.55rem}.aeris-order-list__viewport{min-height:12rem;max-height:var(--aeris-order-list-max-height, 22rem);padding:calc(var(--aeris-order-list-density-gap) * .75);overflow:auto}.aeris-order-list__item{width:100%;min-height:var(--aeris-order-list-item-min-height, 2.75rem);display:flex;align-items:center;gap:calc(var(--aeris-order-list-density-gap) + .25rem);padding:var(--aeris-order-list-item-padding, .625rem .75rem);border:1px solid transparent;border-radius:var(--aeris-order-list-item-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));background:transparent;color:var(--aeris-text, #222222);font:inherit;text-align:left;cursor:pointer}.aeris-order-list__item:hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec))}.aeris-order-list__item[data-selected=true]{border-color:color-mix(in srgb,var(--aeris-primary, #5f6f36) 44%,var(--aeris-border, #deddd7));background:var(--aeris-primary-soft, #eef2e6);color:var(--aeris-primary-text, #3b4729)}.aeris-order-list__empty{min-height:10rem;display:grid;place-items:center;color:var(--aeris-text-muted, #6d7068);font-size:.875rem;text-align:center}.aeris-order-list[data-disabled=true]{opacity:.64}.aeris-order-list[data-disabled=true] .aeris-order-list__item{cursor:not-allowed}@media(max-width:34rem){.aeris-order-list__body{grid-template-columns:1fr}.aeris-order-list__controls{grid-template-columns:repeat(4,auto);justify-content:start;border-right:0;border-bottom:1px solid var(--aeris-border)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
261
261
  }
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrderList, decorators: [{
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrderList, decorators: [{
263
263
  type: Component,
264
264
  args: [{ selector: 'aeris-order-list', imports: [NgTemplateOutlet], template: `
265
265
  <div
@@ -7,19 +7,19 @@ class AerisOrganizationChartNodeTemplate {
7
7
  static ngTemplateContextGuard(_directive, context) {
8
8
  return true;
9
9
  }
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrganizationChartNodeTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisOrganizationChartNodeTemplate, isStandalone: true, selector: "ng-template[aerisOrganizationChartNode]", ngImport: i0 });
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrganizationChartNodeTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisOrganizationChartNodeTemplate, isStandalone: true, selector: "ng-template[aerisOrganizationChartNode]", ngImport: i0 });
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrganizationChartNodeTemplate, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrganizationChartNodeTemplate, decorators: [{
14
14
  type: Directive,
15
15
  args: [{ selector: 'ng-template[aerisOrganizationChartNode]' }]
16
16
  }] });
17
17
  class AerisOrganizationChartEmptyTemplate {
18
18
  template = inject(TemplateRef);
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrganizationChartEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisOrganizationChartEmptyTemplate, isStandalone: true, selector: "ng-template[aerisOrganizationChartEmpty]", ngImport: i0 });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrganizationChartEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisOrganizationChartEmptyTemplate, isStandalone: true, selector: "ng-template[aerisOrganizationChartEmpty]", ngImport: i0 });
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrganizationChartEmptyTemplate, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrganizationChartEmptyTemplate, decorators: [{
23
23
  type: Directive,
24
24
  args: [{ selector: 'ng-template[aerisOrganizationChartEmpty]' }]
25
25
  }] });
@@ -157,8 +157,8 @@ class AerisOrganizationChart {
157
157
  .find((element) => element.nativeElement.getAttribute('data-aeris-key') === key)
158
158
  ?.nativeElement.focus();
159
159
  }
160
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrganizationChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
161
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisOrganizationChart, isStandalone: true, selector: "aeris-organization-chart", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collapsedKeys: { classPropertyName: "collapsedKeys", publicName: "collapsedKeys", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseAriaLabel: { classPropertyName: "collapseAriaLabel", publicName: "collapseAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionKeys: "selectionKeysChange", collapsedKeys: "collapsedKeysChange", nodeSelected: "nodeSelected", nodeUnselected: "nodeUnselected", selectionChanged: "selectionChanged", nodeExpanded: "nodeExpanded", nodeCollapsed: "nodeCollapsed" }, queries: [{ propertyName: "nodeTemplateDirective", first: true, predicate: (AerisOrganizationChartNodeTemplate), descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisOrganizationChartEmptyTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "nodeElements", predicate: ["nodeElement"], descendants: true, isSignal: true }], ngImport: i0, template: `
160
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrganizationChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
161
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisOrganizationChart, isStandalone: true, selector: "aeris-organization-chart", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collapsedKeys: { classPropertyName: "collapsedKeys", publicName: "collapsedKeys", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseAriaLabel: { classPropertyName: "collapseAriaLabel", publicName: "collapseAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionKeys: "selectionKeysChange", collapsedKeys: "collapsedKeysChange", nodeSelected: "nodeSelected", nodeUnselected: "nodeUnselected", selectionChanged: "selectionChanged", nodeExpanded: "nodeExpanded", nodeCollapsed: "nodeCollapsed" }, queries: [{ propertyName: "nodeTemplateDirective", first: true, predicate: (AerisOrganizationChartNodeTemplate), descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisOrganizationChartEmptyTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "nodeElements", predicate: ["nodeElement"], descendants: true, isSignal: true }], ngImport: i0, template: `
162
162
  <div class="aeris-organization-chart" [attr.data-fluid]="fluid() || null">
163
163
  @if (value().length) {
164
164
  <div class="aeris-organization-chart__viewport" tabindex="0">
@@ -262,7 +262,7 @@ class AerisOrganizationChart {
262
262
  </div>
263
263
  `, 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) );display:block;min-width:0;max-width:100%}.aeris-organization-chart{width:max-content;min-width:0;max-width:100%;color:var(--aeris-text, #222222)}.aeris-organization-chart[data-fluid=true]{width:100%}.aeris-organization-chart__viewport{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:var(--aeris-organization-chart-padding, 1rem);overflow:auto}.aeris-organization-chart__viewport:focus-visible{outline:0;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 22%,transparent)}.aeris-organization-chart__tree,.aeris-organization-chart__children{display:flex;justify-content:center;width:max-content;margin:0;padding:0;list-style:none}.aeris-organization-chart__tree{min-width:100%}.aeris-organization-chart__branch{position:relative;display:grid;justify-items:center;padding:0 var(--aeris-organization-chart-node-gap, .625rem)}.aeris-organization-chart__node-shell{position:relative;display:grid;justify-items:center}.aeris-organization-chart__node{min-width:var(--aeris-organization-chart-node-min-width, 9.5rem);max-width:var(--aeris-organization-chart-node-max-width, 14rem);display:grid;gap:.25rem;padding:var(--aeris-organization-chart-node-padding, .625rem .75rem);border:1px solid var(--aeris-organization-chart-node-border, var(--aeris-border));border-radius:var(--aeris-organization-chart-node-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-organization-chart-node-background, var(--aeris-surface, #fff));color:var(--aeris-organization-chart-node-color, var(--aeris-text, #222222));box-shadow:var(--aeris-organization-chart-node-shadow, 0 .75rem 1.75rem rgba(31, 35, 27, .08));text-align:center;cursor:default}.aeris-organization-chart__node[data-selectable=true]{cursor:pointer}.aeris-organization-chart__node[data-selectable=true]:hover{border-color:var(--aeris-focus, #3b4729);background:var(--aeris-surface-2, #f2f0ec)}.aeris-organization-chart__node[data-selected=true]{border-color:color-mix(in srgb,var(--aeris-primary, #5f6f36) 58%,var(--aeris-border, #deddd7));background:var(--aeris-primary-soft, #eef2e6);color:var(--aeris-primary-text, #3b4729)}.aeris-organization-chart__node:focus-visible,.aeris-organization-chart__toggle:focus-visible{outline:0;box-shadow:var(--aeris-organization-chart-node-shadow, 0 .75rem 1.75rem rgba(31, 35, 27, .08)),0 0 0 3px color-mix(in srgb,var(--aeris-focus, #3b4729) 24%,transparent)}.aeris-organization-chart__label{font-size:.875rem;font-weight:750;line-height:1.25}.aeris-organization-chart__node small{color:var(--aeris-text-muted, #6d7068);font-size:.75rem;font-weight:600}.aeris-organization-chart__toggle{width:1.625rem;height:1.625rem;display:grid;place-items:center;margin-top:.625rem;padding:0;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);cursor:pointer}.aeris-organization-chart__toggle:hover{border-color:var(--aeris-focus, #3b4729);background:var(--aeris-surface-2, #f2f0ec)}.aeris-organization-chart__toggle span{position:relative;width:1rem;height:1rem}.aeris-organization-chart__toggle span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-organization-chart__toggle[aria-expanded=false] span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-organization-chart__children{position:relative;gap:0}.aeris-organization-chart__children>.aeris-organization-chart__branch{padding-top:var(--aeris-organization-chart-level-gap, 2rem)}.aeris-organization-chart__children:before{position:absolute;top:0;left:50%;width:1px;height:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);background:var(--aeris-organization-chart-connector, var(--aeris-border));content:\"\"}.aeris-organization-chart__children>.aeris-organization-chart__branch:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:after{position:absolute;top:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);height:1px;background:var(--aeris-organization-chart-connector, var(--aeris-border));content:\"\"}.aeris-organization-chart__children>.aeris-organization-chart__branch:before{right:50%;left:0}.aeris-organization-chart__children>.aeris-organization-chart__branch:after{right:0;left:50%}.aeris-organization-chart__children>.aeris-organization-chart__branch:first-child:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:last-child:after{content:none}.aeris-organization-chart__children>.aeris-organization-chart__branch:only-child:before,.aeris-organization-chart__children>.aeris-organization-chart__branch:only-child:after{content:none}.aeris-organization-chart__children>.aeris-organization-chart__branch>.aeris-organization-chart__node-shell:before{position:absolute;top:calc(-1 * var(--aeris-organization-chart-level-gap, 2rem) / 2);left:50%;width:1px;height:calc(var(--aeris-organization-chart-level-gap, 2rem) / 2);background:var(--aeris-organization-chart-connector, var(--aeris-border));content:\"\"}.aeris-organization-chart__empty{min-height:10rem;display:grid;place-items:center;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-surface, #fff);color:var(--aeris-text-muted, #6d7068);text-align:center}@media(max-width:44rem){.aeris-organization-chart__node{min-width:var(--aeris-organization-chart-node-min-width, 8.5rem)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
264
264
  }
265
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisOrganizationChart, decorators: [{
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisOrganizationChart, decorators: [{
266
266
  type: Component,
267
267
  args: [{ selector: 'aeris-organization-chart', imports: [NgTemplateOutlet], template: `
268
268
  <div class="aeris-organization-chart" [attr.data-fluid]="fluid() || null">
@@ -16,6 +16,8 @@ class AerisPaginator {
16
16
  ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
17
17
  appendTo = input(/* @ts-ignore */
18
18
  ...(ngDevMode ? [undefined, { debugName: "appendTo" }] : /* istanbul ignore next */ []));
19
+ viewportMargin = input(8, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []));
19
21
  ariaLabel = input('Pagination', /* @ts-ignore */
20
22
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
21
23
  rowsPerPageLabel = input('Rows per page', /* @ts-ignore */
@@ -108,8 +110,8 @@ class AerisPaginator {
108
110
  pageCount: this.pageCount(),
109
111
  });
110
112
  }
111
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component });
112
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisPaginator, isStandalone: true, selector: "aeris-paginator", inputs: { first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageLabel: { classPropertyName: "rowsPerPageLabel", publicName: "rowsPerPageLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { first: "firstChange", rows: "rowsChange", page: "page" }, viewQueries: [{ propertyName: "rowsTrigger", first: true, predicate: ["rowsTrigger"], descendants: true, isSignal: true }, { propertyName: "rowsPanel", first: true, predicate: ["rowsPanel"], descendants: true, isSignal: true }, { propertyName: "rowsPanelPortal", first: true, predicate: _AerisAppendTo, descendants: true, isSignal: true }], ngImport: i0, template: `
113
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component });
114
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisPaginator, isStandalone: true, selector: "aeris-paginator", inputs: { first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, viewportMargin: { classPropertyName: "viewportMargin", publicName: "viewportMargin", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageLabel: { classPropertyName: "rowsPerPageLabel", publicName: "rowsPerPageLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { first: "firstChange", rows: "rowsChange", page: "page" }, viewQueries: [{ propertyName: "rowsTrigger", first: true, predicate: ["rowsTrigger"], descendants: true, isSignal: true }, { propertyName: "rowsPanel", first: true, predicate: ["rowsPanel"], descendants: true, isSignal: true }, { propertyName: "rowsPanelPortal", first: true, predicate: _AerisAppendTo, descendants: true, isSignal: true }], ngImport: i0, template: `
113
115
  <nav class="aeris-paginator" [attr.aria-label]="ariaLabel()">
114
116
  <span class="aeris-paginator__report" aria-live="polite">{{ pageReport() }}</span>
115
117
 
@@ -164,6 +166,7 @@ class AerisPaginator {
164
166
  class="aeris-paginator__rows-panel"
165
167
  [aerisInternalAppendTo]="appendTo()"
166
168
  [aerisInternalAppendToAnchor]="this.rowsTrigger()?.nativeElement ?? null"
169
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
167
170
  (aerisInternalAppendToOutside)="closeRowsPanel()"
168
171
  [id]="rowsListboxId"
169
172
  role="listbox"
@@ -188,9 +191,9 @@ class AerisPaginator {
188
191
  </div>
189
192
  }
190
193
  </nav>
191
- `, 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) );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #555555);font-size:.8125rem}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:700;cursor:pointer;transition:border-color .14s ease,background-color .14s ease,color .14s ease,transform .14s ease}button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #5f6f36) 58%,var(--aeris-border, #deddd7));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec));color:var(--aeris-text, #222222);transform:translateY(-1px)}.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 22%,var(--aeris-surface, #fff))}button[aria-current=page]{border-color:var(--aeris-primary, #5f6f36);background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #5f6f36)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:2px}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before,.aeris-paginator__page-icon:after{position:absolute;inset:0;background:currentColor;content:\"\";-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--first:after{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before,.aeris-paginator__page-icon--last:after{transform:rotate(-90deg)}.aeris-paginator__page-icon--previous:after,.aeris-paginator__page-icon--next:after{content:none}.aeris-paginator__page-icon--first:before{translate:-.18rem 0}.aeris-paginator__page-icon--first:after{translate:.18rem 0}.aeris-paginator__page-icon--last:before{translate:.18rem 0}.aeris-paginator__page-icon--last:after{translate:-.18rem 0}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:after{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:after{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:calc(var(--aeris-density-gap, .5rem) * .7);border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-weight:600;text-align:left}.aeris-paginator__rows-panel button:hover,.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 12%,transparent);color:var(--aeris-primary-text, #5f6f36)}.aeris-paginator__check{width:.65rem;height:.35rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:rotate(-45deg)}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}.aeris-paginator__rows-panel{right:50%;transform:translate(50%)}}@media(max-width:30rem){.aeris-paginator{font-size:.78125rem}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button{transition:none}button:hover:not(:disabled){transform:none}}\n"], dependencies: [{ kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth"], outputs: ["aerisInternalAppendToOutside"] }] });
194
+ `, 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) );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #555555);font-size:.8125rem}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:700;cursor:pointer;transition:border-color .14s ease,background-color .14s ease,color .14s ease,transform .14s ease}button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #5f6f36) 58%,var(--aeris-border, #deddd7));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec));color:var(--aeris-text, #222222);transform:translateY(-1px)}.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 22%,var(--aeris-surface, #fff))}button[aria-current=page]{border-color:var(--aeris-primary, #5f6f36);background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #5f6f36)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:2px}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before,.aeris-paginator__page-icon:after{position:absolute;inset:0;background:currentColor;content:\"\";-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--first:after{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before,.aeris-paginator__page-icon--last:after{transform:rotate(-90deg)}.aeris-paginator__page-icon--previous:after,.aeris-paginator__page-icon--next:after{content:none}.aeris-paginator__page-icon--first:before{translate:-.18rem 0}.aeris-paginator__page-icon--first:after{translate:.18rem 0}.aeris-paginator__page-icon--last:before{translate:.18rem 0}.aeris-paginator__page-icon--last:after{translate:-.18rem 0}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:after{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:after{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:calc(var(--aeris-density-gap, .5rem) * .7);border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-weight:600;text-align:left}.aeris-paginator__rows-panel button:hover,.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 12%,transparent);color:var(--aeris-primary-text, #5f6f36)}.aeris-paginator__check{width:.65rem;height:.35rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:rotate(-45deg)}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}.aeris-paginator__rows-panel{right:50%;transform:translate(50%)}}@media(max-width:30rem){.aeris-paginator{font-size:.78125rem}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button{transition:none}button:hover:not(:disabled){transform:none}}\n"], dependencies: [{ kind: "directive", type: _AerisAppendTo, selector: "[aerisInternalAppendTo]", inputs: ["aerisInternalAppendTo", "aerisInternalAppendToAnchor", "aerisInternalAppendToOffset", "aerisInternalAppendToMatchWidth", "aerisInternalAppendToPlacement", "aerisInternalAppendToAlignment", "aerisInternalAppendToCollisionPadding", "aerisInternalAppendToPositionSelf"], outputs: ["aerisInternalAppendToOutside"] }] });
192
195
  }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPaginator, decorators: [{
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPaginator, decorators: [{
194
197
  type: Component,
195
198
  args: [{ selector: 'aeris-paginator', imports: [_AerisAppendTo], template: `
196
199
  <nav class="aeris-paginator" [attr.aria-label]="ariaLabel()">
@@ -247,6 +250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
247
250
  class="aeris-paginator__rows-panel"
248
251
  [aerisInternalAppendTo]="appendTo()"
249
252
  [aerisInternalAppendToAnchor]="this.rowsTrigger()?.nativeElement ?? null"
253
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
250
254
  (aerisInternalAppendToOutside)="closeRowsPanel()"
251
255
  [id]="rowsListboxId"
252
256
  role="listbox"
@@ -272,7 +276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
272
276
  }
273
277
  </nav>
274
278
  `, 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) );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #555555);font-size:.8125rem}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #222222);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:700;cursor:pointer;transition:border-color .14s ease,background-color .14s ease,color .14s ease,transform .14s ease}button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #5f6f36) 58%,var(--aeris-border, #deddd7));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec));color:var(--aeris-text, #222222);transform:translateY(-1px)}.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 22%,var(--aeris-surface, #fff))}button[aria-current=page]{border-color:var(--aeris-primary, #5f6f36);background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #5f6f36)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);outline-offset:2px}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before,.aeris-paginator__page-icon:after{position:absolute;inset:0;background:currentColor;content:\"\";-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--first:after{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before,.aeris-paginator__page-icon--last:after{transform:rotate(-90deg)}.aeris-paginator__page-icon--previous:after,.aeris-paginator__page-icon--next:after{content:none}.aeris-paginator__page-icon--first:before{translate:-.18rem 0}.aeris-paginator__page-icon--first:after{translate:.18rem 0}.aeris-paginator__page-icon--last:before{translate:.18rem 0}.aeris-paginator__page-icon--last:after{translate:-.18rem 0}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:after{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:after{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:calc(var(--aeris-density-gap, .5rem) * .7);border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:0 1rem 2.5rem #1f231b29}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #555555);font-weight:600;text-align:left}.aeris-paginator__rows-panel button:hover,.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #5f6f36) 12%,transparent);color:var(--aeris-primary-text, #5f6f36)}.aeris-paginator__check{width:.65rem;height:.35rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:rotate(-45deg)}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}.aeris-paginator__rows-panel{right:50%;transform:translate(50%)}}@media(max-width:30rem){.aeris-paginator{font-size:.78125rem}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button{transition:none}button:hover:not(:disabled){transform:none}}\n"] }]
275
- }], propDecorators: { first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], rowsPerPageLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageLabel", required: false }] }], page: [{ type: i0.Output, args: ["page"] }], rowsTrigger: [{ type: i0.ViewChild, args: ['rowsTrigger', { isSignal: true }] }], rowsPanel: [{ type: i0.ViewChild, args: ['rowsPanel', { isSignal: true }] }], rowsPanelPortal: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _AerisAppendTo), { isSignal: true }] }] } });
279
+ }], propDecorators: { first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], viewportMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportMargin", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], rowsPerPageLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageLabel", required: false }] }], page: [{ type: i0.Output, args: ["page"] }], rowsTrigger: [{ type: i0.ViewChild, args: ['rowsTrigger', { isSignal: true }] }], rowsPanel: [{ type: i0.ViewChild, args: ['rowsPanel', { isSignal: true }] }], rowsPanelPortal: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _AerisAppendTo), { isSignal: true }] }] } });
276
280
 
277
281
  /**
278
282
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-paginator.mjs","sources":["../../../projects/aeris-ui/paginator/aeris-paginator.ts","../../../projects/aeris-ui/paginator/aeris-ui-core-paginator.ts"],"sourcesContent":["import { Component, ElementRef, computed, input, model, output, signal, viewChild } from '@angular/core';\nimport { ɵAerisAppendTo, type AerisAppendTo } from '@aeris-ui/core';\n\nexport interface AerisPaginatorPageEvent {\n readonly first: number;\n readonly rows: number;\n readonly page: number;\n readonly pageCount: number;\n}\n\n@Component({\n selector: 'aeris-paginator',\n imports: [ɵAerisAppendTo],\n template: `\n <nav class=\"aeris-paginator\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"aeris-paginator__report\" aria-live=\"polite\">{{ pageReport() }}</span>\n\n <div class=\"aeris-paginator__pages\">\n <button type=\"button\" aria-label=\"First page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(0)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--first\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Previous page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(currentPage() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--previous\" aria-hidden=\"true\"></span>\n </button>\n\n @for (page of visiblePages(); track page) {\n <button\n #rowsTrigger\n type=\"button\"\n [attr.aria-label]=\"'Page ' + (page + 1)\"\n [attr.aria-current]=\"page === currentPage() ? 'page' : null\"\n (click)=\"goToPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button type=\"button\" aria-label=\"Next page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(currentPage() + 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--next\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Last page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(pageCount() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--last\" aria-hidden=\"true\"></span>\n </button>\n </div>\n\n @if (rowsPerPageOptions().length) {\n <div class=\"aeris-paginator__rows\" (focusout)=\"handleRowsFocusOut($event)\">\n <span [id]=\"rowsLabelId\">{{ rowsPerPageLabel() }}</span>\n <button\n class=\"aeris-paginator__rows-trigger\"\n type=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId + ' ' + rowsValueId\"\n [attr.aria-expanded]=\"rowsPanelOpen()\"\n [attr.aria-controls]=\"rowsListboxId\"\n (click)=\"toggleRowsPanel()\"\n (keydown)=\"handleRowsTriggerKeydown($event)\"\n >\n <span [id]=\"rowsValueId\">{{ rows() }}</span>\n <span class=\"aeris-paginator__chevron\" aria-hidden=\"true\"></span>\n </button>\n\n @if (rowsPanelOpen()) {\n <div\n #rowsPanel\n class=\"aeris-paginator__rows-panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"this.rowsTrigger()?.nativeElement ?? null\"\n (aerisInternalAppendToOutside)=\"closeRowsPanel()\"\n [id]=\"rowsListboxId\"\n role=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId\"\n (keydown)=\"handleRowsPanelKeydown($event)\"\n >\n @for (option of rowsPerPageOptions(); track option) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"option === rows()\"\n (click)=\"selectRows(option)\"\n >\n <span>{{ option }}</span>\n @if (option === rows()) {\n <span class=\"aeris-paginator__check\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n </div>\n }\n </div>\n }\n </nav>\n `,\n styleUrl: './aeris-paginator.scss',\n})\nexport class AerisPaginator {\n private static nextId = 0;\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input(0);\n readonly pageLinkSize = input(5);\n readonly rowsPerPageOptions = input<readonly number[]>([]);\n readonly appendTo = input<AerisAppendTo>();\n readonly ariaLabel = input('Pagination');\n readonly rowsPerPageLabel = input('Rows per page');\n readonly page = output<AerisPaginatorPageEvent>();\n protected readonly rowsPanelOpen = signal(false);\n protected readonly rowsTrigger = viewChild<ElementRef<HTMLButtonElement>>('rowsTrigger');\n private readonly rowsPanel = viewChild<ElementRef<HTMLElement>>('rowsPanel');\n private readonly rowsPanelPortal = viewChild(ɵAerisAppendTo);\n protected readonly rowsLabelId = `aeris-paginator-rows-label-${AerisPaginator.nextId++}`;\n protected readonly rowsValueId = `${this.rowsLabelId}-value`;\n protected readonly rowsListboxId = `${this.rowsLabelId}-listbox`;\n\n protected readonly pageCount = computed(() =>\n Math.max(1, Math.ceil(this.totalRecords() / Math.max(1, this.rows()))),\n );\n protected readonly currentPage = computed(() =>\n Math.min(\n this.pageCount() - 1,\n Math.max(0, Math.floor(this.first() / Math.max(1, this.rows()))),\n ),\n );\n protected readonly visiblePages = computed(() => {\n const count = this.pageCount();\n const size = Math.max(1, this.pageLinkSize());\n const half = Math.floor(size / 2);\n const start = Math.min(\n Math.max(0, this.currentPage() - half),\n Math.max(0, count - size),\n );\n const end = Math.min(count, start + size);\n return Array.from({ length: end - start }, (_, index) => start + index);\n });\n protected readonly pageReport = computed(() => {\n const total = this.totalRecords();\n if (total === 0) return '0 of 0';\n const start = Math.min(this.first() + 1, total);\n const end = Math.min(this.first() + this.rows(), total);\n return `${start}-${end} of ${total}`;\n });\n\n protected goToPage(page: number): void {\n const safePage = Math.min(Math.max(page, 0), this.pageCount() - 1);\n this.first.set(safePage * this.rows());\n this.emitPage();\n }\n\n protected toggleRowsPanel(): void {\n if (this.rowsPanelOpen()) this.closeRowsPanel();\n else this.rowsPanelOpen.set(true);\n }\n\n protected selectRows(rows: number): void {\n this.rows.set(rows);\n this.first.set(0);\n this.closeRowsPanel();\n this.emitPage();\n }\n\n protected handleRowsTriggerKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.closeRowsPanel();\n return;\n }\n\n if (event.key === 'Enter' || event.key === ' ' || event.key === 'ArrowDown') {\n event.preventDefault();\n this.rowsPanelOpen.set(true);\n }\n }\n\n protected handleRowsPanelKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape') return;\n event.preventDefault();\n this.closeRowsPanel();\n }\n\n protected handleRowsFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (\n nextTarget instanceof Node &&\n ((event.currentTarget as HTMLElement).contains(nextTarget) ||\n this.rowsPanel()?.nativeElement.contains(nextTarget))\n ) {\n return;\n }\n this.closeRowsPanel();\n }\n\n protected closeRowsPanel(): void {\n this.rowsPanelPortal()?.restore();\n this.rowsPanelOpen.set(false);\n }\n\n private emitPage(): void {\n this.page.emit({\n first: this.first(),\n rows: this.rows(),\n page: this.currentPage(),\n pageCount: this.pageCount(),\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;MA+Fa,cAAc,CAAA;AACjB,IAAA,OAAO,MAAM,GAAG,CAAC;IAChB,KAAK,GAAG,KAAK,CAAC,CAAC;8EAAC;IAChB,IAAI,GAAG,KAAK,CAAC,EAAE;6EAAC;IAChB,YAAY,GAAG,KAAK,CAAC,CAAC;qFAAC;IACvB,YAAY,GAAG,KAAK,CAAC,CAAC;qFAAC;IACvB,kBAAkB,GAAG,KAAK,CAAoB,EAAE;2FAAC;AACjD,IAAA,QAAQ,GAAG,KAAK;4FAAiB;IACjC,SAAS,GAAG,KAAK,CAAC,YAAY;kFAAC;IAC/B,gBAAgB,GAAG,KAAK,CAAC,eAAe;yFAAC;IACzC,IAAI,GAAG,MAAM,EAA2B;IAC9B,aAAa,GAAG,MAAM,CAAC,KAAK;sFAAC;IAC7B,WAAW,GAAG,SAAS,CAAgC,aAAa;oFAAC;IACvE,SAAS,GAAG,SAAS,CAA0B,WAAW;kFAAC;IAC3D,eAAe,GAAG,SAAS,CAACA,cAAc;wFAAC;AACzC,IAAA,WAAW,GAAG,CAAA,2BAAA,EAA8B,cAAc,CAAC,MAAM,EAAE,EAAE;AACrE,IAAA,WAAW,GAAG,CAAA,EAAG,IAAI,CAAC,WAAW,QAAQ;AACzC,IAAA,aAAa,GAAG,CAAA,EAAG,IAAI,CAAC,WAAW,UAAU;AAE7C,IAAA,SAAS,GAAG,QAAQ,CAAC,MACtC,IAAI,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+ET,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,ylMAAA,CAAA,EAAA;q/BAeyE,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACvB,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC9BA,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC7G7D;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-paginator.mjs","sources":["../../../projects/aeris-ui/paginator/aeris-paginator.ts","../../../projects/aeris-ui/paginator/aeris-ui-core-paginator.ts"],"sourcesContent":["import { Component, ElementRef, computed, input, model, output, signal, viewChild } from '@angular/core';\nimport { ɵAerisAppendTo, type AerisAppendTo, type AerisOverlayCollisionPadding } from '@aeris-ui/core';\n\nexport interface AerisPaginatorPageEvent {\n readonly first: number;\n readonly rows: number;\n readonly page: number;\n readonly pageCount: number;\n}\n\n@Component({\n selector: 'aeris-paginator',\n imports: [ɵAerisAppendTo],\n template: `\n <nav class=\"aeris-paginator\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"aeris-paginator__report\" aria-live=\"polite\">{{ pageReport() }}</span>\n\n <div class=\"aeris-paginator__pages\">\n <button type=\"button\" aria-label=\"First page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(0)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--first\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Previous page\" [disabled]=\"currentPage() === 0\" (click)=\"goToPage(currentPage() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--previous\" aria-hidden=\"true\"></span>\n </button>\n\n @for (page of visiblePages(); track page) {\n <button\n #rowsTrigger\n type=\"button\"\n [attr.aria-label]=\"'Page ' + (page + 1)\"\n [attr.aria-current]=\"page === currentPage() ? 'page' : null\"\n (click)=\"goToPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button type=\"button\" aria-label=\"Next page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(currentPage() + 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--next\" aria-hidden=\"true\"></span>\n </button>\n <button type=\"button\" aria-label=\"Last page\" [disabled]=\"currentPage() >= pageCount() - 1\" (click)=\"goToPage(pageCount() - 1)\">\n <span class=\"aeris-paginator__page-icon aeris-paginator__page-icon--last\" aria-hidden=\"true\"></span>\n </button>\n </div>\n\n @if (rowsPerPageOptions().length) {\n <div class=\"aeris-paginator__rows\" (focusout)=\"handleRowsFocusOut($event)\">\n <span [id]=\"rowsLabelId\">{{ rowsPerPageLabel() }}</span>\n <button\n class=\"aeris-paginator__rows-trigger\"\n type=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId + ' ' + rowsValueId\"\n [attr.aria-expanded]=\"rowsPanelOpen()\"\n [attr.aria-controls]=\"rowsListboxId\"\n (click)=\"toggleRowsPanel()\"\n (keydown)=\"handleRowsTriggerKeydown($event)\"\n >\n <span [id]=\"rowsValueId\">{{ rows() }}</span>\n <span class=\"aeris-paginator__chevron\" aria-hidden=\"true\"></span>\n </button>\n\n @if (rowsPanelOpen()) {\n <div\n #rowsPanel\n class=\"aeris-paginator__rows-panel\"\n [aerisInternalAppendTo]=\"appendTo()\"\n [aerisInternalAppendToAnchor]=\"this.rowsTrigger()?.nativeElement ?? null\"\n [aerisInternalAppendToCollisionPadding]=\"viewportMargin()\"\n (aerisInternalAppendToOutside)=\"closeRowsPanel()\"\n [id]=\"rowsListboxId\"\n role=\"listbox\"\n [attr.aria-labelledby]=\"rowsLabelId\"\n (keydown)=\"handleRowsPanelKeydown($event)\"\n >\n @for (option of rowsPerPageOptions(); track option) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"option === rows()\"\n (click)=\"selectRows(option)\"\n >\n <span>{{ option }}</span>\n @if (option === rows()) {\n <span class=\"aeris-paginator__check\" aria-hidden=\"true\"></span>\n }\n </button>\n }\n </div>\n }\n </div>\n }\n </nav>\n `,\n styleUrl: './aeris-paginator.scss',\n})\nexport class AerisPaginator {\n private static nextId = 0;\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input(0);\n readonly pageLinkSize = input(5);\n readonly rowsPerPageOptions = input<readonly number[]>([]);\n readonly appendTo = input<AerisAppendTo>();\n readonly viewportMargin = input<number | AerisOverlayCollisionPadding>(8);\n readonly ariaLabel = input('Pagination');\n readonly rowsPerPageLabel = input('Rows per page');\n readonly page = output<AerisPaginatorPageEvent>();\n protected readonly rowsPanelOpen = signal(false);\n protected readonly rowsTrigger = viewChild<ElementRef<HTMLButtonElement>>('rowsTrigger');\n private readonly rowsPanel = viewChild<ElementRef<HTMLElement>>('rowsPanel');\n private readonly rowsPanelPortal = viewChild(ɵAerisAppendTo);\n protected readonly rowsLabelId = `aeris-paginator-rows-label-${AerisPaginator.nextId++}`;\n protected readonly rowsValueId = `${this.rowsLabelId}-value`;\n protected readonly rowsListboxId = `${this.rowsLabelId}-listbox`;\n\n protected readonly pageCount = computed(() =>\n Math.max(1, Math.ceil(this.totalRecords() / Math.max(1, this.rows()))),\n );\n protected readonly currentPage = computed(() =>\n Math.min(\n this.pageCount() - 1,\n Math.max(0, Math.floor(this.first() / Math.max(1, this.rows()))),\n ),\n );\n protected readonly visiblePages = computed(() => {\n const count = this.pageCount();\n const size = Math.max(1, this.pageLinkSize());\n const half = Math.floor(size / 2);\n const start = Math.min(\n Math.max(0, this.currentPage() - half),\n Math.max(0, count - size),\n );\n const end = Math.min(count, start + size);\n return Array.from({ length: end - start }, (_, index) => start + index);\n });\n protected readonly pageReport = computed(() => {\n const total = this.totalRecords();\n if (total === 0) return '0 of 0';\n const start = Math.min(this.first() + 1, total);\n const end = Math.min(this.first() + this.rows(), total);\n return `${start}-${end} of ${total}`;\n });\n\n protected goToPage(page: number): void {\n const safePage = Math.min(Math.max(page, 0), this.pageCount() - 1);\n this.first.set(safePage * this.rows());\n this.emitPage();\n }\n\n protected toggleRowsPanel(): void {\n if (this.rowsPanelOpen()) this.closeRowsPanel();\n else this.rowsPanelOpen.set(true);\n }\n\n protected selectRows(rows: number): void {\n this.rows.set(rows);\n this.first.set(0);\n this.closeRowsPanel();\n this.emitPage();\n }\n\n protected handleRowsTriggerKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.closeRowsPanel();\n return;\n }\n\n if (event.key === 'Enter' || event.key === ' ' || event.key === 'ArrowDown') {\n event.preventDefault();\n this.rowsPanelOpen.set(true);\n }\n }\n\n protected handleRowsPanelKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape') return;\n event.preventDefault();\n this.closeRowsPanel();\n }\n\n protected handleRowsFocusOut(event: FocusEvent): void {\n const nextTarget = event.relatedTarget;\n if (\n nextTarget instanceof Node &&\n ((event.currentTarget as HTMLElement).contains(nextTarget) ||\n this.rowsPanel()?.nativeElement.contains(nextTarget))\n ) {\n return;\n }\n this.closeRowsPanel();\n }\n\n protected closeRowsPanel(): void {\n this.rowsPanelPortal()?.restore();\n this.rowsPanelOpen.set(false);\n }\n\n private emitPage(): void {\n this.page.emit({\n first: this.first(),\n rows: this.rows(),\n page: this.currentPage(),\n pageCount: this.pageCount(),\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵAerisAppendTo"],"mappings":";;;;MAgGa,cAAc,CAAA;AACjB,IAAA,OAAO,MAAM,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CAgByE,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACvB,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC9BA,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC/G7D;;AAEG;;;;"}
@@ -4,27 +4,27 @@ import { inject, TemplateRef, Directive, input, booleanAttribute, model, output,
4
4
 
5
5
  class AerisPanelHeaderTemplate {
6
6
  template = inject(TemplateRef);
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisPanelHeaderTemplate, isStandalone: true, selector: "ng-template[aerisPanelHeader]", ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisPanelHeaderTemplate, isStandalone: true, selector: "ng-template[aerisPanelHeader]", ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelHeaderTemplate, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelHeaderTemplate, decorators: [{
11
11
  type: Directive,
12
12
  args: [{ selector: 'ng-template[aerisPanelHeader]' }]
13
13
  }] });
14
14
  class AerisPanelToggleIconTemplate {
15
15
  template = inject(TemplateRef);
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelToggleIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
17
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisPanelToggleIconTemplate, isStandalone: true, selector: "ng-template[aerisPanelToggleIcon]", ngImport: i0 });
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelToggleIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
17
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisPanelToggleIconTemplate, isStandalone: true, selector: "ng-template[aerisPanelToggleIcon]", ngImport: i0 });
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelToggleIconTemplate, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelToggleIconTemplate, decorators: [{
20
20
  type: Directive,
21
21
  args: [{ selector: 'ng-template[aerisPanelToggleIcon]' }]
22
22
  }] });
23
23
  class AerisPanelHeaderActions {
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelHeaderActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisPanelHeaderActions, isStandalone: true, selector: "[aerisPanelHeaderActions]", host: { classAttribute: "aeris-panel__actions" }, ngImport: i0 });
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelHeaderActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
25
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisPanelHeaderActions, isStandalone: true, selector: "[aerisPanelHeaderActions]", host: { classAttribute: "aeris-panel__actions" }, ngImport: i0 });
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelHeaderActions, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelHeaderActions, decorators: [{
28
28
  type: Directive,
29
29
  args: [{
30
30
  selector: '[aerisPanelHeaderActions]',
@@ -32,10 +32,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
32
32
  }]
33
33
  }] });
34
34
  class AerisPanelFooter {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
36
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: AerisPanelFooter, isStandalone: true, selector: "[aerisPanelFooter]", host: { classAttribute: "aeris-panel__footer" }, ngImport: i0 });
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
36
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisPanelFooter, isStandalone: true, selector: "[aerisPanelFooter]", host: { classAttribute: "aeris-panel__footer" }, ngImport: i0 });
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanelFooter, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanelFooter, decorators: [{
39
39
  type: Directive,
40
40
  args: [{
41
41
  selector: '[aerisPanelFooter]',
@@ -154,8 +154,8 @@ class AerisPanel {
154
154
  this.panelExpanded.emit(event);
155
155
  }
156
156
  }
157
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
158
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AerisPanel, isStandalone: true, selector: "aeris-panel", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, toggleable: { classPropertyName: "toggleable", publicName: "toggleable", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", 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 }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", 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 }, toggleButtonLabel: { classPropertyName: "toggleButtonLabel", publicName: "toggleButtonLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange", toggled: "toggled", panelExpanded: "panelExpanded", panelCollapsed: "panelCollapsed" }, host: { properties: { "attr.id": "id()", "attr.role": "semanticRole()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "hostLabelledBy()", "attr.aria-describedby": "ariaDescribedBy() || null", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-toggleable": "toggleable() || null", "attr.data-collapsed": "isContentHidden() || null", "attr.data-disabled": "disabled() || null", "attr.data-animated": "animated() || null" }, classAttribute: "aeris-panel" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisPanelHeaderTemplate, isSignal: true }, { propertyName: "toggleIconTemplate", first: true, predicate: AerisPanelToggleIconTemplate, isSignal: true }, { propertyName: "headerActions", first: true, predicate: AerisPanelHeaderActions, isSignal: true }, { propertyName: "footer", first: true, predicate: AerisPanelFooter, isSignal: true }], ngImport: i0, template: `
157
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
158
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: AerisPanel, isStandalone: true, selector: "aeris-panel", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, toggleable: { classPropertyName: "toggleable", publicName: "toggleable", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", 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 }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", 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 }, toggleButtonLabel: { classPropertyName: "toggleButtonLabel", publicName: "toggleButtonLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange", toggled: "toggled", panelExpanded: "panelExpanded", panelCollapsed: "panelCollapsed" }, host: { properties: { "attr.id": "id()", "attr.role": "semanticRole()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "hostLabelledBy()", "attr.aria-describedby": "ariaDescribedBy() || null", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-toggleable": "toggleable() || null", "attr.data-collapsed": "isContentHidden() || null", "attr.data-disabled": "disabled() || null", "attr.data-animated": "animated() || null" }, classAttribute: "aeris-panel" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisPanelHeaderTemplate, isSignal: true }, { propertyName: "toggleIconTemplate", first: true, predicate: AerisPanelToggleIconTemplate, isSignal: true }, { propertyName: "headerActions", first: true, predicate: AerisPanelHeaderActions, isSignal: true }, { propertyName: "footer", first: true, predicate: AerisPanelFooter, isSignal: true }], ngImport: i0, template: `
159
159
  @if (hasHeader()) {
160
160
  <div class="aeris-panel__header">
161
161
  <div
@@ -234,7 +234,7 @@ class AerisPanel {
234
234
  }
235
235
  `, isInline: true, styles: ["aeris-panel{display:block;min-inline-size:0}.aeris-panel{--_padding-block: var(--aeris-panel-padding-block, 1rem);--_padding-inline: var(--aeris-panel-padding-inline, 1.125rem);--_header-padding-block: var(--aeris-panel-header-padding-block, .875rem);--_header-padding-inline: var(--aeris-panel-header-padding-inline, 1.125rem);overflow:hidden;border:1px solid var(--aeris-panel-border, var(--aeris-border));border-radius:var(--aeris-panel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-panel-background, var(--aeris-surface, #fff));color:var(--aeris-panel-color, var(--aeris-text, #222222));box-shadow:var(--aeris-panel-shadow, none)}.aeris-panel[data-size=sm]{--_padding-block: var(--aeris-panel-padding-block-sm, .75rem);--_padding-inline: var(--aeris-panel-padding-inline-sm, .875rem);--_header-padding-block: var(--aeris-panel-header-padding-block-sm, .675rem);--_header-padding-inline: var(--aeris-panel-header-padding-inline-sm, .875rem)}.aeris-panel[data-size=lg]{--_padding-block: var(--aeris-panel-padding-block-lg, 1.35rem);--_padding-inline: var(--aeris-panel-padding-inline-lg, 1.5rem);--_header-padding-block: var(--aeris-panel-header-padding-block-lg, 1rem);--_header-padding-inline: var(--aeris-panel-header-padding-inline-lg, 1.5rem)}.aeris-panel[data-variant=elevated]{border-color:var(--aeris-panel-elevated-border, transparent);box-shadow:var(--aeris-panel-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #222222) 10%, transparent))}.aeris-panel[data-variant=filled]{border-color:var(--aeris-panel-filled-border, transparent);background:var(--aeris-panel-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-panel[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-panel__header{display:flex;align-items:center;justify-content:space-between;gap:var(--aeris-panel-header-gap, .75rem);min-inline-size:0;padding:var(--_header-padding-block) var(--_header-padding-inline);border-block-end:1px solid var(--aeris-panel-header-border, var(--aeris-border));background:var(--aeris-panel-header-background, color-mix(in srgb, var(--aeris-surface-2, #f2f0ec) 58%, transparent))}.aeris-panel[data-variant=plain] .aeris-panel__header{padding-inline:0;background:transparent}.aeris-panel[data-collapsed=true] .aeris-panel__header{border-block-end-color:transparent}.aeris-panel__heading{min-inline-size:0;flex:1 1 auto}.aeris-panel__title{min-inline-size:0;color:var(--aeris-panel-title-color, var(--aeris-text, #222222));font-size:var(--aeris-panel-title-size, .9375rem);font-weight:800;line-height:1.35}.aeris-panel__toggle{display:flex;align-items:center;justify-content:space-between;gap:var(--aeris-panel-toggle-gap, .75rem);inline-size:100%;min-block-size:2.25rem;margin:0;padding:0;border:0;border-radius:var(--aeris-panel-toggle-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.aeris-panel__toggle:hover{color:var(--aeris-panel-toggle-hover-color, var(--aeris-primary-text, var(--aeris-primary, #5f6f36)))}.aeris-panel__toggle:focus-visible{outline:3px solid color-mix(in srgb,var(--focus, var(--aeris-primary, #5f6f36)) 42%,transparent);outline-offset:.25rem}.aeris-panel__toggle:disabled{cursor:not-allowed;opacity:.58}.aeris-panel__toggle-icon{display:inline-grid;flex:0 0 auto;place-items:center;inline-size:var(--aeris-panel-icon-size, 1.25rem);block-size:var(--aeris-panel-icon-size, 1.25rem);color:var(--aeris-panel-icon-color, currentColor)}.aeris-panel__toggle-icon svg{display:block;inline-size:100%;block-size:100%;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;transform-origin:center;transition:transform .16s ease}.aeris-panel__toggle[aria-expanded=true] .aeris-panel__toggle-icon svg{transform:rotate(180deg)}.aeris-panel__actions{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:var(--aeris-panel-actions-gap, .5rem)}.aeris-panel__content-shell{display:grid;grid-template-rows:1fr;transition:grid-template-rows .18s ease}.aeris-panel[data-collapsed=true] .aeris-panel__content-shell{grid-template-rows:0fr}.aeris-panel__content{min-block-size:0;overflow:hidden;padding:var(--_padding-block) var(--_padding-inline);color:var(--aeris-panel-content-color, var(--aeris-text-2, #555555));font-size:var(--aeris-panel-content-size, .875rem);line-height:1.65;visibility:visible;transition:padding-block .18s ease,visibility 0s linear}.aeris-panel[data-collapsed=true] .aeris-panel__content{padding-block:0;visibility:hidden}.aeris-panel[data-variant=plain] .aeris-panel__content{padding-inline:0}.aeris-panel__content>:first-child{margin-block-start:0}.aeris-panel__content>:last-child{margin-block-end:0}.aeris-panel__footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--aeris-panel-footer-gap, .625rem);padding:var(--aeris-panel-footer-padding-block, .875rem) var(--_padding-inline);border-block-start:1px solid var(--aeris-panel-footer-border, var(--aeris-border));background:var(--aeris-panel-footer-background, transparent)}.aeris-panel[data-collapsed=true] .aeris-panel__footer{display:none}.aeris-panel[data-disabled=true]{opacity:var(--aeris-panel-disabled-opacity, .68)}.aeris-panel[data-animated=false] .aeris-panel__content-shell,.aeris-panel[data-animated=false] .aeris-panel__content,.aeris-panel[data-animated=false] .aeris-panel__toggle-icon svg{transition:none}@media(max-width:40rem){.aeris-panel__header{align-items:flex-start;flex-direction:column}.aeris-panel__actions{justify-content:flex-start}}@media(prefers-reduced-motion:reduce){.aeris-panel__content-shell,.aeris-panel__content,.aeris-panel__toggle-icon svg{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
236
236
  }
237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisPanel, decorators: [{
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisPanel, decorators: [{
238
238
  type: Component,
239
239
  args: [{ selector: 'aeris-panel', imports: [NgTemplateOutlet], template: `
240
240
  @if (hasHeader()) {