@4sh/ui-kit 0.15.0 → 0.17.0

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 (220) hide show
  1. package/README.fr.md +18 -10
  2. package/README.md +18 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -953
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2039
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -130
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -246
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -291
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -194
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -131
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +723 -596
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +313 -2
  143. package/mcp/data/text-search-docs.json +177 -17
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/styles/utils/_mixins.scss +11 -0
  150. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  151. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  152. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  153. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  154. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  155. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  156. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
  157. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  158. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  159. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  160. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  161. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  162. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  163. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  164. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  165. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
  166. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
  167. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
  168. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  169. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
  170. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  171. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  172. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  173. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  174. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  175. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  176. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  177. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  178. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  179. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
  180. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  181. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  182. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  183. package/types/4sh-ui-kit-forms.d.ts +291 -186
  184. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  185. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  186. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  187. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  188. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  189. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  190. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  191. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  192. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  193. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  194. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  195. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  196. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  197. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  198. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  199. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  200. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  201. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  202. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  203. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  204. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  205. package/types/4sh-ui-kit-motion.d.ts +117 -67
  206. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  207. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  208. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  209. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  210. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  211. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  212. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  213. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  214. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  215. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  216. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  217. package/types/4sh-ui-kit-theming.d.ts +27 -29
  218. package/types/4sh-ui-kit-types.d.ts +6 -5
  219. package/types/4sh-ui-kit.d.ts +4 -3
  220. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,282 +1,406 @@
1
- import * as i0 from '@angular/core';
2
- import { input, numberAttribute, booleanAttribute, output, viewChild, computed, isDevMode, effect, forwardRef, Component } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { BaseFieldControl, warnMissingAccessibleName } from '@4sh/ui-kit/forms';
5
-
6
- // --- Dial geometry (viewBox 0 0 100 100) -------------------------------
7
- // A 300° arc opening at the bottom: min at 240°, max at -60°. Everything is
8
- // expressed in viewBox units, so the drawing scales with the rendered diameter.
1
+ import * as i0 from "@angular/core";
2
+ import { Component, booleanAttribute, computed, effect, forwardRef, input, isDevMode, numberAttribute, output, viewChild } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { BaseFieldControl, warnMissingAccessibleName } from "@4sh/ui-kit/forms";
9
5
  const CENTER = 50;
10
- const MIN_RADIANS = (4 * Math.PI) / 3;
6
+ const MIN_RADIANS = 4 * Math.PI / 3;
11
7
  const MAX_RADIANS = -Math.PI / 3;
12
- /** Bottom gap, where a pointer angle maps to no value. */
13
8
  const GAP_START = -(2 * Math.PI) / 3;
14
- /** Breathing room kept between the arc and the focus ring drawn on the box edge. */
15
9
  const RING_GAP = 3;
16
10
  const round = (n) => Number(n.toFixed(3));
17
- /**
18
- * Centreline radius for a given thickness: the arc, caps included, always fits
19
- * its box, so a thick stroke never spills over the focus ring.
20
- */
21
11
  function dialRadius(strokeWidth) {
22
- return Math.max(2, CENTER - strokeWidth / 2 - RING_GAP);
12
+ return Math.max(2, CENTER - strokeWidth / 2 - RING_GAP);
23
13
  }
24
- /** Point on the dial for an angle, in viewBox coordinates (y grows downwards). */
25
14
  function polar(radians, radius) {
26
- return {
27
- x: round(CENTER + Math.cos(radians) * radius),
28
- y: round(CENTER - Math.sin(radians) * radius),
29
- };
15
+ return {
16
+ x: round(CENTER + Math.cos(radians) * radius),
17
+ y: round(CENTER - Math.sin(radians) * radius)
18
+ };
30
19
  }
