@4sh/ui-kit 0.7.0 → 0.9.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 (158) hide show
  1. package/README.fr.md +12 -11
  2. package/README.md +12 -11
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +7 -5
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
  12. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +8 -6
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +211 -27
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +18 -5
  23. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +11 -9
  25. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  37. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
  39. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
  40. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
  41. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  43. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
  45. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
  47. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +8 -6
  49. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +7 -5
  51. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
  53. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
  55. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
  57. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
  59. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +8 -6
  61. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-forms.mjs +12 -7
  65. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
  67. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  71. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
  72. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
  74. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
  76. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
  78. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
  80. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  82. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
  84. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
  86. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  88. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  89. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
  91. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  93. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
  95. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +629 -0
  97. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
  99. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  100. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
  101. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  102. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
  103. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  104. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
  105. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  106. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  107. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
  108. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
  109. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
  110. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +7 -5
  112. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +7 -5
  114. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +14 -12
  116. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
  118. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +25 -21
  120. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
  122. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
  123. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +7 -5
  124. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
  126. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  128. package/mcp/data/text-search-docs.json +741 -71
  129. package/mcp/data/ui-config.json +25927 -11496
  130. package/mcp/package.json +1 -1
  131. package/package.json +21 -1
  132. package/styles/base/_ripple.scss +53 -0
  133. package/styles/component-vars.scss +1426 -687
  134. package/styles/index.scss +1 -0
  135. package/styles/settings/_ui-config.scss +54 -2
  136. package/styles/utils/_mixins.scss +32 -30
  137. package/styles/utils/_overlay.scss +1 -1
  138. package/styles.css +1 -1
  139. package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
  140. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +3 -1
  141. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +59 -2
  142. package/types/4sh-ui-kit-forms-ui-field.d.ts +13 -1
  143. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
  144. package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
  145. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
  146. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
  147. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
  148. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +3 -1
  149. package/types/4sh-ui-kit-forms.d.ts +5 -1
  150. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
  151. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
  152. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
  153. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
  154. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
  155. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
  156. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +3 -1
  157. package/types/4sh-ui-kit-ripple.d.ts +156 -0
  158. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
@@ -223,16 +223,16 @@ class UiInputNumber extends BaseFormField {
223
223
  options.maximumFractionDigits = this.maxFractionDigits();
224
224
  return new Intl.NumberFormat(this.locale(), options).format(value);
225
225
  }
