261023_01_ENH: 자동완성 옵션 툴팁 추가 및 문자 편집기 LMS·MMS 분리와 UTF-8 바이트 계산 적용

This commit is contained in:
2026-10-23 11:21:14 +09:00
parent 487302d374
commit 24a59057a5
14 changed files with 159 additions and 17 deletions

View File

@@ -76,6 +76,22 @@ npx shadcn@latest add https://ui-registry.kric.com/r/kri-dialog.json
/>
```
## KriAutoComplete 옵션 툴팁
`kri-auto-complete`의 `KriSingleSelect`, `KriMultiSelect`와 내부 `MultiSelect`는 `optionTooltip?: 'singleLine' | 'wrap'`과 `optionTooltipClassName?: string`을 지원합니다. 지정하지 않으면 툴팁을 표시하지 않아 기존 동작을 유지합니다.
지정하면 옵션에 마우스를 올렸을 때 말줄임 없이 전체 `label`을 오른쪽 툴팁으로 표시합니다. `singleLine`은 화면의 사용 가능한 폭까지 한 줄로, `wrap`은 28rem 폭에서 줄바꿈합니다. `optionTooltipClassName`으로 투명도 등 프로젝트별 스타일을 덧붙일 수 있습니다. 이 항목은 shadcn `tooltip` 컴포넌트에 의존하며 `TooltipProvider`를 내부에서 제공합니다.
```tsx
<KriSingleSelect
items={items}
value={value}
onChange={setValue}
optionTooltip="singleLine"
optionTooltipClassName="opacity-65"
/>
```
## KRI Chart
`kri-chart`는 `echarts`, `echarts-for-react` 기반 공통 차트 컴포넌트입니다. 내부적으로 `BaseEChart`를 사용하며, 모든 wrapper는 멀티 시리즈를 지원합니다.
@@ -264,7 +280,9 @@ import { KriScatterChart } from '@/components/chart'
- 편집 값은 HTML 문자열입니다.
- 이미지 업로드 함수는 URL 문자열 또는 `{ url }`을 반환할 수 있습니다.
- `toolbar={false}`로 toolbar 전체를 숨길 수 있습니다.
- SMS/LMS 기본 제한은 각각 90/2,000바이트입니다.
- SMS preview uses UTF-8 bytes: below 90 bytes is SMS, 90 bytes or more (or a title) is LMS. Attachments take priority and display MMS. LMS/MMS input limit defaults to 2,000 UTF-8 bytes.
- `changeSmsType` now reports `'SMS' | 'LMS' | 'MMS'`; update callbacks to handle MMS. Preview type is an estimate; use the saved `tmplatTy` and actual delivery `sendTy` from server responses.
- Regression check: `node --test tests/kri-editor-sms.test.mjs`.
- `enableImageMap`은 `map`, `area`, `img.usemap` 보존을 선택적으로 활성화합니다.
- `htmlSanitizer`로 서비스의 서버 정책에 맞는 정제 함수를 주입할 수 있습니다.
- `getWysiwygCompatibility`가 `compatible: false`를 반환하면 HTML 원문을 유지하고 WYSIWYG 전환을 비활성화합니다.