@4sh/ui-kit 0.7.0 → 0.8.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 (82) hide show
  1. package/README.fr.md +12 -11
  2. package/README.md +12 -11
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +1 -1
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +5 -3
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +6 -4
  10. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +206 -25
  12. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +16 -3
  16. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +5 -3
  18. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +2 -2
  20. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
  28. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
  29. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +6 -4
  32. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -3
  34. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +2 -2
  36. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +6 -4
  38. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms.mjs +7 -2
  40. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
  42. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
  43. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +5 -3
  44. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -3
  46. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +5 -3
  48. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -2
  50. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
  52. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
  53. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -3
  54. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +1 -1
  56. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  57. package/mcp/data/text-search-docs.json +437 -17
  58. package/mcp/data/ui-config.json +830 -0
  59. package/mcp/package.json +1 -1
  60. package/package.json +13 -1
  61. package/styles/base/_ripple.scss +53 -0
  62. package/styles/component-vars.scss +59 -1
  63. package/styles/index.scss +1 -0
  64. package/styles/settings/_ui-config.scss +9 -0
  65. package/styles.css +1 -1
  66. package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
  67. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +3 -1
  68. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +57 -2
  69. package/types/4sh-ui-kit-forms-ui-field.d.ts +13 -1
  70. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
  71. package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
  72. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
  73. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
  74. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +3 -1
  75. package/types/4sh-ui-kit-forms.d.ts +5 -1
  76. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
  77. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
  78. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
  79. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
  80. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +3 -1
  81. package/types/4sh-ui-kit-ripple.d.ts +156 -0
  82. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
