import { PropertyValues } from 'lit'; import { UFormControlElement } from '../UFormControlElement.js'; /** 외형 정도 — `solid` 체크 칸을 색으로 채움(기본) · `outlined` 테두리와 체크 표시만 색. */ export type CheckboxAppearance = "solid" | "outlined"; /** 역할 축(`primary`…`danger`, 의미 · 리브랜딩을 따라옴)과 장식 축(`blue`…, 색 자체 · 면역)이 병존한다. */ export type CheckboxColor = "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink" | "neutral"; /** * 선택/해제 상태를 토글하는 체크박스 컴포넌트입니다. * indeterminate 상태도 지원합니다. * * @slot - 체크박스 옆에 표시할 라벨 텍스트 (`label` attribute가 slot fallback으로 사용됨) * * @csspart wrapper - 체크박스 전체 래퍼 * @csspart input - 실제 체크박스 input 요소 * @csspart checkbox - 체크박스 시각 요소 * @csspart label - 라벨 텍스트 요소 * @csspart description - 설명 텍스트 요소 * * @cssprop --checkbox-color - 체크 표시 색상 (outlined) * @cssprop --checkbox-border-color - 체크박스 테두리 색상 * @cssprop --checkbox-background-color - 체크박스 배경색 (solid) * * @event change - 체크 상태 변경 시 발생 * */ export declare class UCheckbox extends UFormControlElement { /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */ static enumerated: { appearance: readonly CheckboxAppearance[]; color: readonly CheckboxColor[]; descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[]; }; static styles: import('lit').CSSResultGroup[]; /** 외형 정도 — `solid`(기본) · `outlined` */ appearance: CheckboxAppearance; /** 체크박스 강조 색상 — 기본 `primary`(브랜드를 따른다) */ color: CheckboxColor; /** 중간 상태 */ indeterminate: boolean; /** 체크 여부 */ checked: boolean; /** `u-form` 의 `model` 에는 제출값(`value`)이 아니라 켬/끔 상태를 싣는다. */ get modelValue(): unknown; set modelValue(value: unknown); /** * 네이티브 `defaultChecked` 에 해당하는 값 — **처음 연결될 때의 `checked` 속성**. * `checked` 는 반영(reflect)되는 속성이라 사용자가 바꾸면 속성도 바뀐다. 그래서 속성을 * 리셋 시점에 읽으면 «현재» 가 나온다 — 기본값은 그 전에 붙잡아 둔다. */ private defaultChecked?; connectedCallback(): void; protected restoreDefaults(): void; inputEl?: HTMLInputElement; protected shouldValidate(changed: PropertyValues): boolean; /** `checked`(또는 그 값을 함께 결정하는 `value`)가 바뀌는 모든 경로(초기 속성 설정 · * 프로그램적 대입 · 사용자 클릭)에서 폼 제출값을 동기화한다 — `UInput`/`UTextarea`와 * 같은 경계. */ protected updated(changedProperties: PropertyValues): void; render(): import('lit-html').TemplateResult<1>; protected setValidity(): void; reset(): void; focus(options?: FocusOptions): void; blur(): void; private handleInputChange; } declare global { interface HTMLElementTagNameMap { 'u-checkbox': UCheckbox; } }