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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) 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 +47 -40
  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 +6 -6
  8. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  9. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  11. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  12. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  13. package/fesm2022/aeris-ui-core-button.mjs +38 -56
  14. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  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 +39 -30
  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 +22 -19
  21. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  23. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  24. package/fesm2022/aeris-ui-core-color-picker.mjs +28 -26
  25. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-compare.mjs +21 -25
  27. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +45 -43
  29. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-confirm-popup.mjs +43 -39
  31. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-context-menu.mjs +14 -17
  33. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-date-picker.mjs +24 -22
  35. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-dialog.mjs +32 -29
  37. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  39. package/fesm2022/aeris-ui-core-drawer.mjs +27 -28
  40. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  41. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +23 -23
  42. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-editor.mjs +22 -19
  44. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  45. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  46. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  47. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  48. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  49. package/fesm2022/aeris-ui-core-form-field.mjs +31 -26
  50. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-galleria.mjs +30 -30
  52. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  54. package/fesm2022/aeris-ui-core-icon-field.mjs +22 -17
  55. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  57. package/fesm2022/aeris-ui-core-input-group.mjs +25 -20
  58. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  59. package/fesm2022/aeris-ui-core-input-mask.mjs +25 -24
  60. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  61. package/fesm2022/aeris-ui-core-input-number.mjs +41 -29
  62. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  63. package/fesm2022/aeris-ui-core-input-otp.mjs +28 -28
  64. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  65. package/fesm2022/aeris-ui-core-input-text.mjs +32 -31
  66. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  67. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  68. package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
  69. package/fesm2022/aeris-ui-core-menu.mjs +23 -26
  70. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  71. package/fesm2022/aeris-ui-core-menubar.mjs +15 -15
  72. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-message.mjs +12 -12
  74. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  75. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  76. package/fesm2022/aeris-ui-core-multi-select.mjs +45 -39
  77. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  79. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  80. package/fesm2022/aeris-ui-core-paginator.mjs +4 -4
  81. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  83. package/fesm2022/aeris-ui-core-password.mjs +52 -46
  84. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  85. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  86. package/fesm2022/aeris-ui-core-popover.mjs +27 -28
  87. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  89. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  90. package/fesm2022/aeris-ui-core-radio-button.mjs +22 -19
  91. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-rating.mjs +12 -14
  93. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  95. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  96. package/fesm2022/aeris-ui-core-select.mjs +75 -67
  97. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  99. package/fesm2022/aeris-ui-core-slider.mjs +42 -52
  100. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  101. package/fesm2022/aeris-ui-core-speed-dial.mjs +46 -22
  102. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  103. package/fesm2022/aeris-ui-core-split-button.mjs +38 -37
  104. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  105. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  106. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  107. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  108. package/fesm2022/aeris-ui-core-table.mjs +28 -22
  109. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
  111. package/fesm2022/aeris-ui-core-textarea.mjs +37 -35
  112. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  113. package/fesm2022/aeris-ui-core-theme-builder.mjs +1 -1
  114. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  115. package/fesm2022/aeris-ui-core-theming.mjs +4 -4
  116. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  117. package/fesm2022/aeris-ui-core-tiered-menu.mjs +14 -17
  118. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  120. package/fesm2022/aeris-ui-core-toast.mjs +26 -15
  121. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-toggle-switch.mjs +22 -19
  123. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  125. package/fesm2022/aeris-ui-core-tooltip.mjs +13 -19
  126. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-tree-select.mjs +45 -39
  128. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-tree-table.mjs +25 -19
  130. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-tree.mjs +14 -14
  132. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  133. package/fesm2022/aeris-ui-core.mjs +49 -15
  134. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  135. package/package.json +1 -1
  136. package/schematics/runtime/theme-builder/aeris-theme.js +1 -1
  137. package/types/aeris-ui-core-auto-complete.d.ts +6 -4
  138. package/types/aeris-ui-core-badge.d.ts +4 -3
  139. package/types/aeris-ui-core-button.d.ts +13 -16
  140. package/types/aeris-ui-core-cascade-select.d.ts +6 -3
  141. package/types/aeris-ui-core-checkbox.d.ts +5 -4
  142. package/types/aeris-ui-core-color-picker.d.ts +5 -4
  143. package/types/aeris-ui-core-compare.d.ts +3 -4
  144. package/types/aeris-ui-core-confirm-dialog.d.ts +13 -13
  145. package/types/aeris-ui-core-confirm-popup.d.ts +13 -13
  146. package/types/aeris-ui-core-context-menu.d.ts +4 -5
  147. package/types/aeris-ui-core-date-picker.d.ts +5 -4
  148. package/types/aeris-ui-core-dialog.d.ts +4 -5
  149. package/types/aeris-ui-core-drawer.d.ts +4 -5
  150. package/types/aeris-ui-core-dynamic-dialog.d.ts +9 -9
  151. package/types/aeris-ui-core-editor.d.ts +5 -4
  152. package/types/aeris-ui-core-filter-service.d.ts +1 -1
  153. package/types/aeris-ui-core-form-field.d.ts +6 -4
  154. package/types/aeris-ui-core-galleria.d.ts +2 -2
  155. package/types/aeris-ui-core-icon-field.d.ts +3 -1
  156. package/types/aeris-ui-core-input-group.d.ts +22 -20
  157. package/types/aeris-ui-core-input-mask.d.ts +5 -4
  158. package/types/aeris-ui-core-input-number.d.ts +5 -4
  159. package/types/aeris-ui-core-input-otp.d.ts +5 -4
  160. package/types/aeris-ui-core-input-text.d.ts +7 -5
  161. package/types/aeris-ui-core-menu.d.ts +4 -5
  162. package/types/aeris-ui-core-menubar.d.ts +5 -4
  163. package/types/aeris-ui-core-message.d.ts +3 -2
  164. package/types/aeris-ui-core-multi-select.d.ts +6 -4
  165. package/types/aeris-ui-core-password.d.ts +5 -4
  166. package/types/aeris-ui-core-popover.d.ts +4 -5
  167. package/types/aeris-ui-core-radio-button.d.ts +5 -4
  168. package/types/aeris-ui-core-rating.d.ts +3 -4
  169. package/types/aeris-ui-core-select.d.ts +6 -4
  170. package/types/aeris-ui-core-slider.d.ts +5 -4
  171. package/types/aeris-ui-core-speed-dial.d.ts +4 -4
  172. package/types/aeris-ui-core-split-button.d.ts +10 -12
  173. package/types/aeris-ui-core-table.d.ts +3 -1
  174. package/types/aeris-ui-core-textarea.d.ts +8 -5
  175. package/types/aeris-ui-core-theme-builder.d.ts +1 -1
  176. package/types/aeris-ui-core-theming.d.ts +1 -1
  177. package/types/aeris-ui-core-tiered-menu.d.ts +4 -5
  178. package/types/aeris-ui-core-toast.d.ts +4 -2
  179. package/types/aeris-ui-core-toggle-switch.d.ts +5 -4
  180. package/types/aeris-ui-core-tooltip.d.ts +3 -3
  181. package/types/aeris-ui-core-tree-select.d.ts +6 -4
  182. package/types/aeris-ui-core-tree-table.d.ts +3 -1
  183. package/types/aeris-ui-core.d.ts +16 -4
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { model, input, booleanAttribute, numberAttribute, output, signal, computed, viewChildren, forwardRef, Component } from '@angular/core';
2
+ import { model, input, booleanAttribute, numberAttribute, computed, output, signal, viewChildren, forwardRef, Component } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { ɵaerisDisplayInvalid as _aerisDisplayInvalid } from '@aeris-ui/core';
4
5
 
