{"version":3,"file":"eui-components-eui-input-button.mjs","sources":["../../eui-input-button/eui-input-button.component.ts","../../eui-input-button/eui-input-button.component.html","../../eui-input-button/index.ts","../../eui-input-button/eui-components-eui-input-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, Input, booleanAttribute } from '@angular/core';\n\n/**\n * A layout component that positions button elements relative to input fields.\n * Enables the creation of input groups with leading or trailing action buttons,\n * commonly used for search inputs, password visibility toggles, or clear actions.\n *\n * @usageNotes\n * ### Button at end of input (default)\n * ```html\n * <eui-input-button>\n *   <input euiInputText placeholder=\"Search...\" />\n *   <button euiButton euiPrimary>Search</button>\n * </eui-input-button>\n * ```\n *\n * ### Button at start of input\n * ```html\n * <eui-input-button [euiButtonPositionStart]=\"true\">\n *   <button euiIconButton icon=\"filter\" ariaLabel=\"Filter\"></button>\n *   <input euiInputText placeholder=\"Filter results...\" />\n * </eui-input-button>\n * ```\n *\n * ### Accessibility\n * - Button and input maintain separate focus states\n * - Ensure button has descriptive label or aria-label\n * - Tab order follows visual layout\n *\n * ### Notes\n * - Default position is end (right in LTR)\n * - When `euiButtonPositionStart` is true, it overrides end positioning\n * - Works with all button variants (euiButton, euiIconButton)\n * - Commonly used for search, clear, and submit actions\n */\n@Component({\n    selector: 'eui-input-button',\n    templateUrl: './eui-input-button.component.html',\n    styleUrls: [ './eui-input-button.component.scss' ],\n    changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class EuiInputButtonComponent {\n    @HostBinding('class')\n    get cssClasses(): string {\n        return [\n            'eui-input-button',\n            this.euiButtonPositionEnd && !this.euiButtonPositionStart ? 'eui-input-button--end' : '',\n            this.euiButtonPositionStart ? 'eui-input-button--start' : '',\n        ]\n            .join(' ')\n            .trim();\n    }\n\n    /**\n     * Positions the button at the start (left in LTR, right in RTL) of the input field.\n     * When true, overrides euiButtonPositionEnd. Defaults to false.\n     */\n    @Input({ transform: booleanAttribute }) euiButtonPositionStart = false;\n    \n    /**\n     * Positions the button at the end (right in LTR, left in RTL) of the input field.\n     * Ignored when euiButtonPositionStart is true. Defaults to true.\n     */\n    @Input({ transform: booleanAttribute }) euiButtonPositionEnd = true;\n}\n","<ng-content />\n<ng-content select=\"button\"/>","import { EuiInputButtonComponent } from './eui-input-button.component';\n\nexport * from './eui-input-button.component';\n\nexport const EUI_INPUT_BUTTON = [\n    EuiInputButtonComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;MAOU,uBAAuB,CAAA;AANpC,IAAA,WAAA,GAAA;AAkBI;;;AAGG;QACqC,IAAA,CAAA,sBAAsB,GAAG,KAAK;AAEtE;;;AAGG;QACqC,IAAA,CAAA,oBAAoB,GAAG,IAAI;AACtE,IAAA;AAtBG,IAAA,IACI,UAAU,GAAA;QACV,OAAO;YACH,kBAAkB;AAClB,YAAA,IAAI,CAAC,oBAAoB,IAAI,CAAC,IAAI,CAAC,sBAAsB,GAAG,uBAAuB,GAAG,EAAE;YACxF,IAAI,CAAC,sBAAsB,GAAG,yBAAyB,GAAG,EAAE;AAC/D;aACI,IAAI,CAAC,GAAG;AACR,aAAA,IAAI,EAAE;IACf;8GAVS,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,sBAAA,EAAA,CAAA,wBAAA,EAAA,wBAAA,EAgBZ,gBAAgB,CAAA,EAAA,oBAAA,EAAA,CAAA,sBAAA,EAAA,sBAAA,EAMhB,gBAAgB,mFC/DxC,iDAC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