@4sh/ui-kit 0.13.0 → 0.15.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 (115) hide show
  1. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +2 -2
  2. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  3. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +26 -2
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +8 -2
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +2 -2
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +18 -4
  10. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
  12. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2 -2
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +11 -4
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +4 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +2 -2
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  34. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +2 -2
  36. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
  38. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
  40. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
  42. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
  44. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
  46. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
  48. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +2 -2
  50. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +2 -2
  52. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +2 -2
  54. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
  56. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
  58. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
  60. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +6 -0
  62. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
  64. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
  66. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +2 -2
  68. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
  70. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +2 -2
  72. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
  74. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
  76. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +4 -4
  78. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
  80. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
  82. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
  84. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +103 -12
  86. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -6
  88. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -2
  90. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
  92. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  93. package/mcp/data/component-api.json +11710 -0
  94. package/mcp/data/text-search-docs.json +92 -72
  95. package/mcp/data/ui-config.json +6772 -26
  96. package/mcp/index.js +24 -2
  97. package/mcp/package.json +1 -1
  98. package/package.json +1 -1
  99. package/styles/base/_motion.scss +16 -16
  100. package/styles/component-vars.scss +7 -5
  101. package/styles/generated/_tokens-motion.scss +54 -0
  102. package/styles/generated/_tokens-transitions.scss +4 -4
  103. package/styles/generated/_tokens.scss +1 -0
  104. package/styles/settings/_ui-config.scss +23 -6
  105. package/styles/utils/_mixins.scss +28 -5
  106. package/styles/utils/_motion.scss +3 -3
  107. package/styles.css +1 -1
  108. package/types/4sh-ui-kit-actions-ui-button.d.ts +24 -0
  109. package/types/4sh-ui-kit-actions-ui-link.d.ts +6 -0
  110. package/types/4sh-ui-kit-base-ui-image.d.ts +14 -0
  111. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +7 -0
  112. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +2 -0
  113. package/types/4sh-ui-kit-informative-ui-badge.d.ts +6 -0
  114. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +42 -3
  115. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -0
@@ -176,11 +176,11 @@ class UiInput extends BaseFormField {
176
176
  this.inputBlur.emit(event);
177
177
  }
178
178
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
179
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInput, isStandalone: true, selector: "ui-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaHasPopup: { classPropertyName: "ariaHasPopup", publicName: "ariaHasPopup", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, iconRightAriaLabel: { classPropertyName: "iconRightAriaLabel", publicName: "iconRightAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, iconLeftTemplate: { classPropertyName: "iconLeftTemplate", publicName: "iconLeftTemplate", isSignal: true, isRequired: false, transformFunction: null }, iconRightTemplate: { classPropertyName: "iconRightTemplate", publicName: "iconRightTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", iconRightClick: "iconRightClick", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }], queries: [{ propertyName: "iconLeftTemplateContent", first: true, predicate: ["iconLeft"], descendants: true, isSignal: true }, { propertyName: "iconRightTemplateContent", first: true, predicate: ["iconRight"], descendants: true, isSignal: true }], 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 [hasPrefix]=\"!!iconLeft() || !!resolvedIconLeftTemplate()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (resolvedIconLeftTemplate(); as tpl) {\n <span uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"leftIconContext()\" />\n </span>\n } @else if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"renderedValue()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.role]=\"nativeRole()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-unit\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (iconRight() || resolvedIconRightTemplate()) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n @if (resolvedIconRightTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n } @else {\n <ui-icon [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n </button>\n } @else if (resolvedIconRightTemplate(); as tpl) {\n <span uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n </span>\n } @else {\n <ui-icon\n uiFieldSuffix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"iconRight()!\"\n [size]=\"iconSize()\"\n />\n }\n }\n</ui-field>\n", styles: [".ui-input-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-native:first-child{padding-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native:last-child{padding-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-native._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-icon{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-icon:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-unit:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{font-family:var(--ui-input-font-family, var(--fontfamily-base));font-size:var(--ui-input-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-unit._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;color:var(--ui-form-field-action-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-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}\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"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
179
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInput, isStandalone: true, selector: "ui-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaHasPopup: { classPropertyName: "ariaHasPopup", publicName: "ariaHasPopup", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, iconRightAriaLabel: { classPropertyName: "iconRightAriaLabel", publicName: "iconRightAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, iconLeftTemplate: { classPropertyName: "iconLeftTemplate", publicName: "iconLeftTemplate", isSignal: true, isRequired: false, transformFunction: null }, iconRightTemplate: { classPropertyName: "iconRightTemplate", publicName: "iconRightTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", iconRightClick: "iconRightClick", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }], queries: [{ propertyName: "iconLeftTemplateContent", first: true, predicate: ["iconLeft"], descendants: true, isSignal: true }, { propertyName: "iconRightTemplateContent", first: true, predicate: ["iconRight"], descendants: true, isSignal: true }], 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 [hasPrefix]=\"!!iconLeft() || !!resolvedIconLeftTemplate()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (resolvedIconLeftTemplate(); as tpl) {\n <span uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"leftIconContext()\" />\n </span>\n } @else if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"renderedValue()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.role]=\"nativeRole()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-unit\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (iconRight() || resolvedIconRightTemplate()) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n @if (resolvedIconRightTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n } @else {\n <ui-icon [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n </button>\n } @else if (resolvedIconRightTemplate(); as tpl) {\n <span uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n </span>\n } @else {\n <ui-icon\n uiFieldSuffix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"iconRight()!\"\n [size]=\"iconSize()\"\n />\n }\n }\n</ui-field>\n", styles: [".ui-input-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-native:first-child{padding-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native:last-child{padding-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-native._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-icon{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-icon:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-unit:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{font-family:var(--ui-input-font-family, var(--fontfamily-base));font-size:var(--ui-input-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-unit._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-input-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}\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"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
180
180
  }
