@4sh/ui-kit 0.12.1 → 0.13.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 (32) hide show
  1. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
  2. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  3. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1 -1
  4. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
  6. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +2 -2
  8. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +75 -15
  10. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +2 -2
  12. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  16. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  18. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -3
  20. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +2 -2
  22. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +1 -1
  24. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  25. package/mcp/data/text-search-docs.json +37 -7
  26. package/mcp/data/ui-config.json +154 -1
  27. package/mcp/package.json +1 -1
  28. package/package.json +1 -1
  29. package/styles/component-vars.scss +8 -1
  30. package/styles/utils/_mixins.scss +9 -10
  31. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +47 -15
  32. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
@@ -123,11 +123,11 @@ class UiField {
123
123
  control.focus();
124
124
  }
125
125
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
126
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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(--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(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-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(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, 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(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-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(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, 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.7", 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(--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(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-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)));overflow:clip;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(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, 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(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-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(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, 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"] }] }); }
127
127
  }
128
128
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiField, decorators: [{
129
129
  type: Component,
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(--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(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-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(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, 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(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-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(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, 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"] }]
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(--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(--ui-field-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-field-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)));overflow:clip;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(--ui-field-stroke, var(--form-success-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-success-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-success-stroke-focused))}.ui-field._error .ui-field-box{--_stroke: var(--ui-field-stroke, var(--form-error-stroke-default));--_stroke-hover: var(--ui-field-stroke-hover, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-field-stroke-focus, var(--form-error-stroke-focused))}.ui-field._disabled{--_surface: var(--ui-field-surface-disabled, var(--form-high-surface-disabled))}.ui-field._disabled .ui-field-box{--_stroke: var(--ui-field-stroke-disabled, 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(--ui-field-float-label-color-raised, var(--form-high-content-default));--_float-content-rest: var(--ui-field-float-label-color, var(--form-low-content-default));--_float-content-focus: var(--ui-field-float-label-color-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(--ui-field-float-label-color-raised, var(--form-success-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-success-content-focused))}.ui-field._float._error{--_float-content: var(--ui-field-float-label-color-raised, var(--form-error-content-default));--_float-content-focus: var(--ui-field-float-label-color-focus, var(--form-error-content-focused))}.ui-field._float._disabled{--_float-content: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-rest: var(--ui-field-float-label-color-disabled, var(--form-high-content-disabled));--_float-content-focus: var(--ui-field-float-label-color-disabled, 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
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 }] }] } });
132
132
 
133
133
  /*
@@ -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 /**\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,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACzD;;;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A,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,ogXAAA,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,ogXAAA,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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aAAA,EAAA,UAAA,EAAA,aAAA,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,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,khXAAA,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,khXAAA,CAAA,EAAA;;;AE1B9B;;AAEG;;ACFH;;AAEG;;"}
@@ -204,13 +204,13 @@ class UiInputDate extends BaseFormField {
204
204
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputDate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
205
205
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInputDate, isStandalone: true, selector: "ui-input-date", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, valueType: { classPropertyName: "valueType", publicName: "valueType", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, iconTemplate: { classPropertyName: "iconTemplate", publicName: "iconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
206
206
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputDate), multi: true },
207
- ], queries: [{ propertyName: "iconTemplateContent", first: true, predicate: ["icon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n", styles: [".ui-input-date-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-date-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-date-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-date-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-date-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-date-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-date-native._small{font-size:var(--ui-input-date-font-size-small, var(--size-typography-text-md))}.ui-input-date-native{-webkit-appearance:none;appearance:none}.ui-input-date-native::-webkit-date-and-time-value{text-align:left;margin:0}.ui-input-date-native::-webkit-calendar-picker-indicator{display:none}.ui-input-date-native{margin-inline-end:-2.5rem;clip-path:inset(0 2.5rem 0 0)}.ui-input-date-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;border-radius:0 calc(var(--ui-form-field-radius, var(--radius-sm)) - var(--ui-control-stroke-width, var(--stroke-default))) calc(var(--ui-form-field-radius, var(--radius-sm)) - var(--ui-control-stroke-width, var(--stroke-default))) 0;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-date-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-date-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-date-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}:host-context([dir=rtl]) .ui-input-date-native{clip-path:inset(0 0 0 2.5rem)}:host-context([data-theme=dark]) .ui-input-date-native{color-scheme:dark}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
207
+ ], queries: [{ propertyName: "iconTemplateContent", first: true, predicate: ["icon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n", styles: [".ui-input-date-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-date-native:first-child{padding-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-date-native:last-child{padding-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-date-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-date-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-date-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-date-native._small{font-size:var(--ui-input-date-font-size-small, var(--size-typography-text-md))}.ui-input-date-native{-webkit-appearance:none;appearance:none}.ui-input-date-native::-webkit-date-and-time-value{text-align:left;margin:0}.ui-input-date-native::-webkit-calendar-picker-indicator{display:none}.ui-input-date-native{margin-inline-end:-2.5rem;clip-path:inset(0 2.5rem 0 0)}.ui-input-date-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-date-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-date-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-date-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}:host-context([dir=rtl]) .ui-input-date-native{clip-path:inset(0 0 0 2.5rem)}:host-context([data-theme=dark]) .ui-input-date-native{color-scheme:dark}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
208
208
  }
209
209
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputDate, decorators: [{
210
210
  type: Component,
211
211
  args: [{ selector: 'ui-input-date', imports: [UiField, UiIcon, NgTemplateOutlet], providers: [
212
212
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputDate), multi: true },
213
- ], template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n", styles: [".ui-input-date-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-date-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-date-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-date-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-date-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-date-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-date-native._small{font-size:var(--ui-input-date-font-size-small, var(--size-typography-text-md))}.ui-input-date-native{-webkit-appearance:none;appearance:none}.ui-input-date-native::-webkit-date-and-time-value{text-align:left;margin:0}.ui-input-date-native::-webkit-calendar-picker-indicator{display:none}.ui-input-date-native{margin-inline-end:-2.5rem;clip-path:inset(0 2.5rem 0 0)}.ui-input-date-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;border-radius:0 calc(var(--ui-form-field-radius, var(--radius-sm)) - var(--ui-control-stroke-width, var(--stroke-default))) calc(var(--ui-form-field-radius, var(--radius-sm)) - var(--ui-control-stroke-width, var(--stroke-default))) 0;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-date-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-date-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-date-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}:host-context([dir=rtl]) .ui-input-date-native{clip-path:inset(0 0 0 2.5rem)}:host-context([data-theme=dark]) .ui-input-date-native{color-scheme:dark}\n"] }]
213
+ ], template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n", styles: [".ui-input-date-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-date-native:first-child{padding-inline-start:var(--_field-inset-inline-start, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-date-native:last-child{padding-inline-end:var(--_field-inset-inline-end, var(--ui-form-field-padding-x, var(--units-md)))}.ui-input-date-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-date-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-date-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-date-native._small{font-size:var(--ui-input-date-font-size-small, var(--size-typography-text-md))}.ui-input-date-native{-webkit-appearance:none;appearance:none}.ui-input-date-native::-webkit-date-and-time-value{text-align:left;margin:0}.ui-input-date-native::-webkit-calendar-picker-indicator{display:none}.ui-input-date-native{margin-inline-end:-2.5rem;clip-path:inset(0 2.5rem 0 0)}.ui-input-date-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-date-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-date-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-date-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}:host-context([dir=rtl]) .ui-input-date-native{clip-path:inset(0 0 0 2.5rem)}:host-context([data-theme=dark]) .ui-input-date-native{color-scheme:dark}\n"] }]
214
214
  }], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], valueType: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueType", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconAriaLabel", required: false }] }], iconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTemplate", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], iconTemplateContent: [{ type: i0.ContentChild, args: ['icon', { isSignal: true }] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
215
215
 
216
216
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-input-date.mjs","sources":["../../../projects/ui-kit/forms/ui-input-date/src/lib/ui-input-date.ts","../../../projects/ui-kit/forms/ui-input-date/src/lib/ui-input-date.html","../../../projects/ui-kit/forms/ui-input-date/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-date/src/4sh-ui-kit-forms-ui-input-date.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n ElementRef,\n forwardRef,\n input,\n numberAttribute,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n BaseFormField,\n parseIsoDate,\n parseIsoDateTime,\n parseIsoTime,\n startOfDay,\n toIsoDate,\n toIsoDateTime,\n toIsoTime,\n} from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport type { UiInputIconContext } from '@4sh/ui-kit/forms/ui-input';\nimport { UiIcon, type UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\n/** Granularity of the field — picks which native control the browser renders. */\nexport type InputDateMode = 'date' | 'time' | 'datetime';\n\n/**\n * Shape of the emitted value. **Identical to `ui-datepicker`'s**, so a host can swap one for\n * the other (native picker on mobile, overlay on desktop) without converting anything.\n */\nexport type InputDateValueType = 'date' | 'iso';\n\n/** Value carried by the field, whichever `valueType` is in force. */\nexport type InputDateValue = Date | string | null;\n\n/** `mode` → the native `type` that draws the OS picker. */\nconst NATIVE_TYPE: Record<InputDateMode, string> = {\n date: 'date',\n time: 'time',\n datetime: 'datetime-local',\n};\n\n/**\n * ui-input-date — **native** date/time field on the `ui-field` shell (label + box + helper).\n *\n * The picker belongs to the OS: the system wheel on mobile — which no overlay matches —\n * and the browser's own calendar on desktop. That is the whole reason this component\n * exists next to [`ui-datepicker`](../ui-datepicker), which owns the opposite trade: a\n * calendar carried by the design system, with ranges, multi-month and inline modes.\n *\n * It is a sibling of `ui-input`, not a variant of it: three things a text field cannot do\n * are settled here.\n *\n * 1. **The value is a date, not a string.** `valueType` commits to `Date` or to an ISO\n * string, exactly as `ui-datepicker` does — that alignment is what lets a host branch\n * between the two on viewport without converting anything.\n * 2. **It emits on `change`, never on `input`.** A native temporal control blanks its own\n * value while the entry is incomplete, so an `input`-driven field fires a burst of\n * empty values as the user types — indistinguishable from clearing the field, and quite\n * visible on an autosave or a dependent control.\n * 3. **The label stays raised.** The browser draws its own `jj/mm/aaaa` template in the\n * box, so a floating label at rest would land on top of it.\n *\n * No `placeholder`: the browser ignores it on these types, that template holding the spot.\n *\n * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).\n */\n@Component({\n selector: 'ui-input-date',\n imports: [UiField, UiIcon, NgTemplateOutlet],\n templateUrl: './ui-input-date.html',\n styleUrl: './ui-input-date.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputDate), multi: true },\n ],\n})\nexport class UiInputDate extends BaseFormField<InputDateValue> {\n /** Granularity: a day, a time of day, or both. */\n mode = input<InputDateMode>('date');\n /**\n * Shape of the emitted value: `'date'` (a plain `Date`) or `'iso'` (`yyyy-MM-dd`, or\n * `yyyy-MM-ddTHH:mm` as soon as a time is part of it). Incoming values are accepted in\n * **either** shape whatever this says — only the emitted side commits.\n */\n valueType = input<InputDateValueType>('date');\n /** Earliest accepted value, as a `Date` or in the ISO shape of the current `mode`. */\n min = input<Date | string>();\n /** Latest accepted value, same two shapes as {@link min}. */\n max = input<Date | string>();\n /**\n * Native `step`: days on `date`, **seconds** on `time` / `datetime` (`900` = quarters of\n * an hour; the browser's own default is `60`, i.e. whole minutes).\n */\n step = input<number, unknown>(undefined, { transform: numberAttribute });\n\n icon = input<string>();\n showIcon = input(true, { transform: booleanAttribute });\n /** Accessible name of the picker button. Defaults per {@link mode}. */\n iconAriaLabel = input<string>();\n /** Custom icon, as an input: same context as `ui-input`'s / `ui-datepicker`'s. */\n iconTemplate = input<TemplateRef<UiInputIconContext>>();\n\n /** Emitted when the browser commits a value — never mid-entry. */\n valueChange = output<InputDateValue>();\n /** Emitted when the field receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the field loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** Custom icon: `<ng-template #icon let-name let-size=\"size\">`. */\n private readonly iconTemplateContent = contentChild<TemplateRef<UiInputIconContext>>('icon');\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n\n /** @ignore Icon size aligned with the field size, same pairing as `ui-input`. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n /** @ignore Calendar, or clock when the field only carries a time. */\n protected readonly resolvedIcon = computed(\n () => this.icon() ?? (this.mode() === 'time' ? 'clock' : 'calendar'),\n );\n /** @ignore */\n protected readonly resolvedIconAriaLabel = computed(\n () =>\n this.iconAriaLabel() ??\n (this.mode() === 'time' ? \"Ouvrir le sélecteur d'heure\" : 'Ouvrir le calendrier'),\n );\n /** @ignore Input wins over the projected `#icon` template. */\n protected readonly resolvedIconTemplate = computed(\n () => this.iconTemplate() ?? this.iconTemplateContent(),\n );\n /** @ignore */\n protected readonly iconContext = computed<UiInputIconContext>(() => ({\n $implicit: this.resolvedIcon(),\n size: this.iconSize(),\n disabled: this.isDisabled(),\n }));\n\n /** @ignore The native `type` the OS picker hangs off. */\n protected readonly nativeType = computed(() => NATIVE_TYPE[this.mode()]);\n /** @ignore Whether the value carries a time — decides both serializers. */\n private readonly hasTimeComponent = computed(() => this.mode() !== 'date');\n\n /** @ignore Model → the string the native control reads, `''` when there is no value. */\n protected readonly nativeValue = computed(() => {\n const date = this.parseValue(this.modelValue() ?? null);\n return date ? this.toNative(date) : '';\n });\n /** @ignore Bounds go through the same serializer as the value: a caller may hand a `Date`\n * or an already-native string, the attribute only ever sees the latter. */\n protected readonly nativeMin = computed(() => this.toNativeBound(this.min()));\n /** @ignore */\n protected readonly nativeMax = computed(() => this.toNativeBound(this.max()));\n\n /** @ignore Full `aria-describedby`: the message id, only when a message is rendered. */\n protected readonly resolvedAriaDescribedBy = computed(() =>\n this.displayMessage() ? this.messageId() : null,\n );\n\n /** Focuses the field. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n openPicker(): void {\n if (this.isDisabled() || this.readonly()) return;\n const el = this.inputEl().nativeElement;\n el.focus();\n try {\n el.showPicker();\n } catch {\n /* no picker to show */\n }\n }\n\n /** Native `<input>` element, for a composite host that needs direct DOM access. */\n nativeInputElement(): HTMLInputElement {\n return this.inputEl().nativeElement;\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-input-date';\n }\n\n /**\n * @ignore The browser committed a value — a complete one, or an empty one because the\n * field was cleared. This is the only place a value leaves the component: `input` fires\n * on every keystroke with the blanks in between, and is deliberately not listened to.\n */\n protected onNativeChange(): void {\n const raw = this.inputEl().nativeElement.value;\n const date = raw ? this.fromNative(raw) : null;\n const value = date ? this.serializeValue(date) : null;\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /** @ignore Internal `Date` → the shape `valueType` commits to. Mirrors `ui-datepicker`'s\n * own `serializeValue`, down to the fresh instance: the caller never gets a reference it\n * could mutate behind our back. */\n private serializeValue(date: Date): InputDateValue {\n if (this.valueType() === 'iso') return this.toNative(date);\n return this.hasTimeComponent() ? new Date(date) : startOfDay(date);\n }\n\n /** @ignore Incoming value, `Date` or ISO string, auto-detected — cloned when already a\n * `Date`, symmetric with {@link serializeValue}. */\n private parseValue(value: InputDateValue | undefined): Date | null {\n if (value === undefined || value === null || value === '') return null;\n return value instanceof Date ? new Date(value) : this.fromNative(value);\n }\n\n /** @ignore `Date` → the exact string the native control of this `mode` accepts. */\n private toNative(date: Date): string {\n if (this.mode() === 'time') return toIsoTime(date);\n return this.hasTimeComponent() ? toIsoDateTime(date) : toIsoDate(date);\n }\n\n /** @ignore The reverse. `null` on anything malformed — a bad value degrades to \"no value\"\n * rather than throwing, the browser being the one that produced it. */\n private fromNative(value: string): Date | null {\n if (this.mode() === 'time') return parseIsoTime(value);\n return this.hasTimeComponent() ? parseIsoDateTime(value) : parseIsoDate(value);\n }\n\n /** @ignore A bound is optional, and a string one is already native. */\n private toNativeBound(bound: Date | string | undefined): string | null {\n if (!bound) return null;\n return bound instanceof Date ? this.toNative(bound) : bound;\n }\n}\n","<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input-date\n */\n\nexport * from './lib/ui-input-date';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAyCA;AACA,MAAM,WAAW,GAAkC;AACjD,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,QAAQ,EAAE,gB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AA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,MAAM,iEAGf,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvHvF;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-input-date.mjs","sources":["../../../projects/ui-kit/forms/ui-input-date/src/lib/ui-input-date.ts","../../../projects/ui-kit/forms/ui-input-date/src/lib/ui-input-date.html","../../../projects/ui-kit/forms/ui-input-date/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-date/src/4sh-ui-kit-forms-ui-input-date.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n ElementRef,\n forwardRef,\n input,\n numberAttribute,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n BaseFormField,\n parseIsoDate,\n parseIsoDateTime,\n parseIsoTime,\n startOfDay,\n toIsoDate,\n toIsoDateTime,\n toIsoTime,\n} from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport type { UiInputIconContext } from '@4sh/ui-kit/forms/ui-input';\nimport { UiIcon, type UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\n/** Granularity of the field — picks which native control the browser renders. */\nexport type InputDateMode = 'date' | 'time' | 'datetime';\n\n/**\n * Shape of the emitted value. **Identical to `ui-datepicker`'s**, so a host can swap one for\n * the other (native picker on mobile, overlay on desktop) without converting anything.\n */\nexport type InputDateValueType = 'date' | 'iso';\n\n/** Value carried by the field, whichever `valueType` is in force. */\nexport type InputDateValue = Date | string | null;\n\n/** `mode` → the native `type` that draws the OS picker. */\nconst NATIVE_TYPE: Record<InputDateMode, string> = {\n date: 'date',\n time: 'time',\n datetime: 'datetime-local',\n};\n\n/**\n * ui-input-date — **native** date/time field on the `ui-field` shell (label + box + helper).\n *\n * The picker belongs to the OS: the system wheel on mobile — which no overlay matches —\n * and the browser's own calendar on desktop. That is the whole reason this component\n * exists next to [`ui-datepicker`](../ui-datepicker), which owns the opposite trade: a\n * calendar carried by the design system, with ranges, multi-month and inline modes.\n *\n * It is a sibling of `ui-input`, not a variant of it: three things a text field cannot do\n * are settled here.\n *\n * 1. **The value is a date, not a string.** `valueType` commits to `Date` or to an ISO\n * string, exactly as `ui-datepicker` does — that alignment is what lets a host branch\n * between the two on viewport without converting anything.\n * 2. **It emits on `change`, never on `input`.** A native temporal control blanks its own\n * value while the entry is incomplete, so an `input`-driven field fires a burst of\n * empty values as the user types — indistinguishable from clearing the field, and quite\n * visible on an autosave or a dependent control.\n * 3. **The label stays raised.** The browser draws its own `jj/mm/aaaa` template in the\n * box, so a floating label at rest would land on top of it.\n *\n * No `placeholder`: the browser ignores it on these types, that template holding the spot.\n *\n * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).\n */\n@Component({\n selector: 'ui-input-date',\n imports: [UiField, UiIcon, NgTemplateOutlet],\n templateUrl: './ui-input-date.html',\n styleUrl: './ui-input-date.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputDate), multi: true },\n ],\n})\nexport class UiInputDate extends BaseFormField<InputDateValue> {\n /** Granularity: a day, a time of day, or both. */\n mode = input<InputDateMode>('date');\n /**\n * Shape of the emitted value: `'date'` (a plain `Date`) or `'iso'` (`yyyy-MM-dd`, or\n * `yyyy-MM-ddTHH:mm` as soon as a time is part of it). Incoming values are accepted in\n * **either** shape whatever this says — only the emitted side commits.\n */\n valueType = input<InputDateValueType>('date');\n /** Earliest accepted value, as a `Date` or in the ISO shape of the current `mode`. */\n min = input<Date | string>();\n /** Latest accepted value, same two shapes as {@link min}. */\n max = input<Date | string>();\n /**\n * Native `step`: days on `date`, **seconds** on `time` / `datetime` (`900` = quarters of\n * an hour; the browser's own default is `60`, i.e. whole minutes).\n */\n step = input<number, unknown>(undefined, { transform: numberAttribute });\n\n icon = input<string>();\n showIcon = input(true, { transform: booleanAttribute });\n /** Accessible name of the picker button. Defaults per {@link mode}. */\n iconAriaLabel = input<string>();\n /** Custom icon, as an input: same context as `ui-input`'s / `ui-datepicker`'s. */\n iconTemplate = input<TemplateRef<UiInputIconContext>>();\n\n /** Emitted when the browser commits a value — never mid-entry. */\n valueChange = output<InputDateValue>();\n /** Emitted when the field receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the field loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** Custom icon: `<ng-template #icon let-name let-size=\"size\">`. */\n private readonly iconTemplateContent = contentChild<TemplateRef<UiInputIconContext>>('icon');\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n\n /** @ignore Icon size aligned with the field size, same pairing as `ui-input`. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n /** @ignore Calendar, or clock when the field only carries a time. */\n protected readonly resolvedIcon = computed(\n () => this.icon() ?? (this.mode() === 'time' ? 'clock' : 'calendar'),\n );\n /** @ignore */\n protected readonly resolvedIconAriaLabel = computed(\n () =>\n this.iconAriaLabel() ??\n (this.mode() === 'time' ? \"Ouvrir le sélecteur d'heure\" : 'Ouvrir le calendrier'),\n );\n /** @ignore Input wins over the projected `#icon` template. */\n protected readonly resolvedIconTemplate = computed(\n () => this.iconTemplate() ?? this.iconTemplateContent(),\n );\n /** @ignore */\n protected readonly iconContext = computed<UiInputIconContext>(() => ({\n $implicit: this.resolvedIcon(),\n size: this.iconSize(),\n disabled: this.isDisabled(),\n }));\n\n /** @ignore The native `type` the OS picker hangs off. */\n protected readonly nativeType = computed(() => NATIVE_TYPE[this.mode()]);\n /** @ignore Whether the value carries a time — decides both serializers. */\n private readonly hasTimeComponent = computed(() => this.mode() !== 'date');\n\n /** @ignore Model → the string the native control reads, `''` when there is no value. */\n protected readonly nativeValue = computed(() => {\n const date = this.parseValue(this.modelValue() ?? null);\n return date ? this.toNative(date) : '';\n });\n /** @ignore Bounds go through the same serializer as the value: a caller may hand a `Date`\n * or an already-native string, the attribute only ever sees the latter. */\n protected readonly nativeMin = computed(() => this.toNativeBound(this.min()));\n /** @ignore */\n protected readonly nativeMax = computed(() => this.toNativeBound(this.max()));\n\n /** @ignore Full `aria-describedby`: the message id, only when a message is rendered. */\n protected readonly resolvedAriaDescribedBy = computed(() =>\n this.displayMessage() ? this.messageId() : null,\n );\n\n /** Focuses the field. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n openPicker(): void {\n if (this.isDisabled() || this.readonly()) return;\n const el = this.inputEl().nativeElement;\n el.focus();\n try {\n el.showPicker();\n } catch {\n /* no picker to show */\n }\n }\n\n /** Native `<input>` element, for a composite host that needs direct DOM access. */\n nativeInputElement(): HTMLInputElement {\n return this.inputEl().nativeElement;\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-input-date';\n }\n\n /**\n * @ignore The browser committed a value — a complete one, or an empty one because the\n * field was cleared. This is the only place a value leaves the component: `input` fires\n * on every keystroke with the blanks in between, and is deliberately not listened to.\n */\n protected onNativeChange(): void {\n const raw = this.inputEl().nativeElement.value;\n const date = raw ? this.fromNative(raw) : null;\n const value = date ? this.serializeValue(date) : null;\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /** @ignore Internal `Date` → the shape `valueType` commits to. Mirrors `ui-datepicker`'s\n * own `serializeValue`, down to the fresh instance: the caller never gets a reference it\n * could mutate behind our back. */\n private serializeValue(date: Date): InputDateValue {\n if (this.valueType() === 'iso') return this.toNative(date);\n return this.hasTimeComponent() ? new Date(date) : startOfDay(date);\n }\n\n /** @ignore Incoming value, `Date` or ISO string, auto-detected — cloned when already a\n * `Date`, symmetric with {@link serializeValue}. */\n private parseValue(value: InputDateValue | undefined): Date | null {\n if (value === undefined || value === null || value === '') return null;\n return value instanceof Date ? new Date(value) : this.fromNative(value);\n }\n\n /** @ignore `Date` → the exact string the native control of this `mode` accepts. */\n private toNative(date: Date): string {\n if (this.mode() === 'time') return toIsoTime(date);\n return this.hasTimeComponent() ? toIsoDateTime(date) : toIsoDate(date);\n }\n\n /** @ignore The reverse. `null` on anything malformed — a bad value degrades to \"no value\"\n * rather than throwing, the browser being the one that produced it. */\n private fromNative(value: string): Date | null {\n if (this.mode() === 'time') return parseIsoTime(value);\n return this.hasTimeComponent() ? parseIsoDateTime(value) : parseIsoDate(value);\n }\n\n /** @ignore A bound is optional, and a string one is already native. */\n private toNativeBound(bound: Date | string | undefined): string | null {\n if (!bound) return null;\n return bound instanceof Date ? this.toNative(bound) : bound;\n }\n}\n","<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input-date\n */\n\nexport * from './lib/ui-input-date';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAyCA;AACA,MAAM,WAAW,GAAkC;AACjD,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,QAAQ,EAAE,gBAAgB;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAUG,MAAO,WAAY,SAAQ,aAA6B,CAAA;AAT9D,IAAA,WAAA,GAAA;;;QAWE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,MA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