@@ -60,6 +60,19 @@ class UiField {
60
60
  /** id of the message (for `aria-describedby`, set by the component on the input). */
61
61
  this.messageId = input(/* @ts-ignore */
62
62
  ...(ngDevMode ? [undefined, { debugName: "messageId" }] : /* istanbul ignore next */ []));
63
+ /**
64
+ * Prefixes the message with an icon (rendered by `ui-helper`, decorative).
65
+ *
66
+ * Off by default: a field states its status through the border and the text.
67
+ * `messageIcon` only picks *which* glyph — it never turns the icon on.
68
+ */
69
+ this.showMessageIcon = input(false, { ...(ngDevMode ? { debugName: "showMessageIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
70
+ /**
71
+ * Overrides the glyph shown by `showMessageIcon`. Unset = the icon
72
+ * `ui-helper` derives from the level (question / check / times).
73
+ */
74
+ this.messageIcon = input(/* @ts-ignore */
75
+ ...(ngDevMode ? [undefined, { debugName: "messageIcon" }] : /* istanbul ignore next */ []));
63
76
  /** Renders the footer row even without a message (e.g. to host a `[uiFieldFooter]` counter). */
64
77
  this.hasFooter = input(false, { ...(ngDevMode ? { debugName: "hasFooter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
65
78
  /**
@@ -110,12 +123,12 @@ class UiField {
110
123
  control.focus();
111
124
  }
112
125
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
113
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiField, isStandalone: true, selector: "ui-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", 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 }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, filled: { classPropertyName: "filled", publicName: "filled", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, multiline: { classPropertyName: "multiline", publicName: "multiline", isSignal: true, isRequired: false, transformFunction: null }, autoHeight: { classPropertyName: "autoHeight", publicName: "autoHeight", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, messageId: { classPropertyName: "messageId", publicName: "messageId", isSignal: true, isRequired: false, transformFunction: null }, hasFooter: { classPropertyName: "hasFooter", publicName: "hasFooter", isSignal: true, isRequired: false, transformFunction: null }, hasPrefix: { classPropertyName: "hasPrefix", publicName: "hasPrefix", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"false\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n", styles: [".ui-field{--_surface: var(--form-high-surface-default);display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--form-success-stroke-default);--_stroke-hover: var(--form-success-stroke-hover);--_stroke-focus: var(--form-success-stroke-focused)}.ui-field._error .ui-field-box{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}.ui-field._disabled{--_surface: var(--form-high-surface-disabled)}.ui-field._disabled .ui-field-box{--_stroke: var(--form-high-stroke-disabled);cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--form-high-content-default);--_float-content-rest: var(--form-low-content-default);--_float-content-focus: var(--form-high-content-focused)}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--form-success-content-default);--_float-content-focus: var(--form-success-content-focused)}.ui-field._float._error{--_float-content: var(--form-error-content-default);--_float-content-focus: var(--form-error-content-focused)}.ui-field._float._disabled{--_float-content: var(--form-high-content-disabled);--_float-content-rest: var(--form-high-content-disabled);--_float-content-focus: var(--form-high-content-disabled)}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"], dependencies: [{ kind: "component", type: UiLabel, selector: "ui-label", inputs: ["label", "required", "size", "for", "disabled"] }, { kind: "component", type: UiHelper, selector: "ui-helper", inputs: ["message", "level", "size", "showIcon", "icon", "ariaLive"] }] }); }
126
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiField, isStandalone: true, selector: "ui-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", 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 }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, filled: { classPropertyName: "filled", publicName: "filled", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, multiline: { classPropertyName: "multiline", publicName: "multiline", isSignal: true, isRequired: false, transformFunction: null }, autoHeight: { classPropertyName: "autoHeight", publicName: "autoHeight", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, messageId: { classPropertyName: "messageId", publicName: "messageId", isSignal: true, isRequired: false, transformFunction: null }, showMessageIcon: { classPropertyName: "showMessageIcon", publicName: "showMessageIcon", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null }, hasFooter: { classPropertyName: "hasFooter", publicName: "hasFooter", isSignal: true, isRequired: false, transformFunction: null }, hasPrefix: { classPropertyName: "hasPrefix", publicName: "hasPrefix", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n", styles: [".ui-field{--_surface: var(--form-high-surface-default);display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--form-success-stroke-default);--_stroke-hover: var(--form-success-stroke-hover);--_stroke-focus: var(--form-success-stroke-focused)}.ui-field._error .ui-field-box{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}.ui-field._disabled{--_surface: var(--form-high-surface-disabled)}.ui-field._disabled .ui-field-box{--_stroke: var(--form-high-stroke-disabled);cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--form-high-content-default);--_float-content-rest: var(--form-low-content-default);--_float-content-focus: var(--form-high-content-focused)}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--form-success-content-default);--_float-content-focus: var(--form-success-content-focused)}.ui-field._float._error{--_float-content: var(--form-error-content-default);--_float-content-focus: var(--form-error-content-focused)}.ui-field._float._disabled{--_float-content: var(--form-high-content-disabled);--_float-content-rest: var(--form-high-content-disabled);--_float-content-focus: var(--form-high-content-disabled)}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"], dependencies: [{ kind: "component", type: UiLabel, selector: "ui-label", inputs: ["label", "required", "size", "for", "disabled"] }, { kind: "component", type: UiHelper, selector: "ui-helper", inputs: ["message", "level", "size", "showIcon", "icon", "ariaLive"] }] }); }
114
127
  }
115
128
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiField, decorators: [{
116
129
  type: Component,
117
- args: [{ selector: 'ui-field', imports: [UiLabel, UiHelper], template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"false\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n", styles: [".ui-field{--_surface: var(--form-high-surface-default);display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--form-success-stroke-default);--_stroke-hover: var(--form-success-stroke-hover);--_stroke-focus: var(--form-success-stroke-focused)}.ui-field._error .ui-field-box{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}.ui-field._disabled{--_surface: var(--form-high-surface-disabled)}.ui-field._disabled .ui-field-box{--_stroke: var(--form-high-stroke-disabled);cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--form-high-content-default);--_float-content-rest: var(--form-low-content-default);--_float-content-focus: var(--form-high-content-focused)}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--form-success-content-default);--_float-content-focus: var(--form-success-content-focused)}.ui-field._float._error{--_float-content: var(--form-error-content-default);--_float-content-focus: var(--form-error-content-focused)}.ui-field._float._disabled{--_float-content: var(--form-high-content-disabled);--_float-content-rest: var(--form-high-content-disabled);--_float-content-focus: var(--form-high-content-disabled)}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"] }]
118
- }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], filled: [{ type: i0.Input, args: [{ isSignal: true, alias: "filled", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], multiline: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiline", required: false }] }], autoHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHeight", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], messageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageId", required: false }] }], hasFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasFooter", required: false }] }], hasPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPrefix", required: false }] }] } });
130
+ args: [{ selector: 'ui-field', imports: [UiLabel, UiHelper], template: "<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n", styles: [".ui-field{--_surface: var(--form-high-surface-default);display:flex;flex-direction:column;gap:var(--ui-field-gap, var(--units-xs))}.ui-field._small{gap:var(--ui-field-gap-small, var(--units-xs))}.ui-field-control{position:relative}.ui-field-box{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);display:flex;align-items:center;gap:var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding:0;border:var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-field-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--_surface);cursor:var(--ui-field-box-cursor, text);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-field._small .ui-field-box{height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field-box:hover:not(:focus-within){border-color:var(--_stroke-hover)}.ui-field-box:focus-within{border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-field-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/var(--ui-field-focus-ring-opacity, 50%))}.ui-field._success .ui-field-box{--_stroke: var(--form-success-stroke-default);--_stroke-hover: var(--form-success-stroke-hover);--_stroke-focus: var(--form-success-stroke-focused)}.ui-field._error .ui-field-box{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}.ui-field._disabled{--_surface: var(--form-high-surface-disabled)}.ui-field._disabled .ui-field-box{--_stroke: var(--form-high-stroke-disabled);cursor:not-allowed}.ui-field._readonly .ui-field-box{cursor:default}.ui-field._auto-height .ui-field-box{height:auto;min-height:var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-block:var(--ui-field-padding-y-auto-height, var(--units-xs))}.ui-field._auto-height._small .ui-field-box{min-height:var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-field._multiline .ui-field-box{align-items:stretch;height:auto;min-height:var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm)))}.ui-field._multiline._small .ui-field-box{min-height:var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm)))}.ui-field._float{--_row-center: calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) / 2);--_float-scale: var(--ui-field-float-label-scale, 1.3333);--_float-rest: var(--_row-center);--_float-content: var(--form-high-content-default);--_float-content-rest: var(--form-low-content-default);--_float-content-focus: var(--form-high-content-focused)}.ui-field._float._small{--_row-center: calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) / 2);--_float-scale: var(--ui-field-float-label-scale-small, 1.1667)}.ui-field._float._success{--_float-content: var(--form-success-content-default);--_float-content-focus: var(--form-success-content-focused)}.ui-field._float._error{--_float-content: var(--form-error-content-default);--_float-content-focus: var(--form-error-content-focused)}.ui-field._float._disabled{--_float-content: var(--form-high-content-disabled);--_float-content-rest: var(--form-high-content-disabled);--_float-content-focus: var(--form-high-content-disabled)}.ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))));--_float-max-width: calc(100% - 2 * var(--_float-inset));--ui-label-color: inherit;--ui-label-font-size: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));--ui-label-font-size-small: var(--ui-field-float-label-font-size, var(--size-typography-text-sm));display:flex;position:absolute;inset-inline-start:var(--_float-inset);top:var(--_float-rest);max-width:calc(var(--_float-max-width) / var(--_float-scale));font-size:var(--ui-field-float-label-font-size, var(--size-typography-text-sm));line-height:var(--ui-field-float-label-line-height, 1.25);white-space:nowrap;color:var(--_float-content-rest);transform-origin:0 50%;transform:translateY(-50%) scale(var(--_float-scale));pointer-events:none;transition:top var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-field-float-label{transition:none}}:root[data-motion=off] .ui-field-float-label{transition:none}.ui-field._float .ui-field-control:focus-within .ui-field-float-label,.ui-field._float._filled .ui-field-float-label,.ui-field._float .ui-field-control:has([aria-expanded=true]) .ui-field-float-label,.ui-field._float .ui-field-control:has(:is(input:-webkit-autofill)) .ui-field-float-label{top:0;max-width:var(--_float-max-width);transform:translateY(var(--_float-raise)) scale(1);color:var(--_float-content);pointer-events:auto}.ui-field._float .ui-field-control:focus-within .ui-field-float-label{color:var(--_float-content-focus)}.ui-field._float._has-prefix .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent, calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float._has-prefix._small .ui-field-float-label{--_float-inset: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-x, var(--ui-form-field-padding-x, var(--units-md))) + var(--ui-field-float-label-indent-small, calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))))))}.ui-field._float-over{--_float-raise: calc(-1 * (var(--ui-field-gap, var(--units-xs)) + calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))));padding-block-start:calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-gap, var(--units-xs)))}.ui-field._float-in{--_float-raise: calc(var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) + var(--ui-field-float-label-offset-y, var(--units-2xs)));--_float-rest: calc(var(--_row-center) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))) / 2)}.ui-field._float-in._multiline{--_float-rest: var(--_row-center)}.ui-field._float-in .ui-field-box{--_field-inset-block-start: calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs)))}.ui-field._float-in:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._small:not(._multiline):not(._auto-height) .ui-field-box{height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline, var(--ui-form-textarea-min-height, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._multiline._small .ui-field-box{min-height:calc(var(--ui-field-min-height-multiline-small, var(--ui-form-textarea-min-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height .ui-field-box{min-height:calc(var(--ui-field-height, var(--ui-form-field-height, var(--size-components-default))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-in._auto-height._small .ui-field-box{min-height:calc(var(--ui-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm))) + calc(calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) + var(--ui-field-float-label-offset-y, var(--units-2xs))))}.ui-field._float-on{--_float-raise: calc((var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) - calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25))) / 2);padding-block-start:calc((calc(var(--ui-field-float-label-font-size, var(--size-typography-text-sm)) * var(--ui-field-float-label-line-height, 1.25)) - var(--ui-field-stroke-width, var(--ui-control-stroke-width, var(--stroke-default)))) / 2)}.ui-field._float-on .ui-field-float-label{inset-inline-start:calc(var(--_float-inset) - var(--ui-field-float-label-padding-x, var(--units-2xs)));padding-inline:var(--ui-field-float-label-padding-x, var(--units-2xs));background-color:var(--_surface)}.ui-field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-field-footer-gap, var(--units-sm))}:host-context([dir=rtl]) .ui-field-float-label{transform-origin:100% 50%}\n"] }]
131
+ }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], filled: [{ type: i0.Input, args: [{ isSignal: true, alias: "filled", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], multiline: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiline", required: false }] }], autoHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHeight", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], messageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageId", required: false }] }], showMessageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMessageIcon", required: false }] }], messageIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageIcon", required: false }] }], hasFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasFooter", required: false }] }], hasPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPrefix", required: false }] }] } });
119
132
 
120
133
  /*
121
134
  * Public API Surface of ui-kit/ui-field
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-field.mjs","sources":["../../../projects/ui-kit/forms/ui-field/src/lib/ui-field.ts","../../../projects/ui-kit/forms/ui-field/src/lib/ui-field.html","../../../projects/ui-kit/forms/ui-field/src/public-api.ts","../../../projects/ui-kit/forms/ui-field/src/4sh-ui-kit-forms-ui-field.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { UiLabel } from '@4sh/ui-kit/forms/ui-label';\nimport { UiHelper } from '@4sh/ui-kit/informative/ui-helper';\nimport { FieldFloatLabel, FieldLevel, FieldSize } from '@4sh/ui-kit/forms';\n\n/**\n * ui-field — shared presentational shell for \"box\" fields.\n *\n * Renders: `ui-label` (top) + a bordered box (states/levels via `form.*` tokens)\n * + `ui-helper` (bottom). The field content is **projected**:\n * - `[uiFieldPrefix]`: element(s) before the input (left icon…),\n * - default: the native `<input>`/`<textarea>`,\n * - `[uiFieldSuffix]`: element(s) after (unit, action, spinner…).\n *\n * Purely visual (no `ControlValueAccessor`): the concrete components\n * (`ui-input`, `ui-input-number`, `ui-input-mask`) own the value and provide the\n * computed `id`/`level`/`message` (via `BaseFormField`).\n *\n * `floatLabel` switches the label into the box, where it plays the placeholder\n * role and rises on focus or once `filled` is set. The raised state is CSS-only\n * for focus (`:focus-within`) and autofill; the \"has a value\" half cannot be\n * expressed in CSS for every control (a `<button>` trigger has no `value`), so\n * the concrete component reports it through `filled`.\n */\n@Component({\n selector: 'ui-field',\n imports: [UiLabel, UiHelper],\n templateUrl: './ui-field.html',\n styleUrl: './ui-field.scss',\n})\nexport class UiField {\n /** Label (rendered via `ui-label`). */\n label = input<string>();\n /** Label `for` = id of the projected input. */\n for = input<string>();\n /** Required marker (*). */\n required = input(false, { transform: booleanAttribute });\n /** Size. */\n size = input<FieldSize>('default');\n /** Effective level (drives the border + message color). */\n level = input<FieldLevel>('default');\n /** Floating label placement (`over` | `in` | `on`). Unset = classic label above the box. */\n floatLabel = input<FieldFloatLabel>();\n /** The control holds a value: keeps the floating label raised once focus leaves. */\n filled = input(false, { transform: booleanAttribute });\n /** Disabled state (visual). */\n disabled = input(false, { transform: booleanAttribute });\n /** Read-only state (visual). */\n readonly = input(false, { transform: booleanAttribute });\n /** Multiline box (top-aligned, auto-height with min-height) — used by `ui-textarea`. */\n multiline = input(false, { transform: booleanAttribute });\n /**\n * Auto-height box (grows with wrapping content, keeps padding + centering) —\n * used by `ui-select` in `multiple` mode so chips/values can wrap.\n */\n autoHeight = input(false, { transform: booleanAttribute });\n /** Message under the field (helper or error, already resolved by the component). */\n message = input<string>();\n /** id of the message (for `aria-describedby`, set by the component on the input). */\n messageId = input<string>();\n /** Renders the footer row even without a message (e.g. to host a `[uiFieldFooter]` counter). */\n hasFooter = input(false, { transform: booleanAttribute });\n /**\n * An affix is projected into `[uiFieldPrefix]` (left icon…). Only read in\n * `floatLabel` mode, to indent the floating label past it: the prefix is\n * projected content, so no scoped selector here can see it.\n */\n hasPrefix = input(false, { transform: booleanAttribute });\n\n /** @ignore */\n protected onBoxMouseDown(event: MouseEvent): void {\n if (this.disabled() || this.readonly()) return;\n const target = event.target as HTMLElement;\n if (target.closest('button, a[href], input, textarea, select, [contenteditable=\"true\"]'))\n return;\n const box = event.currentTarget as HTMLElement;\n const control = box.querySelector<HTMLElement>('input, textarea, select');\n if (!control || control.matches(':disabled')) return;\n event.preventDefault();\n control.focus();\n }\n\n /** @ignore The label is rendered inside the box, as a floating label. */\n protected readonly isFloating = computed(() => !!this.floatLabel() && !!this.label());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-field', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.disabled()) c.push('_disabled');\n if (this.readonly()) c.push('_readonly');\n if (this.multiline()) c.push('_multiline');\n if (this.autoHeight()) c.push('_auto-height');\n if (this.isFloating()) {\n c.push('_float', `_float-${this.floatLabel()}`);\n if (this.filled()) c.push('_filled');\n if (this.hasPrefix()) c.push('_has-prefix');\n }\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"false\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-field\n */\n\nexport * from './lib/ui-field';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;;;;;;;;;;;;;;;AAkBG;MAOU,OAAO,CAAA;AANpB,IAAA,WAAA,GAAA;;AAQE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,SAAS;iFAAC;;QAElC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAa,SAAS;kFAAC;;AAEpC,Q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AAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BpB,ojDAoDA,EAAA,MAAA,EAAA,CAAA,4wVAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED1BY,OAAO,+GAAE,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIhB,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EACX,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,ojDAAA,EAAA,MAAA,EAAA,CAAA,4wVAAA,CAAA,EAAA;;;AE1B9B;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-field.mjs","sources":["../../../projects/ui-kit/forms/ui-field/src/lib/ui-field.ts","../../../projects/ui-kit/forms/ui-field/src/lib/ui-field.html","../../../projects/ui-kit/forms/ui-field/src/public-api.ts","../../../projects/ui-kit/forms/ui-field/src/4sh-ui-kit-forms-ui-field.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { UiLabel } from '@4sh/ui-kit/forms/ui-label';\nimport { UiHelper } from '@4sh/ui-kit/informative/ui-helper';\nimport { FieldFloatLabel, FieldLevel, FieldSize } from '@4sh/ui-kit/forms';\n\n/**\n * ui-field — shared presentational shell for \"box\" fields.\n *\n * Renders: `ui-label` (top) + a bordered box (states/levels via `form.*` tokens)\n * + `ui-helper` (bottom). The field content is **projected**:\n * - `[uiFieldPrefix]`: element(s) before the input (left icon…),\n * - default: the native `<input>`/`<textarea>`,\n * - `[uiFieldSuffix]`: element(s) after (unit, action, spinner…).\n *\n * Purely visual (no `ControlValueAccessor`): the concrete components\n * (`ui-input`, `ui-input-number`, `ui-input-mask`) own the value and provide the\n * computed `id`/`level`/`message` (via `BaseFormField`).\n *\n * `floatLabel` switches the label into the box, where it plays the placeholder\n * role and rises on focus or once `filled` is set. The raised state is CSS-only\n * for focus (`:focus-within`) and autofill; the \"has a value\" half cannot be\n * expressed in CSS for every control (a `<button>` trigger has no `value`), so\n * the concrete component reports it through `filled`.\n */\n@Component({\n selector: 'ui-field',\n imports: [UiLabel, UiHelper],\n templateUrl: './ui-field.html',\n styleUrl: './ui-field.scss',\n})\nexport class UiField {\n /** Label (rendered via `ui-label`). */\n label = input<string>();\n /** Label `for` = id of the projected input. */\n for = input<string>();\n /** Required marker (*). */\n required = input(false, { transform: booleanAttribute });\n /** Size. */\n size = input<FieldSize>('default');\n /** Effective level (drives the border + message color). */\n level = input<FieldLevel>('default');\n /** Floating label placement (`over` | `in` | `on`). Unset = classic label above the box. */\n floatLabel = input<FieldFloatLabel>();\n /** The control holds a value: keeps the floating label raised once focus leaves. */\n filled = input(false, { transform: booleanAttribute });\n /** Disabled state (visual). */\n disabled = input(false, { transform: booleanAttribute });\n /** Read-only state (visual). */\n readonly = input(false, { transform: booleanAttribute });\n /** Multiline box (top-aligned, auto-height with min-height) — used by `ui-textarea`. */\n multiline = input(false, { transform: booleanAttribute });\n /**\n * Auto-height box (grows with wrapping content, keeps padding + centering) —\n * used by `ui-select` in `multiple` mode so chips/values can wrap.\n */\n autoHeight = input(false, { transform: booleanAttribute });\n /** Message under the field (helper or error, already resolved by the component). */\n message = input<string>();\n /** id of the message (for `aria-describedby`, set by the component on the input). */\n messageId = input<string>();\n /**\n * Prefixes the message with an icon (rendered by `ui-helper`, decorative).\n *\n * Off by default: a field states its status through the border and the text.\n * `messageIcon` only picks *which* glyph — it never turns the icon on.\n */\n showMessageIcon = input(false, { transform: booleanAttribute });\n /**\n * Overrides the glyph shown by `showMessageIcon`. Unset = the icon\n * `ui-helper` derives from the level (question / check / times).\n */\n messageIcon = input<string>();\n /** Renders the footer row even without a message (e.g. to host a `[uiFieldFooter]` counter). */\n hasFooter = input(false, { transform: booleanAttribute });\n /**\n * An affix is projected into `[uiFieldPrefix]` (left icon…). Only read in\n * `floatLabel` mode, to indent the floating label past it: the prefix is\n * projected content, so no scoped selector here can see it.\n */\n hasPrefix = input(false, { transform: booleanAttribute });\n\n /** @ignore */\n protected onBoxMouseDown(event: MouseEvent): void {\n if (this.disabled() || this.readonly()) return;\n const target = event.target as HTMLElement;\n if (target.closest('button, a[href], input, textarea, select, [contenteditable=\"true\"]'))\n return;\n const box = event.currentTarget as HTMLElement;\n const control = box.querySelector<HTMLElement>('input, textarea, select');\n if (!control || control.matches(':disabled')) return;\n event.preventDefault();\n control.focus();\n }\n\n /** @ignore The label is rendered inside the box, as a floating label. */\n protected readonly isFloating = computed(() => !!this.floatLabel() && !!this.label());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-field', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.disabled()) c.push('_disabled');\n if (this.readonly()) c.push('_readonly');\n if (this.multiline()) c.push('_multiline');\n if (this.autoHeight()) c.push('_auto-height');\n if (this.isFloating()) {\n c.push('_float', `_float-${this.floatLabel()}`);\n if (this.filled()) c.push('_filled');\n if (this.hasPrefix()) c.push('_has-prefix');\n }\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\">\n @if (label() && !isFloating()) {\n <ui-label\n class=\"ui-field-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n\n <!-- Positioning context of the floating label: this wrapper's box IS the field\n box's, so the label's offsets read against it whatever the box height.\n The label is a SIBLING of the box, never a child: `utils.field-inset-edges`\n hands the horizontal inset to the box's first/last child, and one extra\n element in there would silently steal it from the control. -->\n <div class=\"ui-field-control\">\n <div class=\"ui-field-box\" (mousedown)=\"onBoxMouseDown($event)\">\n <ng-content select=\"[uiFieldPrefix]\" />\n <ng-content />\n <ng-content select=\"[uiFieldSuffix]\" />\n </div>\n\n @if (isFloating()) {\n <ui-label\n class=\"ui-field-float-label\"\n [for]=\"for()\"\n [label]=\"label()!\"\n [required]=\"required()\"\n [size]=\"size()\"\n [disabled]=\"disabled()\"\n />\n }\n </div>\n\n @if (message() || hasFooter()) {\n <div class=\"ui-field-footer\">\n @if (message()) {\n <ui-helper\n class=\"ui-field-message\"\n [attr.id]=\"messageId()\"\n [message]=\"message()!\"\n [level]=\"level()\"\n [showIcon]=\"showMessageIcon()\"\n [icon]=\"messageIcon()\"\n size=\"small\"\n />\n }\n <ng-content select=\"[uiFieldFooter]\" />\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-field\n */\n\nexport * from './lib/ui-field';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;;;;;;;;;;;;;;;AAkBG;MAOU,OAAO,CAAA;AANpB,IAAA,WAAA,GAAA;;AAQE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,SAAS;iFAAC;;QAElC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAa,SAAS;kFAAC;;AAEpC,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAmB;;QAErC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEtD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE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AA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BpB,omDAqDA,EAAA,MAAA,EAAA,CAAA,4wVAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED3BY,OAAO,+GAAE,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIhB,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EACX,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,omDAAA,EAAA,MAAA,EAAA,CAAA,4wVAAA,CAAA,EAAA;;;AE1B9B;;AAEG;;ACFH;;AAEG;;"}
@@ -168,6 +168,8 @@ class UiFileUpload {
168
168
  ...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
169
169
  /** Allow selecting more than one file. */
170
170
  this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
171
+ /** Ripple Effect */
172
+ this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
171
173
  /** Native `accept` filter, e.g. "image/*,.pdf". Also enforced on drop. */
172
174
  this.accept = input(/* @ts-ignore */
173
175
  ...(ngDevMode ? [undefined, { debugName: "accept" }] : /* istanbul ignore next */ []));
@@ -549,12 +551,12 @@ class UiFileUpload {
549
551
  el.value = '';
550
552
  }
551
553
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiFileUpload, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
552
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiFileUpload, isStandalone: true, selector: "ui-file-upload", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, fileLimit: { classPropertyName: "fileLimit", publicName: "fileLimit", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, fieldName: { classPropertyName: "fieldName", publicName: "fieldName", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showFileList: { classPropertyName: "showFileList", publicName: "showFileList", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, browseLabel: { classPropertyName: "browseLabel", publicName: "browseLabel", isSignal: true, isRequired: false, transformFunction: null }, chooseLabel: { classPropertyName: "chooseLabel", publicName: "chooseLabel", isSignal: true, isRequired: false, transformFunction: null }, uploadLabel: { classPropertyName: "uploadLabel", publicName: "uploadLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, dragLinkLabel: { classPropertyName: "dragLinkLabel", publicName: "dragLinkLabel", isSignal: true, isRequired: false, transformFunction: null }, dragPromptLabel: { classPropertyName: "dragPromptLabel", publicName: "dragPromptLabel", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, filesSummaryLabel: { classPropertyName: "filesSummaryLabel", publicName: "filesSummaryLabel", isSignal: true, isRequired: false, transformFunction: null }, invalidTypeMessage: { classPropertyName: "invalidTypeMessage", publicName: "invalidTypeMessage", isSignal: true, isRequired: false, transformFunction: null }, invalidSizeMessage: { classPropertyName: "invalidSizeMessage", publicName: "invalidSizeMessage", isSignal: true, isRequired: false, transformFunction: null }, limitReachedMessage: { classPropertyName: "limitReachedMessage", publicName: "limitReachedMessage", isSignal: true, isRequired: false, transformFunction: null }, uploadErrorMessage: { classPropertyName: "uploadErrorMessage", publicName: "uploadErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, networkErrorMessage: { classPropertyName: "networkErrorMessage", publicName: "networkErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, httpErrorMessage: { classPropertyName: "httpErrorMessage", publicName: "httpErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, fileTemplate: { classPropertyName: "fileTemplate", publicName: "fileTemplate", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, toolbarTemplate: { classPropertyName: "toolbarTemplate", publicName: "toolbarTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", filesChange: "filesChange", uploadHandler: "uploadHandler", uploaded: "uploaded", uploadError: "uploadError", removed: "removed", cleared: "cleared" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"classes()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <!-- Real native control (visually hidden, keeps keyboard + screen-reader support) -->\n <input\n #fileInput\n class=\"ui-file-upload-input\"\n type=\"file\"\n [id]=\"inputId\"\n [attr.name]=\"name()\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (change)=\"onInputChange($event)\"\n />\n\n @if (mode() === 'field') {\n <!-- Field mode: compact summary + Browse trigger (whole label opens picker) -->\n <label class=\"ui-file-upload-field\" [attr.for]=\"inputId\">\n <span class=\"ui-file-upload-field-text\" [class._placeholder]=\"!hasFiles()\">{{\n fieldSummary()\n }}</span>\n <span class=\"ui-file-upload-browse\" aria-hidden=\"true\">{{ browseLabel() }}</span>\n </label>\n } @else {\n <!-- Drag mode: full drop zone -->\n <label class=\"ui-file-upload-zone\" [attr.for]=\"inputId\">\n <ui-icon class=\"ui-file-upload-zone-icon\" name=\"cloud-arrow-up\" size=\"lg\" />\n <span class=\"ui-file-upload-zone-content\">\n <span class=\"ui-file-upload-zone-title\">\n <span class=\"ui-file-upload-zone-link\">{{ dragLinkLabel() }}</span>\n <span class=\"ui-file-upload-zone-prompt\">{{ dragPromptLabel() }}</span>\n </span>\n @if (hint(); as h) {\n <span class=\"ui-file-upload-zone-hint\">{{ h }}</span>\n }\n </span>\n </label>\n\n <!-- Toolbar (custom, or default Upload/Clear actions) -->\n @if (toolbarTemplate(); as tpl) {\n <div class=\"ui-file-upload-toolbar\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: files(),\n choose: chooseFn,\n upload: uploadFn,\n clear: clearFn,\n }\"\n />\n </div>\n } @else if (showControls() && hasFiles()) {\n <div class=\"ui-file-upload-toolbar\">\n @if (!auto()) {\n <ui-button\n [label]=\"uploadLabel()\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"cloud-arrow-up\"\n [disabled]=\"!canUpload()\"\n (buttonClick)=\"upload()\"\n />\n }\n <ui-button\n [label]=\"cancelLabel()\"\n level=\"low\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"xmark\"\n (buttonClick)=\"clear()\"\n />\n </div>\n }\n }\n\n <!-- Content section: the file list -->\n @if (contentTemplate(); as tpl) {\n <div class=\"ui-file-upload-content\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: files(), remove: removeFn, clear: clearFn }\"\n />\n </div>\n } @else if (showFileList() && hasFiles()) {\n <ul class=\"ui-file-upload-content\" role=\"list\">\n @for (f of files(); track f.id) {\n <li>\n @if (fileTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: f, remove: removeFn }\"\n />\n } @else {\n <ui-file-upload-list [file]=\"f\" [size]=\"size()\" (remove)=\"remove($event)\" />\n }\n </li>\n }\n </ul>\n }\n\n <!-- Validation messages (assertive live region) -->\n @if (messages().length) {\n <div class=\"ui-file-upload-messages\" role=\"alert\" aria-live=\"assertive\">\n @for (msg of messages(); track msg) {\n <p class=\"ui-file-upload-message\">{{ msg }}</p>\n }\n </div>\n }\n</div>\n", styles: [".ui-file-upload{display:flex;flex-direction:column;gap:var(--ui-file-upload-gap, var(--units-default));width:100%;font-family:var(--fontfamily-base)}.ui-file-upload-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.ui-file-upload-field{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-file-upload-field-gap, var(--units-sm));height:var(--ui-file-upload-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-left:var(--ui-file-upload-field-padding-x, var(--units-md));overflow:hidden;background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-field:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-field{height:var(--ui-file-upload-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-file-upload-field-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ui-file-upload-field-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload-field-text._placeholder{color:var(--form-high-content-default);opacity:var(--ui-file-upload-placeholder-opacity, .75)}.ui-file-upload._small .ui-file-upload-field-text{font-size:var(--ui-file-upload-field-font-size-small, var(--size-typography-text-md))}.ui-file-upload-browse{display:inline-flex;align-items:center;align-self:stretch;flex:none;padding:0 var(--ui-file-upload-browse-padding-x, var(--units-default));background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default);font-size:var(--ui-file-upload-browse-font-size, var(--size-typography-text-default));font-weight:var(--weight-bold)}.ui-file-upload._small .ui-file-upload-browse{padding:0 var(--ui-file-upload-browse-padding-x-small, var(--units-md));font-size:var(--ui-file-upload-browse-font-size-small, var(--size-typography-text-md))}.ui-file-upload-field:hover .ui-file-upload-browse{background-color:var(--actions-high-surface-hover)}.ui-file-upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-gap, var(--units-lg));min-height:var(--ui-file-upload-zone-min-height, 112px);padding:var(--ui-file-upload-zone-padding, var(--units-default));background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) dashed var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);text-align:center;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-zone:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-zone{gap:var(--ui-file-upload-zone-gap-small, var(--units-sm));min-height:var(--ui-file-upload-zone-min-height-small, 94px)}.ui-file-upload._dragging .ui-file-upload-zone{background-color:var(--form-high-surface-focused);border-style:solid;border-color:var(--form-high-stroke-focused)}.ui-file-upload-zone-icon{color:var(--form-high-content-default);line-height:0}.ui-file-upload-zone-content{display:flex;flex-direction:column;align-items:center;gap:var(--ui-file-upload-zone-content-gap, var(--units-xs))}.ui-file-upload-zone-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-title-gap, var(--units-2xs));font-size:var(--ui-file-upload-zone-title-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload._small .ui-file-upload-zone-title{font-size:var(--ui-file-upload-zone-title-font-size-small, var(--size-typography-text-md))}.ui-file-upload-zone-link{color:var(--actions-low-content-default);font-weight:var(--weight-bold);text-decoration:underline}.ui-file-upload-zone-prompt{color:var(--form-high-content-default)}.ui-file-upload-zone-hint{color:var(--global-text-muted);font-size:var(--ui-file-upload-zone-hint-font-size, var(--size-typography-text-md))}.ui-file-upload._small .ui-file-upload-zone-hint{font-size:var(--ui-file-upload-zone-hint-font-size-small, var(--size-typography-text-sm))}.ui-file-upload-input:focus-visible~.ui-file-upload-field,.ui-file-upload-input:focus-visible~.ui-file-upload-zone{outline:none;border-color:var(--form-high-stroke-focused);box-shadow:0 0 0 var(--ui-file-upload-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--form-high-stroke-focused)}.ui-file-upload-toolbar{display:flex;flex-wrap:wrap;gap:var(--ui-file-upload-toolbar-gap, var(--units-sm))}.ui-file-upload-content{display:flex;flex-direction:column;gap:var(--ui-file-upload-content-gap, var(--units-sm));width:100%;margin:0;padding:0;list-style:none}.ui-file-upload-content li{display:block}.ui-file-upload-messages{display:flex;flex-direction:column;gap:var(--ui-file-upload-messages-gap, var(--units-2xs))}.ui-file-upload-message{margin:0;color:var(--informative-errorhigh-content-default);font-size:var(--ui-file-upload-message-font-size, var(--size-typography-text-md))}.ui-file-upload._disabled .ui-file-upload-field,.ui-file-upload._disabled .ui-file-upload-zone{background-color:var(--form-high-surface-disabled);border-color:var(--form-high-stroke-disabled);color:var(--form-high-content-disabled);cursor:not-allowed;pointer-events:none}.ui-file-upload._disabled .ui-file-upload-browse{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "component", type: UiFileUploadList, selector: "ui-file-upload-list", inputs: ["file", "size", "icon", "removable", "removeAriaLabel", "failedLabel", "uploadingLabel", "progressLabel"], outputs: ["remove"] }] }); }
554
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiFileUpload, isStandalone: true, selector: "ui-file-upload", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, fileLimit: { classPropertyName: "fileLimit", publicName: "fileLimit", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, fieldName: { classPropertyName: "fieldName", publicName: "fieldName", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showFileList: { classPropertyName: "showFileList", publicName: "showFileList", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, browseLabel: { classPropertyName: "browseLabel", publicName: "browseLabel", isSignal: true, isRequired: false, transformFunction: null }, chooseLabel: { classPropertyName: "chooseLabel", publicName: "chooseLabel", isSignal: true, isRequired: false, transformFunction: null }, uploadLabel: { classPropertyName: "uploadLabel", publicName: "uploadLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, dragLinkLabel: { classPropertyName: "dragLinkLabel", publicName: "dragLinkLabel", isSignal: true, isRequired: false, transformFunction: null }, dragPromptLabel: { classPropertyName: "dragPromptLabel", publicName: "dragPromptLabel", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, filesSummaryLabel: { classPropertyName: "filesSummaryLabel", publicName: "filesSummaryLabel", isSignal: true, isRequired: false, transformFunction: null }, invalidTypeMessage: { classPropertyName: "invalidTypeMessage", publicName: "invalidTypeMessage", isSignal: true, isRequired: false, transformFunction: null }, invalidSizeMessage: { classPropertyName: "invalidSizeMessage", publicName: "invalidSizeMessage", isSignal: true, isRequired: false, transformFunction: null }, limitReachedMessage: { classPropertyName: "limitReachedMessage", publicName: "limitReachedMessage", isSignal: true, isRequired: false, transformFunction: null }, uploadErrorMessage: { classPropertyName: "uploadErrorMessage", publicName: "uploadErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, networkErrorMessage: { classPropertyName: "networkErrorMessage", publicName: "networkErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, httpErrorMessage: { classPropertyName: "httpErrorMessage", publicName: "httpErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, fileTemplate: { classPropertyName: "fileTemplate", publicName: "fileTemplate", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, toolbarTemplate: { classPropertyName: "toolbarTemplate", publicName: "toolbarTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", filesChange: "filesChange", uploadHandler: "uploadHandler", uploaded: "uploaded", uploadError: "uploadError", removed: "removed", cleared: "cleared" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"classes()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <!-- Real native control (visually hidden, keeps keyboard + screen-reader support) -->\n <input\n #fileInput\n class=\"ui-file-upload-input\"\n type=\"file\"\n [id]=\"inputId\"\n [attr.name]=\"name()\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (change)=\"onInputChange($event)\"\n />\n\n @if (mode() === 'field') {\n <!-- Field mode: compact summary + Browse trigger (whole label opens picker) -->\n <label class=\"ui-file-upload-field\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <span class=\"ui-file-upload-field-text\" [class._placeholder]=\"!hasFiles()\">{{\n fieldSummary()\n }}</span>\n <span class=\"ui-file-upload-browse\" aria-hidden=\"true\">{{ browseLabel() }}</span>\n </label>\n } @else {\n <!-- Drag mode: full drop zone -->\n <label class=\"ui-file-upload-zone\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <ui-icon class=\"ui-file-upload-zone-icon\" name=\"cloud-arrow-up\" size=\"lg\" />\n <span class=\"ui-file-upload-zone-content\">\n <span class=\"ui-file-upload-zone-title\">\n <span class=\"ui-file-upload-zone-link\">{{ dragLinkLabel() }}</span>\n <span class=\"ui-file-upload-zone-prompt\">{{ dragPromptLabel() }}</span>\n </span>\n @if (hint(); as h) {\n <span class=\"ui-file-upload-zone-hint\">{{ h }}</span>\n }\n </span>\n </label>\n\n <!-- Toolbar (custom, or default Upload/Clear actions) -->\n @if (toolbarTemplate(); as tpl) {\n <div class=\"ui-file-upload-toolbar\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: files(),\n choose: chooseFn,\n upload: uploadFn,\n clear: clearFn,\n }\"\n />\n </div>\n } @else if (showControls() && hasFiles()) {\n <div class=\"ui-file-upload-toolbar\">\n @if (!auto()) {\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"uploadLabel()\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"cloud-arrow-up\"\n [disabled]=\"!canUpload()\"\n (buttonClick)=\"upload()\"\n />\n }\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"cancelLabel()\"\n level=\"low\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"xmark\"\n (buttonClick)=\"clear()\"\n />\n </div>\n }\n }\n\n <!-- Content section: the file list -->\n @if (contentTemplate(); as tpl) {\n <div class=\"ui-file-upload-content\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: files(), remove: removeFn, clear: clearFn }\"\n />\n </div>\n } @else if (showFileList() && hasFiles()) {\n <ul class=\"ui-file-upload-content\" role=\"list\">\n @for (f of files(); track f.id) {\n <li>\n @if (fileTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: f, remove: removeFn }\"\n />\n } @else {\n <ui-file-upload-list [file]=\"f\" [size]=\"size()\" (remove)=\"remove($event)\" />\n }\n </li>\n }\n </ul>\n }\n\n <!-- Validation messages (assertive live region) -->\n @if (messages().length) {\n <div class=\"ui-file-upload-messages\" role=\"alert\" aria-live=\"assertive\">\n @for (msg of messages(); track msg) {\n <p class=\"ui-file-upload-message\">{{ msg }}</p>\n }\n </div>\n }\n</div>\n", styles: [".ui-file-upload{display:flex;flex-direction:column;gap:var(--ui-file-upload-gap, var(--units-default));width:100%;font-family:var(--fontfamily-base)}.ui-file-upload-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.ui-file-upload-field{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-file-upload-field-gap, var(--units-sm));height:var(--ui-file-upload-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-left:var(--ui-file-upload-field-padding-x, var(--units-md));overflow:hidden;background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-field:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-field{height:var(--ui-file-upload-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-file-upload-field-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ui-file-upload-field-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload-field-text._placeholder{color:var(--form-high-content-default);opacity:var(--ui-file-upload-placeholder-opacity, .75)}.ui-file-upload._small .ui-file-upload-field-text{font-size:var(--ui-file-upload-field-font-size-small, var(--size-typography-text-md))}.ui-file-upload-browse{display:inline-flex;align-items:center;align-self:stretch;flex:none;padding:0 var(--ui-file-upload-browse-padding-x, var(--units-default));background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default);font-size:var(--ui-file-upload-browse-font-size, var(--size-typography-text-default));font-weight:var(--weight-bold)}.ui-file-upload._small .ui-file-upload-browse{padding:0 var(--ui-file-upload-browse-padding-x-small, var(--units-md));font-size:var(--ui-file-upload-browse-font-size-small, var(--size-typography-text-md))}.ui-file-upload-field:hover .ui-file-upload-browse{background-color:var(--actions-high-surface-hover)}.ui-file-upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-gap, var(--units-lg));min-height:var(--ui-file-upload-zone-min-height, 112px);padding:var(--ui-file-upload-zone-padding, var(--units-default));background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) dashed var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);text-align:center;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-zone:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-zone{gap:var(--ui-file-upload-zone-gap-small, var(--units-sm));min-height:var(--ui-file-upload-zone-min-height-small, 94px)}.ui-file-upload._dragging .ui-file-upload-zone{background-color:var(--form-high-surface-focused);border-style:solid;border-color:var(--form-high-stroke-focused)}.ui-file-upload-zone-icon{color:var(--form-high-content-default);line-height:0}.ui-file-upload-zone-content{display:flex;flex-direction:column;align-items:center;gap:var(--ui-file-upload-zone-content-gap, var(--units-xs))}.ui-file-upload-zone-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-title-gap, var(--units-2xs));font-size:var(--ui-file-upload-zone-title-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload._small .ui-file-upload-zone-title{font-size:var(--ui-file-upload-zone-title-font-size-small, var(--size-typography-text-md))}.ui-file-upload-zone-link{color:var(--actions-low-content-default);font-weight:var(--weight-bold);text-decoration:underline}.ui-file-upload-zone-prompt{color:var(--form-high-content-default)}.ui-file-upload-zone-hint{color:var(--global-text-muted);font-size:var(--ui-file-upload-zone-hint-font-size, var(--size-typography-text-md))}.ui-file-upload._small .ui-file-upload-zone-hint{font-size:var(--ui-file-upload-zone-hint-font-size-small, var(--size-typography-text-sm))}.ui-file-upload-input:focus-visible~.ui-file-upload-field,.ui-file-upload-input:focus-visible~.ui-file-upload-zone{outline:none;border-color:var(--form-high-stroke-focused);box-shadow:0 0 0 var(--ui-file-upload-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--form-high-stroke-focused)}.ui-file-upload-toolbar{display:flex;flex-wrap:wrap;gap:var(--ui-file-upload-toolbar-gap, var(--units-sm))}.ui-file-upload-content{display:flex;flex-direction:column;gap:var(--ui-file-upload-content-gap, var(--units-sm));width:100%;margin:0;padding:0;list-style:none}.ui-file-upload-content li{display:block}.ui-file-upload-messages{display:flex;flex-direction:column;gap:var(--ui-file-upload-messages-gap, var(--units-2xs))}.ui-file-upload-message{margin:0;color:var(--informative-errorhigh-content-default);font-size:var(--ui-file-upload-message-font-size, var(--size-typography-text-md))}.ui-file-upload._disabled .ui-file-upload-field,.ui-file-upload._disabled .ui-file-upload-zone{background-color:var(--form-high-surface-disabled);border-color:var(--form-high-stroke-disabled);color:var(--form-high-content-disabled);cursor:not-allowed;pointer-events:none}.ui-file-upload._disabled .ui-file-upload-browse{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { 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"] }, { kind: "component", type: UiFileUploadList, selector: "ui-file-upload-list", inputs: ["file", "size", "icon", "removable", "removeAriaLabel", "failedLabel", "uploadingLabel", "progressLabel"], outputs: ["remove"] }] }); }
553
555
  }
554
556
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiFileUpload, decorators: [{
555
557
  type: Component,
556
- args: [{ selector: 'ui-file-upload', imports: [NgTemplateOutlet, UiIcon, UiButton, UiFileUploadList], template: "<div\n [class]=\"classes()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <!-- Real native control (visually hidden, keeps keyboard + screen-reader support) -->\n <input\n #fileInput\n class=\"ui-file-upload-input\"\n type=\"file\"\n [id]=\"inputId\"\n [attr.name]=\"name()\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (change)=\"onInputChange($event)\"\n />\n\n @if (mode() === 'field') {\n <!-- Field mode: compact summary + Browse trigger (whole label opens picker) -->\n <label class=\"ui-file-upload-field\" [attr.for]=\"inputId\">\n <span class=\"ui-file-upload-field-text\" [class._placeholder]=\"!hasFiles()\">{{\n fieldSummary()\n }}</span>\n <span class=\"ui-file-upload-browse\" aria-hidden=\"true\">{{ browseLabel() }}</span>\n </label>\n } @else {\n <!-- Drag mode: full drop zone -->\n <label class=\"ui-file-upload-zone\" [attr.for]=\"inputId\">\n <ui-icon class=\"ui-file-upload-zone-icon\" name=\"cloud-arrow-up\" size=\"lg\" />\n <span class=\"ui-file-upload-zone-content\">\n <span class=\"ui-file-upload-zone-title\">\n <span class=\"ui-file-upload-zone-link\">{{ dragLinkLabel() }}</span>\n <span class=\"ui-file-upload-zone-prompt\">{{ dragPromptLabel() }}</span>\n </span>\n @if (hint(); as h) {\n <span class=\"ui-file-upload-zone-hint\">{{ h }}</span>\n }\n </span>\n </label>\n\n <!-- Toolbar (custom, or default Upload/Clear actions) -->\n @if (toolbarTemplate(); as tpl) {\n <div class=\"ui-file-upload-toolbar\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: files(),\n choose: chooseFn,\n upload: uploadFn,\n clear: clearFn,\n }\"\n />\n </div>\n } @else if (showControls() && hasFiles()) {\n <div class=\"ui-file-upload-toolbar\">\n @if (!auto()) {\n <ui-button\n [label]=\"uploadLabel()\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"cloud-arrow-up\"\n [disabled]=\"!canUpload()\"\n (buttonClick)=\"upload()\"\n />\n }\n <ui-button\n [label]=\"cancelLabel()\"\n level=\"low\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"xmark\"\n (buttonClick)=\"clear()\"\n />\n </div>\n }\n }\n\n <!-- Content section: the file list -->\n @if (contentTemplate(); as tpl) {\n <div class=\"ui-file-upload-content\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: files(), remove: removeFn, clear: clearFn }\"\n />\n </div>\n } @else if (showFileList() && hasFiles()) {\n <ul class=\"ui-file-upload-content\" role=\"list\">\n @for (f of files(); track f.id) {\n <li>\n @if (fileTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: f, remove: removeFn }\"\n />\n } @else {\n <ui-file-upload-list [file]=\"f\" [size]=\"size()\" (remove)=\"remove($event)\" />\n }\n </li>\n }\n </ul>\n }\n\n <!-- Validation messages (assertive live region) -->\n @if (messages().length) {\n <div class=\"ui-file-upload-messages\" role=\"alert\" aria-live=\"assertive\">\n @for (msg of messages(); track msg) {\n <p class=\"ui-file-upload-message\">{{ msg }}</p>\n }\n </div>\n }\n</div>\n", styles: [".ui-file-upload{display:flex;flex-direction:column;gap:var(--ui-file-upload-gap, var(--units-default));width:100%;font-family:var(--fontfamily-base)}.ui-file-upload-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.ui-file-upload-field{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-file-upload-field-gap, var(--units-sm));height:var(--ui-file-upload-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-left:var(--ui-file-upload-field-padding-x, var(--units-md));overflow:hidden;background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-field:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-field{height:var(--ui-file-upload-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-file-upload-field-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ui-file-upload-field-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload-field-text._placeholder{color:var(--form-high-content-default);opacity:var(--ui-file-upload-placeholder-opacity, .75)}.ui-file-upload._small .ui-file-upload-field-text{font-size:var(--ui-file-upload-field-font-size-small, var(--size-typography-text-md))}.ui-file-upload-browse{display:inline-flex;align-items:center;align-self:stretch;flex:none;padding:0 var(--ui-file-upload-browse-padding-x, var(--units-default));background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default);font-size:var(--ui-file-upload-browse-font-size, var(--size-typography-text-default));font-weight:var(--weight-bold)}.ui-file-upload._small .ui-file-upload-browse{padding:0 var(--ui-file-upload-browse-padding-x-small, var(--units-md));font-size:var(--ui-file-upload-browse-font-size-small, var(--size-typography-text-md))}.ui-file-upload-field:hover .ui-file-upload-browse{background-color:var(--actions-high-surface-hover)}.ui-file-upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-gap, var(--units-lg));min-height:var(--ui-file-upload-zone-min-height, 112px);padding:var(--ui-file-upload-zone-padding, var(--units-default));background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) dashed var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);text-align:center;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-zone:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-zone{gap:var(--ui-file-upload-zone-gap-small, var(--units-sm));min-height:var(--ui-file-upload-zone-min-height-small, 94px)}.ui-file-upload._dragging .ui-file-upload-zone{background-color:var(--form-high-surface-focused);border-style:solid;border-color:var(--form-high-stroke-focused)}.ui-file-upload-zone-icon{color:var(--form-high-content-default);line-height:0}.ui-file-upload-zone-content{display:flex;flex-direction:column;align-items:center;gap:var(--ui-file-upload-zone-content-gap, var(--units-xs))}.ui-file-upload-zone-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-title-gap, var(--units-2xs));font-size:var(--ui-file-upload-zone-title-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload._small .ui-file-upload-zone-title{font-size:var(--ui-file-upload-zone-title-font-size-small, var(--size-typography-text-md))}.ui-file-upload-zone-link{color:var(--actions-low-content-default);font-weight:var(--weight-bold);text-decoration:underline}.ui-file-upload-zone-prompt{color:var(--form-high-content-default)}.ui-file-upload-zone-hint{color:var(--global-text-muted);font-size:var(--ui-file-upload-zone-hint-font-size, var(--size-typography-text-md))}.ui-file-upload._small .ui-file-upload-zone-hint{font-size:var(--ui-file-upload-zone-hint-font-size-small, var(--size-typography-text-sm))}.ui-file-upload-input:focus-visible~.ui-file-upload-field,.ui-file-upload-input:focus-visible~.ui-file-upload-zone{outline:none;border-color:var(--form-high-stroke-focused);box-shadow:0 0 0 var(--ui-file-upload-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--form-high-stroke-focused)}.ui-file-upload-toolbar{display:flex;flex-wrap:wrap;gap:var(--ui-file-upload-toolbar-gap, var(--units-sm))}.ui-file-upload-content{display:flex;flex-direction:column;gap:var(--ui-file-upload-content-gap, var(--units-sm));width:100%;margin:0;padding:0;list-style:none}.ui-file-upload-content li{display:block}.ui-file-upload-messages{display:flex;flex-direction:column;gap:var(--ui-file-upload-messages-gap, var(--units-2xs))}.ui-file-upload-message{margin:0;color:var(--informative-errorhigh-content-default);font-size:var(--ui-file-upload-message-font-size, var(--size-typography-text-md))}.ui-file-upload._disabled .ui-file-upload-field,.ui-file-upload._disabled .ui-file-upload-zone{background-color:var(--form-high-surface-disabled);border-color:var(--form-high-stroke-disabled);color:var(--form-high-content-disabled);cursor:not-allowed;pointer-events:none}.ui-file-upload._disabled .ui-file-upload-browse{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}\n"] }]
557
- }], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], fileLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileLimit", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], auto: [{ type: i0.Input, args: [{ isSignal: true, alias: "auto", required: false }] }], customUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "customUpload", required: false }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], fieldName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldName", required: false }] }], withCredentials: [{ type: i0.Input, args: [{ isSignal: true, alias: "withCredentials", required: false }] }], showFileList: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFileList", required: false }] }], showControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "showControls", required: false }] }], browseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "browseLabel", required: false }] }], chooseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseLabel", required: false }] }], uploadLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadLabel", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], dragLinkLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragLinkLabel", required: false }] }], dragPromptLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragPromptLabel", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], filesSummaryLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filesSummaryLabel", required: false }] }], invalidTypeMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidTypeMessage", required: false }] }], invalidSizeMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidSizeMessage", required: false }] }], limitReachedMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "limitReachedMessage", required: false }] }], uploadErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadErrorMessage", required: false }] }], networkErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "networkErrorMessage", required: false }] }], httpErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "httpErrorMessage", required: false }] }], fileTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileTemplate", required: false }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: false }] }], toolbarTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbarTemplate", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }], filesChange: [{ type: i0.Output, args: ["filesChange"] }], uploadHandler: [{ type: i0.Output, args: ["uploadHandler"] }], uploaded: [{ type: i0.Output, args: ["uploaded"] }], uploadError: [{ type: i0.Output, args: ["uploadError"] }], removed: [{ type: i0.Output, args: ["removed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], fileInput: [{ type: i0.ViewChild, args: ['fileInput', { isSignal: true }] }] } });
558
+ args: [{ selector: 'ui-file-upload', imports: [NgTemplateOutlet, UiIcon, UiButton, UiFileUploadList], template: "<div\n [class]=\"classes()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <!-- Real native control (visually hidden, keeps keyboard + screen-reader support) -->\n <input\n #fileInput\n class=\"ui-file-upload-input\"\n type=\"file\"\n [id]=\"inputId\"\n [attr.name]=\"name()\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (change)=\"onInputChange($event)\"\n />\n\n @if (mode() === 'field') {\n <!-- Field mode: compact summary + Browse trigger (whole label opens picker) -->\n <label class=\"ui-file-upload-field\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <span class=\"ui-file-upload-field-text\" [class._placeholder]=\"!hasFiles()\">{{\n fieldSummary()\n }}</span>\n <span class=\"ui-file-upload-browse\" aria-hidden=\"true\">{{ browseLabel() }}</span>\n </label>\n } @else {\n <!-- Drag mode: full drop zone -->\n <label class=\"ui-file-upload-zone\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <ui-icon class=\"ui-file-upload-zone-icon\" name=\"cloud-arrow-up\" size=\"lg\" />\n <span class=\"ui-file-upload-zone-content\">\n <span class=\"ui-file-upload-zone-title\">\n <span class=\"ui-file-upload-zone-link\">{{ dragLinkLabel() }}</span>\n <span class=\"ui-file-upload-zone-prompt\">{{ dragPromptLabel() }}</span>\n </span>\n @if (hint(); as h) {\n <span class=\"ui-file-upload-zone-hint\">{{ h }}</span>\n }\n </span>\n </label>\n\n <!-- Toolbar (custom, or default Upload/Clear actions) -->\n @if (toolbarTemplate(); as tpl) {\n <div class=\"ui-file-upload-toolbar\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: files(),\n choose: chooseFn,\n upload: uploadFn,\n clear: clearFn,\n }\"\n />\n </div>\n } @else if (showControls() && hasFiles()) {\n <div class=\"ui-file-upload-toolbar\">\n @if (!auto()) {\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"uploadLabel()\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"cloud-arrow-up\"\n [disabled]=\"!canUpload()\"\n (buttonClick)=\"upload()\"\n />\n }\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"cancelLabel()\"\n level=\"low\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"xmark\"\n (buttonClick)=\"clear()\"\n />\n </div>\n }\n }\n\n <!-- Content section: the file list -->\n @if (contentTemplate(); as tpl) {\n <div class=\"ui-file-upload-content\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: files(), remove: removeFn, clear: clearFn }\"\n />\n </div>\n } @else if (showFileList() && hasFiles()) {\n <ul class=\"ui-file-upload-content\" role=\"list\">\n @for (f of files(); track f.id) {\n <li>\n @if (fileTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: f, remove: removeFn }\"\n />\n } @else {\n <ui-file-upload-list [file]=\"f\" [size]=\"size()\" (remove)=\"remove($event)\" />\n }\n </li>\n }\n </ul>\n }\n\n <!-- Validation messages (assertive live region) -->\n @if (messages().length) {\n <div class=\"ui-file-upload-messages\" role=\"alert\" aria-live=\"assertive\">\n @for (msg of messages(); track msg) {\n <p class=\"ui-file-upload-message\">{{ msg }}</p>\n }\n </div>\n }\n</div>\n", styles: [".ui-file-upload{display:flex;flex-direction:column;gap:var(--ui-file-upload-gap, var(--units-default));width:100%;font-family:var(--fontfamily-base)}.ui-file-upload-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.ui-file-upload-field{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-file-upload-field-gap, var(--units-sm));height:var(--ui-file-upload-field-height, var(--ui-form-field-height, var(--size-components-default)));padding-left:var(--ui-file-upload-field-padding-x, var(--units-md));overflow:hidden;background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-field:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-field{height:var(--ui-file-upload-field-height-small, var(--ui-form-field-height-small, var(--size-components-sm)))}.ui-file-upload-field-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ui-file-upload-field-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload-field-text._placeholder{color:var(--form-high-content-default);opacity:var(--ui-file-upload-placeholder-opacity, .75)}.ui-file-upload._small .ui-file-upload-field-text{font-size:var(--ui-file-upload-field-font-size-small, var(--size-typography-text-md))}.ui-file-upload-browse{display:inline-flex;align-items:center;align-self:stretch;flex:none;padding:0 var(--ui-file-upload-browse-padding-x, var(--units-default));background-color:var(--actions-high-surface-default);color:var(--actions-high-content-default);font-size:var(--ui-file-upload-browse-font-size, var(--size-typography-text-default));font-weight:var(--weight-bold)}.ui-file-upload._small .ui-file-upload-browse{padding:0 var(--ui-file-upload-browse-padding-x-small, var(--units-md));font-size:var(--ui-file-upload-browse-font-size-small, var(--size-typography-text-md))}.ui-file-upload-field:hover .ui-file-upload-browse{background-color:var(--actions-high-surface-hover)}.ui-file-upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-gap, var(--units-lg));min-height:var(--ui-file-upload-zone-min-height, 112px);padding:var(--ui-file-upload-zone-padding, var(--units-default));background-color:var(--form-high-surface-default);border:var(--ui-file-upload-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) dashed var(--form-high-stroke-default);border-radius:var(--ui-file-upload-radius, var(--ui-form-field-radius, var(--radius-sm)));color:var(--form-high-content-default);text-align:center;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-file-upload-zone:hover{background-color:var(--form-high-surface-hover);border-color:var(--form-high-stroke-hover)}.ui-file-upload._small .ui-file-upload-zone{gap:var(--ui-file-upload-zone-gap-small, var(--units-sm));min-height:var(--ui-file-upload-zone-min-height-small, 94px)}.ui-file-upload._dragging .ui-file-upload-zone{background-color:var(--form-high-surface-focused);border-style:solid;border-color:var(--form-high-stroke-focused)}.ui-file-upload-zone-icon{color:var(--form-high-content-default);line-height:0}.ui-file-upload-zone-content{display:flex;flex-direction:column;align-items:center;gap:var(--ui-file-upload-zone-content-gap, var(--units-xs))}.ui-file-upload-zone-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ui-file-upload-zone-title-gap, var(--units-2xs));font-size:var(--ui-file-upload-zone-title-font-size, var(--size-typography-text-default));font-weight:var(--weight-regular)}.ui-file-upload._small .ui-file-upload-zone-title{font-size:var(--ui-file-upload-zone-title-font-size-small, var(--size-typography-text-md))}.ui-file-upload-zone-link{color:var(--actions-low-content-default);font-weight:var(--weight-bold);text-decoration:underline}.ui-file-upload-zone-prompt{color:var(--form-high-content-default)}.ui-file-upload-zone-hint{color:var(--global-text-muted);font-size:var(--ui-file-upload-zone-hint-font-size, var(--size-typography-text-md))}.ui-file-upload._small .ui-file-upload-zone-hint{font-size:var(--ui-file-upload-zone-hint-font-size-small, var(--size-typography-text-sm))}.ui-file-upload-input:focus-visible~.ui-file-upload-field,.ui-file-upload-input:focus-visible~.ui-file-upload-zone{outline:none;border-color:var(--form-high-stroke-focused);box-shadow:0 0 0 var(--ui-file-upload-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--form-high-stroke-focused)}.ui-file-upload-toolbar{display:flex;flex-wrap:wrap;gap:var(--ui-file-upload-toolbar-gap, var(--units-sm))}.ui-file-upload-content{display:flex;flex-direction:column;gap:var(--ui-file-upload-content-gap, var(--units-sm));width:100%;margin:0;padding:0;list-style:none}.ui-file-upload-content li{display:block}.ui-file-upload-messages{display:flex;flex-direction:column;gap:var(--ui-file-upload-messages-gap, var(--units-2xs))}.ui-file-upload-message{margin:0;color:var(--informative-errorhigh-content-default);font-size:var(--ui-file-upload-message-font-size, var(--size-typography-text-md))}.ui-file-upload._disabled .ui-file-upload-field,.ui-file-upload._disabled .ui-file-upload-zone{background-color:var(--form-high-surface-disabled);border-color:var(--form-high-stroke-disabled);color:var(--form-high-content-disabled);cursor:not-allowed;pointer-events:none}.ui-file-upload._disabled .ui-file-upload-browse{background-color:var(--actions-high-surface-disabled);color:var(--actions-high-content-disabled)}\n"] }]
559
+ }], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], fileLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileLimit", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], auto: [{ type: i0.Input, args: [{ isSignal: true, alias: "auto", required: false }] }], customUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "customUpload", required: false }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], fieldName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldName", required: false }] }], withCredentials: [{ type: i0.Input, args: [{ isSignal: true, alias: "withCredentials", required: false }] }], showFileList: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFileList", required: false }] }], showControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "showControls", required: false }] }], browseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "browseLabel", required: false }] }], chooseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseLabel", required: false }] }], uploadLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadLabel", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], dragLinkLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragLinkLabel", required: false }] }], dragPromptLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragPromptLabel", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], filesSummaryLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filesSummaryLabel", required: false }] }], invalidTypeMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidTypeMessage", required: false }] }], invalidSizeMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidSizeMessage", required: false }] }], limitReachedMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "limitReachedMessage", required: false }] }], uploadErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadErrorMessage", required: false }] }], networkErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "networkErrorMessage", required: false }] }], httpErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "httpErrorMessage", required: false }] }], fileTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileTemplate", required: false }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: false }] }], toolbarTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbarTemplate", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }], filesChange: [{ type: i0.Output, args: ["filesChange"] }], uploadHandler: [{ type: i0.Output, args: ["uploadHandler"] }], uploaded: [{ type: i0.Output, args: ["uploaded"] }], uploadError: [{ type: i0.Output, args: ["uploadError"] }], removed: [{ type: i0.Output, args: ["removed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], fileInput: [{ type: i0.ViewChild, args: ['fileInput', { isSignal: true }] }] } });
558
560
 
559
561
  /*
560
562
  * Public API Surface of ui-kit/ui-file-upload