181
181
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInput, decorators: [{
182
182
  type: Component,
183
- args: [{ selector: 'ui-input', imports: [UiField, UiIcon, NgTemplateOutlet], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }], 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 [hasPrefix]=\"!!iconLeft() || !!resolvedIconLeftTemplate()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (resolvedIconLeftTemplate(); as tpl) {\n <span uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"leftIconContext()\" />\n </span>\n } @else if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"renderedValue()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.role]=\"nativeRole()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-unit\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (iconRight() || resolvedIconRightTemplate()) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n @if (resolvedIconRightTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n } @else {\n <ui-icon [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n </button>\n } @else if (resolvedIconRightTemplate(); as tpl) {\n <span uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n </span>\n } @else {\n <ui-icon\n uiFieldSuffix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"iconRight()!\"\n [size]=\"iconSize()\"\n />\n }\n }\n</ui-field>\n", styles: [".ui-input-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-native:first-child{padding-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native:last-child{padding-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-native._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-icon{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-icon:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-unit:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{font-family:var(--ui-input-font-family, var(--fontfamily-base));font-size:var(--ui-input-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-unit._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;color:var(--ui-form-field-action-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-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}\n"] }]
183
+ args: [{ selector: 'ui-input', imports: [UiField, UiIcon, NgTemplateOutlet], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }], 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 [hasPrefix]=\"!!iconLeft() || !!resolvedIconLeftTemplate()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (resolvedIconLeftTemplate(); as tpl) {\n <span uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"leftIconContext()\" />\n </span>\n } @else if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"renderedValue()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.role]=\"nativeRole()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-unit\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (iconRight() || resolvedIconRightTemplate()) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n @if (resolvedIconRightTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n } @else {\n <ui-icon [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n </button>\n } @else if (resolvedIconRightTemplate(); as tpl) {\n <span uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n </span>\n } @else {\n <ui-icon\n uiFieldSuffix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"iconRight()!\"\n [size]=\"iconSize()\"\n />\n }\n }\n</ui-field>\n", styles: [".ui-input-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-native:first-child{padding-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native:last-child{padding-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-native._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-icon{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-icon:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-icon._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-unit:first-child{margin-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit:last-child{margin-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-unit{font-family:var(--ui-input-font-family, var(--fontfamily-base));font-size:var(--ui-input-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-unit._small{font-size:var(--ui-input-font-size-small, var(--size-typography-text-md))}.ui-input-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-input-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}\n"] }]
184
184
  }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaHasPopup: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaHasPopup", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], iconRightAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRightAriaLabel", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], iconLeftTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeftTemplate", required: false }] }], iconRightTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRightTemplate", required: false }] }], iconLeftTemplateContent: [{ type: i0.ContentChild, args: ['iconLeft', { isSignal: true }] }], iconRightTemplateContent: [{ type: i0.ContentChild, args: ['iconRight', { isSignal: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], iconRightClick: [{ type: i0.Output, args: ["iconRightClick"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
185
185
 
186
186
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-input.mjs","sources":["../../../projects/ui-kit/forms/ui-input/src/lib/ui-input.ts","../../../projects/ui-kit/forms/ui-input/src/lib/ui-input.html","../../../projects/ui-kit/forms/ui-input/src/public-api.ts","../../../projects/ui-kit/forms/ui-input/src/4sh-ui-kit-forms-ui-input.ts"],"sourcesContent":["import {\n Component,\n computed,\n contentChild,\n ElementRef,\n forwardRef,\n input,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\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, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\n/** Supported text types (numeric has its dedicated `ui-input-number` component). */\nexport type InputType = 'text' | 'password' | 'email' | 'tel' | 'url' | 'search';\n\n/** Context handed to the `#iconLeft` / `#iconRight` templates. */\nexport interface UiInputIconContext {\n /** Icon name configured on that side (`iconLeft` / `iconRight`), if any. */\n $implicit: string | undefined;\n /** Icon size matching the field size. */\n size: UiIconSize;\n /** Whether the field is disabled. */\n disabled: boolean;\n}\n\n/**\n * ui-input — headless composed text field, built on the `ui-field` shell\n * (label + box + helper) + a native `<input>`.\n *\n * Covers all text types (text/email/tel/url/search/**password**). Password\n * reveal, search clearing, etc. are handled via the **right action zone**\n * (`iconRightAriaLabel` + `iconRightClick`).\n *\n * Both icon zones accept a `<ng-template #iconLeft>` / `#iconRight` to replace the\n * rendered markup (another icon family, an inline SVG, a brand logo). To retarget\n * the family of every icon at once — this field's and the ones its neighbours\n * render internally — use the `uiIconFamily` directive instead.\n *\n * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).\n * For numbers → `ui-input-number`, for masks → `ui-input-mask`.\n */\n@Component({\n selector: 'ui-input',\n imports: [UiField, UiIcon, NgTemplateOutlet],\n templateUrl: './ui-input.html',\n styleUrl: './ui-input.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }],\n})\nexport class UiInput extends BaseFormField<string> {\n /** Native input type. */\n type = input<InputType>('text');\n /**\n * Display-only value (bypasses the CVA model). For composite hosts\n * (e.g. `ui-datepicker`) that own the visible text and read it back via\n * `valueChange` — leave unset when using `[(ngModel)]`/reactive forms.\n */\n value = input<string>();\n /** `aria-haspopup` forwarded to the native input (popup trigger hosts). */\n ariaHasPopup = input<'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'>();\n /**\n * `aria-expanded` forwarded to the native input (popup trigger hosts).\n * Setting it also promotes the input to `role=\"combobox\"`: `aria-expanded`\n * is not allowed on the implicit `textbox` role, so screen readers would\n * silently drop the popup state without it.\n */\n ariaExpanded = input<boolean>();\n /** `aria-controls` forwarded to the native input (popup trigger hosts). */\n ariaControls = input<string>();\n /** Native placeholder. */\n placeholder = input<string>();\n /**\n * id of an external element describing this control further (e.g. a composite host's own\n * format hint), chained onto `aria-describedby` alongside the helper/error message rather than\n * replacing it — a plain `[attr.aria-describedby]` override on the host would clobber whichever\n * of the two lands last.\n */\n ariaDescribedBy = input<string>();\n /** Suffix unit (e.g. \"%\", \"@domain\"). Shown when provided. */\n unit = input<string>();\n /** Left FontAwesome icon name (decorative). */\n iconLeft = input<string>();\n /** Right FontAwesome icon name. */\n iconRight = input<string>();\n /**\n * Accessible name of the right icon. **When provided, the right icon becomes a\n * clickable action zone** (square, full-height button) that emits `iconRightClick`.\n */\n iconRightAriaLabel = input<string>();\n /** Native autocomplete. */\n autocomplete = input<string>();\n /** Native maxlength. */\n maxlength = input<number>();\n\n /** Left-icon template, provided programmatically (composite hosts like `ui-datepicker`). */\n iconLeftTemplate = input<TemplateRef<UiInputIconContext>>();\n /** Right-icon template, provided programmatically (composite hosts like `ui-datepicker`). */\n iconRightTemplate = input<TemplateRef<UiInputIconContext>>();\n\n /** Custom left icon: `<ng-template #iconLeft let-name let-size=\"size\">`. */\n private readonly iconLeftTemplateContent =\n contentChild<TemplateRef<UiInputIconContext>>('iconLeft');\n /** Custom right icon: `<ng-template #iconRight let-name let-size=\"size\">`. */\n private readonly iconRightTemplateContent =\n contentChild<TemplateRef<UiInputIconContext>>('iconRight');\n\n /** Emitted on each input with the new value. */\n valueChange = output<string>();\n /** Emitted on click of the right action zone (active when `iconRightAriaLabel` is set). */\n iconRightClick = output<MouseEvent>();\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\n /** @ignore Icon size aligned with the field size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n /** @ignore Text rendered in the input: display-only `value` wins over the model. */\n protected readonly renderedValue = computed(() => this.value() ?? this.displayValue());\n /** @ignore Keeps a floating label raised once focus leaves. */\n protected readonly isFilled = computed(() => this.renderedValue() !== '');\n /** @ignore At rest the floating label already holds that spot. */\n protected readonly effectivePlaceholder = computed(() =>\n this.hasFloatLabel() ? '' : (this.placeholder() ?? ''),\n );\n /** @ignore Input wins over the projected `#iconLeft` template. */\n protected readonly resolvedIconLeftTemplate = computed(\n () => this.iconLeftTemplate() ?? this.iconLeftTemplateContent(),\n );\n /** @ignore Input wins over the projected `#iconRight` template. */\n protected readonly resolvedIconRightTemplate = computed(\n () => this.iconRightTemplate() ?? this.iconRightTemplateContent(),\n );\n /** @ignore */\n protected readonly leftIconContext = computed<UiInputIconContext>(() => ({\n $implicit: this.iconLeft(),\n size: this.iconSize(),\n disabled: this.isDisabled(),\n }));\n /** @ignore */\n protected readonly rightIconContext = computed<UiInputIconContext>(() => ({\n $implicit: this.iconRight(),\n size: this.iconSize(),\n disabled: this.isDisabled(),\n }));\n /** @ignore The right icon is an action zone (has an accessible name). */\n protected readonly hasRightAction = computed(\n () => (!!this.iconRight() || !!this.resolvedIconRightTemplate()) && !!this.iconRightAriaLabel(),\n );\n /** @ignore Full `aria-describedby`: the helper/error message id (only when a message is\n * actually rendered) plus the externally supplied `ariaDescribedBy`, space-joined — `null`\n * when neither applies (native attribute is then omitted, not left dangling). */\n protected readonly resolvedAriaDescribedBy = computed(() => {\n const ids = [this.displayMessage() ? this.messageId() : null, this.ariaDescribedBy() || null];\n const joined = ids.filter((id): id is string => !!id).join(' ');\n return joined || null;\n });\n /** @ignore ARIA 1.2: only `combobox` (not the implicit `textbox`) accepts\n * `aria-expanded`. Stays null for plain text fields so their announcement\n * (\"edit text\") is untouched. */\n protected readonly nativeRole = computed(() => (this.ariaExpanded() === undefined ? null : 'combobox'));\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** Native `<input>` element — composite hosts that own `value` (e.g. `ui-datepicker`)\n * need direct DOM access to control the caret while reformatting text as typed. */\n nativeInputElement(): HTMLInputElement {\n return this.inputEl().nativeElement;\n }\n\n /** @ignore Input: single source of the value (view → form). */\n protected onInput(): void {\n const value = this.inputEl().nativeElement.value;\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.inputBlur.emit(event);\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 [hasPrefix]=\"!!iconLeft() || !!resolvedIconLeftTemplate()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (resolvedIconLeftTemplate(); as tpl) {\n <span uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"leftIconContext()\" />\n </span>\n } @else if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"renderedValue()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.role]=\"nativeRole()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-unit\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (iconRight() || resolvedIconRightTemplate()) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n @if (resolvedIconRightTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n } @else {\n <ui-icon [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n </button>\n } @else if (resolvedIconRightTemplate(); as tpl) {\n <span uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n </span>\n } @else {\n <ui-icon\n uiFieldSuffix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"iconRight()!\"\n [size]=\"iconSize()\"\n />\n }\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input\n */\n\nexport * from './lib/ui-input';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA8BA;;;;;;;;;;;;;;;AAeG;AAQG,MAAO,OAAQ,SAAQ,aAAqB,CAAA;AAPlD,IAAA,WAAA,GAAA;;;QASE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,MAAM;iFAAC;AAC/B;;;;AAIG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAmD;AACvE;;;;;AAKG;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAW;;AAE/B,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAU;;AAE9B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;AAC7B;;;;;AAKG;AACH,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAU;;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;AAC3B;;;AAGG;AACH,QAAA,IAAA,CAAA,kBAAkB,GAAG,KAAK;0GAAU;;AAEpC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAU;;AAE9B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAG3B,QAAA,IAAA,CAAA,gBAAgB,GAAG,KAAK;wGAAmC;;AAE3D,QAAA,IAAA,CAAA,iBAAiB,GA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,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAYiB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExHvF;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-input.mjs","sources":["../../../projects/ui-kit/forms/ui-input/src/lib/ui-input.ts","../../../projects/ui-kit/forms/ui-input/src/lib/ui-input.html","../../../projects/ui-kit/forms/ui-input/src/public-api.ts","../../../projects/ui-kit/forms/ui-input/src/4sh-ui-kit-forms-ui-input.ts"],"sourcesContent":["import {\n Component,\n computed,\n contentChild,\n ElementRef,\n forwardRef,\n input,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\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, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\n/** Supported text types (numeric has its dedicated `ui-input-number` component). */\nexport type InputType = 'text' | 'password' | 'email' | 'tel' | 'url' | 'search';\n\n/** Context handed to the `#iconLeft` / `#iconRight` templates. */\nexport interface UiInputIconContext {\n /** Icon name configured on that side (`iconLeft` / `iconRight`), if any. */\n $implicit: string | undefined;\n /** Icon size matching the field size. */\n size: UiIconSize;\n /** Whether the field is disabled. */\n disabled: boolean;\n}\n\n/**\n * ui-input — headless composed text field, built on the `ui-field` shell\n * (label + box + helper) + a native `<input>`.\n *\n * Covers all text types (text/email/tel/url/search/**password**). Password\n * reveal, search clearing, etc. are handled via the **right action zone**\n * (`iconRightAriaLabel` + `iconRightClick`).\n *\n * Both icon zones accept a `<ng-template #iconLeft>` / `#iconRight` to replace the\n * rendered markup (another icon family, an inline SVG, a brand logo). To retarget\n * the family of every icon at once — this field's and the ones its neighbours\n * render internally — use the `uiIconFamily` directive instead.\n *\n * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).\n * For numbers → `ui-input-number`, for masks → `ui-input-mask`.\n */\n@Component({\n selector: 'ui-input',\n imports: [UiField, UiIcon, NgTemplateOutlet],\n templateUrl: './ui-input.html',\n styleUrl: './ui-input.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }],\n})\nexport class UiInput extends BaseFormField<string> {\n /** Native input type. */\n type = input<InputType>('text');\n /**\n * Display-only value (bypasses the CVA model). For composite hosts\n * (e.g. `ui-datepicker`) that own the visible text and read it back via\n * `valueChange` — leave unset when using `[(ngModel)]`/reactive forms.\n */\n value = input<string>();\n /** `aria-haspopup` forwarded to the native input (popup trigger hosts). */\n ariaHasPopup = input<'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'>();\n /**\n * `aria-expanded` forwarded to the native input (popup trigger hosts).\n * Setting it also promotes the input to `role=\"combobox\"`: `aria-expanded`\n * is not allowed on the implicit `textbox` role, so screen readers would\n * silently drop the popup state without it.\n */\n ariaExpanded = input<boolean>();\n /** `aria-controls` forwarded to the native input (popup trigger hosts). */\n ariaControls = input<string>();\n /** Native placeholder. */\n placeholder = input<string>();\n /**\n * id of an external element describing this control further (e.g. a composite host's own\n * format hint), chained onto `aria-describedby` alongside the helper/error message rather than\n * replacing it — a plain `[attr.aria-describedby]` override on the host would clobber whichever\n * of the two lands last.\n */\n ariaDescribedBy = input<string>();\n /** Suffix unit (e.g. \"%\", \"@domain\"). Shown when provided. */\n unit = input<string>();\n /** Left FontAwesome icon name (decorative). */\n iconLeft = input<string>();\n /** Right FontAwesome icon name. */\n iconRight = input<string>();\n /**\n * Accessible name of the right icon. **When provided, the right icon becomes a\n * clickable action zone** (square, full-height button) that emits `iconRightClick`.\n */\n iconRightAriaLabel = input<string>();\n /** Native autocomplete. */\n autocomplete = input<string>();\n /** Native maxlength. */\n maxlength = input<number>();\n\n /** Left-icon template, provided programmatically (composite hosts like `ui-datepicker`). */\n iconLeftTemplate = input<TemplateRef<UiInputIconContext>>();\n /** Right-icon template, provided programmatically (composite hosts like `ui-datepicker`). */\n iconRightTemplate = input<TemplateRef<UiInputIconContext>>();\n\n /** Custom left icon: `<ng-template #iconLeft let-name let-size=\"size\">`. */\n private readonly iconLeftTemplateContent =\n contentChild<TemplateRef<UiInputIconContext>>('iconLeft');\n /** Custom right icon: `<ng-template #iconRight let-name let-size=\"size\">`. */\n private readonly iconRightTemplateContent =\n contentChild<TemplateRef<UiInputIconContext>>('iconRight');\n\n /** Emitted on each input with the new value. */\n valueChange = output<string>();\n /** Emitted on click of the right action zone (active when `iconRightAriaLabel` is set). */\n iconRightClick = output<MouseEvent>();\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\n /** @ignore Icon size aligned with the field size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n /** @ignore Text rendered in the input: display-only `value` wins over the model. */\n protected readonly renderedValue = computed(() => this.value() ?? this.displayValue());\n /** @ignore Keeps a floating label raised once focus leaves. */\n protected readonly isFilled = computed(() => this.renderedValue() !== '');\n /** @ignore At rest the floating label already holds that spot. */\n protected readonly effectivePlaceholder = computed(() =>\n this.hasFloatLabel() ? '' : (this.placeholder() ?? ''),\n );\n /** @ignore Input wins over the projected `#iconLeft` template. */\n protected readonly resolvedIconLeftTemplate = computed(\n () => this.iconLeftTemplate() ?? this.iconLeftTemplateContent(),\n );\n /** @ignore Input wins over the projected `#iconRight` template. */\n protected readonly resolvedIconRightTemplate = computed(\n () => this.iconRightTemplate() ?? this.iconRightTemplateContent(),\n );\n /** @ignore */\n protected readonly leftIconContext = computed<UiInputIconContext>(() => ({\n $implicit: this.iconLeft(),\n size: this.iconSize(),\n disabled: this.isDisabled(),\n }));\n /** @ignore */\n protected readonly rightIconContext = computed<UiInputIconContext>(() => ({\n $implicit: this.iconRight(),\n size: this.iconSize(),\n disabled: this.isDisabled(),\n }));\n /** @ignore The right icon is an action zone (has an accessible name). */\n protected readonly hasRightAction = computed(\n () => (!!this.iconRight() || !!this.resolvedIconRightTemplate()) && !!this.iconRightAriaLabel(),\n );\n /** @ignore Full `aria-describedby`: the helper/error message id (only when a message is\n * actually rendered) plus the externally supplied `ariaDescribedBy`, space-joined — `null`\n * when neither applies (native attribute is then omitted, not left dangling). */\n protected readonly resolvedAriaDescribedBy = computed(() => {\n const ids = [this.displayMessage() ? this.messageId() : null, this.ariaDescribedBy() || null];\n const joined = ids.filter((id): id is string => !!id).join(' ');\n return joined || null;\n });\n /** @ignore ARIA 1.2: only `combobox` (not the implicit `textbox`) accepts\n * `aria-expanded`. Stays null for plain text fields so their announcement\n * (\"edit text\") is untouched. */\n protected readonly nativeRole = computed(() => (this.ariaExpanded() === undefined ? null : 'combobox'));\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** Native `<input>` element — composite hosts that own `value` (e.g. `ui-datepicker`)\n * need direct DOM access to control the caret while reformatting text as typed. */\n nativeInputElement(): HTMLInputElement {\n return this.inputEl().nativeElement;\n }\n\n /** @ignore Input: single source of the value (view → form). */\n protected onInput(): void {\n const value = this.inputEl().nativeElement.value;\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.inputBlur.emit(event);\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 [hasPrefix]=\"!!iconLeft() || !!resolvedIconLeftTemplate()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (resolvedIconLeftTemplate(); as tpl) {\n <span uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"leftIconContext()\" />\n </span>\n } @else if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"renderedValue()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.role]=\"nativeRole()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-unit\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (iconRight() || resolvedIconRightTemplate()) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n @if (resolvedIconRightTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n } @else {\n <ui-icon [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n </button>\n } @else if (resolvedIconRightTemplate(); as tpl) {\n <span uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"rightIconContext()\" />\n </span>\n } @else {\n <ui-icon\n uiFieldSuffix\n class=\"ui-input-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"iconRight()!\"\n [size]=\"iconSize()\"\n />\n }\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input\n */\n\nexport * from './lib/ui-input';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA8BA;;;;;;;;;;;;;;;AAeG;AAQG,MAAO,OAAQ,SAAQ,aAAqB,CAAA;AAPlD,IAAA,WAAA,GAAA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IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAYiB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExHvF;;AAEG;;ACFH;;AAEG;;"}
@@ -263,11 +263,11 @@ class UiKnob extends BaseFieldControl {
263
263
  this.knobChange.emit(value);
264
264
  }
265
265
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiKnob, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
266
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiKnob, isStandalone: true, selector: "ui-knob", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, valueTemplate: { classPropertyName: "valueTemplate", publicName: "valueTemplate", isSignal: true, isRequired: false, transformFunction: null }, valueColor: { classPropertyName: "valueColor", publicName: "valueColor", isSignal: true, isRequired: false, transformFunction: null }, rangeColor: { classPropertyName: "rangeColor", publicName: "rangeColor", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "textColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { knobChange: "knobChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }], viewQueries: [{ propertyName: "root", first: true, predicate: ["root"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n", styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"] }); }
266
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiKnob, isStandalone: true, selector: "ui-knob", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, valueTemplate: { classPropertyName: "valueTemplate", publicName: "valueTemplate", isSignal: true, isRequired: false, transformFunction: null }, valueColor: { classPropertyName: "valueColor", publicName: "valueColor", isSignal: true, isRequired: false, transformFunction: null }, rangeColor: { classPropertyName: "rangeColor", publicName: "rangeColor", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "textColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { knobChange: "knobChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }], viewQueries: [{ propertyName: "root", first: true, predicate: ["root"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n", styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"] }); }
267
267
  }
268
268
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiKnob, decorators: [{
269
269
  type: Component,
270
- args: [{ selector: 'ui-knob', standalone: true, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }], template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n", styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"] }]
270
+ args: [{ selector: 'ui-knob', standalone: true, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }], template: "<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n", styles: [":host{display:inline-block}.ui-knob{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--ui-knob-size, 6.25rem);height:var(--ui-knob-size, 6.25rem);border-radius:var(--ui-knob-radius, var(--radius-full));touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color, var(--actions-high-stroke-focused))}.ui-knob-dial{display:block;width:100%;height:100%}.ui-knob-range,.ui-knob-value{fill:none;stroke-linecap:round}.ui-knob-range{stroke:var(--ui-knob-range-color, var(--global-background-muted))}.ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default));transition:stroke var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-knob-text{position:absolute;font-size:var(--ui-knob-font-size, var(--size-typography-title-md));font-weight:var(--ui-knob-weight, var(--weight-bold));color:var(--ui-knob-text-color, var(--global-text-default));font-variant-numeric:tabular-nums;pointer-events:none}.ui-knob._small{width:var(--ui-knob-size-small, 4.375rem);height:var(--ui-knob-size-small, 4.375rem)}.ui-knob._small .ui-knob-text{font-size:var(--ui-knob-font-size-small, var(--size-typography-text-lg))}.ui-knob._large{width:var(--ui-knob-size-large, 8.75rem);height:var(--ui-knob-size-large, 8.75rem)}.ui-knob._large .ui-knob-text{font-size:var(--ui-knob-font-size-large, var(--size-typography-title-default))}.ui-knob:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover, var(--actions-high-surface-hover))}.ui-knob:active .ui-knob-value{stroke:var(--ui-knob-value-color-pressed, var(--actions-high-surface-pressed))}.ui-knob._readonly{cursor:default}.ui-knob._readonly:hover .ui-knob-value,.ui-knob._readonly:active .ui-knob-value{stroke:var(--ui-knob-value-color, var(--actions-high-surface-default))}.ui-knob._disabled{cursor:not-allowed}.ui-knob._disabled .ui-knob-value,.ui-knob._disabled:hover .ui-knob-value{stroke:var(--ui-knob-value-color-disabled, var(--actions-high-surface-disabled))}.ui-knob._disabled .ui-knob-text{color:var(--ui-knob-text-color-disabled, var(--global-text-muted))}.ui-knob._invalid .ui-knob-value{stroke:var(--ui-knob-value-color-invalid, var(--form-error-content-default))}.ui-knob._invalid:hover .ui-knob-value{stroke:var(--ui-knob-value-color-hover-invalid, var(--form-error-content-hover))}.ui-knob._invalid:focus-visible{box-shadow:0 0 0 var(--ui-knob-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-knob-focus-ring-color-invalid, var(--form-error-stroke-focused))}\n"] }]
271
271
  }], ctorParameters: () => [], propDecorators: { min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], valueTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueTemplate", required: false }] }], valueColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueColor", required: false }] }], rangeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeColor", required: false }] }], textColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "textColor", required: false }] }], knobChange: [{ type: i0.Output, args: ["knobChange"] }], root: [{ type: i0.ViewChild, args: ['root', { isSignal: true }] }] } });