226
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
227
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiInputNumber, isStandalone: true, selector: "ui-input-number", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", 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 }, allowDecimals: { classPropertyName: "allowDecimals", publicName: "allowDecimals", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, incrementAriaLabel: { classPropertyName: "incrementAriaLabel", publicName: "incrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementAriaLabel: { classPropertyName: "decrementAriaLabel", publicName: "decrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
227
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiInputNumber, isStandalone: true, selector: "ui-input-number", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", 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 }, allowDecimals: { classPropertyName: "allowDecimals", publicName: "allowDecimals", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, incrementAriaLabel: { classPropertyName: "incrementAriaLabel", publicName: "incrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementAriaLabel: { classPropertyName: "decrementAriaLabel", publicName: "decrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
228
228
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },
229
- ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n", styles: [".ui-input-number-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-number-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-number-native::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-number-native:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-number-native._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-unit{flex-shrink:0;color:var(--form-low-content-default)}.ui-input-number-unit:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit._disabled{color:var(--form-high-content-disabled)}.ui-input-number-unit{font-family:var(--fontfamily-base);font-size:var(--ui-input-number-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-number-unit._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-spinner{display:flex;flex-direction:column;align-self:stretch;flex-shrink:0;width:var(--ui-input-number-spinner-width, 1.875rem);border-left:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--form-high-stroke-default);border-radius:0 var(--ui-form-field-radius, var(--radius-sm)) var(--ui-form-field-radius, var(--radius-sm)) 0;overflow:hidden}.ui-input-number-spinner button{display:flex;flex:1 1 50%;align-items:center;justify-content:center;min-height:0;padding:0;border:none;background:none;line-height:0;color:var(--form-low-content-default);cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-number-spinner button:hover:not(:disabled){color:var(--form-high-content-hover);background-color:var(--form-high-surface-hover)}.ui-input-number-spinner button:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-number-spinner button+button{border-top:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--form-high-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
229
+ ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n", styles: [".ui-input-number-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-number-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-number-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-number-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-number-native._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-number-unit:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-number-unit{font-family:var(--ui-input-number-font-family, var(--fontfamily-base));font-size:var(--ui-input-number-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-number-unit._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-spinner{display:flex;flex-direction:column;align-self:stretch;flex-shrink:0;width:var(--ui-input-number-spinner-width, 1.875rem);border-left:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default));border-radius:0 var(--ui-form-field-radius, var(--radius-sm)) var(--ui-form-field-radius, var(--radius-sm)) 0;overflow:hidden}.ui-input-number-spinner button{display:flex;flex:1 1 50%;align-items:center;justify-content:center;min-height:0;padding:0;border:none;background:none;line-height:0;color:var(--ui-form-field-spinner-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-number-spinner button:hover:not(:disabled){color:var(--ui-form-field-spinner-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-spinner-surface-hover, var(--form-high-surface-hover))}.ui-input-number-spinner button:disabled{cursor:not-allowed;color:var(--ui-form-field-spinner-color-disabled, var(--form-high-content-disabled))}.ui-input-number-spinner button+button{border-top:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
230
230
  }
231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiInputNumber, decorators: [{
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiInputNumber, decorators: [{
232
232
  type: Component,
233
233
  args: [{ selector: 'ui-input-number', imports: [UiField, UiIcon], providers: [
234
234
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },
235
- ], template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n", styles: [".ui-input-number-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-number-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-number-native::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-number-native:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-number-native._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-unit{flex-shrink:0;color:var(--form-low-content-default)}.ui-input-number-unit:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit._disabled{color:var(--form-high-content-disabled)}.ui-input-number-unit{font-family:var(--fontfamily-base);font-size:var(--ui-input-number-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-number-unit._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-spinner{display:flex;flex-direction:column;align-self:stretch;flex-shrink:0;width:var(--ui-input-number-spinner-width, 1.875rem);border-left:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--form-high-stroke-default);border-radius:0 var(--ui-form-field-radius, var(--radius-sm)) var(--ui-form-field-radius, var(--radius-sm)) 0;overflow:hidden}.ui-input-number-spinner button{display:flex;flex:1 1 50%;align-items:center;justify-content:center;min-height:0;padding:0;border:none;background:none;line-height:0;color:var(--form-low-content-default);cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-number-spinner button:hover:not(:disabled){color:var(--form-high-content-hover);background-color:var(--form-high-surface-hover)}.ui-input-number-spinner button:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-number-spinner button+button{border-top:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--form-high-stroke-default)}\n"] }]
235
+ ], template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n", styles: [".ui-input-number-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-number-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-number-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-number-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-number-native._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-number-unit:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-number-unit{font-family:var(--ui-input-number-font-family, var(--fontfamily-base));font-size:var(--ui-input-number-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-number-unit._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-spinner{display:flex;flex-direction:column;align-self:stretch;flex-shrink:0;width:var(--ui-input-number-spinner-width, 1.875rem);border-left:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default));border-radius:0 var(--ui-form-field-radius, var(--radius-sm)) var(--ui-form-field-radius, var(--radius-sm)) 0;overflow:hidden}.ui-input-number-spinner button{display:flex;flex:1 1 50%;align-items:center;justify-content:center;min-height:0;padding:0;border:none;background:none;line-height:0;color:var(--ui-form-field-spinner-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-number-spinner button:hover:not(:disabled){color:var(--ui-form-field-spinner-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-spinner-surface-hover, var(--form-high-surface-hover))}.ui-input-number-spinner button:disabled{cursor:not-allowed;color:var(--ui-form-field-spinner-color-disabled, var(--form-high-content-disabled))}.ui-input-number-spinner button+button{border-top:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default))}\n"] }]
236
236
  }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", 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 }] }], allowDecimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowDecimals", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], showButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtons", required: false }] }], incrementAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementAriaLabel", required: false }] }], decrementAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementAriaLabel", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], minFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "minFractionDigits", required: false }] }], maxFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFractionDigits", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
237
237
 
238
238
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-input-number.mjs","sources":["../../../projects/ui-kit/forms/ui-input-number/src/lib/ui-input-number.ts","../../../projects/ui-kit/forms/ui-input-number/src/lib/ui-input-number.html","../../../projects/ui-kit/forms/ui-input-number/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-number/src/4sh-ui-kit-forms-ui-input-number.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n forwardRef,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/**\n * ui-input-number — headless numeric field (`ui-field` shell).\n *\n * Model value = `number | null`. Lenient input: the text is **not** reformatted\n * while typing (no caret jump) — the field shows an editable form on focus, and\n * the **rich format** (thousands grouping, currency, decimals via\n * `Intl.NumberFormat`) is applied **on blur**. `min`/`max`/`step`, ± spinner,\n * ↑/↓ arrow keys, clamp on blur.\n *\n * Formatting is driven by `locale`/`currency`/`useGrouping`/`*FractionDigits`;\n * for a very specific case, override the protected `format()` method.\n */\n@Component({\n selector: 'ui-input-number',\n imports: [UiField, UiIcon],\n templateUrl: './ui-input-number.html',\n styleUrl: './ui-input-number.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },\n ],\n})\nexport class UiInputNumber extends BaseFormField<number | null> {\n /** Native placeholder. */\n placeholder = input<string>();\n /** Minimum value (clamp on blur + disables \"−\" at the bound). */\n min = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum value (clamp on blur + disables \"+\" at the bound). */\n max = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Increment step (spinner + arrow keys). */\n step = input<number, unknown>(1, { transform: numberAttribute });\n /** Allow decimals. */\n allowDecimals = input(true, { transform: booleanAttribute });\n /** Suffix unit (e.g. \"kg\"). Ignored when `currency` is set. */\n unit = input<string>();\n /** Show the ± spinner. */\n showButtons = input(true, { transform: booleanAttribute });\n /** Accessible label of the increment spinner button. */\n incrementAriaLabel = input<string>('Augmenter');\n /** Accessible label of the decrement spinner button. */\n decrementAriaLabel = input<string>('Diminuer');\n\n // --- Formatting (Intl.NumberFormat) --------------------------------\n /** BCP-47 locale (e.g. `fr-FR`). Defaults to the browser locale. */\n locale = input<string>();\n /** ISO currency code (e.g. `EUR`) → currency formatting on blur. */\n currency = input<string>();\n /** Thousands separators on blur. */\n useGrouping = input(true, { transform: booleanAttribute });\n /** Minimum fraction digits shown on blur. */\n minFractionDigits = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum fraction digits shown on blur. */\n maxFractionDigits = input<number, unknown>(undefined, { transform: numberAttribute });\n\n /** Emitted on each numeric value change. */\n valueChange = output<number | null>();\n /** Emitted when the input receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the input loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n /** @ignore Raw displayed text (independent from the model while typing). */\n protected readonly text = signal('');\n /** @ignore Keeps a floating label raised once focus leaves. */\n protected readonly isFilled = computed(() => this.text() !== '');\n /** @ignore At rest the floating label already holds that spot. */\n protected readonly effectivePlaceholder = computed(() =>\n this.hasFloatLabel() ? '' : (this.placeholder() ?? ''),\n );\n\n /** @ignore Suffix unit, ignored when `currency` is set (the formatted value already carries it). */\n protected readonly displayUnit = computed(() => (this.currency() ? null : (this.unit() ?? null)));\n\n /** @ignore */\n protected readonly unitSmall = computed(() => this.size() === 'small');\n /** @ignore Bounds reached (disable the spinner buttons). */\n protected readonly atMax = computed(() => {\n const v = this.modelValue();\n const max = this.max();\n return v != null && max != null && v >= max;\n });\n protected readonly atMin = computed(() => {\n const v = this.modelValue();\n const min = this.min();\n return v != null && min != null && v <= min;\n });\n /** @ignore `numberAttribute(undefined)` yields NaN, and `aria-valuemin=\"NaN\"` is an invalid\n * ARIA value — omit the attribute entirely rather than advertise a bound that does not exist. */\n protected readonly ariaValueMin = computed(() => (Number.isFinite(this.min()) ? this.min() : null));\n /** @ignore Same as `ariaValueMin`, for the upper bound. */\n protected readonly ariaValueMax = computed(() => (Number.isFinite(this.max()) ? this.max() : null));\n\n /** @ignore Group/decimal separators of the current locale. */\n private readonly separators = computed(() => {\n const parts = new Intl.NumberFormat(this.locale()).formatToParts(11111.1);\n return {\n group: parts.find((p) => p.type === 'group')?.value ?? '',\n decimal: parts.find((p) => p.type === 'decimal')?.value ?? '.',\n };\n });\n\n override writeValue(value: number | null): void {\n this.modelValue.set(value ?? undefined);\n this.text.set(value === null || value === undefined ? '' : this.format(value));\n }\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** @ignore Focus: switch to an editable form (no grouping/currency). */\n protected onFocus(event: FocusEvent): void {\n const v = this.modelValue();\n if (v != null) this.text.set(this.editable(v));\n this.inputFocus.emit(event);\n }\n\n /** @ignore Input: parse without reformatting the text (caret preserved). */\n protected onInput(): void {\n const raw = this.inputEl().nativeElement.value;\n this.text.set(raw);\n this.commit(this.parse(raw), { reformat: false });\n }\n\n /** @ignore Blur: clamp + rich reformatting. */\n protected onBlur(event: FocusEvent): void {\n this.commit(this.clamp(this.modelValue() ?? null), { reformat: true });\n this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /** @ignore ↑/↓ arrow keys. */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n this.stepBy(1);\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.stepBy(-1);\n }\n }\n\n /** @ignore ± spinner. */\n protected stepBy(direction: 1 | -1): void {\n if (this.isDisabled() || this.readonly()) return;\n const base = this.modelValue() ?? 0;\n const next = this.clamp(base + direction * this.step());\n this.commit(next, { reformat: !this.isFocused() });\n if (this.isFocused()) this.text.set(next === null ? '' : this.editable(next));\n this.inputEl().nativeElement.focus();\n }\n\n /** @ignore Does the input currently have focus? */\n private isFocused(): boolean {\n return (\n typeof document !== 'undefined' && document.activeElement === this.inputEl().nativeElement\n );\n }\n\n /** @ignore Update model + emit; reformat the text when requested. */\n private commit(value: number | null, opts: { reformat: boolean }): void {\n this.modelValue.set(value ?? undefined);\n if (opts.reformat) this.text.set(value === null ? '' : this.format(value));\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore Parse a lenient (locale-aware) input → number or null. */\n private parse(raw: string): number | null {\n const { group, decimal } = this.separators();\n let s = raw.trim();\n if (group) s = s.split(group).join('');\n s = s\n .replace(/\\s/g, '') // spaces (incl. U+202F/U+00A0 grouping separators)\n .replace(decimal, '.')\n .replace(/[^0-9.-]/g, ''); // strip currency/symbols\n if (s === '' || s === '-' || s === '.' || s === '-.') return null;\n const n = Number(s);\n if (Number.isNaN(n)) return null;\n return this.allowDecimals() ? n : Math.trunc(n);\n }\n\n /** @ignore Clamp the value into [min, max]. */\n private clamp(value: number | null): number | null {\n if (value === null) return null;\n const min = this.min();\n const max = this.max();\n let v = value;\n if (min != null && v < min) v = min;\n if (max != null && v > max) v = max;\n return v;\n }\n\n /** @ignore Editable form on focus: locale decimals, no grouping or currency. */\n private editable(value: number): string {\n return new Intl.NumberFormat(this.locale(), {\n useGrouping: false,\n maximumFractionDigits: 20,\n }).format(value);\n }\n\n /**\n * Display formatting on blur (overridable). Defaults to `Intl.NumberFormat`\n * with `locale`/`currency`/`useGrouping`/`*FractionDigits`.\n */\n protected format(value: number): string {\n const options: Intl.NumberFormatOptions = { useGrouping: this.useGrouping() };\n if (this.currency()) {\n options.style = 'currency';\n options.currency = this.currency();\n }\n if (this.minFractionDigits() != null) options.minimumFractionDigits = this.minFractionDigits();\n if (this.maxFractionDigits() != null) options.maximumFractionDigits = this.maxFractionDigits();\n return new Intl.NumberFormat(this.locale(), options).format(value);\n }\n}\n","<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input-number\n */\n\nexport * from './lib/ui-input-number';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAiBA;;;;;;;;;;;AAWG;AAUG,MAAO,aAAc,SAAQ,aAA4B,CAAA;AAT/D,IAAA,WAAA,GAAA;;;AAWE,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAE7B,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkB,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEhE,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,IAAI,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE5D,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,IAAI,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE1D,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,WAAW;+FAAC;;QAE/C,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,UAAU;+FAAC;;;AAI9C,QAAA,IAAA,CAAA,MA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,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9EvF;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-input-number.mjs","sources":["../../../projects/ui-kit/forms/ui-input-number/src/lib/ui-input-number.ts","../../../projects/ui-kit/forms/ui-input-number/src/lib/ui-input-number.html","../../../projects/ui-kit/forms/ui-input-number/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-number/src/4sh-ui-kit-forms-ui-input-number.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n forwardRef,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/**\n * ui-input-number — headless numeric field (`ui-field` shell).\n *\n * Model value = `number | null`. Lenient input: the text is **not** reformatted\n * while typing (no caret jump) — the field shows an editable form on focus, and\n * the **rich format** (thousands grouping, currency, decimals via\n * `Intl.NumberFormat`) is applied **on blur**. `min`/`max`/`step`, ± spinner,\n * ↑/↓ arrow keys, clamp on blur.\n *\n * Formatting is driven by `locale`/`currency`/`useGrouping`/`*FractionDigits`;\n * for a very specific case, override the protected `format()` method.\n */\n@Component({\n selector: 'ui-input-number',\n imports: [UiField, UiIcon],\n templateUrl: './ui-input-number.html',\n styleUrl: './ui-input-number.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },\n ],\n})\nexport class UiInputNumber extends BaseFormField<number | null> {\n /** Native placeholder. */\n placeholder = input<string>();\n /** Minimum value (clamp on blur + disables \"−\" at the bound). */\n min = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum value (clamp on blur + disables \"+\" at the bound). */\n max = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Increment step (spinner + arrow keys). */\n step = input<number, unknown>(1, { transform: numberAttribute });\n /** Allow decimals. */\n allowDecimals = input(true, { transform: booleanAttribute });\n /** Suffix unit (e.g. \"kg\"). Ignored when `currency` is set. */\n unit = input<string>();\n /** Show the ± spinner. */\n showButtons = input(true, { transform: booleanAttribute });\n /** Accessible label of the increment spinner button. */\n incrementAriaLabel = input<string>('Augmenter');\n /** Accessible label of the decrement spinner button. */\n decrementAriaLabel = input<string>('Diminuer');\n\n // --- Formatting (Intl.NumberFormat) --------------------------------\n /** BCP-47 locale (e.g. `fr-FR`). Defaults to the browser locale. */\n locale = input<string>();\n /** ISO currency code (e.g. `EUR`) → currency formatting on blur. */\n currency = input<string>();\n /** Thousands separators on blur. */\n useGrouping = input(true, { transform: booleanAttribute });\n /** Minimum fraction digits shown on blur. */\n minFractionDigits = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum fraction digits shown on blur. */\n maxFractionDigits = input<number, unknown>(undefined, { transform: numberAttribute });\n\n /** Emitted on each numeric value change. */\n valueChange = output<number | null>();\n /** Emitted when the input receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the input loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n /** @ignore Raw displayed text (independent from the model while typing). */\n protected readonly text = signal('');\n /** @ignore Keeps a floating label raised once focus leaves. */\n protected readonly isFilled = computed(() => this.text() !== '');\n /** @ignore At rest the floating label already holds that spot. */\n protected readonly effectivePlaceholder = computed(() =>\n this.hasFloatLabel() ? '' : (this.placeholder() ?? ''),\n );\n\n /** @ignore Suffix unit, ignored when `currency` is set (the formatted value already carries it). */\n protected readonly displayUnit = computed(() => (this.currency() ? null : (this.unit() ?? null)));\n\n /** @ignore */\n protected readonly unitSmall = computed(() => this.size() === 'small');\n /** @ignore Bounds reached (disable the spinner buttons). */\n protected readonly atMax = computed(() => {\n const v = this.modelValue();\n const max = this.max();\n return v != null && max != null && v >= max;\n });\n protected readonly atMin = computed(() => {\n const v = this.modelValue();\n const min = this.min();\n return v != null && min != null && v <= min;\n });\n /** @ignore `numberAttribute(undefined)` yields NaN, and `aria-valuemin=\"NaN\"` is an invalid\n * ARIA value — omit the attribute entirely rather than advertise a bound that does not exist. */\n protected readonly ariaValueMin = computed(() => (Number.isFinite(this.min()) ? this.min() : null));\n /** @ignore Same as `ariaValueMin`, for the upper bound. */\n protected readonly ariaValueMax = computed(() => (Number.isFinite(this.max()) ? this.max() : null));\n\n /** @ignore Group/decimal separators of the current locale. */\n private readonly separators = computed(() => {\n const parts = new Intl.NumberFormat(this.locale()).formatToParts(11111.1);\n return {\n group: parts.find((p) => p.type === 'group')?.value ?? '',\n decimal: parts.find((p) => p.type === 'decimal')?.value ?? '.',\n };\n });\n\n override writeValue(value: number | null): void {\n this.modelValue.set(value ?? undefined);\n this.text.set(value === null || value === undefined ? '' : this.format(value));\n }\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** @ignore Focus: switch to an editable form (no grouping/currency). */\n protected onFocus(event: FocusEvent): void {\n const v = this.modelValue();\n if (v != null) this.text.set(this.editable(v));\n this.inputFocus.emit(event);\n }\n\n /** @ignore Input: parse without reformatting the text (caret preserved). */\n protected onInput(): void {\n const raw = this.inputEl().nativeElement.value;\n this.text.set(raw);\n this.commit(this.parse(raw), { reformat: false });\n }\n\n /** @ignore Blur: clamp + rich reformatting. */\n protected onBlur(event: FocusEvent): void {\n this.commit(this.clamp(this.modelValue() ?? null), { reformat: true });\n this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /** @ignore ↑/↓ arrow keys. */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n this.stepBy(1);\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.stepBy(-1);\n }\n }\n\n /** @ignore ± spinner. */\n protected stepBy(direction: 1 | -1): void {\n if (this.isDisabled() || this.readonly()) return;\n const base = this.modelValue() ?? 0;\n const next = this.clamp(base + direction * this.step());\n this.commit(next, { reformat: !this.isFocused() });\n if (this.isFocused()) this.text.set(next === null ? '' : this.editable(next));\n this.inputEl().nativeElement.focus();\n }\n\n /** @ignore Does the input currently have focus? */\n private isFocused(): boolean {\n return (\n typeof document !== 'undefined' && document.activeElement === this.inputEl().nativeElement\n );\n }\n\n /** @ignore Update model + emit; reformat the text when requested. */\n private commit(value: number | null, opts: { reformat: boolean }): void {\n this.modelValue.set(value ?? undefined);\n if (opts.reformat) this.text.set(value === null ? '' : this.format(value));\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore Parse a lenient (locale-aware) input → number or null. */\n private parse(raw: string): number | null {\n const { group, decimal } = this.separators();\n let s = raw.trim();\n if (group) s = s.split(group).join('');\n s = s\n .replace(/\\s/g, '') // spaces (incl. U+202F/U+00A0 grouping separators)\n .replace(decimal, '.')\n .replace(/[^0-9.-]/g, ''); // strip currency/symbols\n if (s === '' || s === '-' || s === '.' || s === '-.') return null;\n const n = Number(s);\n if (Number.isNaN(n)) return null;\n return this.allowDecimals() ? n : Math.trunc(n);\n }\n\n /** @ignore Clamp the value into [min, max]. */\n private clamp(value: number | null): number | null {\n if (value === null) return null;\n const min = this.min();\n const max = this.max();\n let v = value;\n if (min != null && v < min) v = min;\n if (max != null && v > max) v = max;\n return v;\n }\n\n /** @ignore Editable form on focus: locale decimals, no grouping or currency. */\n private editable(value: number): string {\n return new Intl.NumberFormat(this.locale(), {\n useGrouping: false,\n maximumFractionDigits: 20,\n }).format(value);\n }\n\n /**\n * Display formatting on blur (overridable). Defaults to `Intl.NumberFormat`\n * with `locale`/`currency`/`useGrouping`/`*FractionDigits`.\n */\n protected format(value: number): string {\n const options: Intl.NumberFormatOptions = { useGrouping: this.useGrouping() };\n if (this.currency()) {\n options.style = 'currency';\n options.currency = this.currency();\n }\n if (this.minFractionDigits() != null) options.minimumFractionDigits = this.minFractionDigits();\n if (this.maxFractionDigits() != null) options.maximumFractionDigits = this.maxFractionDigits();\n return new Intl.NumberFormat(this.locale(), options).format(value);\n }\n}\n","<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input-number\n */\n\nexport * from './lib/ui-input-number';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAiBA;;;;;;;;;;;AAWG;AAUG,MAAO,aAAc,SAAQ,aAA4B,CAAA;AAT/D,IAAA,WAAA,GAAA;;;AAWE,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAE7B,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkB,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEhE,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,IAAI,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE5D,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,IAAI,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE1D,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,WAAW;+FAAC;;QAE/C,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,UAAU;+FAAC;;;AAI9C,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;Q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AEG;;ACFH;;AAEG;;"}
@@ -255,12 +255,12 @@ class UiInputOtp extends BaseFieldControl {
255
255
  sanitize(value) {
256
256
  return this.integerOnly() ? value.replace(/\D/g, '') : value;
257
257
  }
258
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiInputOtp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
259
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiInputOtp, isStandalone: true, selector: "ui-input-otp", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, integerOnly: { classPropertyName: "integerOnly", publicName: "integerOnly", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, charAriaLabel: { classPropertyName: "charAriaLabel", publicName: "charAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", completed: "completed" }, host: { attributes: { "role": "group" }, listeners: { "focusout": "onFocusOut($event)" }, properties: { "class._small": "size() === 'small'", "class._large": "size() === 'large'", "class._disabled": "isDisabled()", "class._readonly": "readonly()", "class._invalid": "isInvalid()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-invalid": "isInvalid() ? 'true' : null", "attr.aria-disabled": "isDisabled() ? 'true' : null" }, classAttribute: "ui-input-otp" }, providers: [
258
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiInputOtp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
259
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiInputOtp, isStandalone: true, selector: "ui-input-otp", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, integerOnly: { classPropertyName: "integerOnly", publicName: "integerOnly", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, charAriaLabel: { classPropertyName: "charAriaLabel", publicName: "charAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", completed: "completed" }, host: { attributes: { "role": "group" }, listeners: { "focusout": "onFocusOut($event)" }, properties: { "class._small": "size() === 'small'", "class._large": "size() === 'large'", "class._disabled": "isDisabled()", "class._readonly": "readonly()", "class._invalid": "isInvalid()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-invalid": "isInvalid() ? 'true' : null", "attr.aria-disabled": "isDisabled() ? 'true' : null" }, classAttribute: "ui-input-otp" }, providers: [
260
260
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true },
261
- ], queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--ui-input-otp-gap, var(--units-sm));font-family:var(--fontfamily-base)}:host .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size, var(--size-components-default));block-size:var(--ui-input-otp-cell-size, var(--size-components-default));font-size:var(--ui-input-otp-font-size, var(--size-typography-text-default))}:host._small .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));block-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));font-size:var(--ui-input-otp-font-size-small, var(--size-typography-text-md))}:host._large .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));block-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));font-size:var(--ui-input-otp-font-size-large, var(--size-typography-text-lg))}.ui-input-otp-cell{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);box-sizing:border-box;min-inline-size:0;margin:0;padding:0;border:var(--ui-input-otp-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-input-otp-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--form-high-surface-default);color:var(--form-high-content-default);font-family:inherit;font-weight:var(--weight-bold);text-align:center;caret-color:var(--form-high-content-default);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-otp-cell:hover:not(:disabled):not(:focus){border-color:var(--_stroke-hover)}.ui-input-otp-cell:focus,.ui-input-otp-cell:focus-visible{outline:none;border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-input-otp-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/50%)}.ui-input-otp-cell:disabled{border-color:var(--form-high-stroke-disabled);background-color:var(--form-high-surface-disabled);color:var(--form-high-content-disabled);cursor:not-allowed}:host._readonly .ui-input-otp-cell{cursor:default}:host._invalid .ui-input-otp-cell{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
261
+ ], queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--ui-input-otp-gap, var(--units-sm));font-family:var(--ui-input-otp-font-family, var(--fontfamily-base))}:host .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size, var(--size-components-default));block-size:var(--ui-input-otp-cell-size, var(--size-components-default));font-size:var(--ui-input-otp-font-size, var(--size-typography-text-default))}:host._small .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));block-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));font-size:var(--ui-input-otp-font-size-small, var(--size-typography-text-md))}:host._large .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));block-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));font-size:var(--ui-input-otp-font-size-large, var(--size-typography-text-lg))}.ui-input-otp-cell{--_stroke: var(--ui-input-otp-cell-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-input-otp-cell-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-input-otp-cell-stroke-focus, var(--form-high-stroke-focused));box-sizing:border-box;min-inline-size:0;margin:0;padding:0;border:var(--ui-input-otp-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-input-otp-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--ui-input-otp-cell-surface, var(--form-high-surface-default));color:var(--ui-input-otp-cell-color, var(--form-high-content-default));font-family:inherit;font-weight:var(--ui-input-otp-weight, var(--weight-bold));text-align:center;caret-color:var(--ui-input-otp-cell-color, var(--form-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-otp-cell:hover:not(:disabled):not(:focus){border-color:var(--_stroke-hover)}.ui-input-otp-cell:focus,.ui-input-otp-cell:focus-visible{outline:none;border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-input-otp-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/50%)}.ui-input-otp-cell:disabled{border-color:var(--ui-input-otp-cell-stroke-disabled, var(--form-high-stroke-disabled));background-color:var(--ui-input-otp-cell-surface-disabled, var(--form-high-surface-disabled));color:var(--ui-input-otp-cell-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}:host._readonly .ui-input-otp-cell{cursor:default}:host._invalid .ui-input-otp-cell{--_stroke: var(--ui-input-otp-cell-stroke-invalid, var(--form-error-stroke-default));--_stroke-hover: var(--ui-input-otp-cell-stroke-hover-invalid, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-input-otp-cell-stroke-focus-invalid, var(--form-error-stroke-focused))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
262
262
  }
263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiInputOtp, decorators: [{
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiInputOtp, decorators: [{
264
264
  type: Component,
265
265
  args: [{ selector: 'ui-input-otp', imports: [NgTemplateOutlet], providers: [
266
266
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true },
@@ -277,7 +277,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
277
277
  '[attr.aria-invalid]': "isInvalid() ? 'true' : null",
278
278
  '[attr.aria-disabled]': "isDisabled() ? 'true' : null",
279
279
  '(focusout)': 'onFocusOut($event)',
280
- }, template: "@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--ui-input-otp-gap, var(--units-sm));font-family:var(--fontfamily-base)}:host .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size, var(--size-components-default));block-size:var(--ui-input-otp-cell-size, var(--size-components-default));font-size:var(--ui-input-otp-font-size, var(--size-typography-text-default))}:host._small .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));block-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));font-size:var(--ui-input-otp-font-size-small, var(--size-typography-text-md))}:host._large .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));block-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));font-size:var(--ui-input-otp-font-size-large, var(--size-typography-text-lg))}.ui-input-otp-cell{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);box-sizing:border-box;min-inline-size:0;margin:0;padding:0;border:var(--ui-input-otp-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-input-otp-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--form-high-surface-default);color:var(--form-high-content-default);font-family:inherit;font-weight:var(--weight-bold);text-align:center;caret-color:var(--form-high-content-default);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-otp-cell:hover:not(:disabled):not(:focus){border-color:var(--_stroke-hover)}.ui-input-otp-cell:focus,.ui-input-otp-cell:focus-visible{outline:none;border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-input-otp-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/50%)}.ui-input-otp-cell:disabled{border-color:var(--form-high-stroke-disabled);background-color:var(--form-high-surface-disabled);color:var(--form-high-content-disabled);cursor:not-allowed}:host._readonly .ui-input-otp-cell{cursor:default}:host._invalid .ui-input-otp-cell{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}\n"] }]
280
+ }, template: "@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--ui-input-otp-gap, var(--units-sm));font-family:var(--ui-input-otp-font-family, var(--fontfamily-base))}:host .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size, var(--size-components-default));block-size:var(--ui-input-otp-cell-size, var(--size-components-default));font-size:var(--ui-input-otp-font-size, var(--size-typography-text-default))}:host._small .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));block-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));font-size:var(--ui-input-otp-font-size-small, var(--size-typography-text-md))}:host._large .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));block-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));font-size:var(--ui-input-otp-font-size-large, var(--size-typography-text-lg))}.ui-input-otp-cell{--_stroke: var(--ui-input-otp-cell-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-input-otp-cell-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-input-otp-cell-stroke-focus, var(--form-high-stroke-focused));box-sizing:border-box;min-inline-size:0;margin:0;padding:0;border:var(--ui-input-otp-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-input-otp-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--ui-input-otp-cell-surface, var(--form-high-surface-default));color:var(--ui-input-otp-cell-color, var(--form-high-content-default));font-family:inherit;font-weight:var(--ui-input-otp-weight, var(--weight-bold));text-align:center;caret-color:var(--ui-input-otp-cell-color, var(--form-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-otp-cell:hover:not(:disabled):not(:focus){border-color:var(--_stroke-hover)}.ui-input-otp-cell:focus,.ui-input-otp-cell:focus-visible{outline:none;border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-input-otp-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/50%)}.ui-input-otp-cell:disabled{border-color:var(--ui-input-otp-cell-stroke-disabled, var(--form-high-stroke-disabled));background-color:var(--ui-input-otp-cell-surface-disabled, var(--form-high-surface-disabled));color:var(--ui-input-otp-cell-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}:host._readonly .ui-input-otp-cell{cursor:default}:host._invalid .ui-input-otp-cell{--_stroke: var(--ui-input-otp-cell-stroke-invalid, var(--form-error-stroke-default));--_stroke-hover: var(--ui-input-otp-cell-stroke-hover-invalid, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-input-otp-cell-stroke-focus-invalid, var(--form-error-stroke-focused))}\n"] }]
281
281
  }], ctorParameters: () => [], propDecorators: { length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], integerOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "integerOnly", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], charAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "charAriaLabel", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], completed: [{ type: i0.Output, args: ["completed"] }], inputTemplate: [{ type: i0.ContentChild, args: ['input', { isSignal: true }] }] } });
