import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y'; import { AfterViewInit, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core'; import { BooleanInput } from '@ngx-simple/core/coercion'; import { CanColor, CanDisable, CanSize, MixinElementRefBase, ThemePalette, ThemeSize } from '@ngx-simple/core/common-behaviors'; export declare class SimButtonGroupDirective { protected _renderer: Renderer2; /** 间隔均匀 */ spaced: boolean; /** * 按钮尺寸 */ size: ThemeSize; constructor(_elementRef: ElementRef, _renderer: Renderer2); } /** * 按钮类型 * 1. sim-button 文本按钮 文本按钮通常用于不太重要的操作 * 2. sim-stroked-button 描边按钮 由于描边的关系,概括的按钮比文本按钮用于更多的强调。 * 3. sim-outlined-button 轮廓按钮 由于轮廓的关系,概括的按钮比文本按钮用于更多的强调。 * 3. sim-flat-button 填充按钮 填充的按钮使用颜色填充和阴影,因此更加强调。 * 4. sim-icon-button 图标按钮 填充的按钮使用颜色填充和阴影,因此更加强调。 */ declare const _ButtonMixinBase: import("../../../dist/libs/core/common-behaviors/constructor").Constructor & import("../../../dist/libs/core/common-behaviors/constructor").Constructor & import("../../../dist/libs/core/common-behaviors/constructor").Constructor & typeof MixinElementRefBase; export declare class SimButtonComponent extends _ButtonMixinBase implements OnInit, AfterViewInit, OnDestroy, CanDisable, CanColor, CanSize { protected _renderer: Renderer2; protected _focusMonitor: FocusMonitor; static ngAcceptInputType_disabled: BooleanInput; static ngAcceptInputType_loading: BooleanInput; static ngAcceptInputType_fluid: BooleanInput; static ngAcceptInputType_dashed: BooleanInput; static ngAcceptInputType_pilled: BooleanInput; /** * 是否加载中 */ loading: boolean; /** * 是否充满自适应父级宽度 */ fluid: boolean; /** * 是否是虚线 只适用于 `stroked`、`outlined` 轮廓按钮 */ dashed: boolean; /** * 是否圆形胶量形状按钮 */ pilled: boolean; /** * 组件的主题颜色调色板 * - primary 主要的 * - secondary 次要的 * - success 成功的 * - info 信息的 * - warning 警告的 * - danger 危险的/错误的 */ color: ThemePalette; /** * 组件的主题尺寸 */ /** * 组件的主题尺寸 默认 `medium` * - large 大的 * - medium 中的 * - small 小的 */ size: ThemeSize; disabled: boolean; constructor(_elementRef: ElementRef, _renderer: Renderer2, _focusMonitor: FocusMonitor); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; focus(origin?: FocusOrigin, options?: FocusOptions): void; protected _getHostElement(): HTMLButtonElement | HTMLAnchorElement; } export declare class SimAnchorComponent extends SimButtonComponent implements OnInit { /** 按钮的tabIndex */ tabIndex: number; constructor(elementRef: ElementRef, _renderer: Renderer2, _focusMonitor: FocusMonitor); /** * ``点击事件处理 * @param event */ _haltDisabledEvents(event: Event): void; } declare const _ButtonLinkMixinBase: import("../../../dist/libs/core/common-behaviors/constructor").Constructor & import("../../../dist/libs/core/common-behaviors/constructor").Constructor & typeof MixinElementRefBase; export declare class SimLinkComponent extends _ButtonLinkMixinBase implements AfterViewInit, OnDestroy { private _focusMonitor; static ngAcceptInputType_disabled: BooleanInput; /** * 组件的主题颜色调色板 默认 `primary` * - primary 主要的 * - secondary 次要的 * - success 成功的 * - info 信息的 * - warning 警告的 * - danger 危险的/错误的 */ color: ThemePalette; /** 按钮的tabIndex */ tabIndex: number; /** 组件是否禁用 */ disabled: boolean; constructor(_elementRef: ElementRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; /** * 获取焦点 * @param origin 焦点源 * @param options 焦点配置 */ focus(origin?: FocusOrigin, options?: FocusOptions): void; /** * ``点击事件处理 * @param event */ _haltDisabledEvents(event: Event): void; } export {};