272
272
 
273
273
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-knob.mjs","sources":["../../../projects/ui-kit/forms/ui-knob/src/lib/ui-knob.ts","../../../projects/ui-kit/forms/ui-knob/src/lib/ui-knob.html","../../../projects/ui-kit/forms/ui-knob/src/public-api.ts","../../../projects/ui-kit/forms/ui-knob/src/4sh-ui-kit-forms-ui-knob.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n isDevMode,\n numberAttribute,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl, warnMissingAccessibleName } from '@4sh/ui-kit/forms';\n\nexport type UiKnobSize = 'small' | 'default' | 'large';\n\n// --- Dial geometry (viewBox 0 0 100 100) -------------------------------\n// A 300° arc opening at the bottom: min at 240°, max at -60°. Everything is\n// expressed in viewBox units, so the drawing scales with the rendered diameter.\nconst CENTER = 50;\nconst MIN_RADIANS = (4 * Math.PI) / 3;\nconst MAX_RADIANS = -Math.PI / 3;\n/** Bottom gap, where a pointer angle maps to no value. */\nconst GAP_START = -(2 * Math.PI) / 3;\n/** Breathing room kept between the arc and the focus ring drawn on the box edge. */\nconst RING_GAP = 3;\n\nconst round = (n: number): number => Number(n.toFixed(3));\n\n/**\n * Centreline radius for a given thickness: the arc, caps included, always fits\n * its box, so a thick stroke never spills over the focus ring.\n */\nfunction dialRadius(strokeWidth: number): number {\n return Math.max(2, CENTER - strokeWidth / 2 - RING_GAP);\n}\n\n/** Point on the dial for an angle, in viewBox coordinates (y grows downwards). */\nfunction polar(radians: number, radius: number): { x: number; y: number } {\n return {\n x: round(CENTER + Math.cos(radians) * radius),\n y: round(CENTER - Math.sin(radians) * radius),\n };\n}\n\nfunction mapRange(x: number, inMin: number, inMax: number, outMin: number, outMax: number): number {\n if (inMax === inMin) return outMin;\n return ((x - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;\n}\n\n/**\n * ui-knob — headless circular dial to pick a numeric value.\n *\n * Follows the WAI-ARIA slider pattern: the dial is a single `role=\"slider\"`\n * stop exposing `aria-valuemin/max/now`, driven at the keyboard (arrows,\n * Page Up/Down, Home/End) and by pointer (mouse, touch, pen) through one code\n * path. The drawing is an SVG arc in a 100×100 viewBox, so it scales with the\n * rendered diameter; every colour comes from the design tokens and can be\n * repainted per instance.\n *\n * Works standalone, with `[(ngModel)]`, Reactive Forms or Signal Forms\n * (`[formField]`) — it is a `ControlValueAccessor`.\n */\n@Component({\n selector: 'ui-knob',\n standalone: true,\n templateUrl: './ui-knob.html',\n styleUrl: './ui-knob.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }],\n})\nexport class UiKnob extends BaseFieldControl<number> {\n /** Minimum boundary value. */\n min = input(0, { transform: numberAttribute });\n /** Maximum boundary value. */\n max = input(100, { transform: numberAttribute });\n /** Increment/decrement granularity (drag snapping + keyboard step). */\n step = input(1, { transform: numberAttribute });\n /** Diameter preset (override any diameter with the `--ui-knob-size` hook). */\n size = input<UiKnobSize>('default');\n /** Arc thickness, in viewBox units (100 = the diameter), so it scales with the knob. */\n strokeWidth = input(14, { transform: numberAttribute });\n /** Renders the value at the centre of the dial. */\n showValue = input(true, { transform: booleanAttribute });\n /** Template of the centre label, `{value}` being the placeholder. */\n valueTemplate = input('{value}');\n /** Colour of the filled arc (any CSS colour). Sets `--ui-knob-value-color`. */\n valueColor = input<string>();\n /** Colour of the track behind it. Sets `--ui-knob-range-color`. */\n rangeColor = input<string>();\n /** Colour of the centre label. Sets `--ui-knob-text-color`. */\n textColor = input<string>();\n\n /** Emitted on every value change (drag, keyboard, click on the dial). */\n knobChange = output<number>();\n\n /** @ignore Pointer target, focus stop and % reference of the dial. */\n private readonly root = viewChild.required<ElementRef<HTMLElement>>('root');\n /** @ignore True while a drag is in progress. */\n private dragging = false;\n\n constructor() {\n super();\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-knob',\n 'No accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Current value, clamped to the boundaries (falls back to `min`). */\n protected readonly currentValue = computed(() => {\n const value = this.modelValue();\n return this.clamp(typeof value === 'number' && !Number.isNaN(value) ? value : this.min());\n });\n\n /** @ignore Centre label, with `{value}` substituted. */\n protected readonly displayValue = computed(() =>\n this.valueTemplate().replace('{value}', String(this.currentValue())),\n );\n\n /** @ignore Announced only when the label differs from the raw value. */\n protected readonly ariaValueText = computed(() => {\n const label = this.displayValue();\n return label === String(this.currentValue()) ? null : label;\n });\n\n /** @ignore Radius of the arc centreline, inset so the stroke fits the box. */\n private readonly radius = computed(() => dialRadius(this.strokeWidth()));\n\n /** @ignore The full track. */\n protected readonly rangePath = computed(() => {\n const radius = this.radius();\n const from = polar(MIN_RADIANS, radius);\n const to = polar(MAX_RADIANS, radius);\n return `M ${from.x} ${from.y} A ${radius} ${radius} 0 1 1 ${to.x} ${to.y}`;\n });\n\n /** @ignore Arc drawn from the origin (0, or the nearest boundary) to the value. */\n protected readonly valuePath = computed(() => {\n const radius = this.radius();\n const from = polar(this.originRadians(), radius);\n const to = polar(this.valueRadians(), radius);\n const largeArc = Math.abs(this.originRadians() - this.valueRadians()) < Math.PI ? 0 : 1;\n const sweep = this.valueRadians() > this.originRadians() ? 0 : 1;\n return `M ${from.x} ${from.y} A ${radius} ${radius} 0 ${largeArc} ${sweep} ${to.x} ${to.y}`;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const classes = ['ui-knob'];\n if (this.size() !== 'default') classes.push(`_${this.size()}`);\n if (this.isDisabled()) classes.push('_disabled');\n if (this.readonly()) classes.push('_readonly');\n if (this.isInvalid()) classes.push('_invalid');\n return classes.join(' ');\n });\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-knob';\n }\n\n /** Focus the dial programmatically. */\n focus(options?: FocusOptions): void {\n this.root().nativeElement.focus(options);\n }\n\n // --- Pointer interaction (mouse / touch / pen) -----------------------\n\n /** @ignore */\n protected onPointerDown(event: PointerEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n this.dragging = true;\n this.root().nativeElement.setPointerCapture(event.pointerId);\n this.updateFromPointer(event);\n // preventDefault kills the implicit focus, so take it explicitly.\n event.preventDefault();\n this.root().nativeElement.focus();\n }\n\n /** @ignore */\n protected onPointerMove(event: PointerEvent): void {\n if (!this.dragging) return;\n this.updateFromPointer(event);\n }\n\n /** @ignore */\n protected onPointerUp(event: PointerEvent): void {\n if (!this.dragging) return;\n this.dragging = false;\n this.root().nativeElement.releasePointerCapture?.(event.pointerId);\n }\n\n // --- Keyboard --------------------------------------------------------\n\n /** @ignore */\n protected onKeyDown(event: KeyboardEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n const step = this.stepSize();\n const current = this.currentValue();\n let next: number;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowDown':\n next = current - step;\n break;\n case 'ArrowRight':\n case 'ArrowUp':\n next = current + step;\n break;\n case 'PageDown':\n next = current - step * 10;\n break;\n case 'PageUp':\n next = current + step * 10;\n break;\n case 'Home':\n next = this.min();\n break;\n case 'End':\n next = this.max();\n break;\n default:\n return;\n }\n event.preventDefault();\n this.commit(next);\n }\n\n /** @ignore */\n protected onBlur(): void {\n this.emitTouch();\n }\n\n // --- Value helpers ---------------------------------------------------\n\n /** @ignore Effective step (never 0). */\n private stepSize(): number {\n const step = this.step();\n return step > 0 ? step : 1;\n }\n\n /** @ignore Angle of the value on the dial. */\n private valueRadians(): number {\n return mapRange(this.currentValue(), this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);\n }\n\n /** @ignore Angle the filled arc starts from: zero when it is inside the boundaries. */\n private originRadians(): number {\n const origin = Math.min(Math.max(0, this.min()), this.max());\n return mapRange(origin, this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);\n }\n\n /** @ignore Pointer position → value, or `null` inside the bottom gap. */\n private updateFromPointer(event: PointerEvent): void {\n const rect = this.root().nativeElement.getBoundingClientRect();\n if (!rect.width || !rect.height) return;\n const dx = (event.clientX - rect.left) / rect.width - 0.5;\n const dy = 0.5 - (event.clientY - rect.top) / rect.height;\n const angle = Math.atan2(dy, dx);\n\n if (angle > MAX_RADIANS) {\n this.commit(mapRange(angle, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));\n } else if (angle <= GAP_START) {\n this.commit(mapRange(angle + 2 * Math.PI, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));\n }\n }\n\n /** @ignore Round to the step's decimal precision (avoids float drift). */\n private round(value: number): number {\n const step = this.stepSize();\n const decimals = Number.isInteger(step) ? 0 : (step.toString().split('.')[1]?.length ?? 0);\n return decimals > 0 ? +value.toFixed(decimals) : Math.round(value);\n }\n\n /** @ignore Clamp to [min, max]. */\n private clamp(value: number): number {\n return Math.min(this.max(), Math.max(this.min(), value));\n }\n\n /** @ignore Snap to the step grid, clamp, then propagate if it moved. */\n private commit(raw: number): void {\n const step = this.stepSize();\n const min = this.min();\n const value = this.clamp(this.round(min + Math.round((raw - min) / step) * step));\n if (value === this.currentValue()) return;\n this.modelValue.set(value);\n this.emitChange(value);\n this.knobChange.emit(value);\n }\n}\n","<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-knob\n */\n\nexport * from './lib/ui-knob';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkBA;AACA;AACA;AACA,MAAM,MAAM,GAAG,EAAE;AACjB,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC;AACrC,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC;AAChC;AACA,MAAM,SAAS,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC;AACpC;AACA,MAAM,QAAQ,GAAG,CAAC;AAElB,MAAM,KAAK,GAAG,CAAC,CA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A,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,MAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,MAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtEjG,w9CAmCA,EAAA,MAAA,EAAA,CAAA,y1FAAA,CAAA,EAAA,CAAA,CAAA;;2FDqCa,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,SAAA,EAGL,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,MAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAA,QAAA,EAAA,w9CAAA,EAAA,MAAA,EAAA,CAAA,y1FAAA,CAAA,EAAA;6kCA4B3B,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElG5E;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-knob.mjs","sources":["../../../projects/ui-kit/forms/ui-knob/src/lib/ui-knob.ts","../../../projects/ui-kit/forms/ui-knob/src/lib/ui-knob.html","../../../projects/ui-kit/forms/ui-knob/src/public-api.ts","../../../projects/ui-kit/forms/ui-knob/src/4sh-ui-kit-forms-ui-knob.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n isDevMode,\n numberAttribute,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl, warnMissingAccessibleName } from '@4sh/ui-kit/forms';\n\nexport type UiKnobSize = 'small' | 'default' | 'large';\n\n// --- Dial geometry (viewBox 0 0 100 100) -------------------------------\n// A 300° arc opening at the bottom: min at 240°, max at -60°. Everything is\n// expressed in viewBox units, so the drawing scales with the rendered diameter.\nconst CENTER = 50;\nconst MIN_RADIANS = (4 * Math.PI) / 3;\nconst MAX_RADIANS = -Math.PI / 3;\n/** Bottom gap, where a pointer angle maps to no value. */\nconst GAP_START = -(2 * Math.PI) / 3;\n/** Breathing room kept between the arc and the focus ring drawn on the box edge. */\nconst RING_GAP = 3;\n\nconst round = (n: number): number => Number(n.toFixed(3));\n\n/**\n * Centreline radius for a given thickness: the arc, caps included, always fits\n * its box, so a thick stroke never spills over the focus ring.\n */\nfunction dialRadius(strokeWidth: number): number {\n return Math.max(2, CENTER - strokeWidth / 2 - RING_GAP);\n}\n\n/** Point on the dial for an angle, in viewBox coordinates (y grows downwards). */\nfunction polar(radians: number, radius: number): { x: number; y: number } {\n return {\n x: round(CENTER + Math.cos(radians) * radius),\n y: round(CENTER - Math.sin(radians) * radius),\n };\n}\n\nfunction mapRange(x: number, inMin: number, inMax: number, outMin: number, outMax: number): number {\n if (inMax === inMin) return outMin;\n return ((x - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;\n}\n\n/**\n * ui-knob — headless circular dial to pick a numeric value.\n *\n * Follows the WAI-ARIA slider pattern: the dial is a single `role=\"slider\"`\n * stop exposing `aria-valuemin/max/now`, driven at the keyboard (arrows,\n * Page Up/Down, Home/End) and by pointer (mouse, touch, pen) through one code\n * path. The drawing is an SVG arc in a 100×100 viewBox, so it scales with the\n * rendered diameter; every colour comes from the design tokens and can be\n * repainted per instance.\n *\n * Works standalone, with `[(ngModel)]`, Reactive Forms or Signal Forms\n * (`[formField]`) — it is a `ControlValueAccessor`.\n */\n@Component({\n selector: 'ui-knob',\n standalone: true,\n templateUrl: './ui-knob.html',\n styleUrl: './ui-knob.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiKnob), multi: true }],\n})\nexport class UiKnob extends BaseFieldControl<number> {\n /** Minimum boundary value. */\n min = input(0, { transform: numberAttribute });\n /** Maximum boundary value. */\n max = input(100, { transform: numberAttribute });\n /** Increment/decrement granularity (drag snapping + keyboard step). */\n step = input(1, { transform: numberAttribute });\n /** Diameter preset (override any diameter with the `--ui-knob-size` hook). */\n size = input<UiKnobSize>('default');\n /** Arc thickness, in viewBox units (100 = the diameter), so it scales with the knob. */\n strokeWidth = input(14, { transform: numberAttribute });\n /** Renders the value at the centre of the dial. */\n showValue = input(true, { transform: booleanAttribute });\n /** Template of the centre label, `{value}` being the placeholder. */\n valueTemplate = input('{value}');\n /** Colour of the filled arc (any CSS colour). Sets `--ui-knob-value-color`. */\n valueColor = input<string>();\n /** Colour of the track behind it. Sets `--ui-knob-range-color`. */\n rangeColor = input<string>();\n /** Colour of the centre label. Sets `--ui-knob-text-color`. */\n textColor = input<string>();\n\n /** Emitted on every value change (drag, keyboard, click on the dial). */\n knobChange = output<number>();\n\n /** @ignore Pointer target, focus stop and % reference of the dial. */\n private readonly root = viewChild.required<ElementRef<HTMLElement>>('root');\n /** @ignore True while a drag is in progress. */\n private dragging = false;\n\n constructor() {\n super();\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-knob',\n 'No accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Current value, clamped to the boundaries (falls back to `min`). */\n protected readonly currentValue = computed(() => {\n const value = this.modelValue();\n return this.clamp(typeof value === 'number' && !Number.isNaN(value) ? value : this.min());\n });\n\n /** @ignore Centre label, with `{value}` substituted. */\n protected readonly displayValue = computed(() =>\n this.valueTemplate().replace('{value}', String(this.currentValue())),\n );\n\n /** @ignore Announced only when the label differs from the raw value. */\n protected readonly ariaValueText = computed(() => {\n const label = this.displayValue();\n return label === String(this.currentValue()) ? null : label;\n });\n\n /** @ignore Radius of the arc centreline, inset so the stroke fits the box. */\n private readonly radius = computed(() => dialRadius(this.strokeWidth()));\n\n /** @ignore The full track. */\n protected readonly rangePath = computed(() => {\n const radius = this.radius();\n const from = polar(MIN_RADIANS, radius);\n const to = polar(MAX_RADIANS, radius);\n return `M ${from.x} ${from.y} A ${radius} ${radius} 0 1 1 ${to.x} ${to.y}`;\n });\n\n /** @ignore Arc drawn from the origin (0, or the nearest boundary) to the value. */\n protected readonly valuePath = computed(() => {\n const radius = this.radius();\n const from = polar(this.originRadians(), radius);\n const to = polar(this.valueRadians(), radius);\n const largeArc = Math.abs(this.originRadians() - this.valueRadians()) < Math.PI ? 0 : 1;\n const sweep = this.valueRadians() > this.originRadians() ? 0 : 1;\n return `M ${from.x} ${from.y} A ${radius} ${radius} 0 ${largeArc} ${sweep} ${to.x} ${to.y}`;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const classes = ['ui-knob'];\n if (this.size() !== 'default') classes.push(`_${this.size()}`);\n if (this.isDisabled()) classes.push('_disabled');\n if (this.readonly()) classes.push('_readonly');\n if (this.isInvalid()) classes.push('_invalid');\n return classes.join(' ');\n });\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-knob';\n }\n\n /** Focus the dial programmatically. */\n focus(options?: FocusOptions): void {\n this.root().nativeElement.focus(options);\n }\n\n // --- Pointer interaction (mouse / touch / pen) -----------------------\n\n /** @ignore */\n protected onPointerDown(event: PointerEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n this.dragging = true;\n this.root().nativeElement.setPointerCapture(event.pointerId);\n this.updateFromPointer(event);\n // preventDefault kills the implicit focus, so take it explicitly.\n event.preventDefault();\n this.root().nativeElement.focus();\n }\n\n /** @ignore */\n protected onPointerMove(event: PointerEvent): void {\n if (!this.dragging) return;\n this.updateFromPointer(event);\n }\n\n /** @ignore */\n protected onPointerUp(event: PointerEvent): void {\n if (!this.dragging) return;\n this.dragging = false;\n this.root().nativeElement.releasePointerCapture?.(event.pointerId);\n }\n\n // --- Keyboard --------------------------------------------------------\n\n /** @ignore */\n protected onKeyDown(event: KeyboardEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n const step = this.stepSize();\n const current = this.currentValue();\n let next: number;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowDown':\n next = current - step;\n break;\n case 'ArrowRight':\n case 'ArrowUp':\n next = current + step;\n break;\n case 'PageDown':\n next = current - step * 10;\n break;\n case 'PageUp':\n next = current + step * 10;\n break;\n case 'Home':\n next = this.min();\n break;\n case 'End':\n next = this.max();\n break;\n default:\n return;\n }\n event.preventDefault();\n this.commit(next);\n }\n\n /** @ignore */\n protected onBlur(): void {\n this.emitTouch();\n }\n\n // --- Value helpers ---------------------------------------------------\n\n /** @ignore Effective step (never 0). */\n private stepSize(): number {\n const step = this.step();\n return step > 0 ? step : 1;\n }\n\n /** @ignore Angle of the value on the dial. */\n private valueRadians(): number {\n return mapRange(this.currentValue(), this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);\n }\n\n /** @ignore Angle the filled arc starts from: zero when it is inside the boundaries. */\n private originRadians(): number {\n const origin = Math.min(Math.max(0, this.min()), this.max());\n return mapRange(origin, this.min(), this.max(), MIN_RADIANS, MAX_RADIANS);\n }\n\n /** @ignore Pointer position → value, or `null` inside the bottom gap. */\n private updateFromPointer(event: PointerEvent): void {\n const rect = this.root().nativeElement.getBoundingClientRect();\n if (!rect.width || !rect.height) return;\n const dx = (event.clientX - rect.left) / rect.width - 0.5;\n const dy = 0.5 - (event.clientY - rect.top) / rect.height;\n const angle = Math.atan2(dy, dx);\n\n if (angle > MAX_RADIANS) {\n this.commit(mapRange(angle, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));\n } else if (angle <= GAP_START) {\n this.commit(mapRange(angle + 2 * Math.PI, MIN_RADIANS, MAX_RADIANS, this.min(), this.max()));\n }\n }\n\n /** @ignore Round to the step's decimal precision (avoids float drift). */\n private round(value: number): number {\n const step = this.stepSize();\n const decimals = Number.isInteger(step) ? 0 : (step.toString().split('.')[1]?.length ?? 0);\n return decimals > 0 ? +value.toFixed(decimals) : Math.round(value);\n }\n\n /** @ignore Clamp to [min, max]. */\n private clamp(value: number): number {\n return Math.min(this.max(), Math.max(this.min(), value));\n }\n\n /** @ignore Snap to the step grid, clamp, then propagate if it moved. */\n private commit(raw: number): void {\n const step = this.stepSize();\n const min = this.min();\n const value = this.clamp(this.round(min + Math.round((raw - min) / step) * step));\n if (value === this.currentValue()) return;\n this.modelValue.set(value);\n this.emitChange(value);\n this.knobChange.emit(value);\n }\n}\n","<div\n #root\n [class]=\"classes()\"\n role=\"slider\"\n [attr.id]=\"resolvedId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-valuenow]=\"currentValue()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-disabled]=\"isDisabled() ? true : null\"\n [attr.aria-readonly]=\"readonly() ? true : null\"\n [attr.aria-required]=\"required() ? true : null\"\n [style.--ui-knob-value-color]=\"valueColor() ?? null\"\n [style.--ui-knob-range-color]=\"rangeColor() ?? null\"\n [style.--ui-knob-text-color]=\"textColor() ?? null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n>\n <!-- The value is carried by role=\"slider\" above: the drawing is decorative. -->\n <svg class=\"ui-knob-dial\" viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <path class=\"ui-knob-range\" [attr.d]=\"rangePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n <path class=\"ui-knob-value\" [attr.d]=\"valuePath()\" [attr.stroke-width]=\"strokeWidth()\"></path>\n </svg>\n\n @if (showValue()) {\n <span class=\"ui-knob-text\" aria-hidden=\"true\">{{ displayValue() }}</span>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-knob\n */\n\nexport * from './lib/ui-knob';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkBA;AACA;AACA;AACA,MAAM,MAAM,GAAG,EAAE;AACjB,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC;AACrC,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC;AAChC;AACA,MAAM,SAAS,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC;AACpC;AACA,MAAM,QAAQ,GAAG,CAAC;AAElB,MAAM,KAAK,GAAG,CAAC,CAAS,KAAa,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEzD;;;AAGG;AACH,SAAS,UAAU,CAAC,WAAmB,EAAA;AACrC,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,GAAG,QAAQ,CAAC;AACzD;AAEA;AACA,SAAS,KAAK,CAAC,OAAe,EAAE,MAAc,EAAA;IAC5C,OAAO;AACL,QAAA,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC;AAC7C,QAAA,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC;KAC9C;AACH;AAEA,SAAS,QAAQ,CAAC,CAAS,EAAE,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,MAAc,EAAA;IACvF,IAAI,KAAK,KAAK,KAAK;AAAE,QAAA,OAAO,MAAM;IAClC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,KAAK,MAAM,GAAG,MAAM,CAAC,KAAK,KAAK,GAAG,KAAK,CAAC,GAAG,MAAM;AACrE;AAEA;;;;;;;;;;;;A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ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiNudger, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
152
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiNudger, isStandalone: true, selector: "ui-nudger", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, onColor: { classPropertyName: "onColor", publicName: "onColor", isSignal: true, isRequired: false, transformFunction: null }, decrementAriaLabel: { classPropertyName: "decrementAriaLabel", publicName: "decrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, incrementAriaLabel: { classPropertyName: "incrementAriaLabel", publicName: "incrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementIcon: { classPropertyName: "decrementIcon", publicName: "decrementIcon", isSignal: true, isRequired: false, transformFunction: null }, incrementIcon: { classPropertyName: "incrementIcon", publicName: "incrementIcon", isSignal: true, isRequired: false, transformFunction: null }, formatValue: { classPropertyName: "formatValue", publicName: "formatValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiNudger), multi: true }], usesInheritance: true, ngImport: i0, template: "<div\n [class]=\"classes()\"\n [id]=\"resolvedId()\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (focusout)=\"onBlur($event)\"\n>\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"decrementIcon()\"\n [ariaLabel]=\"decrementAriaLabel()\"\n [disabled]=\"decrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"decrement()\"\n />\n\n <span class=\"ui-nudger-value\" aria-live=\"polite\" [attr.aria-hidden]=\"null\">{{\n displayValue()\n }}</span>\n\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"incrementIcon()\"\n [ariaLabel]=\"incrementAriaLabel()\"\n [disabled]=\"incrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"increment()\"\n />\n\n <!-- Hidden holder so a native `name` participates in form submission. -->\n @if (name(); as n) {\n <input type=\"hidden\" [name]=\"n\" [value]=\"currentValue()\" />\n }\n</div>\n", styles: [".ui-nudger{display:inline-flex;align-items:center;gap:var(--ui-nudger-gap, var(--units-default))}.ui-nudger-value{min-width:var(--ui-nudger-value-min-width, 2.5rem);font-family:var(--ui-nudger-font-family, var(--fontfamily-title));font-weight:var(--ui-nudger-weight, var(--weight-bold));font-size:var(--ui-nudger-value-font-size, var(--size-typography-title-xl));font-variant-numeric:tabular-nums;line-height:1.2;text-align:center;color:var(--ui-nudger-value-color, var(--form-high-content-default));-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-nudger._small .ui-nudger-value{min-width:var(--ui-nudger-value-min-width-small, 2rem);font-size:var(--ui-nudger-value-font-size-small, var(--size-typography-title-lg))}.ui-nudger._invalid .ui-nudger-value{color:var(--ui-nudger-value-color-invalid, var(--form-error-content-default))}.ui-nudger._disabled .ui-nudger-value{color:var(--ui-nudger-value-color-disabled, var(--form-high-content-disabled))}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }] }); }
152
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiNudger, isStandalone: true, selector: "ui-nudger", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, onColor: { classPropertyName: "onColor", publicName: "onColor", isSignal: true, isRequired: false, transformFunction: null }, decrementAriaLabel: { classPropertyName: "decrementAriaLabel", publicName: "decrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, incrementAriaLabel: { classPropertyName: "incrementAriaLabel", publicName: "incrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementIcon: { classPropertyName: "decrementIcon", publicName: "decrementIcon", isSignal: true, isRequired: false, transformFunction: null }, incrementIcon: { classPropertyName: "incrementIcon", publicName: "incrementIcon", isSignal: true, isRequired: false, transformFunction: null }, formatValue: { classPropertyName: "formatValue", publicName: "formatValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiNudger), multi: true }], usesInheritance: true, ngImport: i0, template: "<div\n [class]=\"classes()\"\n [id]=\"resolvedId()\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (focusout)=\"onBlur($event)\"\n>\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"decrementIcon()\"\n [ariaLabel]=\"decrementAriaLabel()\"\n [disabled]=\"decrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"decrement()\"\n />\n\n <span class=\"ui-nudger-value\" aria-live=\"polite\" [attr.aria-hidden]=\"null\">{{\n displayValue()\n }}</span>\n\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"incrementIcon()\"\n [ariaLabel]=\"incrementAriaLabel()\"\n [disabled]=\"incrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"increment()\"\n />\n\n <!-- Hidden holder so a native `name` participates in form submission. -->\n @if (name(); as n) {\n <input type=\"hidden\" [name]=\"n\" [value]=\"currentValue()\" />\n }\n</div>\n", styles: [".ui-nudger{display:inline-flex;align-items:center;gap:var(--ui-nudger-gap, var(--units-default))}.ui-nudger-value{min-width:var(--ui-nudger-value-min-width, 2.5rem);font-family:var(--ui-nudger-font-family, var(--fontfamily-title));font-weight:var(--ui-nudger-weight, var(--weight-bold));font-size:var(--ui-nudger-value-font-size, var(--size-typography-title-xl));font-variant-numeric:tabular-nums;line-height:1.2;text-align:center;color:var(--ui-nudger-value-color, var(--form-high-content-default));-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-nudger._small .ui-nudger-value{min-width:var(--ui-nudger-value-min-width-small, 2rem);font-size:var(--ui-nudger-value-font-size-small, var(--size-typography-title-lg))}.ui-nudger._invalid .ui-nudger-value{color:var(--ui-nudger-value-color-invalid, var(--form-error-content-default))}.ui-nudger._disabled .ui-nudger-value{color:var(--ui-nudger-value-color-disabled, var(--form-high-content-disabled))}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }] }); }
153
153
  }
154
154
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiNudger, decorators: [{
155
155
  type: Component,
156
- args: [{ selector: 'ui-nudger', imports: [UiButton], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiNudger), multi: true }], template: "<div\n [class]=\"classes()\"\n [id]=\"resolvedId()\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (focusout)=\"onBlur($event)\"\n>\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"decrementIcon()\"\n [ariaLabel]=\"decrementAriaLabel()\"\n [disabled]=\"decrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"decrement()\"\n />\n\n <span class=\"ui-nudger-value\" aria-live=\"polite\" [attr.aria-hidden]=\"null\">{{\n displayValue()\n }}</span>\n\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"incrementIcon()\"\n [ariaLabel]=\"incrementAriaLabel()\"\n [disabled]=\"incrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"increment()\"\n />\n\n <!-- Hidden holder so a native `name` participates in form submission. -->\n @if (name(); as n) {\n <input type=\"hidden\" [name]=\"n\" [value]=\"currentValue()\" />\n }\n</div>\n", styles: [".ui-nudger{display:inline-flex;align-items:center;gap:var(--ui-nudger-gap, var(--units-default))}.ui-nudger-value{min-width:var(--ui-nudger-value-min-width, 2.5rem);font-family:var(--ui-nudger-font-family, var(--fontfamily-title));font-weight:var(--ui-nudger-weight, var(--weight-bold));font-size:var(--ui-nudger-value-font-size, var(--size-typography-title-xl));font-variant-numeric:tabular-nums;line-height:1.2;text-align:center;color:var(--ui-nudger-value-color, var(--form-high-content-default));-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-nudger._small .ui-nudger-value{min-width:var(--ui-nudger-value-min-width-small, 2rem);font-size:var(--ui-nudger-value-font-size-small, var(--size-typography-title-lg))}.ui-nudger._invalid .ui-nudger-value{color:var(--ui-nudger-value-color-invalid, var(--form-error-content-default))}.ui-nudger._disabled .ui-nudger-value{color:var(--ui-nudger-value-color-disabled, var(--form-high-content-disabled))}\n"] }]
156
+ args: [{ selector: 'ui-nudger', imports: [UiButton], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiNudger), multi: true }], template: "<div\n [class]=\"classes()\"\n [id]=\"resolvedId()\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (focusout)=\"onBlur($event)\"\n>\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"decrementIcon()\"\n [ariaLabel]=\"decrementAriaLabel()\"\n [disabled]=\"decrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"decrement()\"\n />\n\n <span class=\"ui-nudger-value\" aria-live=\"polite\" [attr.aria-hidden]=\"null\">{{\n displayValue()\n }}</span>\n\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"incrementIcon()\"\n [ariaLabel]=\"incrementAriaLabel()\"\n [disabled]=\"incrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"increment()\"\n />\n\n <!-- Hidden holder so a native `name` participates in form submission. -->\n @if (name(); as n) {\n <input type=\"hidden\" [name]=\"n\" [value]=\"currentValue()\" />\n }\n</div>\n", styles: [".ui-nudger{display:inline-flex;align-items:center;gap:var(--ui-nudger-gap, var(--units-default))}.ui-nudger-value{min-width:var(--ui-nudger-value-min-width, 2.5rem);font-family:var(--ui-nudger-font-family, var(--fontfamily-title));font-weight:var(--ui-nudger-weight, var(--weight-bold));font-size:var(--ui-nudger-value-font-size, var(--size-typography-title-xl));font-variant-numeric:tabular-nums;line-height:1.2;text-align:center;color:var(--ui-nudger-value-color, var(--form-high-content-default));-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-nudger._small .ui-nudger-value{min-width:var(--ui-nudger-value-min-width-small, 2rem);font-size:var(--ui-nudger-value-font-size-small, var(--size-typography-title-lg))}.ui-nudger._invalid .ui-nudger-value{color:var(--ui-nudger-value-color-invalid, var(--form-error-content-default))}.ui-nudger._disabled .ui-nudger-value{color:var(--ui-nudger-value-color-disabled, var(--form-high-content-disabled))}\n"] }]
157
157
  }], ctorParameters: () => [], propDecorators: { min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], onColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "onColor", required: false }] }], decrementAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementAriaLabel", required: false }] }], incrementAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementAriaLabel", required: false }] }], decrementIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "decrementIcon", required: false }] }], incrementIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "incrementIcon", required: false }] }], formatValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatValue", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