5
6
  function sliderPrecision(step) {
6
7
  const text = String(step);
@@ -54,10 +55,10 @@ class AerisSlider {
54
55
  ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
55
56
  ariaLabel = input('Value', /* @ts-ignore */
56
57
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
57
- ariaLabelledby = input('', /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
59
- ariaDescribedby = input('', /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
58
+ ariaLabelledBy = input('', /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
60
+ ariaDescribedBy = input('', /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
61
62
  lowerAriaLabel = input('Minimum value', /* @ts-ignore */
62
63
  ...(ngDevMode ? [{ debugName: "lowerAriaLabel" }] : /* istanbul ignore next */ []));
63
64
  upperAriaLabel = input('Maximum value', /* @ts-ignore */
@@ -76,8 +77,11 @@ class AerisSlider {
76
77
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
77
78
  readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
78
79
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
80
+ touched = input(null, /* @ts-ignore */
81
+ ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
82
+ displayInvalid = computed(() => _aerisDisplayInvalid(this.invalid(), this.touched()), /* @ts-ignore */
83
+ ...(ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []));
79
84
  fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
80
- valueInput = output();
81
85
  sliding = output();
82
86
  changed = output();
83
87
  focused = output();
@@ -89,7 +93,7 @@ class AerisSlider {
89
93
  ...(ngDevMode ? [{ debugName: "activeThumb" }] : /* istanbul ignore next */ []));
90
94
  effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
91
95
  ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
92
- effectiveStep = computed(() => this.step() > 0 ? this.step() : 1, /* @ts-ignore */
96
+ effectiveStep = computed(() => (this.step() > 0 ? this.step() : 1), /* @ts-ignore */
93
97
  ...(ngDevMode ? [{ debugName: "effectiveStep" }] : /* istanbul ignore next */ []));
94
98
  effectiveMinRange = computed(() => Math.min(this.normalizedMax() - this.normalizedMin(), Math.max(0, this.minRange())), /* @ts-ignore */
95
99
  ...(ngDevMode ? [{ debugName: "effectiveMinRange" }] : /* istanbul ignore next */ []));
@@ -123,9 +127,7 @@ class AerisSlider {
123
127
  }, /* @ts-ignore */
124
128
  ...(ngDevMode ? [{ debugName: "upperValue" }] : /* istanbul ignore next */ []));
125
129
  startPercentage = computed(() => {
126
- const percentage = this.range()
127
- ? this.percentage(this.lowerValue())
128
- : 0;
130
+ const percentage = this.range() ? this.percentage(this.lowerValue()) : 0;
129
131
  return this.reversed() ? 100 - this.endBasePercentage() : percentage;
130
132
  }, /* @ts-ignore */
131
133
  ...(ngDevMode ? [{ debugName: "startPercentage" }] : /* istanbul ignore next */ []));
@@ -148,9 +150,7 @@ class AerisSlider {
148
150
  ...(ngDevMode ? [{ debugName: "formattedLowerValue" }] : /* istanbul ignore next */ []));
149
151
  formattedUpperValue = computed(() => this.formatValue(this.upperValue()), /* @ts-ignore */
150
152
  ...(ngDevMode ? [{ debugName: "formattedUpperValue" }] : /* istanbul ignore next */ []));
151
- serializedValue = computed(() => this.range()
152
- ? `${this.lowerValue()},${this.upperValue()}`
153
- : String(this.singleValue()), /* @ts-ignore */
153
+ serializedValue = computed(() => this.range() ? `${this.lowerValue()},${this.upperValue()}` : String(this.singleValue()), /* @ts-ignore */
154
154
  ...(ngDevMode ? [{ debugName: "serializedValue" }] : /* istanbul ignore next */ []));
155
155
  ticks = computed(() => {
156
156
  const count = Math.floor((this.normalizedMax() - this.normalizedMin()) / this.effectiveStep()) + 1;
@@ -204,9 +204,7 @@ class AerisSlider {
204
204
  return this.valueText()?.(value) ?? String(value);
205
205
  }
206
206
  handleTrackPointerDown(event) {
207
- if (this.effectiveDisabled() ||
208
- this.readonly() ||
209
- event.button !== 0) {
207
+ if (this.effectiveDisabled() || this.readonly() || event.button !== 0) {
210
208
  return;
211
209
  }
212
210
  event.preventDefault();
@@ -255,10 +253,12 @@ class AerisSlider {
255
253
  next = current - this.resolvedPageStep();
256
254
  }
257
255
  else if (event.key === 'Home') {
258
- next = thumb === 'upper' ? this.lowerValue() + this.effectiveMinRange() : this.normalizedMin();
256
+ next =
257
+ thumb === 'upper' ? this.lowerValue() + this.effectiveMinRange() : this.normalizedMin();
259
258
  }
260
259
  else if (event.key === 'End') {
261
- next = thumb === 'lower' ? this.upperValue() - this.effectiveMinRange() : this.normalizedMax();
260
+ next =
261
+ thumb === 'lower' ? this.upperValue() - this.effectiveMinRange() : this.normalizedMax();
262
262
  }
263
263
  if (next === null)
264
264
  return;
@@ -284,16 +284,10 @@ class AerisSlider {
284
284
  next = aligned;
285
285
  }
286
286
  else if (thumb === 'lower') {
287
- next = [
288
- Math.min(aligned, this.upperValue() - this.effectiveMinRange()),
289
- this.upperValue(),
290
- ];
287
+ next = [Math.min(aligned, this.upperValue() - this.effectiveMinRange()), this.upperValue()];
291
288
  }
292
289
  else {
293
- next = [
294
- this.lowerValue(),
295
- Math.max(aligned, this.lowerValue() + this.effectiveMinRange()),
296
- ];
290
+ next = [this.lowerValue(), Math.max(aligned, this.lowerValue() + this.effectiveMinRange())];
297
291
  }
298
292
  const changed = !sameSliderValue(this.normalizedValue(), next);
299
293
  if (!changed)
@@ -307,7 +301,6 @@ class AerisSlider {
307
301
  }
308
302
  setValue(value) {
309
303
  this.value.set(value);
310
- this.valueInput.emit(value);
311
304
  this.onChange(value);
312
305
  }
313
306
  closestThumb(value) {
@@ -324,8 +317,7 @@ class AerisSlider {
324
317
  : (event.clientX - rect.left) / Math.max(1, rect.width);
325
318
  const normalizedRatio = this.reversed() ? 1 - ratio : ratio;
326
319
  return (this.normalizedMin() +
327
- Math.min(1, Math.max(0, normalizedRatio)) *
328
- (this.normalizedMax() - this.normalizedMin()));
320
+ Math.min(1, Math.max(0, normalizedRatio)) * (this.normalizedMax() - this.normalizedMin()));
329
321
  }
330
322
  keyDirection(key) {
331
323
  if (key === 'ArrowRight' || key === 'ArrowUp') {
@@ -380,12 +372,10 @@ class AerisSlider {
380
372
  }
381
373
  return [this.normalizedMin(), this.normalizedMax()];
382
374
  }
383
- return alignSliderValue(typeof value === 'number' && Number.isFinite(value)
384
- ? value
385
- : this.normalizedMin(), this.normalizedMin(), this.normalizedMax(), this.effectiveStep());
375
+ return alignSliderValue(typeof value === 'number' && Number.isFinite(value) ? value : this.normalizedMin(), this.normalizedMin(), this.normalizedMax(), this.effectiveStep());
386
376
  }
387
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisSlider, deps: [], target: i0.ɵɵFactoryTarget.Component });
388
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: AerisSlider, isStandalone: true, selector: "aeris-slider", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minRange: { classPropertyName: "minRange", publicName: "minRange", isSignal: true, isRequired: false, transformFunction: null }, pageStep: { classPropertyName: "pageStep", publicName: "pageStep", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, reversed: { classPropertyName: "reversed", publicName: "reversed", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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 }, lowerAriaLabel: { classPropertyName: "lowerAriaLabel", publicName: "lowerAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, upperAriaLabel: { classPropertyName: "upperAriaLabel", publicName: "upperAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, lowerAriaLabelledby: { classPropertyName: "lowerAriaLabelledby", publicName: "lowerAriaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, upperAriaLabelledby: { classPropertyName: "upperAriaLabelledby", publicName: "upperAriaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, showTooltip: { classPropertyName: "showTooltip", publicName: "showTooltip", isSignal: true, isRequired: false, transformFunction: null }, showTicks: { classPropertyName: "showTicks", publicName: "showTicks", isSignal: true, isRequired: false, transformFunction: null }, maxTicks: { classPropertyName: "maxTicks", publicName: "maxTicks", isSignal: true, isRequired: false, transformFunction: null }, showMinMax: { classPropertyName: "showMinMax", publicName: "showMinMax", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", sliding: "sliding", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-fluid": "fluid() || null", "attr.data-disabled": "effectiveDisabled() || null" } }, providers: [
377
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisSlider, deps: [], target: i0.ɵɵFactoryTarget.Component });
378
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AerisSlider, isStandalone: true, selector: "aeris-slider", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minRange: { classPropertyName: "minRange", publicName: "minRange", isSignal: true, isRequired: false, transformFunction: null }, pageStep: { classPropertyName: "pageStep", publicName: "pageStep", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, reversed: { classPropertyName: "reversed", publicName: "reversed", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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 }, lowerAriaLabel: { classPropertyName: "lowerAriaLabel", publicName: "lowerAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, upperAriaLabel: { classPropertyName: "upperAriaLabel", publicName: "upperAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, lowerAriaLabelledby: { classPropertyName: "lowerAriaLabelledby", publicName: "lowerAriaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, upperAriaLabelledby: { classPropertyName: "upperAriaLabelledby", publicName: "upperAriaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, showTooltip: { classPropertyName: "showTooltip", publicName: "showTooltip", isSignal: true, isRequired: false, transformFunction: null }, showTicks: { classPropertyName: "showTicks", publicName: "showTicks", isSignal: true, isRequired: false, transformFunction: null }, maxTicks: { classPropertyName: "maxTicks", publicName: "maxTicks", isSignal: true, isRequired: false, transformFunction: null }, showMinMax: { classPropertyName: "showMinMax", publicName: "showMinMax", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", sliding: "sliding", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-fluid": "fluid() || null", "attr.data-disabled": "effectiveDisabled() || null" } }, providers: [
389
379
  {
390
380
  provide: NG_VALUE_ACCESSOR,
391
381
  useExisting: forwardRef(() => AerisSlider),
@@ -400,7 +390,7 @@ class AerisSlider {
400
390
  [attr.data-reversed]="reversed() || null"
401
391
  [attr.data-disabled]="effectiveDisabled() || null"
402
392
  [attr.data-readonly]="readonly() || null"
403
- [attr.data-invalid]="invalid() || null"
393
+ [attr.data-invalid]="displayInvalid() || null"
404
394
  [style.--aeris-slider-start]="startPercentage() + '%'"
405
395
  [style.--aeris-slider-end]="endPercentage() + '%'"
406
396
  [style.--aeris-slider-single]="singlePercentage() + '%'"
@@ -452,13 +442,13 @@ class AerisSlider {
452
442
  [id]="lowerThumbId()"
453
443
  [attr.aria-label]="lowerAriaLabel()"
454
444
  [attr.aria-labelledby]="lowerAriaLabelledby() || null"
455
- [attr.aria-describedby]="ariaDescribedby() || null"
445
+ [attr.aria-describedby]="ariaDescribedBy() || null"
456
446
  [attr.aria-valuemin]="min()"
457
447
  [attr.aria-valuemax]="upperValue() - effectiveMinRange()"
458
448
  [attr.aria-valuenow]="lowerValue()"
459
449
  [attr.aria-valuetext]="formattedLowerValue()"
460
450
  [attr.aria-orientation]="orientation()"
461
- [attr.aria-invalid]="invalid() || null"
451
+ [attr.aria-invalid]="displayInvalid() || null"
462
452
  [attr.aria-readonly]="readonly() || null"
463
453
  [disabled]="effectiveDisabled()"
464
454
  [attr.data-active]="activeThumb() === 'lower' || null"
@@ -480,13 +470,13 @@ class AerisSlider {
480
470
  [id]="upperThumbId()"
481
471
  [attr.aria-label]="upperAriaLabel()"
482
472
  [attr.aria-labelledby]="upperAriaLabelledby() || null"
483
- [attr.aria-describedby]="ariaDescribedby() || null"
473
+ [attr.aria-describedby]="ariaDescribedBy() || null"
484
474
  [attr.aria-valuemin]="lowerValue() + effectiveMinRange()"
485
475
  [attr.aria-valuemax]="max()"
486
476
  [attr.aria-valuenow]="upperValue()"
487
477
  [attr.aria-valuetext]="formattedUpperValue()"
488
478
  [attr.aria-orientation]="orientation()"
489
- [attr.aria-invalid]="invalid() || null"
479
+ [attr.aria-invalid]="displayInvalid() || null"
490
480
  [attr.aria-readonly]="readonly() || null"
491
481
  [disabled]="effectiveDisabled()"
492
482
  [attr.data-active]="activeThumb() === 'upper' || null"
@@ -508,14 +498,14 @@ class AerisSlider {
508
498
  role="slider"
509
499
  [id]="singleThumbId()"
510
500
  [attr.aria-label]="ariaLabel()"
511
- [attr.aria-labelledby]="ariaLabelledby() || null"
512
- [attr.aria-describedby]="ariaDescribedby() || null"
501
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
502
+ [attr.aria-describedby]="ariaDescribedBy() || null"
513
503
  [attr.aria-valuemin]="min()"
514
504
  [attr.aria-valuemax]="max()"
515
505
  [attr.aria-valuenow]="singleValue()"
516
506
  [attr.aria-valuetext]="formattedSingleValue()"
517
507
  [attr.aria-orientation]="orientation()"
518
- [attr.aria-invalid]="invalid() || null"
508
+ [attr.aria-invalid]="displayInvalid() || null"
519
509
  [attr.aria-readonly]="readonly() || null"
520
510
  [disabled]="effectiveDisabled()"
521
511
  [attr.data-active]="activeThumb() === 'single' || null"
@@ -541,7 +531,7 @@ class AerisSlider {
541
531
  </div>
542
532
  `, isInline: true, styles: [":host{display:inline-block;width:18rem;max-width:100%;color:var(--aeris-slider-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]){width:100%}:host([data-orientation=vertical]){width:auto;height:14rem}.aeris-slider{--_thumb-size: 1.125rem;--_track-size: .375rem;width:100%;display:grid;gap:.5rem}.aeris-slider[data-size=xs]{--_thumb-size: .875rem;--_track-size: .25rem}.aeris-slider[data-size=sm]{--_thumb-size: 1rem;--_track-size: .3125rem}.aeris-slider[data-size=lg]{--_thumb-size: 1.375rem;--_track-size: .5rem}.aeris-slider[data-orientation=vertical]{height:100%;grid-template-columns:auto minmax(0,1fr) auto;align-items:stretch}.aeris-slider__track{position:relative;min-width:0;min-height:calc(var(--_thumb-size) + .5rem);cursor:pointer;touch-action:none}.aeris-slider[data-orientation=vertical] .aeris-slider__track{width:calc(var(--_thumb-size) + .5rem);min-height:0;height:100%}.aeris-slider__rail,.aeris-slider__fill{position:absolute;top:50%;right:0;left:0;height:var(--_track-size);border-radius:999px;transform:translateY(-50%)}.aeris-slider__rail{background:var(--aeris-slider-rail-background, var(--aeris-surface-3, #e5e5df))}.aeris-slider__fill{right:calc(100% - var(--aeris-slider-end));left:var(--aeris-slider-start);background:var(--aeris-slider-fill-background, var(--aeris-primary, #5f6f36))}.aeris-slider[data-orientation=vertical] .aeris-slider__rail,.aeris-slider[data-orientation=vertical] .aeris-slider__fill{inset:0 auto 0 50%;width:var(--_track-size);height:auto;transform:translate(-50%)}.aeris-slider[data-orientation=vertical] .aeris-slider__fill{top:calc(100% - var(--aeris-slider-end));bottom:var(--aeris-slider-start)}.aeris-slider__thumb{position:absolute;z-index:2;top:50%;width:var(--_thumb-size);height:var(--_thumb-size);padding:0;border:2px solid var(--aeris-slider-thumb-border, var(--aeris-primary, #5f6f36));border-radius:50%;background:var(--aeris-slider-thumb-background, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);transform:translate(-50%,-50%);cursor:grab;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.aeris-slider__thumb--single{left:var(--aeris-slider-single)}.aeris-slider__thumb--lower{left:var(--aeris-slider-lower)}.aeris-slider__thumb--upper{left:var(--aeris-slider-upper)}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb{left:50%;bottom:auto}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb--single{top:calc(100% - var(--aeris-slider-single))}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb--lower{top:calc(100% - var(--aeris-slider-lower))}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb--upper{top:calc(100% - var(--aeris-slider-upper))}.aeris-slider__thumb:hover:not(:disabled),.aeris-slider__thumb[data-active]{border-color:var(--aeris-slider-thumb-hover, var(--aeris-focus, #3b4729));box-shadow:0 0 0 .3125rem color-mix(in srgb,var(--aeris-primary, #5f6f36) 16%,transparent)}.aeris-slider__thumb:focus-visible{z-index:3;outline:0;box-shadow:0 0 0 .1875rem var(--aeris-surface, #fff),0 0 0 .375rem var(--aeris-slider-focus, var(--aeris-focus, #3b4729))}.aeris-slider__thumb:active,.aeris-slider__thumb[data-active]{transform:translate(-50%,-50%) scale(1.08);cursor:grabbing}.aeris-slider__tooltip{position:absolute;bottom:calc(100% + .5rem);left:50%;min-width:1.75rem;padding:.25rem .4rem;border-radius:.375rem;background:var(--aeris-slider-tooltip-background, var(--aeris-text, #222222));color:var(--aeris-slider-tooltip-text, var(--aeris-surface, #fff));font-size:.6875rem;line-height:1.2;opacity:0;transform:translate(-50%) translateY(.2rem);transition:opacity .12s ease,transform .12s ease;pointer-events:none;white-space:nowrap}.aeris-slider__thumb:hover .aeris-slider__tooltip,.aeris-slider__thumb:focus-visible .aeris-slider__tooltip,.aeris-slider__thumb[data-active] .aeris-slider__tooltip{opacity:1;transform:translate(-50%) translateY(0)}.aeris-slider[data-orientation=vertical] .aeris-slider__tooltip{top:50%;bottom:auto;left:calc(100% + .5rem);transform:translateY(-50%) translate(-.2rem)}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb:hover .aeris-slider__tooltip,.aeris-slider[data-orientation=vertical] .aeris-slider__thumb:focus-visible .aeris-slider__tooltip,.aeris-slider[data-orientation=vertical] .aeris-slider__thumb[data-active] .aeris-slider__tooltip{transform:translateY(-50%) translate(0)}.aeris-slider__ticks{position:absolute;inset:0;pointer-events:none}.aeris-slider__ticks span{position:absolute;top:50%;left:var(--aeris-slider-tick-position);width:.25rem;height:.25rem;border-radius:50%;background:var(--aeris-slider-tick, var(--aeris-border, #deddd7));transform:translate(-50%,-50%)}.aeris-slider__ticks span[data-active]{background:var(--aeris-slider-active-tick, var(--aeris-surface, #fff))}.aeris-slider[data-orientation=vertical] .aeris-slider__ticks span{top:calc(100% - var(--aeris-slider-tick-position));bottom:auto;left:50%}.aeris-slider__values,.aeris-slider__limits{display:flex;justify-content:space-between;gap:1rem;color:var(--aeris-text-2, #555555);font-size:.75rem;font-variant-numeric:tabular-nums}.aeris-slider__values{color:var(--aeris-text, #222222);font-weight:650}.aeris-slider:not([data-range]) .aeris-slider__values{justify-content:flex-end}.aeris-slider[data-orientation=vertical] .aeris-slider__values,.aeris-slider[data-orientation=vertical] .aeris-slider__limits{flex-direction:column-reverse;align-items:center}.aeris-slider[data-disabled],.aeris-slider[data-readonly]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-slider[data-disabled] .aeris-slider__track,.aeris-slider[data-readonly] .aeris-slider__track,.aeris-slider__thumb:disabled{cursor:not-allowed}.aeris-slider[data-invalid] .aeris-slider__fill{background:var(--aeris-danger, #c81e2a)}.aeris-slider[data-invalid] .aeris-slider__thumb{border-color:var(--aeris-danger, #c81e2a)}@media(prefers-reduced-motion:reduce){.aeris-slider__thumb,.aeris-slider__tooltip{transition:none}}\n"] });
543
533
  }
544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisSlider, decorators: [{
534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisSlider, decorators: [{
545
535
  type: Component,
546
536
  args: [{ selector: 'aeris-slider', template: `
547
537
  <div
@@ -552,7 +542,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
552
542
  [attr.data-reversed]="reversed() || null"
553
543
  [attr.data-disabled]="effectiveDisabled() || null"
554
544
  [attr.data-readonly]="readonly() || null"
555
- [attr.data-invalid]="invalid() || null"
545
+ [attr.data-invalid]="displayInvalid() || null"
556
546
  [style.--aeris-slider-start]="startPercentage() + '%'"
557
547
  [style.--aeris-slider-end]="endPercentage() + '%'"
558
548
  [style.--aeris-slider-single]="singlePercentage() + '%'"
@@ -604,13 +594,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
604
594
  [id]="lowerThumbId()"
605
595
  [attr.aria-label]="lowerAriaLabel()"
606
596
  [attr.aria-labelledby]="lowerAriaLabelledby() || null"
607
- [attr.aria-describedby]="ariaDescribedby() || null"
597
+ [attr.aria-describedby]="ariaDescribedBy() || null"
608
598
  [attr.aria-valuemin]="min()"
609
599
  [attr.aria-valuemax]="upperValue() - effectiveMinRange()"
610
600
  [attr.aria-valuenow]="lowerValue()"
611
601
  [attr.aria-valuetext]="formattedLowerValue()"
612
602
  [attr.aria-orientation]="orientation()"
613
- [attr.aria-invalid]="invalid() || null"
603
+ [attr.aria-invalid]="displayInvalid() || null"
614
604
  [attr.aria-readonly]="readonly() || null"
615
605
  [disabled]="effectiveDisabled()"
616
606
  [attr.data-active]="activeThumb() === 'lower' || null"
@@ -632,13 +622,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
632
622
  [id]="upperThumbId()"
633
623
  [attr.aria-label]="upperAriaLabel()"
634
624
  [attr.aria-labelledby]="upperAriaLabelledby() || null"
635
- [attr.aria-describedby]="ariaDescribedby() || null"
625
+ [attr.aria-describedby]="ariaDescribedBy() || null"
636
626
  [attr.aria-valuemin]="lowerValue() + effectiveMinRange()"
637
627
  [attr.aria-valuemax]="max()"
638
628
  [attr.aria-valuenow]="upperValue()"
639
629
  [attr.aria-valuetext]="formattedUpperValue()"
640
630
  [attr.aria-orientation]="orientation()"
641
- [attr.aria-invalid]="invalid() || null"
631
+ [attr.aria-invalid]="displayInvalid() || null"
642
632
  [attr.aria-readonly]="readonly() || null"
643
633
  [disabled]="effectiveDisabled()"
644
634
  [attr.data-active]="activeThumb() === 'upper' || null"
@@ -660,14 +650,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
660
650
  role="slider"
661
651
  [id]="singleThumbId()"
662
652
  [attr.aria-label]="ariaLabel()"
663
- [attr.aria-labelledby]="ariaLabelledby() || null"
664
- [attr.aria-describedby]="ariaDescribedby() || null"
653
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
654
+ [attr.aria-describedby]="ariaDescribedBy() || null"
665
655
  [attr.aria-valuemin]="min()"
666
656
  [attr.aria-valuemax]="max()"
667
657
  [attr.aria-valuenow]="singleValue()"
668
658
  [attr.aria-valuetext]="formattedSingleValue()"
669
659
  [attr.aria-orientation]="orientation()"
670
- [attr.aria-invalid]="invalid() || null"
660
+ [attr.aria-invalid]="displayInvalid() || null"
671
661
  [attr.aria-readonly]="readonly() || null"
672
662
  [disabled]="effectiveDisabled()"
673
663
  [attr.data-active]="activeThumb() === 'single' || null"
@@ -702,7 +692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
702
692
  '[attr.data-fluid]': 'fluid() || null',
703
693
  '[attr.data-disabled]': 'effectiveDisabled() || null',
704
694
  }, styles: [":host{display:inline-block;width:18rem;max-width:100%;color:var(--aeris-slider-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]){width:100%}:host([data-orientation=vertical]){width:auto;height:14rem}.aeris-slider{--_thumb-size: 1.125rem;--_track-size: .375rem;width:100%;display:grid;gap:.5rem}.aeris-slider[data-size=xs]{--_thumb-size: .875rem;--_track-size: .25rem}.aeris-slider[data-size=sm]{--_thumb-size: 1rem;--_track-size: .3125rem}.aeris-slider[data-size=lg]{--_thumb-size: 1.375rem;--_track-size: .5rem}.aeris-slider[data-orientation=vertical]{height:100%;grid-template-columns:auto minmax(0,1fr) auto;align-items:stretch}.aeris-slider__track{position:relative;min-width:0;min-height:calc(var(--_thumb-size) + .5rem);cursor:pointer;touch-action:none}.aeris-slider[data-orientation=vertical] .aeris-slider__track{width:calc(var(--_thumb-size) + .5rem);min-height:0;height:100%}.aeris-slider__rail,.aeris-slider__fill{position:absolute;top:50%;right:0;left:0;height:var(--_track-size);border-radius:999px;transform:translateY(-50%)}.aeris-slider__rail{background:var(--aeris-slider-rail-background, var(--aeris-surface-3, #e5e5df))}.aeris-slider__fill{right:calc(100% - var(--aeris-slider-end));left:var(--aeris-slider-start);background:var(--aeris-slider-fill-background, var(--aeris-primary, #5f6f36))}.aeris-slider[data-orientation=vertical] .aeris-slider__rail,.aeris-slider[data-orientation=vertical] .aeris-slider__fill{inset:0 auto 0 50%;width:var(--_track-size);height:auto;transform:translate(-50%)}.aeris-slider[data-orientation=vertical] .aeris-slider__fill{top:calc(100% - var(--aeris-slider-end));bottom:var(--aeris-slider-start)}.aeris-slider__thumb{position:absolute;z-index:2;top:50%;width:var(--_thumb-size);height:var(--_thumb-size);padding:0;border:2px solid var(--aeris-slider-thumb-border, var(--aeris-primary, #5f6f36));border-radius:50%;background:var(--aeris-slider-thumb-background, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);transform:translate(-50%,-50%);cursor:grab;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.aeris-slider__thumb--single{left:var(--aeris-slider-single)}.aeris-slider__thumb--lower{left:var(--aeris-slider-lower)}.aeris-slider__thumb--upper{left:var(--aeris-slider-upper)}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb{left:50%;bottom:auto}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb--single{top:calc(100% - var(--aeris-slider-single))}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb--lower{top:calc(100% - var(--aeris-slider-lower))}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb--upper{top:calc(100% - var(--aeris-slider-upper))}.aeris-slider__thumb:hover:not(:disabled),.aeris-slider__thumb[data-active]{border-color:var(--aeris-slider-thumb-hover, var(--aeris-focus, #3b4729));box-shadow:0 0 0 .3125rem color-mix(in srgb,var(--aeris-primary, #5f6f36) 16%,transparent)}.aeris-slider__thumb:focus-visible{z-index:3;outline:0;box-shadow:0 0 0 .1875rem var(--aeris-surface, #fff),0 0 0 .375rem var(--aeris-slider-focus, var(--aeris-focus, #3b4729))}.aeris-slider__thumb:active,.aeris-slider__thumb[data-active]{transform:translate(-50%,-50%) scale(1.08);cursor:grabbing}.aeris-slider__tooltip{position:absolute;bottom:calc(100% + .5rem);left:50%;min-width:1.75rem;padding:.25rem .4rem;border-radius:.375rem;background:var(--aeris-slider-tooltip-background, var(--aeris-text, #222222));color:var(--aeris-slider-tooltip-text, var(--aeris-surface, #fff));font-size:.6875rem;line-height:1.2;opacity:0;transform:translate(-50%) translateY(.2rem);transition:opacity .12s ease,transform .12s ease;pointer-events:none;white-space:nowrap}.aeris-slider__thumb:hover .aeris-slider__tooltip,.aeris-slider__thumb:focus-visible .aeris-slider__tooltip,.aeris-slider__thumb[data-active] .aeris-slider__tooltip{opacity:1;transform:translate(-50%) translateY(0)}.aeris-slider[data-orientation=vertical] .aeris-slider__tooltip{top:50%;bottom:auto;left:calc(100% + .5rem);transform:translateY(-50%) translate(-.2rem)}.aeris-slider[data-orientation=vertical] .aeris-slider__thumb:hover .aeris-slider__tooltip,.aeris-slider[data-orientation=vertical] .aeris-slider__thumb:focus-visible .aeris-slider__tooltip,.aeris-slider[data-orientation=vertical] .aeris-slider__thumb[data-active] .aeris-slider__tooltip{transform:translateY(-50%) translate(0)}.aeris-slider__ticks{position:absolute;inset:0;pointer-events:none}.aeris-slider__ticks span{position:absolute;top:50%;left:var(--aeris-slider-tick-position);width:.25rem;height:.25rem;border-radius:50%;background:var(--aeris-slider-tick, var(--aeris-border, #deddd7));transform:translate(-50%,-50%)}.aeris-slider__ticks span[data-active]{background:var(--aeris-slider-active-tick, var(--aeris-surface, #fff))}.aeris-slider[data-orientation=vertical] .aeris-slider__ticks span{top:calc(100% - var(--aeris-slider-tick-position));bottom:auto;left:50%}.aeris-slider__values,.aeris-slider__limits{display:flex;justify-content:space-between;gap:1rem;color:var(--aeris-text-2, #555555);font-size:.75rem;font-variant-numeric:tabular-nums}.aeris-slider__values{color:var(--aeris-text, #222222);font-weight:650}.aeris-slider:not([data-range]) .aeris-slider__values{justify-content:flex-end}.aeris-slider[data-orientation=vertical] .aeris-slider__values,.aeris-slider[data-orientation=vertical] .aeris-slider__limits{flex-direction:column-reverse;align-items:center}.aeris-slider[data-disabled],.aeris-slider[data-readonly]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-slider[data-disabled] .aeris-slider__track,.aeris-slider[data-readonly] .aeris-slider__track,.aeris-slider__thumb:disabled{cursor:not-allowed}.aeris-slider[data-invalid] .aeris-slider__fill{background:var(--aeris-danger, #c81e2a)}.aeris-slider[data-invalid] .aeris-slider__thumb{border-color:var(--aeris-danger, #c81e2a)}@media(prefers-reduced-motion:reduce){.aeris-slider__thumb,.aeris-slider__tooltip{transition:none}}\n"] }]
705
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRange", required: false }] }], pageStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageStep", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], reversed: [{ type: i0.Input, args: [{ isSignal: true, alias: "reversed", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], lowerAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowerAriaLabel", required: false }] }], upperAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "upperAriaLabel", required: false }] }], lowerAriaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowerAriaLabelledby", required: false }] }], upperAriaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "upperAriaLabelledby", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], showTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltip", required: false }] }], showTicks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTicks", required: false }] }], maxTicks: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTicks", required: false }] }], showMinMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMinMax", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], sliding: [{ type: i0.Output, args: ["sliding"] }], changed: [{ type: i0.Output, args: ["changed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], thumbButtons: [{ type: i0.ViewChildren, args: ['thumbButton', { isSignal: true }] }] } });
695
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRange", required: false }] }], pageStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageStep", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], reversed: [{ type: i0.Input, args: [{ isSignal: true, alias: "reversed", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], lowerAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowerAriaLabel", required: false }] }], upperAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "upperAriaLabel", required: false }] }], lowerAriaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowerAriaLabelledby", required: false }] }], upperAriaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "upperAriaLabelledby", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], showTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltip", required: false }] }], showTicks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTicks", required: false }] }], maxTicks: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTicks", required: false }] }], showMinMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMinMax", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], sliding: [{ type: i0.Output, args: ["sliding"] }], changed: [{ type: i0.Output, args: ["changed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], thumbButtons: [{ type: i0.ViewChildren, args: ['thumbButton', { isSignal: true }] }] } });
706
696
  function optionalNumber(value) {
707
697
  if (value === undefined || value === null || value === '')
708
698
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-slider.mjs","sources":["../../../projects/aeris-ui/slider/aeris-slider.utils.ts","../../../projects/aeris-ui/slider/aeris-slider.ts","../../../projects/aeris-ui/slider/aeris-ui-core-slider.ts"],"sourcesContent":["export function sliderPrecision(step: number): number {\n const text = String(step);\n if (text.includes('e-')) return Number(text.split('e-')[1] ?? 0);\n return text.includes('.') ? text.split('.')[1]?.length ?? 0 : 0;\n}\n\nexport function clampSliderValue(value: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport function alignSliderValue(\n value: number,\n min: number,\n max: number,\n step: number,\n): number {\n const safeStep = step > 0 ? step : 1;\n const aligned = min + Math.round((value - min) / safeStep) * safeStep;\n return Number(\n clampSliderValue(aligned, min, max).toFixed(sliderPrecision(safeStep)),\n );\n}\n\nexport function sliderPercentage(value: number, min: number, max: number): number {\n if (max <= min) return 0;\n return ((clampSliderValue(value, min, max) - min) / (max - min)) * 100;\n}\n\nexport function normalizeSliderRange(\n value: readonly [number, number],\n min: number,\n max: number,\n step: number,\n minRange: number,\n): readonly [number, number] {\n const lower = alignSliderValue(Math.min(value[0], value[1]), min, max, step);\n const upper = alignSliderValue(Math.max(value[0], value[1]), min, max, step);\n const gap = Math.max(0, minRange);\n if (upper - lower >= gap) return [lower, upper];\n\n const expandedUpper = alignSliderValue(lower + gap, min, max, step);\n if (expandedUpper - lower >= gap) return [lower, expandedUpper];\n return [alignSliderValue(upper - gap, min, max, step), upper];\n}\n\n","import {\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport {\n alignSliderValue,\n normalizeSliderRange,\n sliderPercentage,\n} from './aeris-slider.utils';\n\nexport type AerisSliderSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisSliderOrientation = 'horizontal' | 'vertical';\nexport type AerisSliderThumb = 'single' | 'lower' | 'upper';\nexport type AerisSliderValue = number | readonly [number, number];\n\nexport interface AerisSliderInputEvent {\n readonly originalEvent: PointerEvent | KeyboardEvent;\n readonly value: AerisSliderValue;\n readonly thumb: AerisSliderThumb;\n}\n\nexport interface AerisSliderChangeEvent {\n readonly originalEvent: PointerEvent | KeyboardEvent;\n readonly value: AerisSliderValue;\n readonly thumb: AerisSliderThumb;\n}\n\nlet sliderId = 0;\n\n@Component({\n selector: 'aeris-slider',\n template: `\n <div\n class=\"aeris-slider\"\n [attr.data-size]=\"size()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-range]=\"range() || null\"\n [attr.data-reversed]=\"reversed() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"invalid() || null\"\n [style.--aeris-slider-start]=\"startPercentage() + '%'\"\n [style.--aeris-slider-end]=\"endPercentage() + '%'\"\n [style.--aeris-slider-single]=\"singlePercentage() + '%'\"\n [style.--aeris-slider-lower]=\"lowerPercentage() + '%'\"\n [style.--aeris-slider-upper]=\"upperPercentage() + '%'\"\n >\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"serializedValue()\" />\n }\n\n @if (showValue()) {\n <div class=\"aeris-slider__values\" aria-hidden=\"true\">\n @if (range()) {\n <span>{{ formattedLowerValue() }}</span>\n <span>{{ formattedUpperValue() }}</span>\n } @else {\n <span>{{ formattedSingleValue() }}</span>\n }\n </div>\n }\n\n <div\n class=\"aeris-slider__track\"\n (pointerdown)=\"handleTrackPointerDown($event)\"\n (pointermove)=\"handleTrackPointerMove($event)\"\n (pointerup)=\"handleTrackPointerUp($event)\"\n (pointercancel)=\"handleTrackPointerUp($event)\"\n >\n <span class=\"aeris-slider__rail\" aria-hidden=\"true\"></span>\n <span class=\"aeris-slider__fill\" aria-hidden=\"true\"></span>\n\n @if (showTicks()) {\n <span class=\"aeris-slider__ticks\" aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <span\n [style.--aeris-slider-tick-position]=\"tick.percentage + '%'\"\n [attr.data-active]=\"tick.active || null\"\n ></span>\n }\n </span>\n }\n\n @if (range()) {\n <button\n #thumbButton\n class=\"aeris-slider__thumb aeris-slider__thumb--lower\"\n type=\"button\"\n role=\"slider\"\n [id]=\"lowerThumbId()\"\n [attr.aria-label]=\"lowerAriaLabel()\"\n [attr.aria-labelledby]=\"lowerAriaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"upperValue() - effectiveMinRange()\"\n [attr.aria-valuenow]=\"lowerValue()\"\n [attr.aria-valuetext]=\"formattedLowerValue()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"effectiveDisabled()\"\n [attr.data-active]=\"activeThumb() === 'lower' || null\"\n (keydown)=\"handleThumbKeydown($event, 'lower')\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n @if (showTooltip()) {\n <span class=\"aeris-slider__tooltip\" aria-hidden=\"true\">\n {{ formattedLowerValue() }}\n </span>\n }\n </button>\n <button\n #thumbButton\n class=\"aeris-slider__thumb aeris-slider__thumb--upper\"\n type=\"button\"\n role=\"slider\"\n [id]=\"upperThumbId()\"\n [attr.aria-label]=\"upperAriaLabel()\"\n [attr.aria-labelledby]=\"upperAriaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-valuemin]=\"lowerValue() + effectiveMinRange()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"upperValue()\"\n [attr.aria-valuetext]=\"formattedUpperValue()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"effectiveDisabled()\"\n [attr.data-active]=\"activeThumb() === 'upper' || null\"\n (keydown)=\"handleThumbKeydown($event, 'upper')\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n @if (showTooltip()) {\n <span class=\"aeris-slider__tooltip\" aria-hidden=\"true\">\n {{ formattedUpperValue() }}\n </span>\n }\n </button>\n } @else {\n <button\n #thumbButton\n class=\"aeris-slider__thumb aeris-slider__thumb--single\"\n type=\"button\"\n role=\"slider\"\n [id]=\"singleThumbId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"singleValue()\"\n [attr.aria-valuetext]=\"formattedSingleValue()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"effectiveDisabled()\"\n [attr.data-active]=\"activeThumb() === 'single' || null\"\n (keydown)=\"handleThumbKeydown($event, 'single')\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n @if (showTooltip()) {\n <span class=\"aeris-slider__tooltip\" aria-hidden=\"true\">\n {{ formattedSingleValue() }}\n </span>\n }\n </button>\n }\n </div>\n\n @if (showMinMax()) {\n <div class=\"aeris-slider__limits\" aria-hidden=\"true\">\n <span>{{ formatValue(min()) }}</span>\n <span>{{ formatValue(max()) }}</span>\n </div>\n }\n </div>\n `,\n styleUrl: './aeris-slider.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisSlider),\n multi: true,\n },\n ],\n host: {\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-fluid]': 'fluid() || null',\n '[attr.data-disabled]': 'effectiveDisabled() || null',\n },\n})\nexport class AerisSlider implements ControlValueAccessor {\n readonly value = model<AerisSliderValue>(0);\n readonly range = input(false, { transform: booleanAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly step = input(1, { transform: numberAttribute });\n readonly minRange = input(0, { transform: numberAttribute });\n readonly pageStep = input<number | undefined, unknown>(undefined, {\n transform: optionalNumber,\n });\n readonly orientation = input<AerisSliderOrientation>('horizontal');\n readonly reversed = input(false, { transform: booleanAttribute });\n readonly size = input<AerisSliderSize>('md');\n readonly name = input('');\n readonly inputId = input('');\n readonly ariaLabel = input('Value');\n readonly ariaLabelledby = input('');\n readonly ariaDescribedby = input('');\n readonly lowerAriaLabel = input('Minimum value');\n readonly upperAriaLabel = input('Maximum value');\n readonly lowerAriaLabelledby = input('');\n readonly upperAriaLabelledby = input('');\n readonly valueText = input<((value: number) => string) | null>(null);\n readonly showValue = input(false, { transform: booleanAttribute });\n readonly showTooltip = input(false, { transform: booleanAttribute });\n readonly showTicks = input(false, { transform: booleanAttribute });\n readonly maxTicks = input(101, { transform: numberAttribute });\n readonly showMinMax = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly valueInput = output<AerisSliderValue>();\n readonly sliding = output<AerisSliderInputEvent>();\n readonly changed = output<AerisSliderChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly formDisabled = signal(false);\n protected readonly activeThumb = signal<AerisSliderThumb | null>(null);\n protected readonly effectiveDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n protected readonly effectiveStep = computed(() =>\n this.step() > 0 ? this.step() : 1,\n );\n protected readonly effectiveMinRange = computed(() =>\n Math.min(\n this.normalizedMax() - this.normalizedMin(),\n Math.max(0, this.minRange()),\n ),\n );\n protected readonly normalizedValue = computed<AerisSliderValue>(() => {\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n if (this.range()) {\n const current = this.value();\n const rangeValue: readonly [number, number] = Array.isArray(current)\n ? [Number(current[0]), Number(current[1])]\n : [min, Number(current)];\n return normalizeSliderRange(\n rangeValue,\n min,\n max,\n this.effectiveStep(),\n this.effectiveMinRange(),\n );\n }\n const current = this.value();\n return alignSliderValue(\n Array.isArray(current) ? Number(current[0]) : Number(current),\n min,\n max,\n this.effectiveStep(),\n );\n });\n protected readonly singleValue = computed(() => {\n const value = this.normalizedValue();\n return Array.isArray(value) ? value[0] : value;\n });\n protected readonly lowerValue = computed(() => {\n const value = this.normalizedValue();\n return Array.isArray(value) ? value[0] : this.normalizedMin();\n });\n protected readonly upperValue = computed(() => {\n const value = this.normalizedValue();\n return Array.isArray(value) ? value[1] : this.singleValue();\n });\n protected readonly startPercentage = computed(() => {\n const percentage = this.range()\n ? this.percentage(this.lowerValue())\n : 0;\n return this.reversed() ? 100 - this.endBasePercentage() : percentage;\n });\n protected readonly endPercentage = computed(() => {\n const percentage = this.endBasePercentage();\n return this.reversed()\n ? 100 - (this.range() ? this.percentage(this.lowerValue()) : 0)\n : percentage;\n });\n protected readonly singlePercentage = computed(() =>\n this.visualPercentage(this.singleValue()),\n );\n protected readonly lowerPercentage = computed(() =>\n this.visualPercentage(this.lowerValue()),\n );\n protected readonly upperPercentage = computed(() =>\n this.visualPercentage(this.upperValue()),\n );\n protected readonly formattedSingleValue = computed(() =>\n this.formatValue(this.singleValue()),\n );\n protected readonly formattedLowerValue = computed(() =>\n this.formatValue(this.lowerValue()),\n );\n protected readonly formattedUpperValue = computed(() =>\n this.formatValue(this.upperValue()),\n );\n protected readonly serializedValue = computed(() =>\n this.range()\n ? `${this.lowerValue()},${this.upperValue()}`\n : String(this.singleValue()),\n );\n protected readonly ticks = computed(() => {\n const count =\n Math.floor(\n (this.normalizedMax() - this.normalizedMin()) / this.effectiveStep(),\n ) + 1;\n if (!this.showTicks() || count > Math.max(2, this.maxTicks())) return [];\n return Array.from({ length: count }, (_, index) => {\n const value = alignSliderValue(\n this.normalizedMin() + index * this.effectiveStep(),\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n );\n const percentage = this.visualPercentage(value);\n return {\n value,\n percentage,\n active: this.range()\n ? value >= this.lowerValue() && value <= this.upperValue()\n : value <= this.singleValue(),\n };\n });\n });\n\n private readonly generatedId = `aeris-slider-${++sliderId}`;\n protected readonly singleThumbId = computed(\n () => this.inputId() || this.generatedId,\n );\n protected readonly lowerThumbId = computed(\n () => `${this.inputId() || this.generatedId}-lower`,\n );\n protected readonly upperThumbId = computed(\n () => `${this.inputId() || this.generatedId}-upper`,\n );\n\n private readonly thumbButtons =\n viewChildren<ElementRef<HTMLButtonElement>>('thumbButton');\n private dragThumb: AerisSliderThumb | null = null;\n private dragChanged = false;\n private onChange: (value: AerisSliderValue) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n writeValue(value: unknown): void {\n this.value.set(this.coerceValue(value));\n }\n\n registerOnChange(callback: (value: AerisSliderValue) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(thumb: AerisSliderThumb = this.range() ? 'lower' : 'single'): void {\n this.focusThumb(thumb);\n }\n\n reset(): void {\n this.setValue(this.range() ? [this.normalizedMin(), this.normalizedMax()] : this.normalizedMin());\n }\n\n protected formatValue(value: number): string {\n return this.valueText()?.(value) ?? String(value);\n }\n\n protected handleTrackPointerDown(event: PointerEvent): void {\n if (\n this.effectiveDisabled() ||\n this.readonly() ||\n event.button !== 0\n ) {\n return;\n }\n\n event.preventDefault();\n const track = event.currentTarget as HTMLElement;\n track.setPointerCapture(event.pointerId);\n const value = this.pointerValue(event, track);\n this.dragThumb = this.closestThumb(value);\n this.dragChanged = false;\n this.activeThumb.set(this.dragThumb);\n this.updateThumb(this.dragThumb, value, event, true);\n this.focusThumb(this.dragThumb);\n }\n\n protected handleTrackPointerMove(event: PointerEvent): void {\n if (!this.dragThumb) return;\n const track = event.currentTarget as HTMLElement;\n this.updateThumb(\n this.dragThumb,\n this.pointerValue(event, track),\n event,\n true,\n );\n }\n\n protected handleTrackPointerUp(event: PointerEvent): void {\n if (!this.dragThumb) return;\n const thumb = this.dragThumb;\n this.dragThumb = null;\n this.activeThumb.set(null);\n if (this.dragChanged) {\n this.changed.emit({\n originalEvent: event,\n value: this.normalizedValue(),\n thumb,\n });\n }\n }\n\n protected handleThumbKeydown(\n event: KeyboardEvent,\n thumb: AerisSliderThumb,\n ): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n const direction = this.keyDirection(event.key);\n let next: number | null = null;\n const current = this.thumbValue(thumb);\n if (direction !== null) {\n next = current + direction * this.effectiveStep();\n } else if (event.key === 'PageUp') {\n next = current + this.resolvedPageStep();\n } else if (event.key === 'PageDown') {\n next = current - this.resolvedPageStep();\n } else if (event.key === 'Home') {\n next = thumb === 'upper' ? this.lowerValue() + this.effectiveMinRange() : this.normalizedMin();\n } else if (event.key === 'End') {\n next = thumb === 'lower' ? this.upperValue() - this.effectiveMinRange() : this.normalizedMax();\n }\n\n if (next === null) return;\n event.preventDefault();\n const changed = this.updateThumb(thumb, next, event, true);\n if (changed) {\n this.changed.emit({\n originalEvent: event,\n value: this.normalizedValue(),\n thumb,\n });\n }\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.onTouched();\n this.touch.emit();\n this.blurred.emit(event);\n }\n\n private updateThumb(\n thumb: AerisSliderThumb,\n rawValue: number,\n event: PointerEvent | KeyboardEvent,\n emitInput: boolean,\n ): boolean {\n const aligned = alignSliderValue(\n rawValue,\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n );\n let next: AerisSliderValue;\n\n if (!this.range() || thumb === 'single') {\n next = aligned;\n } else if (thumb === 'lower') {\n next = [\n Math.min(aligned, this.upperValue() - this.effectiveMinRange()),\n this.upperValue(),\n ];\n } else {\n next = [\n this.lowerValue(),\n Math.max(aligned, this.lowerValue() + this.effectiveMinRange()),\n ];\n }\n\n const changed = !sameSliderValue(this.normalizedValue(), next);\n if (!changed) return false;\n\n this.setValue(next);\n this.dragChanged = true;\n if (emitInput) {\n this.sliding.emit({ originalEvent: event, value: next, thumb });\n }\n return true;\n }\n\n private setValue(value: AerisSliderValue): void {\n this.value.set(value);\n this.valueInput.emit(value);\n this.onChange(value);\n }\n\n private closestThumb(value: number): AerisSliderThumb {\n if (!this.range()) return 'single';\n const lowerDistance = Math.abs(value - this.lowerValue());\n const upperDistance = Math.abs(value - this.upperValue());\n return lowerDistance <= upperDistance ? 'lower' : 'upper';\n }\n\n private pointerValue(event: PointerEvent, track: HTMLElement): number {\n const rect = track.getBoundingClientRect();\n const ratio =\n this.orientation() === 'vertical'\n ? 1 - (event.clientY - rect.top) / Math.max(1, rect.height)\n : (event.clientX - rect.left) / Math.max(1, rect.width);\n const normalizedRatio = this.reversed() ? 1 - ratio : ratio;\n return (\n this.normalizedMin() +\n Math.min(1, Math.max(0, normalizedRatio)) *\n (this.normalizedMax() - this.normalizedMin())\n );\n }\n\n private keyDirection(key: string): -1 | 1 | null {\n if (key === 'ArrowRight' || key === 'ArrowUp') {\n return this.reversed() ? -1 : 1;\n }\n if (key === 'ArrowLeft' || key === 'ArrowDown') {\n return this.reversed() ? 1 : -1;\n }\n return null;\n }\n\n private resolvedPageStep(): number {\n return (\n this.pageStep() ??\n Math.max(\n this.effectiveStep(),\n (this.normalizedMax() - this.normalizedMin()) / 10,\n )\n );\n }\n\n private normalizedMin(): number {\n return Math.min(this.min(), this.max());\n }\n\n private normalizedMax(): number {\n return Math.max(this.min(), this.max());\n }\n\n private endBasePercentage(): number {\n return this.percentage(this.range() ? this.upperValue() : this.singleValue());\n }\n\n private percentage(value: number): number {\n return sliderPercentage(value, this.normalizedMin(), this.normalizedMax());\n }\n\n private visualPercentage(value: number): number {\n const percentage = this.percentage(value);\n return this.reversed() ? 100 - percentage : percentage;\n }\n\n private thumbValue(thumb: AerisSliderThumb): number {\n if (thumb === 'lower') return this.lowerValue();\n if (thumb === 'upper') return this.upperValue();\n return this.singleValue();\n }\n\n private focusThumb(thumb: AerisSliderThumb): void {\n const id =\n thumb === 'lower'\n ? this.lowerThumbId()\n : thumb === 'upper'\n ? this.upperThumbId()\n : this.singleThumbId();\n this.thumbButtons()\n .find((button) => button.nativeElement.id === id)\n ?.nativeElement.focus();\n }\n\n private coerceValue(value: unknown): AerisSliderValue {\n if (this.range()) {\n if (Array.isArray(value) && value.length >= 2) {\n return normalizeSliderRange(\n [Number(value[0]), Number(value[1])],\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n this.effectiveMinRange(),\n );\n }\n return [this.normalizedMin(), this.normalizedMax()];\n }\n return alignSliderValue(\n typeof value === 'number' && Number.isFinite(value)\n ? value\n : this.normalizedMin(),\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n );\n }\n\n}\n\nfunction optionalNumber(value: unknown): number | undefined {\n if (value === undefined || value === null || value === '') return undefined;\n const number = Number(value);\n return Number.isFinite(number) ? number : undefined;\n}\n\nfunction sameSliderValue(left: AerisSliderValue, right: AerisSliderValue): boolean {\n if (Array.isArray(left) && Array.isArray(right)) {\n return left[0] === right[0] && left[1] === right[1];\n }\n return left === right;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAM,SAAU,eAAe,CAAC,IAAY,EAAA;AAC1C,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AACzB,IAAA,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC;AACjE;SAEgB,gBAAgB,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAA;AACtE,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAC5C;AAEM,SAAU,gBAAgB,CAC9B,KAAa,EACb,GAAW,EACX,GAAW,EACX,IAAY,EAAA;AAEZ,IAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,GA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;;;;;;;;;;;;GAoJT,EAAA,SAAA,EAEU;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,iBAAiB,CAAC;AAC1C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,mBAAmB,EAAE,iBAAiB;AACtC,wBAAA,sBAAsB,EAAE,6BAA6B;AACtD,qBAAA,EAAA,MAAA,EAAA,CAAA,y2LAAA,CAAA,EAAA;isGAmK6C,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AA4Q7D,SAAS,cAAc,CAAC,KAAc,EAAA;IACpC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE;AAAE,QAAA,OAAO,SAAS;AAC3E,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC;AAC5B,IAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS;AACrD;AAEA,SAAS,eAAe,CAAC,IAAsB,EAAE,KAAuB,EAAA;AACtE,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AAC/C,QAAA,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC;IACrD;IACA,OAAO,IAAI,KAAK,KAAK;AACvB;;ACroBA;;AAEG;;"}
1
+ {"version":3,"file":"aeris-ui-core-slider.mjs","sources":["../../../projects/aeris-ui/slider/aeris-slider.utils.ts","../../../projects/aeris-ui/slider/aeris-slider.ts","../../../projects/aeris-ui/slider/aeris-ui-core-slider.ts"],"sourcesContent":["export function sliderPrecision(step: number): number {\n const text = String(step);\n if (text.includes('e-')) return Number(text.split('e-')[1] ?? 0);\n return text.includes('.') ? text.split('.')[1]?.length ?? 0 : 0;\n}\n\nexport function clampSliderValue(value: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport function alignSliderValue(\n value: number,\n min: number,\n max: number,\n step: number,\n): number {\n const safeStep = step > 0 ? step : 1;\n const aligned = min + Math.round((value - min) / safeStep) * safeStep;\n return Number(\n clampSliderValue(aligned, min, max).toFixed(sliderPrecision(safeStep)),\n );\n}\n\nexport function sliderPercentage(value: number, min: number, max: number): number {\n if (max <= min) return 0;\n return ((clampSliderValue(value, min, max) - min) / (max - min)) * 100;\n}\n\nexport function normalizeSliderRange(\n value: readonly [number, number],\n min: number,\n max: number,\n step: number,\n minRange: number,\n): readonly [number, number] {\n const lower = alignSliderValue(Math.min(value[0], value[1]), min, max, step);\n const upper = alignSliderValue(Math.max(value[0], value[1]), min, max, step);\n const gap = Math.max(0, minRange);\n if (upper - lower >= gap) return [lower, upper];\n\n const expandedUpper = alignSliderValue(lower + gap, min, max, step);\n if (expandedUpper - lower >= gap) return [lower, expandedUpper];\n return [alignSliderValue(upper - gap, min, max, step), upper];\n}\n\n","import {\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵaerisDisplayInvalid } from '@aeris-ui/core';\n\nimport { alignSliderValue, normalizeSliderRange, sliderPercentage } from './aeris-slider.utils';\n\nexport type AerisSliderSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisSliderOrientation = 'horizontal' | 'vertical';\nexport type AerisSliderThumb = 'single' | 'lower' | 'upper';\nexport type AerisSliderValue = number | readonly [number, number];\n\nexport interface AerisSliderInputEvent {\n readonly originalEvent: PointerEvent | KeyboardEvent;\n readonly value: AerisSliderValue;\n readonly thumb: AerisSliderThumb;\n}\n\nexport interface AerisSliderChangeEvent {\n readonly originalEvent: PointerEvent | KeyboardEvent;\n readonly value: AerisSliderValue;\n readonly thumb: AerisSliderThumb;\n}\n\nlet sliderId = 0;\n\n@Component({\n selector: 'aeris-slider',\n template: `\n <div\n class=\"aeris-slider\"\n [attr.data-size]=\"size()\"\n [attr.data-orientation]=\"orientation()\"\n [attr.data-range]=\"range() || null\"\n [attr.data-reversed]=\"reversed() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-invalid]=\"displayInvalid() || null\"\n [style.--aeris-slider-start]=\"startPercentage() + '%'\"\n [style.--aeris-slider-end]=\"endPercentage() + '%'\"\n [style.--aeris-slider-single]=\"singlePercentage() + '%'\"\n [style.--aeris-slider-lower]=\"lowerPercentage() + '%'\"\n [style.--aeris-slider-upper]=\"upperPercentage() + '%'\"\n >\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"serializedValue()\" />\n }\n\n @if (showValue()) {\n <div class=\"aeris-slider__values\" aria-hidden=\"true\">\n @if (range()) {\n <span>{{ formattedLowerValue() }}</span>\n <span>{{ formattedUpperValue() }}</span>\n } @else {\n <span>{{ formattedSingleValue() }}</span>\n }\n </div>\n }\n\n <div\n class=\"aeris-slider__track\"\n (pointerdown)=\"handleTrackPointerDown($event)\"\n (pointermove)=\"handleTrackPointerMove($event)\"\n (pointerup)=\"handleTrackPointerUp($event)\"\n (pointercancel)=\"handleTrackPointerUp($event)\"\n >\n <span class=\"aeris-slider__rail\" aria-hidden=\"true\"></span>\n <span class=\"aeris-slider__fill\" aria-hidden=\"true\"></span>\n\n @if (showTicks()) {\n <span class=\"aeris-slider__ticks\" aria-hidden=\"true\">\n @for (tick of ticks(); track tick.value) {\n <span\n [style.--aeris-slider-tick-position]=\"tick.percentage + '%'\"\n [attr.data-active]=\"tick.active || null\"\n ></span>\n }\n </span>\n }\n\n @if (range()) {\n <button\n #thumbButton\n class=\"aeris-slider__thumb aeris-slider__thumb--lower\"\n type=\"button\"\n role=\"slider\"\n [id]=\"lowerThumbId()\"\n [attr.aria-label]=\"lowerAriaLabel()\"\n [attr.aria-labelledby]=\"lowerAriaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"upperValue() - effectiveMinRange()\"\n [attr.aria-valuenow]=\"lowerValue()\"\n [attr.aria-valuetext]=\"formattedLowerValue()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"effectiveDisabled()\"\n [attr.data-active]=\"activeThumb() === 'lower' || null\"\n (keydown)=\"handleThumbKeydown($event, 'lower')\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n @if (showTooltip()) {\n <span class=\"aeris-slider__tooltip\" aria-hidden=\"true\">\n {{ formattedLowerValue() }}\n </span>\n }\n </button>\n <button\n #thumbButton\n class=\"aeris-slider__thumb aeris-slider__thumb--upper\"\n type=\"button\"\n role=\"slider\"\n [id]=\"upperThumbId()\"\n [attr.aria-label]=\"upperAriaLabel()\"\n [attr.aria-labelledby]=\"upperAriaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-valuemin]=\"lowerValue() + effectiveMinRange()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"upperValue()\"\n [attr.aria-valuetext]=\"formattedUpperValue()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"effectiveDisabled()\"\n [attr.data-active]=\"activeThumb() === 'upper' || null\"\n (keydown)=\"handleThumbKeydown($event, 'upper')\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n @if (showTooltip()) {\n <span class=\"aeris-slider__tooltip\" aria-hidden=\"true\">\n {{ formattedUpperValue() }}\n </span>\n }\n </button>\n } @else {\n <button\n #thumbButton\n class=\"aeris-slider__thumb aeris-slider__thumb--single\"\n type=\"button\"\n role=\"slider\"\n [id]=\"singleThumbId()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"singleValue()\"\n [attr.aria-valuetext]=\"formattedSingleValue()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"effectiveDisabled()\"\n [attr.data-active]=\"activeThumb() === 'single' || null\"\n (keydown)=\"handleThumbKeydown($event, 'single')\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n >\n @if (showTooltip()) {\n <span class=\"aeris-slider__tooltip\" aria-hidden=\"true\">\n {{ formattedSingleValue() }}\n </span>\n }\n </button>\n }\n </div>\n\n @if (showMinMax()) {\n <div class=\"aeris-slider__limits\" aria-hidden=\"true\">\n <span>{{ formatValue(min()) }}</span>\n <span>{{ formatValue(max()) }}</span>\n </div>\n }\n </div>\n `,\n styleUrl: './aeris-slider.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisSlider),\n multi: true,\n },\n ],\n host: {\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-fluid]': 'fluid() || null',\n '[attr.data-disabled]': 'effectiveDisabled() || null',\n },\n})\nexport class AerisSlider implements ControlValueAccessor {\n readonly value = model<AerisSliderValue>(0);\n readonly range = input(false, { transform: booleanAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly step = input(1, { transform: numberAttribute });\n readonly minRange = input(0, { transform: numberAttribute });\n readonly pageStep = input<number | undefined, unknown>(undefined, {\n transform: optionalNumber,\n });\n readonly orientation = input<AerisSliderOrientation>('horizontal');\n readonly reversed = input(false, { transform: booleanAttribute });\n readonly size = input<AerisSliderSize>('md');\n readonly name = input('');\n readonly inputId = input('');\n readonly ariaLabel = input('Value');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly lowerAriaLabel = input('Minimum value');\n readonly upperAriaLabel = input('Maximum value');\n readonly lowerAriaLabelledby = input('');\n readonly upperAriaLabelledby = input('');\n readonly valueText = input<((value: number) => string) | null>(null);\n readonly showValue = input(false, { transform: booleanAttribute });\n readonly showTooltip = input(false, { transform: booleanAttribute });\n readonly showTicks = input(false, { transform: booleanAttribute });\n readonly maxTicks = input(101, { transform: numberAttribute });\n readonly showMinMax = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n\n readonly sliding = output<AerisSliderInputEvent>();\n readonly changed = output<AerisSliderChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly formDisabled = signal(false);\n protected readonly activeThumb = signal<AerisSliderThumb | null>(null);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly effectiveStep = computed(() => (this.step() > 0 ? this.step() : 1));\n protected readonly effectiveMinRange = computed(() =>\n Math.min(this.normalizedMax() - this.normalizedMin(), Math.max(0, this.minRange())),\n );\n protected readonly normalizedValue = computed<AerisSliderValue>(() => {\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n if (this.range()) {\n const current = this.value();\n const rangeValue: readonly [number, number] = Array.isArray(current)\n ? [Number(current[0]), Number(current[1])]\n : [min, Number(current)];\n return normalizeSliderRange(\n rangeValue,\n min,\n max,\n this.effectiveStep(),\n this.effectiveMinRange(),\n );\n }\n const current = this.value();\n return alignSliderValue(\n Array.isArray(current) ? Number(current[0]) : Number(current),\n min,\n max,\n this.effectiveStep(),\n );\n });\n protected readonly singleValue = computed(() => {\n const value = this.normalizedValue();\n return Array.isArray(value) ? value[0] : value;\n });\n protected readonly lowerValue = computed(() => {\n const value = this.normalizedValue();\n return Array.isArray(value) ? value[0] : this.normalizedMin();\n });\n protected readonly upperValue = computed(() => {\n const value = this.normalizedValue();\n return Array.isArray(value) ? value[1] : this.singleValue();\n });\n protected readonly startPercentage = computed(() => {\n const percentage = this.range() ? this.percentage(this.lowerValue()) : 0;\n return this.reversed() ? 100 - this.endBasePercentage() : percentage;\n });\n protected readonly endPercentage = computed(() => {\n const percentage = this.endBasePercentage();\n return this.reversed()\n ? 100 - (this.range() ? this.percentage(this.lowerValue()) : 0)\n : percentage;\n });\n protected readonly singlePercentage = computed(() => this.visualPercentage(this.singleValue()));\n protected readonly lowerPercentage = computed(() => this.visualPercentage(this.lowerValue()));\n protected readonly upperPercentage = computed(() => this.visualPercentage(this.upperValue()));\n protected readonly formattedSingleValue = computed(() => this.formatValue(this.singleValue()));\n protected readonly formattedLowerValue = computed(() => this.formatValue(this.lowerValue()));\n protected readonly formattedUpperValue = computed(() => this.formatValue(this.upperValue()));\n protected readonly serializedValue = computed(() =>\n this.range() ? `${this.lowerValue()},${this.upperValue()}` : String(this.singleValue()),\n );\n protected readonly ticks = computed(() => {\n const count =\n Math.floor((this.normalizedMax() - this.normalizedMin()) / this.effectiveStep()) + 1;\n if (!this.showTicks() || count > Math.max(2, this.maxTicks())) return [];\n return Array.from({ length: count }, (_, index) => {\n const value = alignSliderValue(\n this.normalizedMin() + index * this.effectiveStep(),\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n );\n const percentage = this.visualPercentage(value);\n return {\n value,\n percentage,\n active: this.range()\n ? value >= this.lowerValue() && value <= this.upperValue()\n : value <= this.singleValue(),\n };\n });\n });\n\n private readonly generatedId = `aeris-slider-${++sliderId}`;\n protected readonly singleThumbId = computed(() => this.inputId() || this.generatedId);\n protected readonly lowerThumbId = computed(() => `${this.inputId() || this.generatedId}-lower`);\n protected readonly upperThumbId = computed(() => `${this.inputId() || this.generatedId}-upper`);\n\n private readonly thumbButtons = viewChildren<ElementRef<HTMLButtonElement>>('thumbButton');\n private dragThumb: AerisSliderThumb | null = null;\n private dragChanged = false;\n private onChange: (value: AerisSliderValue) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n writeValue(value: unknown): void {\n this.value.set(this.coerceValue(value));\n }\n\n registerOnChange(callback: (value: AerisSliderValue) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(thumb: AerisSliderThumb = this.range() ? 'lower' : 'single'): void {\n this.focusThumb(thumb);\n }\n\n reset(): void {\n this.setValue(\n this.range() ? [this.normalizedMin(), this.normalizedMax()] : this.normalizedMin(),\n );\n }\n\n protected formatValue(value: number): string {\n return this.valueText()?.(value) ?? String(value);\n }\n\n protected handleTrackPointerDown(event: PointerEvent): void {\n if (this.effectiveDisabled() || this.readonly() || event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n const track = event.currentTarget as HTMLElement;\n track.setPointerCapture(event.pointerId);\n const value = this.pointerValue(event, track);\n this.dragThumb = this.closestThumb(value);\n this.dragChanged = false;\n this.activeThumb.set(this.dragThumb);\n this.updateThumb(this.dragThumb, value, event, true);\n this.focusThumb(this.dragThumb);\n }\n\n protected handleTrackPointerMove(event: PointerEvent): void {\n if (!this.dragThumb) return;\n const track = event.currentTarget as HTMLElement;\n this.updateThumb(this.dragThumb, this.pointerValue(event, track), event, true);\n }\n\n protected handleTrackPointerUp(event: PointerEvent): void {\n if (!this.dragThumb) return;\n const thumb = this.dragThumb;\n this.dragThumb = null;\n this.activeThumb.set(null);\n if (this.dragChanged) {\n this.changed.emit({\n originalEvent: event,\n value: this.normalizedValue(),\n thumb,\n });\n }\n }\n\n protected handleThumbKeydown(event: KeyboardEvent, thumb: AerisSliderThumb): void {\n if (this.effectiveDisabled() || this.readonly()) return;\n\n const direction = this.keyDirection(event.key);\n let next: number | null = null;\n const current = this.thumbValue(thumb);\n if (direction !== null) {\n next = current + direction * this.effectiveStep();\n } else if (event.key === 'PageUp') {\n next = current + this.resolvedPageStep();\n } else if (event.key === 'PageDown') {\n next = current - this.resolvedPageStep();\n } else if (event.key === 'Home') {\n next =\n thumb === 'upper' ? this.lowerValue() + this.effectiveMinRange() : this.normalizedMin();\n } else if (event.key === 'End') {\n next =\n thumb === 'lower' ? this.upperValue() - this.effectiveMinRange() : this.normalizedMax();\n }\n\n if (next === null) return;\n event.preventDefault();\n const changed = this.updateThumb(thumb, next, event, true);\n if (changed) {\n this.changed.emit({\n originalEvent: event,\n value: this.normalizedValue(),\n thumb,\n });\n }\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.onTouched();\n this.touch.emit();\n this.blurred.emit(event);\n }\n\n private updateThumb(\n thumb: AerisSliderThumb,\n rawValue: number,\n event: PointerEvent | KeyboardEvent,\n emitInput: boolean,\n ): boolean {\n const aligned = alignSliderValue(\n rawValue,\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n );\n let next: AerisSliderValue;\n\n if (!this.range() || thumb === 'single') {\n next = aligned;\n } else if (thumb === 'lower') {\n next = [Math.min(aligned, this.upperValue() - this.effectiveMinRange()), this.upperValue()];\n } else {\n next = [this.lowerValue(), Math.max(aligned, this.lowerValue() + this.effectiveMinRange())];\n }\n\n const changed = !sameSliderValue(this.normalizedValue(), next);\n if (!changed) return false;\n\n this.setValue(next);\n this.dragChanged = true;\n if (emitInput) {\n this.sliding.emit({ originalEvent: event, value: next, thumb });\n }\n return true;\n }\n\n private setValue(value: AerisSliderValue): void {\n this.value.set(value);\n this.onChange(value);\n }\n\n private closestThumb(value: number): AerisSliderThumb {\n if (!this.range()) return 'single';\n const lowerDistance = Math.abs(value - this.lowerValue());\n const upperDistance = Math.abs(value - this.upperValue());\n return lowerDistance <= upperDistance ? 'lower' : 'upper';\n }\n\n private pointerValue(event: PointerEvent, track: HTMLElement): number {\n const rect = track.getBoundingClientRect();\n const ratio =\n this.orientation() === 'vertical'\n ? 1 - (event.clientY - rect.top) / Math.max(1, rect.height)\n : (event.clientX - rect.left) / Math.max(1, rect.width);\n const normalizedRatio = this.reversed() ? 1 - ratio : ratio;\n return (\n this.normalizedMin() +\n Math.min(1, Math.max(0, normalizedRatio)) * (this.normalizedMax() - this.normalizedMin())\n );\n }\n\n private keyDirection(key: string): -1 | 1 | null {\n if (key === 'ArrowRight' || key === 'ArrowUp') {\n return this.reversed() ? -1 : 1;\n }\n if (key === 'ArrowLeft' || key === 'ArrowDown') {\n return this.reversed() ? 1 : -1;\n }\n return null;\n }\n\n private resolvedPageStep(): number {\n return (\n this.pageStep() ??\n Math.max(this.effectiveStep(), (this.normalizedMax() - this.normalizedMin()) / 10)\n );\n }\n\n private normalizedMin(): number {\n return Math.min(this.min(), this.max());\n }\n\n private normalizedMax(): number {\n return Math.max(this.min(), this.max());\n }\n\n private endBasePercentage(): number {\n return this.percentage(this.range() ? this.upperValue() : this.singleValue());\n }\n\n private percentage(value: number): number {\n return sliderPercentage(value, this.normalizedMin(), this.normalizedMax());\n }\n\n private visualPercentage(value: number): number {\n const percentage = this.percentage(value);\n return this.reversed() ? 100 - percentage : percentage;\n }\n\n private thumbValue(thumb: AerisSliderThumb): number {\n if (thumb === 'lower') return this.lowerValue();\n if (thumb === 'upper') return this.upperValue();\n return this.singleValue();\n }\n\n private focusThumb(thumb: AerisSliderThumb): void {\n const id =\n thumb === 'lower'\n ? this.lowerThumbId()\n : thumb === 'upper'\n ? this.upperThumbId()\n : this.singleThumbId();\n this.thumbButtons()\n .find((button) => button.nativeElement.id === id)\n ?.nativeElement.focus();\n }\n\n private coerceValue(value: unknown): AerisSliderValue {\n if (this.range()) {\n if (Array.isArray(value) && value.length >= 2) {\n return normalizeSliderRange(\n [Number(value[0]), Number(value[1])],\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n this.effectiveMinRange(),\n );\n }\n return [this.normalizedMin(), this.normalizedMax()];\n }\n return alignSliderValue(\n typeof value === 'number' && Number.isFinite(value) ? value : this.normalizedMin(),\n this.normalizedMin(),\n this.normalizedMax(),\n this.effectiveStep(),\n );\n }\n}\n\nfunction optionalNumber(value: unknown): number | undefined {\n if (value === undefined || value === null || value === '') return undefined;\n const number = Number(value);\n return Number.isFinite(number) ? number : undefined;\n}\n\nfunction sameSliderValue(left: AerisSliderValue, right: AerisSliderValue): boolean {\n if (Array.isArray(left) && Array.isArray(right)) {\n return left[0] === right[0] && left[1] === right[1];\n }\n return left === right;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵaerisDisplayInvalid"],"mappings":";;;;;AAAM,SAAU,eAAe,CAAC,IAAY,EAAA;AAC1C,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AACzB,IAAA,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC;AACjE;SAEgB,gBAAgB,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAA;AACtE,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAC5C;AAEM,SAAU,g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