31
20
  function mapRange(x, inMin, inMax, outMin, outMax) {
32
- if (inMax === inMin)
33
- return outMin;
34
- return ((x - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;
35
- }
36
- /**
37
- * ui-knob — headless circular dial to pick a numeric value.
38
- *
39
- * Follows the WAI-ARIA slider pattern: the dial is a single `role="slider"`
40
- * stop exposing `aria-valuemin/max/now`, driven at the keyboard (arrows,
41
- * Page Up/Down, Home/End) and by pointer (mouse, touch, pen) through one code
42
- * path. The drawing is an SVG arc in a 100×100 viewBox, so it scales with the
43
- * rendered diameter; every colour comes from the design tokens and can be
44
- * repainted per instance.
45
- *
46
- * Works standalone, with `[(ngModel)]`, Reactive Forms or Signal Forms
47
- * (`[formField]`) — it is a `ControlValueAccessor`.
48
- */
49
- class UiKnob extends BaseFieldControl {
50
- constructor() {
51
- super();
52
- /** Minimum boundary value. */
53
- this.min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
54
- /** Maximum boundary value. */
55
- this.max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
56
- /** Increment/decrement granularity (drag snapping + keyboard step). */
57
- this.step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
58
- /** Diameter preset (override any diameter with the `--ui-knob-size` hook). */
59
- this.size = input('default', /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
61
- /** Arc thickness, in viewBox units (100 = the diameter), so it scales with the knob. */
62
- this.strokeWidth = input(14, { ...(ngDevMode ? { debugName: "strokeWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
63
- /** Renders the value at the centre of the dial. */
64
- this.showValue = input(true, { ...(ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
65
- /** Template of the centre label, `{value}` being the placeholder. */
66
- this.valueTemplate = input('{value}', /* @ts-ignore */
67
- ...(ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []));
68
- /** Colour of the filled arc (any CSS colour). Sets `--ui-knob-value-color`. */
69
- this.valueColor = input(/* @ts-ignore */
70
- ...(ngDevMode ? [undefined, { debugName: "valueColor" }] : /* istanbul ignore next */ []));
71
- /** Colour of the track behind it. Sets `--ui-knob-range-color`. */
72
- this.rangeColor = input(/* @ts-ignore */
73
- ...(ngDevMode ? [undefined, { debugName: "rangeColor" }] : /* istanbul ignore next */ []));
74
- /** Colour of the centre label. Sets `--ui-knob-text-color`. */
75
- this.textColor = input(/* @ts-ignore */
76
- ...(ngDevMode ? [undefined, { debugName: "textColor" }] : /* istanbul ignore next */ []));
77
- /** Emitted on every value change (drag, keyboard, click on the dial). */
78
- this.knobChange = output();
79
- /** @ignore Pointer target, focus stop and % reference of the dial. */
80
- this.root = viewChild.required('root', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []));
82
- /** @ignore True while a drag is in progress. */
83
- this.dragging = false;
84
- /** @ignore Current value, clamped to the boundaries (falls back to `min`). */
85
- this.currentValue = computed(() => {
86
- const value = this.modelValue();
87
- return this.clamp(typeof value === 'number' && !Number.isNaN(value) ? value : this.min());
88
- }, /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "currentValue" }] : /* istanbul ignore next */ []));
90
- /** @ignore Centre label, with `{value}` substituted. */
91
- this.displayValue = computed(() => this.valueTemplate().replace('{value}', String(this.currentValue())), /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
93
- /** @ignore Announced only when the label differs from the raw value. */
94
- this.ariaValueText = computed(() => {
95
- const label = this.displayValue();
96
- return label === String(this.currentValue()) ? null : label;
97
- }, /* @ts-ignore */
98
- ...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
99
- /** @ignore Radius of the arc centreline, inset so the stroke fits the box. */
100
- this.radius = computed(() => dialRadius(this.strokeWidth()), /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
102
- /** @ignore The full track. */
103
- this.rangePath = computed(() => {
104
- const radius = this.radius();
105
- const from = polar(MIN_RADIANS, radius);
106
- const to = polar(MAX_RADIANS, radius);
107
- return `M ${from.x} ${from.y} A ${radius} ${radius} 0 1 1 ${to.x} ${to.y}`;
108
- }, /* @ts-ignore */
109
- ...(ngDevMode ? [{ debugName: "rangePath" }] : /* istanbul ignore next */ []));
110
- /** @ignore Arc drawn from the origin (0, or the nearest boundary) to the value. */
111
- this.valuePath = computed(() => {
112
- const radius = this.radius();
113
- const from = polar(this.originRadians(), radius);
114
- const to = polar(this.valueRadians(), radius);
115
- const largeArc = Math.abs(this.originRadians() - this.valueRadians()) < Math.PI ? 0 : 1;
116
- const sweep = this.valueRadians() > this.originRadians() ? 0 : 1;
117
- return `M ${from.x} ${from.y} A ${radius} ${radius} 0 ${largeArc} ${sweep} ${to.x} ${to.y}`;
118
- }, /* @ts-ignore */
119
- ...(ngDevMode ? [{ debugName: "valuePath" }] : /* istanbul ignore next */ []));
120
- /** @ignore */
121
- this.classes = computed(() => {
122
- const classes = ['ui-knob'];
123
- if (this.size() !== 'default')
124
- classes.push(`_${this.size()}`);
125
- if (this.isDisabled())
126
- classes.push('_disabled');
127
- if (this.readonly())
128
- classes.push('_readonly');
129
- if (this.isInvalid())
130
- classes.push('_invalid');
131
- return classes.join(' ');
132
- }, /* @ts-ignore */
133
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
134
- if (isDevMode()) {
135
- effect(() => {
136
- if (!this.ariaLabel() && !this.ariaLabelledBy()) {
137
- warnMissingAccessibleName('ui-knob', 'No accessible name: provide `ariaLabel` (or `ariaLabelledBy`).');
138
- }
139
- });
140
- }
141
- }
142
- /** @ignore */
143
- uidPrefix() {
144
- return 'ui-knob';
145
- }
146
- /** Focus the dial programmatically. */
147
- focus(options) {
148
- this.root().nativeElement.focus(options);
149
- }
150
- // --- Pointer interaction (mouse / touch / pen) -----------------------
151
- /** @ignore */
152
- onPointerDown(event) {
153
- if (this.isDisabled() || this.readonly())
154
- return;
155
- this.dragging = true;
156
- this.root().nativeElement.setPointerCapture(event.pointerId);
157
- this.updateFromPointer(event);
158
- // preventDefault kills the implicit focus, so take it explicitly.
159
- event.preventDefault();
160
- this.root().nativeElement.focus();
161
- }
162
- /** @ignore */
163
- onPointerMove(event) {
164
- if (!this.dragging)
165
- return;
166
- this.updateFromPointer(event);
167
- }
168
- /** @ignore */
169
- onPointerUp(event) {
170
- if (!this.dragging)
171
- return;
172
- this.dragging = false;
173
- this.root().nativeElement.releasePointerCapture?.(event.pointerId);
174
- }
175
- // --- Keyboard --------------------------------------------------------
176
- /** @ignore */
177
- onKeyDown(event) {
178
- if (this.isDisabled() || this.readonly())
179
- return;
180
- const step = this.stepSize();
181
- const current = this.currentValue();
182
- let next;
183
- switch (event.key) {
184
- case 'ArrowLeft':
185
- case 'ArrowDown':
186
- next = current - step;
187
- break;
188
- case 'ArrowRight':
189
- case 'ArrowUp':
190
- next = current + step;
191
- break;
192
- case 'PageDown':
193
- next = current - step * 10;
194
- break;
195
- case 'PageUp':
196
- next = current + step * 10;
197
- break;
198
- case 'Home':
199
- next = this.min();
200
- break;
201
- case 'End':
202
- next = this.max();
203
- break;
204
- default:
205
- return;
206
- }
207
- event.preventDefault();
208
- this.commit(next);
209
- }
210
- /** @ignore */
211
- onBlur() {
212
- this.emitTouch();
213
- }
214
- // --- Value helpers ---------------------------------------------------
215
- /** @ignore Effective step (never 0). */
216
- stepSize() {
217
- const step = this.step();
218
- return step > 0 ? step : 1;
219
- }
220
- /** @ignore Angle of the value on the dial. */
221
- valueRadians() {
222
- return mapRange(this.currentValue(), this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);
223
- }
224
- /** @ignore Angle the filled arc starts from: zero when it is inside the boundaries. */
225
- originRadians() {
226
- const origin = Math.min(Math.max(0, this.min()), this.max());
227
- return mapRange(origin, this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);
228
- }
229
- /** @ignore Pointer position → value, or `null` inside the bottom gap. */
230
- updateFromPointer(event) {
231
- const rect = this.root().nativeElement.getBoundingClientRect();
232
- if (!rect.width || !rect.height)
233
- return;
234
- const dx = (event.clientX - rect.left) / rect.width - 0.5;
235
- const dy = 0.5 - (event.clientY - rect.top) / rect.height;
236
- const angle = Math.atan2(dy, dx);
237
- if (angle > MAX_RADIANS) {
238
- this.commit(mapRange(angle, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));
239
- }
240
- else if (angle <= GAP_START) {
241
- this.commit(mapRange(angle + 2 * Math.PI, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));
242
- }
243
- }
244
- /** @ignore Round to the step's decimal precision (avoids float drift). */
245
- round(value) {
246
- const step = this.stepSize();
247
- const decimals = Number.isInteger(step) ? 0 : (step.toString().split('.')[1]?.length ?? 0);
248
- return decimals > 0 ? +value.toFixed(decimals) : Math.round(value);
249
- }
250
- /** @ignore Clamp to [min, max]. */
251
- clamp(value) {
252
- return Math.min(this.max(), Math.max(this.min(), value));
253
- }
254
- /** @ignore Snap to the step grid, clamp, then propagate if it moved. */
255
- commit(raw) {
256
- const step = this.stepSize();
257
- const min = this.min();
258
- const value = this.clamp(this.round(min + Math.round((raw - min) / step) * step));
259
- if (value === this.currentValue())
260
- return;
261
- this.modelValue.set(value);
262
- this.emitChange(value);
263
- this.knobChange.emit(value);
264
- }
265
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiKnob, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
266
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiKnob, isStandalone: true, selector: "ui-knob", inputs: { 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, valueTemplate: { classPropertyName: "valueTemplate", publicName: "valueTemplate", isSignal: true, isRequired: false, transformFunction: null }, valueColor: { classPropertyName: "valueColor", publicName: "valueColor", isSignal: true, isRequired: false, transformFunction: null }, rangeColor: { classPropertyName: "rangeColor", publicName: "rangeColor", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "textColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { knobChange: "knobChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }], viewQueries: [{ propertyName: "root", first: true, predicate: ["root"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n", styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"] }); }
21
+ if (inMax === inMin) return outMin;
22
+ return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
267
23
  }
268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiKnob, decorators: [{
269
- type: Component,
270
- args: [{ selector: 'ui-knob', standalone: true, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }], template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n", styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"] }]
271
- }], ctorParameters: () => [], propDecorators: { 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], valueTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueTemplate", required: false }] }], valueColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueColor", required: false }] }], rangeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeColor", required: false }] }], textColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "textColor", required: false }] }], knobChange: [{ type: i0.Output, args: ["knobChange"] }], root: [{ type: i0.ViewChild, args: ['root', { isSignal: true }] }] } });
272
-
273
- /*
274
- * Public API Surface of ui-kit/ui-knob
275
- */
276
-
277
- /**
278
- * Generated bundle index. Do not edit.
279
- */
280
-
24
+ var UiKnob = class UiKnob extends BaseFieldControl {
25
+ constructor() {
26
+ super();
27
+ this.min = input(0, {
28
+ ...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
29
+ transform: numberAttribute
30
+ });
31
+ this.max = input(100, {
32
+ ...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
33
+ transform: numberAttribute
34
+ });
35
+ this.step = input(1, {
36
+ ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
37
+ transform: numberAttribute
38
+ });
39
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
40
+ this.strokeWidth = input(14, {
41
+ ...ngDevMode ? { debugName: "strokeWidth" } : /* istanbul ignore next */ {},
42
+ transform: numberAttribute
43
+ });
44
+ this.showValue = input(true, {
45
+ ...ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {},
46
+ transform: booleanAttribute
47
+ });
48
+ this.valueTemplate = input("{value}", ...ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []);
49
+ this.valueColor = input(...ngDevMode ? [void 0, { debugName: "valueColor" }] : /* istanbul ignore next */ []);
50
+ this.rangeColor = input(...ngDevMode ? [void 0, { debugName: "rangeColor" }] : /* istanbul ignore next */ []);
51
+ this.textColor = input(...ngDevMode ? [void 0, { debugName: "textColor" }] : /* istanbul ignore next */ []);
52
+ this.knobChange = output();
53
+ this.root = viewChild.required("root", ...ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []);
54
+ this.dragging = false;
55
+ this.currentValue = computed(() => {
56
+ const value = this.modelValue();
57
+ return this.clamp(typeof value === "number" && !Number.isNaN(value) ? value : this.min());
58
+ }, ...ngDevMode ? [{ debugName: "currentValue" }] : /* istanbul ignore next */ []);
59
+ this.displayValue = computed(() => this.valueTemplate().replace("{value}", String(this.currentValue())), ...ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []);
60
+ this.ariaValueText = computed(() => {
61
+ const label = this.displayValue();
62
+ return label === String(this.currentValue()) ? null : label;
63
+ }, ...ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []);
64
+ this.radius = computed(() => dialRadius(this.strokeWidth()), ...ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []);
65
+ this.rangePath = computed(() => {
66
+ const radius = this.radius();
67
+ const from = polar(MIN_RADIANS, radius);
68
+ const to = polar(MAX_RADIANS, radius);
69
+ return `M ${from.x} ${from.y} A ${radius} ${radius} 0 1 1 ${to.x} ${to.y}`;
70
+ }, ...ngDevMode ? [{ debugName: "rangePath" }] : /* istanbul ignore next */ []);
71
+ this.valuePath = computed(() => {
72
+ const radius = this.radius();
73
+ const from = polar(this.originRadians(), radius);
74
+ const to = polar(this.valueRadians(), radius);
75
+ const largeArc = Math.abs(this.originRadians() - this.valueRadians()) < Math.PI ? 0 : 1;
76
+ const sweep = this.valueRadians() > this.originRadians() ? 0 : 1;
77
+ return `M ${from.x} ${from.y} A ${radius} ${radius} 0 ${largeArc} ${sweep} ${to.x} ${to.y}`;
78
+ }, ...ngDevMode ? [{ debugName: "valuePath" }] : /* istanbul ignore next */ []);
79
+ this.classes = computed(() => {
80
+ const classes = ["ui-knob"];
81
+ if (this.size() !== "default") classes.push(`_${this.size()}`);
82
+ if (this.isDisabled()) classes.push("_disabled");
83
+ if (this.readonly()) classes.push("_readonly");
84
+ if (this.isInvalid()) classes.push("_invalid");
85
+ return classes.join(" ");
86
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
87
+ if (isDevMode()) effect(() => {
88
+ if (!this.ariaLabel() && !this.ariaLabelledBy()) warnMissingAccessibleName("ui-knob", "No accessible name: provide `ariaLabel` (or `ariaLabelledBy`).");
89
+ });
90
+ }
91
+ uidPrefix() {
92
+ return "ui-knob";
93
+ }
94
+ focus(options) {
95
+ this.root().nativeElement.focus(options);
96
+ }
97
+ onPointerDown(event) {
98
+ if (this.isDisabled() || this.readonly()) return;
99
+ this.dragging = true;
100
+ this.root().nativeElement.setPointerCapture(event.pointerId);
101
+ this.updateFromPointer(event);
102
+ event.preventDefault();
103
+ this.root().nativeElement.focus();
104
+ }
105
+ onPointerMove(event) {
106
+ if (!this.dragging) return;
107
+ this.updateFromPointer(event);
108
+ }
109
+ onPointerUp(event) {
110
+ if (!this.dragging) return;
111
+ this.dragging = false;
112
+ this.root().nativeElement.releasePointerCapture?.(event.pointerId);
113
+ }
114
+ onKeyDown(event) {
115
+ if (this.isDisabled() || this.readonly()) return;
116
+ const step = this.stepSize();
117
+ const current = this.currentValue();
118
+ let next;
119
+ switch (event.key) {
120
+ case "ArrowLeft":
121
+ case "ArrowDown":
122
+ next = current - step;
123
+ break;
124
+ case "ArrowRight":
125
+ case "ArrowUp":
126
+ next = current + step;
127
+ break;
128
+ case "PageDown":
129
+ next = current - step * 10;
130
+ break;
131
+ case "PageUp":
132
+ next = current + step * 10;
133
+ break;
134
+ case "Home":
135
+ next = this.min();
136
+ break;
137
+ case "End":
138
+ next = this.max();
139
+ break;
140
+ default: return;
141
+ }
142
+ event.preventDefault();
143
+ this.commit(next);
144
+ }
145
+ onBlur() {
146
+ this.emitTouch();
147
+ }
148
+ stepSize() {
149
+ const step = this.step();
150
+ return step > 0 ? step : 1;
151
+ }
152
+ valueRadians() {
153
+ return mapRange(this.currentValue(), this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);
154
+ }
155
+ originRadians() {
156
+ return mapRange(Math.min(Math.max(0, this.min()), this.max()), this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);
157
+ }
158
+ updateFromPointer(event) {
159
+ const rect = this.root().nativeElement.getBoundingClientRect();
160
+ if (!rect.width || !rect.height) return;
161
+ const dx = (event.clientX - rect.left) / rect.width - .5;
162
+ const dy = .5 - (event.clientY - rect.top) / rect.height;
163
+ const angle = Math.atan2(dy, dx);
164
+ if (angle > MAX_RADIANS) this.commit(mapRange(angle, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));
165
+ else if (angle <= GAP_START) this.commit(mapRange(angle + 2 * Math.PI, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));
166
+ }
167
+ round(value) {
168
+ const step = this.stepSize();
169
+ const decimals = Number.isInteger(step) ? 0 : step.toString().split(".")[1]?.length ?? 0;
170
+ return decimals > 0 ? +value.toFixed(decimals) : Math.round(value);
171
+ }
172
+ clamp(value) {
173
+ return Math.min(this.max(), Math.max(this.min(), value));
174
+ }
175
+ commit(raw) {
176
+ const step = this.stepSize();
177
+ const min = this.min();
178
+ const value = this.clamp(this.round(min + Math.round((raw - min) / step) * step));
179
+ if (value === this.currentValue()) return;
180
+ this.modelValue.set(value);
181
+ this.emitChange(value);
182
+ this.knobChange.emit(value);
183
+ }
184
+ static {
185
+ this.ɵfac = i0.ɵɵngDeclareFactory({
186
+ minVersion: "12.0.0",
187
+ version: "22.3.0",
188
+ ngImport: i0,
189
+ type: UiKnob,
190
+ deps: [],
191
+ target: i0.ɵɵFactoryTarget.Component
192
+ });
193
+ }
194
+ static {
195
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
196
+ minVersion: "17.0.0",
197
+ version: "22.3.0",
198
+ type: UiKnob,
199
+ isStandalone: true,
200
+ selector: "ui-knob",
201
+ inputs: {
202
+ min: {
203
+ classPropertyName: "min",
204
+ publicName: "min",
205
+ isSignal: true,
206
+ isRequired: false,
207
+ transformFunction: null
208
+ },
209
+ max: {
210
+ classPropertyName: "max",
211
+ publicName: "max",
212
+ isSignal: true,
213
+ isRequired: false,
214
+ transformFunction: null
215
+ },
216
+ step: {
217
+ classPropertyName: "step",
218
+ publicName: "step",
219
+ isSignal: true,
220
+ isRequired: false,
221
+ transformFunction: null
222
+ },
223
+ size: {
224
+ classPropertyName: "size",
225
+ publicName: "size",
226
+ isSignal: true,
227
+ isRequired: false,
228
+ transformFunction: null
229
+ },
230
+ strokeWidth: {
231
+ classPropertyName: "strokeWidth",
232
+ publicName: "strokeWidth",
233
+ isSignal: true,
234
+ isRequired: false,
235
+ transformFunction: null
236
+ },
237
+ showValue: {
238
+ classPropertyName: "showValue",
239
+ publicName: "showValue",
240
+ isSignal: true,
241
+ isRequired: false,
242
+ transformFunction: null
243
+ },
244
+ valueTemplate: {
245
+ classPropertyName: "valueTemplate",
246
+ publicName: "valueTemplate",
247
+ isSignal: true,
248
+ isRequired: false,
249
+ transformFunction: null
250
+ },
251
+ valueColor: {
252
+ classPropertyName: "valueColor",
253
+ publicName: "valueColor",
254
+ isSignal: true,
255
+ isRequired: false,
256
+ transformFunction: null
257
+ },
258
+ rangeColor: {
259
+ classPropertyName: "rangeColor",
260
+ publicName: "rangeColor",
261
+ isSignal: true,
262
+ isRequired: false,
263
+ transformFunction: null
264
+ },
265
+ textColor: {
266
+ classPropertyName: "textColor",
267
+ publicName: "textColor",
268
+ isSignal: true,
269
+ isRequired: false,
270
+ transformFunction: null
271
+ }
272
+ },
273
+ outputs: { knobChange: "knobChange" },
274
+ providers: [{
275
+ provide: NG_VALUE_ACCESSOR,
276
+ useExisting: forwardRef(() => UiKnob),
277
+ multi: true
278
+ }],
279
+ viewQueries: [{
280
+ propertyName: "root",
281
+ first: true,
282
+ predicate: ["root"],
283
+ descendants: true,
284
+ isSignal: true
285
+ }],
286
+ usesInheritance: true,
287
+ ngImport: i0,
288
+ template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n",
289
+ styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"]
290
+ });
291
+ }
292
+ };
293
+ i0.ɵɵngDeclareClassMetadata({
294
+ minVersion: "12.0.0",
295
+ version: "22.3.0",
296
+ ngImport: i0,
297
+ type: UiKnob,
298
+ decorators: [{
299
+ type: Component,
300
+ args: [{
301
+ selector: "ui-knob",
302
+ standalone: true,
303
+ providers: [{
304
+ provide: NG_VALUE_ACCESSOR,
305
+ useExisting: forwardRef(() => UiKnob),
306
+ multi: true
307
+ }],
308
+ template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n",
309
+ styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"]
310
+ }]
311
+ }],
312
+ ctorParameters: () => [],
313
+ propDecorators: {
314
+ min: [{
315
+ type: i0.Input,
316
+ args: [{
317
+ isSignal: true,
318
+ alias: "min",
319
+ required: false
320
+ }]
321
+ }],
322
+ max: [{
323
+ type: i0.Input,
324
+ args: [{
325
+ isSignal: true,
326
+ alias: "max",
327
+ required: false
328
+ }]
329
+ }],
330
+ step: [{
331
+ type: i0.Input,
332
+ args: [{
333
+ isSignal: true,
334
+ alias: "step",
335
+ required: false
336
+ }]
337
+ }],
338
+ size: [{
339
+ type: i0.Input,
340
+ args: [{
341
+ isSignal: true,
342
+ alias: "size",
343
+ required: false
344
+ }]
345
+ }],
346
+ strokeWidth: [{
347
+ type: i0.Input,
348
+ args: [{
349
+ isSignal: true,
350
+ alias: "strokeWidth",
351
+ required: false
352
+ }]
353
+ }],
354
+ showValue: [{
355
+ type: i0.Input,
356
+ args: [{
357
+ isSignal: true,
358
+ alias: "showValue",
359
+ required: false
360
+ }]
361
+ }],
362
+ valueTemplate: [{
363
+ type: i0.Input,
364
+ args: [{
365
+ isSignal: true,
366
+ alias: "valueTemplate",
367
+ required: false
368
+ }]
369
+ }],
370
+ valueColor: [{
371
+ type: i0.Input,
372
+ args: [{
373
+ isSignal: true,
374
+ alias: "valueColor",
375
+ required: false
376
+ }]
377
+ }],
378
+ rangeColor: [{
379
+ type: i0.Input,
380
+ args: [{
381
+ isSignal: true,
382
+ alias: "rangeColor",
383
+ required: false
384
+ }]
385
+ }],
386
+ textColor: [{
387
+ type: i0.Input,
388
+ args: [{
389
+ isSignal: true,
390
+ alias: "textColor",
391
+ required: false
392
+ }]
393
+ }],
394
+ knobChange: [{
395
+ type: i0.Output,
396
+ args: ["knobChange"]
397
+ }],
398
+ root: [{
399
+ type: i0.ViewChild,
400
+ args: ["root", { isSignal: true }]
401
+ }]
402
+ }
403
+ });
281
404
  export { UiKnob };
282
- //# sourceMappingURL=4sh-ui-kit-forms-ui-knob.mjs.map
405
+
406
+ //# sourceMappingURL=4sh-ui-kit-forms-ui-knob.mjs.map