282
282
 
283
283
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-input-otp.mjs","sources":["../../../projects/ui-kit/forms/ui-input-otp/src/lib/ui-input-otp.ts","../../../projects/ui-kit/forms/ui-input-otp/src/lib/ui-input-otp.html","../../../projects/ui-kit/forms/ui-input-otp/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-otp/src/4sh-ui-kit-forms-ui-input-otp.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { warnMissingAccessibleName } from '@4sh/ui-kit/forms';\n\n/** Size of the OTP cells. `default` is the base. */\nexport type InputOtpSize = 'small' | 'default' | 'large';\n\n/** DOM event handlers handed to a custom `#input` cell template. */\nexport interface InputOtpCellEvents {\n /** Wire on `(input)`. */\n input: (event: Event) => void;\n /** Wire on `(keydown)`. */\n keydown: (event: KeyboardEvent) => void;\n /** Wire on `(focus)`. */\n focus: (event: FocusEvent) => void;\n /** Wire on `(blur)`. */\n blur: (event: FocusEvent) => void;\n /** Wire on `(paste)`. */\n paste: (event: ClipboardEvent) => void;\n}\n\n/** Context handed to the `#input` template (one per cell). */\nexport interface InputOtpCellContext {\n /** Current value of this cell (default `$implicit`). */\n $implicit: string;\n /** Same as `$implicit`, named for readability. */\n value: string;\n /** Zero-based index of the cell. */\n index: number;\n /** Event handlers to bind on the custom control (keeps the OTP behaviour). */\n events: InputOtpCellEvents;\n /** Roving tabindex for this cell (`0` for the active one, `-1` otherwise). */\n tabindex: number;\n}\n\n/**\n * ui-input-otp — headless one-time-password field: a row of single-character\n * cells backing a single string value.\n *\n * Each cell is a real native `<input maxlength=\"1\">`; the group carries\n * `role=\"group\"` and a **roving tabindex** so `Tab` enters/leaves the field as a\n * whole while `←`/`→` move between cells (`Backspace` clears and steps\n * back). Typing auto-advances, and pasting a code distributes it across the\n * cells. Interactive states (hover/focus/disabled) are pure CSS driven by the\n * `form.*` design tokens.\n *\n * - `mask` hides the characters (`type=\"password\"`).\n * - `integerOnly` restricts input to digits (`inputmode=\"numeric\"`).\n * - a `#input` template replaces the default cell with your own control (it\n * receives the value, index, roving tabindex and the event handlers to bind).\n *\n * Works standalone, with `[(ngModel)]`, reactive forms, or signal forms\n * (`[formField]`, Angular 22) — it is a `ControlValueAccessor` (interop handled by\n * `BaseControlValueAccessor`).\n *\n * @example\n * ```html\n * <ui-input-otp [(ngModel)]=\"code\" [length]=\"6\" [integerOnly]=\"true\" ariaLabel=\"Code de vérification\" />\n * ```\n */\n@Component({\n selector: 'ui-input-otp',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-input-otp.html',\n styleUrl: './ui-input-otp.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true },\n ],\n host: {\n class: 'ui-input-otp',\n role: 'group',\n '[class._small]': \"size() === 'small'\",\n '[class._large]': \"size() === 'large'\",\n '[class._disabled]': 'isDisabled()',\n '[class._readonly]': 'readonly()',\n '[class._invalid]': 'isInvalid()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.aria-invalid]': \"isInvalid() ? 'true' : null\",\n '[attr.aria-disabled]': \"isDisabled() ? 'true' : null\",\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class UiInputOtp extends BaseFieldControl<string> {\n /** Number of cells (characters) to enter. */\n length = input(4, { transform: numberAttribute });\n /** Hide the characters (renders `type=\"password\"`). */\n mask = input(false, { transform: booleanAttribute });\n /** Restrict input to integers (`inputmode=\"numeric\"`, non-digits rejected). */\n integerOnly = input(false, { transform: booleanAttribute });\n /** Cell size. */\n size = input<InputOtpSize>('default');\n /** Accessible-name prefix of each cell (\"<prefix> N\"). Falls back to `ariaLabel`. */\n charAriaLabel = input<string>('Caractère');\n /** Focus the first cell on init. */\n autofocus = input(false, { transform: booleanAttribute });\n\n /** Emitted with the joined value on every change. */\n valueChange = output<string>();\n /** Emitted with the value once every cell is filled. */\n completed = output<string>();\n\n /** Custom cell template (`<ng-template #input let-value let-i=\"index\" let-events=\"events\">`). */\n protected readonly inputTemplate = contentChild<TemplateRef<InputOtpCellContext>>('input');\n\n /** @ignore */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore Per-cell characters (source of truth for the view). */\n private readonly tokens = signal<string[]>([]);\n /** @ignore Cell that owns the group's single tab stop (roving tabindex). */\n private readonly focusedIndex = signal(0);\n\n constructor() {\n super();\n\n // Optional autofocus on the first cell after the view exists.\n afterNextRender(() => {\n if (this.autofocus() && !this.isDisabled()) this.focusCell(0);\n });\n\n // A11y safeguard (dev only): the group needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-input-otp',\n 'Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Native input type (masked → password). */\n protected readonly inputType = computed(() => (this.mask() ? 'password' : 'text'));\n /** @ignore Hint for the on-screen keyboard. */\n protected readonly inputMode = computed(() => (this.integerOnly() ? 'numeric' : 'text'));\n\n /** @ignore Render-ready list of cells (index + current value). */\n protected readonly cells = computed(() => {\n const tokens = this.tokens();\n return Array.from({ length: Math.max(0, this.length()) }, (_, index) => ({\n index,\n id: `${this.uid}-${index}`,\n value: tokens[index] ?? '',\n }));\n });\n\n override writeValue(value: string | number | null): void {\n this.tokens.set(this.toTokens(value));\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-input-otp';\n }\n\n /** Move focus to the first cell. */\n focus(options?: FocusOptions): void {\n this.focusCell(0, options);\n }\n\n /** @ignore Roving tabindex for a given cell (one `0`, the rest `-1`). */\n protected tabindexFor(index: number): number {\n const active = Math.min(this.focusedIndex(), this.length() - 1);\n return index === Math.max(0, active) ? 0 : -1;\n }\n\n /** @ignore Value shown in a cell. */\n protected cellValue(index: number): string {\n return this.tokens()[index] ?? '';\n }\n\n /** @ignore Handlers exposed to a custom `#input` template. */\n protected cellEvents(index: number): InputOtpCellEvents {\n return {\n input: (event: Event) => this.onInput(event, index),\n keydown: (event: KeyboardEvent) => this.onKeydown(event, index),\n focus: (event: FocusEvent) => this.onFocus(event, index),\n blur: () => {\n /* touched is emitted on group focusout */\n },\n paste: (event: ClipboardEvent) => this.onPaste(event, index),\n };\n }\n\n /** @ignore Cell input: single source of the per-cell value (view → form). */\n protected onInput(event: Event, index: number): void {\n if (this.readonly()) return;\n const target = event.target as HTMLInputElement;\n const raw = this.sanitize(target.value);\n\n // Multi-char (autofill / paste into a cell) → distribute across cells.\n if (raw.length > 1) {\n this.setFromIndex(index, raw);\n return;\n }\n\n const tokens = [...this.tokens()];\n tokens[index] = raw;\n target.value = raw; // reflect the sanitised value\n this.commit(tokens);\n\n const inputType = (event as InputEvent).inputType;\n if (raw) this.focusCell(index + 1);\n else if (inputType === 'deleteContentBackward') this.focusCell(index - 1);\n }\n\n /** @ignore Keyboard navigation + input guards. */\n protected onKeydown(event: KeyboardEvent, index: number): void {\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const target = event.target as HTMLInputElement;\n\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n this.focusCell(index - 1);\n return;\n case 'ArrowRight':\n event.preventDefault();\n this.focusCell(index + 1);\n return;\n case 'Home':\n event.preventDefault();\n this.focusCell(0);\n return;\n case 'End':\n event.preventDefault();\n this.focusCell(this.length() - 1);\n return;\n case 'ArrowUp':\n case 'ArrowDown':\n event.preventDefault();\n return;\n case 'Backspace':\n // Empty cell → clear + step back (a filled cell clears via native input).\n if (!target.value && !this.readonly()) {\n event.preventDefault();\n const tokens = [...this.tokens()];\n if (tokens[index - 1] !== undefined) tokens[index - 1] = '';\n this.commit(tokens);\n this.focusCell(index - 1);\n }\n return;\n default: {\n if (event.key.length !== 1) return; // let control keys through\n // Reject non-digits when integer-only.\n if (this.integerOnly() && !/^\\d$/.test(event.key)) event.preventDefault();\n }\n }\n }\n\n /** @ignore Select the cell content on focus + track the roving index. */\n protected onFocus(event: FocusEvent, index: number): void {\n this.focusedIndex.set(index);\n (event.target as HTMLInputElement).select?.();\n }\n\n /** @ignore Distribute a pasted code across the cells from `index`. */\n protected onPaste(event: ClipboardEvent, index: number): void {\n if (this.isDisabled() || this.readonly()) return;\n event.preventDefault();\n const pasted = this.sanitize(event.clipboardData?.getData('text') ?? '');\n if (pasted) this.setFromIndex(index, pasted);\n }\n\n /** @ignore Mark touched when focus leaves the whole group. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !this.host.nativeElement.contains(next)) this.emitTouch();\n }\n\n /** @ignore Write `chars` into the cells starting at `from`, then commit + focus. */\n private setFromIndex(from: number, chars: string): void {\n const tokens = [...this.tokens()];\n const max = this.length();\n let i = from;\n for (const ch of chars) {\n if (i >= max) break;\n tokens[i++] = ch;\n }\n this.commit(tokens);\n this.focusCell(Math.min(i, max - 1));\n }\n\n /** @ignore Persist the tokens, emit the joined value (+ `completed` when full). */\n private commit(tokens: string[]): void {\n const trimmed = tokens.slice(0, this.length());\n this.tokens.set(trimmed);\n const value = trimmed.join('');\n this.emitChange(value);\n this.valueChange.emit(value);\n if (value.length === this.length() && trimmed.every((c) => c !== '')) {\n this.completed.emit(value);\n }\n }\n\n /** @ignore Focus (and select) the cell at `index`, if it exists. */\n private focusCell(index: number, options?: FocusOptions): void {\n if (index < 0 || index >= this.length()) return;\n this.focusedIndex.set(index);\n const el = this.host.nativeElement.querySelectorAll<HTMLInputElement>('input')[index];\n if (el) {\n el.focus(options);\n el.select();\n }\n }\n\n /** @ignore Split a form value into an array of single characters (bounded). */\n private toTokens(value: string | number | null | undefined): string[] {\n if (value === null || value === undefined || value === '') return [];\n return String(value).split('').slice(0, this.length());\n }\n\n /** @ignore Drop non-digits when integer-only, otherwise pass through. */\n private sanitize(value: string): string {\n return this.integerOnly() ? value.replace(/\\D/g, '') : value;\n }\n}\n","@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-input-otp\n */\n\nexport * from './lib/ui-input-otp';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAqDA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAwBG,MAAO,UAAW,SAAQ,gBAAwB,CAAA;AA6BtD,IAAA,WAAA,GAAA;AACE,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AA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzH3F;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-input-otp.mjs","sources":["../../../projects/ui-kit/forms/ui-input-otp/src/lib/ui-input-otp.ts","../../../projects/ui-kit/forms/ui-input-otp/src/lib/ui-input-otp.html","../../../projects/ui-kit/forms/ui-input-otp/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-otp/src/4sh-ui-kit-forms-ui-input-otp.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { warnMissingAccessibleName } from '@4sh/ui-kit/forms';\n\n/** Size of the OTP cells. `default` is the base. */\nexport type InputOtpSize = 'small' | 'default' | 'large';\n\n/** DOM event handlers handed to a custom `#input` cell template. */\nexport interface InputOtpCellEvents {\n /** Wire on `(input)`. */\n input: (event: Event) => void;\n /** Wire on `(keydown)`. */\n keydown: (event: KeyboardEvent) => void;\n /** Wire on `(focus)`. */\n focus: (event: FocusEvent) => void;\n /** Wire on `(blur)`. */\n blur: (event: FocusEvent) => void;\n /** Wire on `(paste)`. */\n paste: (event: ClipboardEvent) => void;\n}\n\n/** Context handed to the `#input` template (one per cell). */\nexport interface InputOtpCellContext {\n /** Current value of this cell (default `$implicit`). */\n $implicit: string;\n /** Same as `$implicit`, named for readability. */\n value: string;\n /** Zero-based index of the cell. */\n index: number;\n /** Event handlers to bind on the custom control (keeps the OTP behaviour). */\n events: InputOtpCellEvents;\n /** Roving tabindex for this cell (`0` for the active one, `-1` otherwise). */\n tabindex: number;\n}\n\n/**\n * ui-input-otp — headless one-time-password field: a row of single-character\n * cells backing a single string value.\n *\n * Each cell is a real native `<input maxlength=\"1\">`; the group carries\n * `role=\"group\"` and a **roving tabindex** so `Tab` enters/leaves the field as a\n * whole while `←`/`→` move between cells (`Backspace` clears and steps\n * back). Typing auto-advances, and pasting a code distributes it across the\n * cells. Interactive states (hover/focus/disabled) are pure CSS driven by the\n * `form.*` design tokens.\n *\n * - `mask` hides the characters (`type=\"password\"`).\n * - `integerOnly` restricts input to digits (`inputmode=\"numeric\"`).\n * - a `#input` template replaces the default cell with your own control (it\n * receives the value, index, roving tabindex and the event handlers to bind).\n *\n * Works standalone, with `[(ngModel)]`, reactive forms, or signal forms\n * (`[formField]`, Angular 22) — it is a `ControlValueAccessor` (interop handled by\n * `BaseControlValueAccessor`).\n *\n * @example\n * ```html\n * <ui-input-otp [(ngModel)]=\"code\" [length]=\"6\" [integerOnly]=\"true\" ariaLabel=\"Code de vérification\" />\n * ```\n */\n@Component({\n selector: 'ui-input-otp',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-input-otp.html',\n styleUrl: './ui-input-otp.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true },\n ],\n host: {\n class: 'ui-input-otp',\n role: 'group',\n '[class._small]': \"size() === 'small'\",\n '[class._large]': \"size() === 'large'\",\n '[class._disabled]': 'isDisabled()',\n '[class._readonly]': 'readonly()',\n '[class._invalid]': 'isInvalid()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.aria-invalid]': \"isInvalid() ? 'true' : null\",\n '[attr.aria-disabled]': \"isDisabled() ? 'true' : null\",\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class UiInputOtp extends BaseFieldControl<string> {\n /** Number of cells (characters) to enter. */\n length = input(4, { transform: numberAttribute });\n /** Hide the characters (renders `type=\"password\"`). */\n mask = input(false, { transform: booleanAttribute });\n /** Restrict input to integers (`inputmode=\"numeric\"`, non-digits rejected). */\n integerOnly = input(false, { transform: booleanAttribute });\n /** Cell size. */\n size = input<InputOtpSize>('default');\n /** Accessible-name prefix of each cell (\"<prefix> N\"). Falls back to `ariaLabel`. */\n charAriaLabel = input<string>('Caractère');\n /** Focus the first cell on init. */\n autofocus = input(false, { transform: booleanAttribute });\n\n /** Emitted with the joined value on every change. */\n valueChange = output<string>();\n /** Emitted with the value once every cell is filled. */\n completed = output<string>();\n\n /** Custom cell template (`<ng-template #input let-value let-i=\"index\" let-events=\"events\">`). */\n protected readonly inputTemplate = contentChild<TemplateRef<InputOtpCellContext>>('input');\n\n /** @ignore */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore Per-cell characters (source of truth for the view). */\n private readonly tokens = signal<string[]>([]);\n /** @ignore Cell that owns the group's single tab stop (roving tabindex). */\n private readonly focusedIndex = signal(0);\n\n constructor() {\n super();\n\n // Optional autofocus on the first cell after the view exists.\n afterNextRender(() => {\n if (this.autofocus() && !this.isDisabled()) this.focusCell(0);\n });\n\n // A11y safeguard (dev only): the group needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-input-otp',\n 'Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Native input type (masked → password). */\n protected readonly inputType = computed(() => (this.mask() ? 'password' : 'text'));\n /** @ignore Hint for the on-screen keyboard. */\n protected readonly inputMode = computed(() => (this.integerOnly() ? 'numeric' : 'text'));\n\n /** @ignore Render-ready list of cells (index + current value). */\n protected readonly cells = computed(() => {\n const tokens = this.tokens();\n return Array.from({ length: Math.max(0, this.length()) }, (_, index) => ({\n index,\n id: `${this.uid}-${index}`,\n value: tokens[index] ?? '',\n }));\n });\n\n override writeValue(value: string | number | null): void {\n this.tokens.set(this.toTokens(value));\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-input-otp';\n }\n\n /** Move focus to the first cell. */\n focus(options?: FocusOptions): void {\n this.focusCell(0, options);\n }\n\n /** @ignore Roving tabindex for a given cell (one `0`, the rest `-1`). */\n protected tabindexFor(index: number): number {\n const active = Math.min(this.focusedIndex(), this.length() - 1);\n return index === Math.max(0, active) ? 0 : -1;\n }\n\n /** @ignore Value shown in a cell. */\n protected cellValue(index: number): string {\n return this.tokens()[index] ?? '';\n }\n\n /** @ignore Handlers exposed to a custom `#input` template. */\n protected cellEvents(index: number): InputOtpCellEvents {\n return {\n input: (event: Event) => this.onInput(event, index),\n keydown: (event: KeyboardEvent) => this.onKeydown(event, index),\n focus: (event: FocusEvent) => this.onFocus(event, index),\n blur: () => {\n /* touched is emitted on group focusout */\n },\n paste: (event: ClipboardEvent) => this.onPaste(event, index),\n };\n }\n\n /** @ignore Cell input: single source of the per-cell value (view → form). */\n protected onInput(event: Event, index: number): void {\n if (this.readonly()) return;\n const target = event.target as HTMLInputElement;\n const raw = this.sanitize(target.value);\n\n // Multi-char (autofill / paste into a cell) → distribute across cells.\n if (raw.length > 1) {\n this.setFromIndex(index, raw);\n return;\n }\n\n const tokens = [...this.tokens()];\n tokens[index] = raw;\n target.value = raw; // reflect the sanitised value\n this.commit(tokens);\n\n const inputType = (event as InputEvent).inputType;\n if (raw) this.focusCell(index + 1);\n else if (inputType === 'deleteContentBackward') this.focusCell(index - 1);\n }\n\n /** @ignore Keyboard navigation + input guards. */\n protected onKeydown(event: KeyboardEvent, index: number): void {\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const target = event.target as HTMLInputElement;\n\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n this.focusCell(index - 1);\n return;\n case 'ArrowRight':\n event.preventDefault();\n this.focusCell(index + 1);\n return;\n case 'Home':\n event.preventDefault();\n this.focusCell(0);\n return;\n case 'End':\n event.preventDefault();\n this.focusCell(this.length() - 1);\n return;\n case 'ArrowUp':\n case 'ArrowDown':\n event.preventDefault();\n return;\n case 'Backspace':\n // Empty cell → clear + step back (a filled cell clears via native input).\n if (!target.value && !this.readonly()) {\n event.preventDefault();\n const tokens = [...this.tokens()];\n if (tokens[index - 1] !== undefined) tokens[index - 1] = '';\n this.commit(tokens);\n this.focusCell(index - 1);\n }\n return;\n default: {\n if (event.key.length !== 1) return; // let control keys through\n // Reject non-digits when integer-only.\n if (this.integerOnly() && !/^\\d$/.test(event.key)) event.preventDefault();\n }\n }\n }\n\n /** @ignore Select the cell content on focus + track the roving index. */\n protected onFocus(event: FocusEvent, index: number): void {\n this.focusedIndex.set(index);\n (event.target as HTMLInputElement).select?.();\n }\n\n /** @ignore Distribute a pasted code across the cells from `index`. */\n protected onPaste(event: ClipboardEvent, index: number): void {\n if (this.isDisabled() || this.readonly()) return;\n event.preventDefault();\n const pasted = this.sanitize(event.clipboardData?.getData('text') ?? '');\n if (pasted) this.setFromIndex(index, pasted);\n }\n\n /** @ignore Mark touched when focus leaves the whole group. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !this.host.nativeElement.contains(next)) this.emitTouch();\n }\n\n /** @ignore Write `chars` into the cells starting at `from`, then commit + focus. */\n private setFromIndex(from: number, chars: string): void {\n const tokens = [...this.tokens()];\n const max = this.length();\n let i = from;\n for (const ch of chars) {\n if (i >= max) break;\n tokens[i++] = ch;\n }\n this.commit(tokens);\n this.focusCell(Math.min(i, max - 1));\n }\n\n /** @ignore Persist the tokens, emit the joined value (+ `completed` when full). */\n private commit(tokens: string[]): void {\n const trimmed = tokens.slice(0, this.length());\n this.tokens.set(trimmed);\n const value = trimmed.join('');\n this.emitChange(value);\n this.valueChange.emit(value);\n if (value.length === this.length() && trimmed.every((c) => c !== '')) {\n this.completed.emit(value);\n }\n }\n\n /** @ignore Focus (and select) the cell at `index`, if it exists. */\n private focusCell(index: number, options?: FocusOptions): void {\n if (index < 0 || index >= this.length()) return;\n this.focusedIndex.set(index);\n const el = this.host.nativeElement.querySelectorAll<HTMLInputElement>('input')[index];\n if (el) {\n el.focus(options);\n el.select();\n }\n }\n\n /** @ignore Split a form value into an array of single characters (bounded). */\n private toTokens(value: string | number | null | undefined): string[] {\n if (value === null || value === undefined || value === '') return [];\n return String(value).split('').slice(0, this.length());\n }\n\n /** @ignore Drop non-digits when integer-only, otherwise pass through. */\n private sanitize(value: string): string {\n return this.integerOnly() ? value.replace(/\\D/g, '') : value;\n }\n}\n","@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-input-otp\n */\n\nexport * from './lib/ui-input-otp';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAqDA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAwBG,MAAO,UAAW,SAAQ,gBAAwB,CAAA;AA6BtD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QA5BT,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,CAAC,8EAAI,SAAS,EAAE,eAAe,EAAA,CAA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