158
158
 
159
159
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-nudger.mjs","sources":["../../../projects/ui-kit/forms/ui-nudger/src/lib/ui-nudger.ts","../../../projects/ui-kit/forms/ui-nudger/src/lib/ui-nudger.html","../../../projects/ui-kit/forms/ui-nudger/src/public-api.ts","../../../projects/ui-kit/forms/ui-nudger/src/4sh-ui-kit-forms-ui-nudger.ts"],"sourcesContent":["import {\n Component,\n computed,\n effect,\n forwardRef,\n input,\n isDevMode,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { ButtonOnColor, ButtonVariant, UiButton } from '@4sh/ui-kit/actions/ui-button';\n\nexport type NudgerSize = 'default' | 'small';\n\n/**\n * ui-nudger : headless numeric stepper (`[−] value [+]`).\n *\n * Composes two icon-only `ui-button` instances around a read-only value\n * display. Holds a `number` value via `ControlValueAccessor` (standalone,\n * `[(ngModel)]`, Reactive Forms, Signal Forms). `min`/`max` disable the\n * relevant button at the bound (the Figma `interaction` states Min/Max are\n * **derived** from the value here, never a prop); `step` sizes each nudge.\n *\n * Keyboard: each button is a real `<button>` (Tab + Enter/Space). The value\n * is a live region announced on change.\n */\n@Component({\n selector: 'ui-nudger',\n imports: [UiButton],\n templateUrl: './ui-nudger.html',\n styleUrl: './ui-nudger.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiNudger), multi: true }],\n})\nexport class UiNudger extends BaseFieldControl<number> {\n /** Minimum value (disables \"−\" at the bound). */\n min = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum value (disables \"+\" at the bound). */\n max = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Increment/decrement step. */\n step = input<number, unknown>(1, { transform: numberAttribute });\n /** Value used when the model is empty (also the standalone default). */\n defaultValue = input<number, unknown>(0, { transform: numberAttribute });\n\n /** Size. */\n size = input<NudgerSize>('default');\n /** Color family of the two buttons. */\n level = input<UiLevel>('high');\n /** Appearance applied to the two buttons. */\n variant = input<ButtonVariant>('filled');\n /** Luminosité du fond de couleur sur lequel le nudger est posé (voir `ui-button.onColor`). */\n onColor = input<ButtonOnColor | null>(null);\n\n /** Accessible label of the decrement button. */\n decrementAriaLabel = input<string>('Diminuer');\n /** Accessible label of the increment button. */\n incrementAriaLabel = input<string>('Augmenter');\n /** FontAwesome icon name of the decrement button. */\n decrementIcon = input<string>('minus');\n /** FontAwesome icon name of the increment button. */\n incrementIcon = input<string>('plus');\n /** Optional display formatter for the value (e.g. `(v) => v + ' kg'`). */\n formatValue = input<(value: number) => string>();\n\n /** Emitted on each value change. */\n valueChange = output<number>();\n\n constructor() {\n super();\n // A11y safeguard: a stepper needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-nudger] No accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Effective numeric value (falls back to `defaultValue`). */\n protected readonly currentValue = computed(() => this.modelValue() ?? this.defaultValue());\n\n /** @ignore Bounds reached. */\n protected readonly atMin = computed(() => {\n const min = this.min();\n return min != null && this.currentValue() <= min;\n });\n protected readonly atMax = computed(() => {\n const max = this.max();\n return max != null && this.currentValue() >= max;\n });\n\n /** @ignore Per-button disabled state. */\n protected readonly decrementDisabled = computed(\n () => this.isDisabled() || this.readonly() || this.atMin(),\n );\n protected readonly incrementDisabled = computed(\n () => this.isDisabled() || this.readonly() || this.atMax(),\n );\n\n /** @ignore Value shown (custom formatter or plain number). */\n protected readonly displayValue = computed(() => {\n const v = this.currentValue();\n return this.formatValue()?.(v) ?? String(v);\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-nudger'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDisabled()) c.push('_disabled');\n if (this.isInvalid()) c.push('_invalid');\n return c.join(' ');\n });\n\n override writeValue(value: number | null): void {\n this.modelValue.set(value ?? undefined);\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-nudger';\n }\n\n /** Increments the value by one `step` (clamped to `max`). */\n increment(): void {\n this.stepBy(1);\n }\n\n /** Decrements the value by one `step` (clamped to `min`). */\n decrement(): void {\n this.stepBy(-1);\n }\n\n /** @ignore Apply a signed step, clamp, emit. */\n protected stepBy(direction: 1 | -1): void {\n if (this.isDisabled() || this.readonly()) return;\n const next = this.clamp(this.currentValue() + direction * this.step());\n if (next === this.modelValue()) return;\n this.modelValue.set(next);\n this.emitChange(next);\n this.valueChange.emit(next);\n }\n\n /** @ignore Mark as touched when focus leaves the stepper. */\n protected onBlur(event: FocusEvent): void {\n // Ignore focus moving between the two internal buttons.\n const next = event.relatedTarget as Node | null;\n const root = event.currentTarget as HTMLElement;\n if (next && root.contains(next)) return;\n this.emitTouch();\n }\n\n /** @ignore Clamp a value into [min, max]. */\n private clamp(value: number): number {\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","<div\n [class]=\"classes()\"\n [id]=\"resolvedId()\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (focusout)=\"onBlur($event)\"\n>\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"decrementIcon()\"\n [ariaLabel]=\"decrementAriaLabel()\"\n [disabled]=\"decrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"decrement()\"\n />\n\n <span class=\"ui-nudger-value\" aria-live=\"polite\" [attr.aria-hidden]=\"null\">{{\n displayValue()\n }}</span>\n\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"incrementIcon()\"\n [ariaLabel]=\"incrementAriaLabel()\"\n [disabled]=\"incrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"increment()\"\n />\n\n <!-- Hidden holder so a native `name` participates in form submission. -->\n @if (name(); as n) {\n <input type=\"hidden\" [name]=\"n\" [value]=\"currentValue()\" />\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-nudger\n */\n\nexport * from './lib/ui-nudger';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;;AAWG;AAQG,MAAO,QAAS,SAAQ,gBAAwB,CAAA;AAiCpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QAhCT,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,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forms/ui-nudger/src/public-api.ts","../../../projects/ui-kit/forms/ui-nudger/src/4sh-ui-kit-forms-ui-nudger.ts"],"sourcesContent":["import {\n Component,\n computed,\n effect,\n forwardRef,\n input,\n isDevMode,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { ButtonOnColor, ButtonVariant, UiButton } from '@4sh/ui-kit/actions/ui-button';\n\nexport type NudgerSize = 'default' | 'small';\n\n/**\n * ui-nudger : headless numeric stepper (`[−] value [+]`).\n *\n * Composes two icon-only `ui-button` instances around a read-only value\n * display. Holds a `number` value via `ControlValueAccessor` (standalone,\n * `[(ngModel)]`, Reactive Forms, Signal Forms). `min`/`max` disable the\n * relevant button at the bound (the Figma `interaction` states Min/Max are\n * **derived** from the value here, never a prop); `step` sizes each nudge.\n *\n * Keyboard: each button is a real `<button>` (Tab + Enter/Space). The value\n * is a live region announced on change.\n */\n@Component({\n selector: 'ui-nudger',\n imports: [UiButton],\n templateUrl: './ui-nudger.html',\n styleUrl: './ui-nudger.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiNudger), multi: true }],\n})\nexport class UiNudger extends BaseFieldControl<number> {\n /** Minimum value (disables \"−\" at the bound). */\n min = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum value (disables \"+\" at the bound). */\n max = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Increment/decrement step. */\n step = input<number, unknown>(1, { transform: numberAttribute });\n /** Value used when the model is empty (also the standalone default). */\n defaultValue = input<number, unknown>(0, { transform: numberAttribute });\n\n /** Size. */\n size = input<NudgerSize>('default');\n /** Color family of the two buttons. */\n level = input<UiLevel>('high');\n /** Appearance applied to the two buttons. */\n variant = input<ButtonVariant>('filled');\n /** Luminosité du fond de couleur sur lequel le nudger est posé (voir `ui-button.onColor`). */\n onColor = input<ButtonOnColor | null>(null);\n\n /** Accessible label of the decrement button. */\n decrementAriaLabel = input<string>('Diminuer');\n /** Accessible label of the increment button. */\n incrementAriaLabel = input<string>('Augmenter');\n /** FontAwesome icon name of the decrement button. */\n decrementIcon = input<string>('minus');\n /** FontAwesome icon name of the increment button. */\n incrementIcon = input<string>('plus');\n /** Optional display formatter for the value (e.g. `(v) => v + ' kg'`). */\n formatValue = input<(value: number) => string>();\n\n /** Emitted on each value change. */\n valueChange = output<number>();\n\n constructor() {\n super();\n // A11y safeguard: a stepper needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-nudger] No accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Effective numeric value (falls back to `defaultValue`). */\n protected readonly currentValue = computed(() => this.modelValue() ?? this.defaultValue());\n\n /** @ignore Bounds reached. */\n protected readonly atMin = computed(() => {\n const min = this.min();\n return min != null && this.currentValue() <= min;\n });\n protected readonly atMax = computed(() => {\n const max = this.max();\n return max != null && this.currentValue() >= max;\n });\n\n /** @ignore Per-button disabled state. */\n protected readonly decrementDisabled = computed(\n () => this.isDisabled() || this.readonly() || this.atMin(),\n );\n protected readonly incrementDisabled = computed(\n () => this.isDisabled() || this.readonly() || this.atMax(),\n );\n\n /** @ignore Value shown (custom formatter or plain number). */\n protected readonly displayValue = computed(() => {\n const v = this.currentValue();\n return this.formatValue()?.(v) ?? String(v);\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-nudger'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDisabled()) c.push('_disabled');\n if (this.isInvalid()) c.push('_invalid');\n return c.join(' ');\n });\n\n override writeValue(value: number | null): void {\n this.modelValue.set(value ?? undefined);\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-nudger';\n }\n\n /** Increments the value by one `step` (clamped to `max`). */\n increment(): void {\n this.stepBy(1);\n }\n\n /** Decrements the value by one `step` (clamped to `min`). */\n decrement(): void {\n this.stepBy(-1);\n }\n\n /** @ignore Apply a signed step, clamp, emit. */\n protected stepBy(direction: 1 | -1): void {\n if (this.isDisabled() || this.readonly()) return;\n const next = this.clamp(this.currentValue() + direction * this.step());\n if (next === this.modelValue()) return;\n this.modelValue.set(next);\n this.emitChange(next);\n this.valueChange.emit(next);\n }\n\n /** @ignore Mark as touched when focus leaves the stepper. */\n protected onBlur(event: FocusEvent): void {\n // Ignore focus moving between the two internal buttons.\n const next = event.relatedTarget as Node | null;\n const root = event.currentTarget as HTMLElement;\n if (next && root.contains(next)) return;\n this.emitTouch();\n }\n\n /** @ignore Clamp a value into [min, max]. */\n private clamp(value: number): number {\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","<div\n [class]=\"classes()\"\n [id]=\"resolvedId()\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (focusout)=\"onBlur($event)\"\n>\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"decrementIcon()\"\n [ariaLabel]=\"decrementAriaLabel()\"\n [disabled]=\"decrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"decrement()\"\n />\n\n <span class=\"ui-nudger-value\" aria-live=\"polite\" [attr.aria-hidden]=\"null\">{{\n displayValue()\n }}</span>\n\n <ui-button\n class=\"ui-nudger-button\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [icon]=\"incrementIcon()\"\n [ariaLabel]=\"incrementAriaLabel()\"\n [disabled]=\"incrementDisabled()\"\n [tabindex]=\"tabindex()\"\n iconOnly\n (buttonClick)=\"increment()\"\n />\n\n <!-- Hidden holder so a native `name` participates in form submission. -->\n @if (name(); as n) {\n <input type=\"hidden\" [name]=\"n\" [value]=\"currentValue()\" />\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-nudger\n */\n\nexport * from './lib/ui-nudger';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;;AAWG;AAQG,MAAO,QAAS,SAAQ,gBAAwB,CAAA;AAiCpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QAhCT,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,YAAY,GAAG,KAAK,CAAkB,CAAC,oFAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAGxE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,SAAS;iFAAC;;QAEnC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,MAAM;kFAAC;;QAE9B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAgB,QAAQ;oFAAC;;QAExC,IAAA,CAAA,OAAO,GAAG,KAAK,CAAuB,IAAI;oFAAC;;QAG3C,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,UAAU;+FAAC;;QAE9C,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,WAAW;+FAAC;;QAE/C,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,OAAO;0FAAC;;QAEtC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,MAAM;0FAAC;;AAErC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAA6B;;QAGhD,IAAA,CAAA,WAAW,GAAG,MA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