@iyulab/components 1.51.0 → 1.53.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.
- package/CHANGELOG.md +33 -0
- package/README.md +53 -0
- package/dist/_virtual/_glob-assets_raw/player-pause-fill.svg.a756c400.js +4 -0
- package/dist/_virtual/_glob-assets_raw/player-play-fill.svg.768b6efc.js +4 -0
- package/dist/assets/locales/ar.json.js +5 -1
- package/dist/assets/locales/de.json.js +5 -1
- package/dist/assets/locales/en.json.js +5 -1
- package/dist/assets/locales/es.json.js +5 -1
- package/dist/assets/locales/fr.json.js +5 -1
- package/dist/assets/locales/id.json.js +5 -1
- package/dist/assets/locales/ja.json.js +5 -1
- package/dist/assets/locales/ko.json.js +5 -1
- package/dist/assets/locales/pt-BR.json.js +5 -1
- package/dist/assets/locales/ru.json.js +5 -1
- package/dist/assets/locales/th.json.js +5 -1
- package/dist/assets/locales/vi.json.js +5 -1
- package/dist/assets/locales/zh-CN.json.js +5 -1
- package/dist/assets/locales/zh-TW.json.js +5 -1
- package/dist/components/carousel/UCarousel.d.ts +17 -0
- package/dist/components/carousel/UCarousel.js +51 -10
- package/dist/components/carousel/UCarousel.styles.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/utilities/Locale.d.ts +1 -1
- package/dist/utilities/icons.js +4 -0
- package/dist/utilities/tsv.d.ts +28 -0
- package/dist/utilities/tsv.js +86 -0
- package/package.json +3 -3
- package/skills/iyulab-components/SKILL.md +1 -0
- package/skills/iyulab-components/references/components/carousel.md +6 -0
- package/skills/iyulab-components/references/utilities/tsv.md +37 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.53.0] - 2026-09-30
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **An `autoplay` carousel can now be stopped** (WCAG 2.2.2 Pause, Stop, Hide). `u-carousel` with
|
|
8
|
+
`autoplay` renders a stop/start button as the first control of its indicator row (part
|
|
9
|
+
`rotation-button`, with localized names). Rotation also pauses while the mouse is over the
|
|
10
|
+
carousel, and stops when keyboard focus moves into it until the user starts it again — the
|
|
11
|
+
WAI-ARIA APG carousel pattern. While rotating, the slides are `aria-live="off"`; when stopped,
|
|
12
|
+
`polite`, so a screen reader announces the slide the user moves to.
|
|
13
|
+
- Two built-in icons, `player-pause-fill` and `player-play-fill`, back that button.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Peer dependency ranges promise only the majors that are tested: `@lit/react ^1.0.8` (was
|
|
18
|
+
`>=1.0.8`) and `react ^18.0.0 || ^19.0.0` (was `>=18.0.0`).
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
- README: a **KWCAG 2.2** table (the Korean web accessibility standard used for certification) — all
|
|
23
|
+
33 check items, each marked as guaranteed by a test, shared with the app, or not applicable, with
|
|
24
|
+
the test that measures it across this package and its siblings.
|
|
25
|
+
|
|
26
|
+
## [1.52.0] - 2026-09-30
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- `encodeTsv(rows)` and `decodeTsv(text)` — the clipboard format spreadsheets use for copy and paste
|
|
31
|
+
(tab-separated, RFC 4180 quoting). A cell containing a tab, a line break or a double quote is quoted,
|
|
32
|
+
so a multi-line cell pastes into Excel as one cell instead of several rows; reading accepts CRLF,
|
|
33
|
+
keeps rows of empty cells and treats a quote in the middle of a cell as text.
|
|
34
|
+
`decodeTsv(encodeTsv(rows))` returns `rows`.
|
|
35
|
+
|
|
3
36
|
## [1.51.0] - 2026-09-30
|
|
4
37
|
|
|
5
38
|
### Added
|
package/README.md
CHANGED
|
@@ -159,6 +159,59 @@ Theme.set('system');
|
|
|
159
159
|
⚠ 타깃 크기 보장은 `--u-density` **`14px` 이상**에서 성립합니다 — 컨트롤 패딩이 `em` 이라 그보다
|
|
160
160
|
낮추면 타깃이 함께 줄어듭니다([docs/theming.md](./docs/theming.md)의 밀도 절 참고).
|
|
161
161
|
|
|
162
|
+
### KWCAG 2.2 대응표
|
|
163
|
+
|
|
164
|
+
국내 품질인증이 쓰는 **KWCAG 2.2**(한국형 웹 콘텐츠 접근성 지침)의 검사항목 33개를, 이 패키지와
|
|
165
|
+
그 위에 쌓는 형제 패키지(`@iyulab/modern-app` · `@iyulab/data-components` · `@iyulab/chat-components` ·
|
|
166
|
+
`@iyulab/flex-table` · `@iyulab/u-widgets` · `@iyulab/router`)가 무엇을 맡는지로 나눈 표입니다.
|
|
167
|
+
**준수 선언이 아닙니다** — 인증은 완성된 앱을 대상으로 하고, 앱이 직접 그린 것은 언제나 앱의
|
|
168
|
+
몫입니다.
|
|
169
|
+
|
|
170
|
+
- **게이트 보장** — 이 생태계가 그리는 것에 대해 시험이 잰다. 기본 사용이면 앱이 따로 할 일이 없다.
|
|
171
|
+
- **공동 책임** — 이 생태계는 수단을 주고 일부를 잰다. 충족 여부는 앱이 넣는 내용·설정에 달렸다.
|
|
172
|
+
- **비대상** — 이 생태계가 그런 콘텐츠나 입력을 만들지 않는다.
|
|
173
|
+
|
|
174
|
+
재는 곳의 경로는 각 패키지 리포 기준입니다(접두어가 없으면 이 패키지).
|
|
175
|
+
|
|
176
|
+
| 검사항목 | 구분 | 이 생태계가 하는 것 · 앱이 할 것 | 재는 곳 |
|
|
177
|
+
|---|---|---|---|
|
|
178
|
+
| 5.1.1 적절한 대체 텍스트 | 공동 책임 | 아이콘만 있는 내장 컨트롤은 로케일을 따르는 접근성 이름을 갖는다. 이미지·아이콘 콘텐츠의 대체 텍스트는 앱이 준다 | `tests/browser/carousel-accessible-name` · `copy-button-label` · `dialog-default-labels` · chat-components `icon-only-button-accessible-name` |
|
|
179
|
+
| 5.2.1 자막 제공 | 공동 책임 | u-widgets `video` 는 `data.tracks`, chat-components `u-video-block` 은 `tracks` 로 자막·캡션 트랙(WebVTT)을 받는다 — 영상이 섀도 안에 있어 앱이 `<track>` 을 넣을 수 없기 때문이다. 자막 내용은 앱이 준다 | u-widgets `video-tracks` · chat-components `video-block-tracks` |
|
|
180
|
+
| 5.3.1 표의 구성 | 공동 책임 | `u-flex-table` 은 가상 스크롤에서도 행·열 순번(`aria-rowindex`·`aria-colindex`)과 전체 크기를 알린다. 표 제목·머리글 문구는 앱이 준다 | flex-table `tests/browser/aria-grid-index` |
|
|
181
|
+
| 5.3.2 콘텐츠의 선형구조 | 공동 책임 | 컴포넌트의 DOM 순서가 표시 순서다. 화면 배치 순서는 앱이 정한다 | — |
|
|
182
|
+
| 5.3.3 명확한 지시사항 제공 | 공동 책임 | 내장 문구(검증 메시지 등)는 모양·위치에 기대지 않는다. 앱의 안내 문구는 앱이 쓴다 | — |
|
|
183
|
+
| 5.4.1 색에 무관한 콘텐츠 인식 | 공동 책임 | `u-alert` 는 상태를 색과 함께 제목(로케일)으로도 알린다. 앱은 색만으로 뜻을 전하지 않는다 | `tests/browser/alert-default-title` · `alert-aria` |
|
|
184
|
+
| 5.4.2 자동 재생 금지 | 공동 책임 | u-widgets `video` 의 자동 재생은 스펙이 켤 때만이고 언제나 소리 없이 시작한다. chat-components 파일 미리보기의 영상은 사용자가 미리보기를 연 뒤에만 재생된다. 앱이 넣는 영상·음성은 앱의 몫 | — |
|
|
185
|
+
| 5.4.3 텍스트 콘텐츠의 명도 대비 | 게이트 보장 | 역할 토큰이 텍스트 4.5 / 비텍스트 3.0 을 라이트·다크 양쪽에서 충족한다. 토큰을 덮어쓴 색은 앱의 몫 | `tests/build/token-contrast` |
|
|
186
|
+
| 5.4.4 콘텐츠 간의 구분 | 공동 책임 | 테두리·간격 토큰을 준다. 콘텐츠 사이 구분은 앱 배치가 정한다 | — |
|
|
187
|
+
| 6.1.1 키보드 사용 보장 | 공동 책임 | 포인터 커서를 보이는 것은 모두 상호작용 요소다(클릭만 받는 `div` 없음). 컴포넌트별 키 조작은 각 시험이 잰다. 앱이 그린 조작 요소는 앱의 몫 | `tests/browser/target-size`(각 패키지) · `tab-panel-keyboard-navigation` · `date-picker-keyboard` · data-components `u-simple-sheet-keyboard-select` |
|
|
188
|
+
| 6.1.2 초점 이동과 표시 | 공동 책임 | 오버레이는 열릴 때 초점을 안으로(`[autofocus]` → 첫 입력) 옮긴다. 셸은 라우트가 끝나면 본문(또는 화면의 `[autofocus]`)으로 초점을 옮긴다. 화면 안 초점 순서는 앱 배치가 정한다 | `tests/browser/overlay-initial-focus` · `focus-delegation` · modern-app `sidebar-layout-route-focus` |
|
|
189
|
+
| 6.1.3 조작 가능 | 게이트 보장 | 포인터 타깃이 24×24 CSS px 이상이거나 간격 예외를 충족하고, 그 자리에서 실제로 눌린다(`--u-density` 14px 이상) | `tests/browser/target-size`(각 패키지) |
|
|
190
|
+
| 6.1.4 문자 단축키 | 공동 책임 | 내장 컴포넌트의 문자 키는 초점을 가진 동안에만 동작한다. 앱 전역 단축키는 앱의 몫 | — |
|
|
191
|
+
| 6.2.1 응답시간 조절 | 공동 책임 | 토스트의 표시 시간·세션 만료 같은 시간 제한은 앱이 정한다 | — |
|
|
192
|
+
| 6.2.2 정지 기능 제공 | 공동 책임 | `u-carousel[autoplay]` 는 정지/시작 버튼·호버 일시정지·키보드 초점 정지를 갖는다. u-widgets `video` 의 자동 재생은 네이티브 컨트롤로 멈춘다 — 스펙이 `controls: false` 로 끄면 앱의 몫 | `tests/browser/carousel-rotation-control` |
|
|
193
|
+
| 6.3.1 깜빡임과 번쩍임 사용 제한 | 공동 책임 | 초당 3회 넘게 번쩍이는 효과를 두지 않고, 장식 애니메이션은 `prefers-reduced-motion` 을 따른다. 앱 콘텐츠는 앱의 몫 | `tests/browser/reduced-motion-decoration` |
|
|
194
|
+
| 6.4.1 반복 영역 건너뛰기 | 게이트 보장 | modern-app 사이드바 셸의 첫 탭 정지점이 «본문으로 건너뛰기» 링크이고 본문은 페이지의 단일 `<main>` 이다. 셸을 쓰지 않는 앱은 앱의 몫 | modern-app `sidebar-layout-skip-link` |
|
|
195
|
+
| 6.4.2 제목 제공 | 공동 책임 | router 는 라우트의 `title` 을 문서 제목으로 쓴다. 섹션 제목 단계는 `u-group-box` 가 조정할 수 있다. 제목 문구는 앱이 준다 | modern-app `lob-primitives` |
|
|
196
|
+
| 6.4.3 적절한 링크 텍스트 | 공동 책임 | 새 창으로 여는 내장 링크는 이름에 그 사실을 붙인다. 링크 문구는 앱이 준다 | chat-components `new-tab-link-name` · modern-app `sidebar-link-new-tab-name` · u-widgets `new-tab-link-name` |
|
|
197
|
+
| 6.4.4 고정된 참조 위치 정보 | 비대상 | 쪽 번호를 가진 전자 출판물을 만들지 않는다 | — |
|
|
198
|
+
| 6.5.1 단일 포인터 입력 지원 | 공동 책임 | `u-flex-table` 의 열 너비는 끌지 않고 메뉴로도 바꾼다. `u-carousel[draggable]` 은 `navigation`·`pagination` 을 함께 켜야 끌기 없이 넘긴다 | flex-table `column-menu` |
|
|
199
|
+
| 6.5.2 포인터 입력 취소 | 공동 책임 | 내장 컨트롤은 네이티브 `click`(누름을 뗄 때)으로 동작한다 | — |
|
|
200
|
+
| 6.5.3 레이블과 네임 | 공동 책임 | `u-field` 는 컨트롤이 이미 가진 이름을 덮지 않아 보이는 라벨과 접근성 이름이 어긋나지 않는다 | `tests/browser/field-label-association` |
|
|
201
|
+
| 6.5.4 동작기반 작동 | 비대상 | 기기 움직임(흔들기·기울이기) 입력을 쓰지 않는다 | — |
|
|
202
|
+
| 7.1.1 기본 언어 표시 | 공동 책임 | 앱이 `<html lang>` 을 정하고, 내장 문구는 그 언어를 따른다 | `tests/browser/locale-detection` |
|
|
203
|
+
| 7.2.1 사용자 요구에 따른 실행 | 공동 책임 | 새 창으로 여는 내장 링크는 미리 알린다. 영상 미리보기는 사용자가 연 뒤에만 재생된다 | chat-components · modern-app · u-widgets `new-tab-link-name` 계열 |
|
|
204
|
+
| 7.2.2 찾기 쉬운 도움 정보 | 공동 책임 | 셸은 모든 화면에 같은 자리의 메뉴를 준다. 도움 정보를 어디 둘지는 앱이 정한다 | — |
|
|
205
|
+
| 7.3.1 오류 정정 | 공동 책임 | 폼 컨트롤은 네이티브 검증 메시지를 로케일로 내고, u-widgets 폼은 오류를 필드에 연결한다(`aria-invalid`·`aria-describedby`). 오류 문구·정정 흐름은 앱의 몫 | u-widgets `tests/elements/uw-form` |
|
|
206
|
+
| 7.3.2 레이블 제공 | 공동 책임 | `u-field` 의 `label`·`description` 이 컨트롤의 이름·설명으로 도달한다 | `tests/browser/field-label-association` · `field-accessible-name` · `field-name-reach-census` |
|
|
207
|
+
| 7.3.3 접근 가능한 인증 | 공동 책임 | 로그인 화면은 앱이 그린다. `u-input[type=password]` 는 비밀번호 보기 토글을 갖는다 | — |
|
|
208
|
+
| 7.3.4 반복 입력 정보 | 공동 책임 | `u-input`·`u-textarea` 는 `autocomplete` 를 내부 컨트롤로 넘긴다. 채울 값은 앱이 정한다 | — |
|
|
209
|
+
| 8.1.1 마크업 오류 방지 | 공동 책임 | 컴포넌트는 템플릿이 만든 DOM 을 그린다. 앱 마크업은 앱의 몫 | — |
|
|
210
|
+
| 8.2.1 웹 애플리케이션 접근성 준수 | 공동 책임 | 커스텀 컨트롤은 이름·역할·값을 내부 네이티브 요소까지 전달한다. 앱이 만든 컴포넌트는 앱의 몫 | `tests/browser/button-aria-label-shadow-forwarding` · data-components `rich-table-row-checkbox-name` · flex-table `aria-grid-index` |
|
|
211
|
+
|
|
212
|
+
재는 곳이 «—» 인 행은 아직 시험이 없는 항목입니다. 표시한 파일명은 `.browser.test.ts`·`.test.ts`
|
|
213
|
+
확장자를 생략했습니다.
|
|
214
|
+
|
|
162
215
|
## Localization
|
|
163
216
|
|
|
164
217
|
라이브러리가 **스스로 생성하는 문자열**(검증 메시지)은 내장 로케일 14종을 갖고 있으며,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region \0glob-assets_raw/player-pause-fill.svg.a756c400
|
|
2
|
+
var player_pause_fill_svg_default = "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n>\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" />\n <path d=\"M17 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" />\n</svg>\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { player_pause_fill_svg_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region \0glob-assets_raw/player-play-fill.svg.768b6efc
|
|
2
|
+
var player_play_fill_svg_default = "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n>\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" />\n</svg>\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { player_play_fill_svg_default as default };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "إخفاء كلمة المرور";
|
|
|
18
18
|
var previousSlide = "الشريحة السابقة";
|
|
19
19
|
var nextSlide = "الشريحة التالية";
|
|
20
20
|
var goToSlide = "الانتقال إلى الشريحة {n}";
|
|
21
|
+
var stopSlideRotation = "إيقاف العرض التلقائي للشرائح";
|
|
22
|
+
var startSlideRotation = "بدء العرض التلقائي للشرائح";
|
|
21
23
|
var chooseDate = "اختر التاريخ";
|
|
22
24
|
var previousMonth = "الشهر السابق";
|
|
23
25
|
var nextMonth = "الشهر التالي";
|
|
@@ -60,6 +62,8 @@ var ar_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var ar_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, ar_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, ar_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Passwort verbergen";
|
|
|
18
18
|
var previousSlide = "Vorherige Folie";
|
|
19
19
|
var nextSlide = "Nächste Folie";
|
|
20
20
|
var goToSlide = "Zu Folie {n} wechseln";
|
|
21
|
+
var stopSlideRotation = "Automatische Diashow anhalten";
|
|
22
|
+
var startSlideRotation = "Automatische Diashow starten";
|
|
21
23
|
var chooseDate = "Datum auswählen";
|
|
22
24
|
var previousMonth = "Vorheriger Monat";
|
|
23
25
|
var nextMonth = "Nächster Monat";
|
|
@@ -60,6 +62,8 @@ var de_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var de_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, de_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, de_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Hide password";
|
|
|
18
18
|
var previousSlide = "Previous slide";
|
|
19
19
|
var nextSlide = "Next slide";
|
|
20
20
|
var goToSlide = "Go to slide {n}";
|
|
21
|
+
var stopSlideRotation = "Stop automatic slide show";
|
|
22
|
+
var startSlideRotation = "Start automatic slide show";
|
|
21
23
|
var chooseDate = "Choose date";
|
|
22
24
|
var previousMonth = "Previous month";
|
|
23
25
|
var nextMonth = "Next month";
|
|
@@ -60,6 +62,8 @@ var en_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var en_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, en_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, en_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -17,6 +17,8 @@ var hidePassword = "Ocultar contraseña";
|
|
|
17
17
|
var previousSlide = "Diapositiva anterior";
|
|
18
18
|
var nextSlide = "Siguiente diapositiva";
|
|
19
19
|
var goToSlide = "Ir a la diapositiva {n}";
|
|
20
|
+
var stopSlideRotation = "Detener la presentación automática";
|
|
21
|
+
var startSlideRotation = "Iniciar la presentación automática";
|
|
20
22
|
var chooseDate = "Elegir fecha";
|
|
21
23
|
var previousMonth = "Mes anterior";
|
|
22
24
|
var nextMonth = "Mes siguiente";
|
|
@@ -59,6 +61,8 @@ var es_default = {
|
|
|
59
61
|
previousSlide,
|
|
60
62
|
nextSlide,
|
|
61
63
|
goToSlide,
|
|
64
|
+
stopSlideRotation,
|
|
65
|
+
startSlideRotation,
|
|
62
66
|
chooseDate,
|
|
63
67
|
previousMonth,
|
|
64
68
|
nextMonth,
|
|
@@ -83,4 +87,4 @@ var es_default = {
|
|
|
83
87
|
cancel
|
|
84
88
|
};
|
|
85
89
|
//#endregion
|
|
86
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, es_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, tooLong, tooShort, typeMismatch, valueMissing };
|
|
90
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, es_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Masquer le mot de passe";
|
|
|
18
18
|
var previousSlide = "Diapositive précédente";
|
|
19
19
|
var nextSlide = "Diapositive suivante";
|
|
20
20
|
var goToSlide = "Aller à la diapositive {n}";
|
|
21
|
+
var stopSlideRotation = "Arrêter le défilement automatique";
|
|
22
|
+
var startSlideRotation = "Démarrer le défilement automatique";
|
|
21
23
|
var chooseDate = "Choisir une date";
|
|
22
24
|
var previousMonth = "Mois précédent";
|
|
23
25
|
var nextMonth = "Mois suivant";
|
|
@@ -60,6 +62,8 @@ var fr_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var fr_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, fr_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, fr_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Sembunyikan kata sandi";
|
|
|
18
18
|
var previousSlide = "Slide sebelumnya";
|
|
19
19
|
var nextSlide = "Slide berikutnya";
|
|
20
20
|
var goToSlide = "Buka slide {n}";
|
|
21
|
+
var stopSlideRotation = "Hentikan slide otomatis";
|
|
22
|
+
var startSlideRotation = "Mulai slide otomatis";
|
|
21
23
|
var chooseDate = "Pilih tanggal";
|
|
22
24
|
var previousMonth = "Bulan sebelumnya";
|
|
23
25
|
var nextMonth = "Bulan berikutnya";
|
|
@@ -60,6 +62,8 @@ var id_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var id_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, id_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, id_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "パスワードを隠す";
|
|
|
18
18
|
var previousSlide = "前のスライド";
|
|
19
19
|
var nextSlide = "次のスライド";
|
|
20
20
|
var goToSlide = "スライド{n}に移動";
|
|
21
|
+
var stopSlideRotation = "スライドの自動再生を停止";
|
|
22
|
+
var startSlideRotation = "スライドの自動再生を開始";
|
|
21
23
|
var chooseDate = "日付を選択";
|
|
22
24
|
var previousMonth = "前月";
|
|
23
25
|
var nextMonth = "翌月";
|
|
@@ -59,6 +61,8 @@ var ja_default = {
|
|
|
59
61
|
previousSlide,
|
|
60
62
|
nextSlide,
|
|
61
63
|
goToSlide,
|
|
64
|
+
stopSlideRotation,
|
|
65
|
+
startSlideRotation,
|
|
62
66
|
chooseDate,
|
|
63
67
|
previousMonth,
|
|
64
68
|
nextMonth,
|
|
@@ -83,4 +87,4 @@ var ja_default = {
|
|
|
83
87
|
cancel
|
|
84
88
|
};
|
|
85
89
|
//#endregion
|
|
86
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, copied, copy, decrement, ja_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
90
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, copied, copy, decrement, ja_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "비밀번호 숨기기";
|
|
|
18
18
|
var previousSlide = "이전 슬라이드";
|
|
19
19
|
var nextSlide = "다음 슬라이드";
|
|
20
20
|
var goToSlide = "{n}번 슬라이드로 이동";
|
|
21
|
+
var stopSlideRotation = "슬라이드 자동 넘김 정지";
|
|
22
|
+
var startSlideRotation = "슬라이드 자동 넘김 시작";
|
|
21
23
|
var chooseDate = "날짜 선택";
|
|
22
24
|
var previousMonth = "이전 달";
|
|
23
25
|
var nextMonth = "다음 달";
|
|
@@ -60,6 +62,8 @@ var ko_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var ko_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, ko_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, ko_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Ocultar senha";
|
|
|
18
18
|
var previousSlide = "Slide anterior";
|
|
19
19
|
var nextSlide = "Próximo slide";
|
|
20
20
|
var goToSlide = "Ir para o slide {n}";
|
|
21
|
+
var stopSlideRotation = "Parar apresentação automática";
|
|
22
|
+
var startSlideRotation = "Iniciar apresentação automática";
|
|
21
23
|
var chooseDate = "Escolher data";
|
|
22
24
|
var previousMonth = "Mês anterior";
|
|
23
25
|
var nextMonth = "Próximo mês";
|
|
@@ -60,6 +62,8 @@ var pt_BR_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var pt_BR_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, pt_BR_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, pt_BR_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Скрыть пароль";
|
|
|
18
18
|
var previousSlide = "Предыдущий слайд";
|
|
19
19
|
var nextSlide = "Следующий слайд";
|
|
20
20
|
var goToSlide = "Перейти к слайду {n}";
|
|
21
|
+
var stopSlideRotation = "Остановить автопрокрутку слайдов";
|
|
22
|
+
var startSlideRotation = "Запустить автопрокрутку слайдов";
|
|
21
23
|
var chooseDate = "Выбрать дату";
|
|
22
24
|
var previousMonth = "Предыдущий месяц";
|
|
23
25
|
var nextMonth = "Следующий месяц";
|
|
@@ -60,6 +62,8 @@ var ru_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var ru_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, ru_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, ru_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "ซ่อนรหัสผ่าน";
|
|
|
18
18
|
var previousSlide = "สไลด์ก่อนหน้า";
|
|
19
19
|
var nextSlide = "สไลด์ถัดไป";
|
|
20
20
|
var goToSlide = "ไปที่สไลด์ที่ {n}";
|
|
21
|
+
var stopSlideRotation = "หยุดการเลื่อนสไลด์อัตโนมัติ";
|
|
22
|
+
var startSlideRotation = "เริ่มการเลื่อนสไลด์อัตโนมัติ";
|
|
21
23
|
var chooseDate = "เลือกวันที่";
|
|
22
24
|
var previousMonth = "เดือนก่อนหน้า";
|
|
23
25
|
var nextMonth = "เดือนถัดไป";
|
|
@@ -60,6 +62,8 @@ var th_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var th_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, th_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, th_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "Ẩn mật khẩu";
|
|
|
18
18
|
var previousSlide = "Slide trước";
|
|
19
19
|
var nextSlide = "Slide sau";
|
|
20
20
|
var goToSlide = "Đi đến slide {n}";
|
|
21
|
+
var stopSlideRotation = "Dừng tự động chuyển slide";
|
|
22
|
+
var startSlideRotation = "Bắt đầu tự động chuyển slide";
|
|
21
23
|
var chooseDate = "Chọn ngày";
|
|
22
24
|
var previousMonth = "Tháng trước";
|
|
23
25
|
var nextMonth = "Tháng sau";
|
|
@@ -60,6 +62,8 @@ var vi_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var vi_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, vi_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, vi_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "隐藏密码";
|
|
|
18
18
|
var previousSlide = "上一张幻灯片";
|
|
19
19
|
var nextSlide = "下一张幻灯片";
|
|
20
20
|
var goToSlide = "转到幻灯片{n}";
|
|
21
|
+
var stopSlideRotation = "停止自动播放幻灯片";
|
|
22
|
+
var startSlideRotation = "开始自动播放幻灯片";
|
|
21
23
|
var chooseDate = "选择日期";
|
|
22
24
|
var previousMonth = "上个月";
|
|
23
25
|
var nextMonth = "下个月";
|
|
@@ -60,6 +62,8 @@ var zh_CN_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var zh_CN_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, zh_CN_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, zh_CN_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -18,6 +18,8 @@ var hidePassword = "隱藏密碼";
|
|
|
18
18
|
var previousSlide = "上一張投影片";
|
|
19
19
|
var nextSlide = "下一張投影片";
|
|
20
20
|
var goToSlide = "前往投影片{n}";
|
|
21
|
+
var stopSlideRotation = "停止自動播放投影片";
|
|
22
|
+
var startSlideRotation = "開始自動播放投影片";
|
|
21
23
|
var chooseDate = "選擇日期";
|
|
22
24
|
var previousMonth = "上個月";
|
|
23
25
|
var nextMonth = "下個月";
|
|
@@ -60,6 +62,8 @@ var zh_TW_default = {
|
|
|
60
62
|
previousSlide,
|
|
61
63
|
nextSlide,
|
|
62
64
|
goToSlide,
|
|
65
|
+
stopSlideRotation,
|
|
66
|
+
startSlideRotation,
|
|
63
67
|
chooseDate,
|
|
64
68
|
previousMonth,
|
|
65
69
|
nextMonth,
|
|
@@ -84,4 +88,4 @@ var zh_TW_default = {
|
|
|
84
88
|
cancel
|
|
85
89
|
};
|
|
86
90
|
//#endregion
|
|
87
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, zh_TW_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, stepMismatch, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
91
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, badInput, breadcrumb, cancel, chooseDate, chooseFile, clear, close, closeTab, confirm, copied, copy, decrement, zh_TW_default as default, filesSelected, goToSlide, hidePassword, increment, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, rangeOverflow, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, stepMismatch, stopSlideRotation, time, today, tooLong, tooShort, typeMismatch, valueMissing };
|
|
@@ -5,11 +5,16 @@ import { UElement } from '../UElement.js';
|
|
|
5
5
|
*
|
|
6
6
|
* @slot - 슬라이드로 표시할 콘텐츠 (각 자식 요소가 하나의 슬라이드)
|
|
7
7
|
*
|
|
8
|
+
* `autoplay` 이면 회전 제어 버튼(정지/시작)이 인디케이터 줄의 첫 자리에 그려진다. 포인터가 캐러셀 위에
|
|
9
|
+
* 있는 동안은 잠시 멈추고, 키보드 초점이 안으로 들어오면 사용자가 다시 시작할 때까지 멈춘다
|
|
10
|
+
* (WAI-ARIA APG Carousel · WCAG 2.2.2).
|
|
11
|
+
*
|
|
8
12
|
* @csspart slides - 슬라이드 컨테이너
|
|
9
13
|
* @csspart prev-button - 이전 버튼
|
|
10
14
|
* @csspart next-button - 다음 버튼
|
|
11
15
|
* @csspart indicator - 페이지네이션 컨테이너
|
|
12
16
|
* @csspart dot - 페이지네이션 점
|
|
17
|
+
* @csspart rotation-button - 자동 넘김 정지/시작 버튼 (`autoplay` 일 때만, 인디케이터 안)
|
|
13
18
|
*/
|
|
14
19
|
export declare class UCarousel extends UElement {
|
|
15
20
|
static styles: import('lit').CSSResultGroup[];
|
|
@@ -36,10 +41,17 @@ export declare class UCarousel extends UElement {
|
|
|
36
41
|
private slideCount;
|
|
37
42
|
private isDragging;
|
|
38
43
|
private dragOffset;
|
|
44
|
+
/** 사용자가 회전을 멈췄다(정지 버튼, 또는 키보드 초점 진입). 다시 시작할 때까지 유지된다. */
|
|
45
|
+
private rotationStopped;
|
|
46
|
+
/** 포인터가 캐러셀 위에 있다 — 그동안만 잠시 멈춘다. */
|
|
47
|
+
private hovered;
|
|
39
48
|
private autoplayTimer?;
|
|
40
49
|
private dragStartX;
|
|
41
50
|
private dragStartTime;
|
|
42
51
|
private pointerDown;
|
|
52
|
+
/** 지금 자동으로 넘기고 있는가. */
|
|
53
|
+
private get rotating();
|
|
54
|
+
private get showDots();
|
|
43
55
|
private get perView();
|
|
44
56
|
private get perMove();
|
|
45
57
|
private get maxIndex();
|
|
@@ -60,6 +72,11 @@ export declare class UCarousel extends UElement {
|
|
|
60
72
|
private handlePointerDown;
|
|
61
73
|
private handlePointerMove;
|
|
62
74
|
private handlePointerUp;
|
|
75
|
+
private toggleRotation;
|
|
76
|
+
/** 키보드 초점이 들어오면 멈춘다 — 포인터로 누른 초점은 멈추지 않는다(누른 버튼이 정지 버튼이면 그 클릭이 결정한다). */
|
|
77
|
+
private handleFocusIn;
|
|
78
|
+
private handlePointerEnter;
|
|
79
|
+
private handlePointerLeave;
|
|
63
80
|
private handleClickCancel;
|
|
64
81
|
}
|
|
65
82
|
declare global {
|
|
@@ -5,8 +5,9 @@ import "../button/UButton.js";
|
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { styles } from "./UCarousel.styles.js";
|
|
8
|
-
import { html } from "lit";
|
|
8
|
+
import { html, nothing } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
11
|
//#region src/components/carousel/UCarousel.ts
|
|
11
12
|
var UCarousel = class UCarousel extends UElement {
|
|
12
13
|
constructor(..._args) {
|
|
@@ -24,6 +25,8 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
24
25
|
this.slideCount = 0;
|
|
25
26
|
this.isDragging = false;
|
|
26
27
|
this.dragOffset = 0;
|
|
28
|
+
this.rotationStopped = false;
|
|
29
|
+
this.hovered = false;
|
|
27
30
|
this.dragStartX = 0;
|
|
28
31
|
this.dragStartTime = 0;
|
|
29
32
|
this.pointerDown = false;
|
|
@@ -40,7 +43,7 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
40
43
|
this.goTo = (index) => {
|
|
41
44
|
if (index < 0 || index > this.maxIndex || index === this.index) return;
|
|
42
45
|
this.index = index;
|
|
43
|
-
if (this.
|
|
46
|
+
if (this.rotating) this.startAutoplay();
|
|
44
47
|
};
|
|
45
48
|
this.handleDragStart = (e) => {
|
|
46
49
|
e.preventDefault();
|
|
@@ -51,7 +54,7 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
51
54
|
this.dragStartX = e.clientX;
|
|
52
55
|
this.dragOffset = 0;
|
|
53
56
|
this.dragStartTime = Date.now();
|
|
54
|
-
|
|
57
|
+
this.stopAutoplay();
|
|
55
58
|
};
|
|
56
59
|
this.handlePointerMove = (e) => {
|
|
57
60
|
if (!this.pointerDown) return;
|
|
@@ -79,7 +82,21 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
79
82
|
this.pointerDown = false;
|
|
80
83
|
this.isDragging = false;
|
|
81
84
|
this.dragOffset = 0;
|
|
82
|
-
if (this.
|
|
85
|
+
if (this.rotating) this.startAutoplay();
|
|
86
|
+
};
|
|
87
|
+
this.toggleRotation = () => {
|
|
88
|
+
this.rotationStopped = !this.rotationStopped;
|
|
89
|
+
};
|
|
90
|
+
this.handleFocusIn = (e) => {
|
|
91
|
+
if (!this.autoplay) return;
|
|
92
|
+
const origin = e.composedPath()[0];
|
|
93
|
+
if (origin instanceof Element && origin.matches(":focus-visible")) this.rotationStopped = true;
|
|
94
|
+
};
|
|
95
|
+
this.handlePointerEnter = (e) => {
|
|
96
|
+
if (e.pointerType === "mouse") this.hovered = true;
|
|
97
|
+
};
|
|
98
|
+
this.handlePointerLeave = () => {
|
|
99
|
+
this.hovered = false;
|
|
83
100
|
};
|
|
84
101
|
this.handleClickCancel = (e) => {
|
|
85
102
|
e.preventDefault();
|
|
@@ -89,6 +106,13 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
89
106
|
static {
|
|
90
107
|
this.styles = [super.styles, styles];
|
|
91
108
|
}
|
|
109
|
+
/** 지금 자동으로 넘기고 있는가. */
|
|
110
|
+
get rotating() {
|
|
111
|
+
return this.autoplay && !this.rotationStopped && !this.hovered;
|
|
112
|
+
}
|
|
113
|
+
get showDots() {
|
|
114
|
+
return this.pagination && this.pageCount > 1;
|
|
115
|
+
}
|
|
92
116
|
get perView() {
|
|
93
117
|
return Math.max(1, this.slidesPerView);
|
|
94
118
|
}
|
|
@@ -106,21 +130,28 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
106
130
|
}
|
|
107
131
|
connectedCallback() {
|
|
108
132
|
super.connectedCallback();
|
|
109
|
-
|
|
133
|
+
this.addEventListener("focusin", this.handleFocusIn);
|
|
134
|
+
this.addEventListener("pointerenter", this.handlePointerEnter);
|
|
135
|
+
this.addEventListener("pointerleave", this.handlePointerLeave);
|
|
136
|
+
if (this.rotating) this.startAutoplay();
|
|
110
137
|
}
|
|
111
138
|
disconnectedCallback() {
|
|
112
139
|
this.stopAutoplay();
|
|
140
|
+
this.removeEventListener("focusin", this.handleFocusIn);
|
|
141
|
+
this.removeEventListener("pointerenter", this.handlePointerEnter);
|
|
142
|
+
this.removeEventListener("pointerleave", this.handlePointerLeave);
|
|
113
143
|
super.disconnectedCallback();
|
|
114
144
|
}
|
|
115
145
|
willUpdate(changedProperties) {
|
|
116
146
|
super.willUpdate(changedProperties);
|
|
147
|
+
if (changedProperties.has("autoplay") && this.autoplay) this.rotationStopped = false;
|
|
117
148
|
if (changedProperties.has("slidesPerView")) this.style.setProperty("--slides-per-view", String(this.perView));
|
|
118
149
|
if (changedProperties.has("gap")) this.style.setProperty("--slide-gap", `${this.gap}px`);
|
|
119
150
|
}
|
|
120
151
|
updated(changedProperties) {
|
|
121
152
|
super.updated(changedProperties);
|
|
122
|
-
if (changedProperties.has("autoplay") || changedProperties.has("autoplayInterval")) {
|
|
123
|
-
if (this.
|
|
153
|
+
if (changedProperties.has("autoplay") || changedProperties.has("autoplayInterval") || changedProperties.has("rotationStopped") || changedProperties.has("hovered")) {
|
|
154
|
+
if (this.rotating) this.startAutoplay();
|
|
124
155
|
else this.stopAutoplay();
|
|
125
156
|
}
|
|
126
157
|
}
|
|
@@ -135,7 +166,8 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
135
166
|
@pointermove=${this.draggable ? this.handlePointerMove : null}
|
|
136
167
|
@pointerup=${this.draggable ? this.handlePointerUp : null}
|
|
137
168
|
@pointerleave=${this.draggable ? this.handlePointerUp : null}>
|
|
138
|
-
<div part="slides" class="slides" style="${style}"
|
|
169
|
+
<div part="slides" class="slides" style="${style}"
|
|
170
|
+
aria-live=${ifDefined(this.autoplay ? this.rotating ? "off" : "polite" : void 0)}>
|
|
139
171
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
140
172
|
</div>
|
|
141
173
|
</div>
|
|
@@ -158,8 +190,15 @@ var UCarousel = class UCarousel extends UElement {
|
|
|
158
190
|
</u-button>
|
|
159
191
|
|
|
160
192
|
<div part="indicator" class="indicator"
|
|
161
|
-
?hidden=${!this.
|
|
162
|
-
${
|
|
193
|
+
?hidden=${!this.autoplay && !this.showDots}>
|
|
194
|
+
${this.autoplay ? html`
|
|
195
|
+
<button part="rotation-button" class="rotation-button"
|
|
196
|
+
aria-label=${Locale.getValue(this.rotationStopped ? "startSlideRotation" : "stopSlideRotation")}
|
|
197
|
+
@click=${this.toggleRotation}>
|
|
198
|
+
<u-icon lib="internal" name=${this.rotationStopped ? "player-play-fill" : "player-pause-fill"}></u-icon>
|
|
199
|
+
</button>
|
|
200
|
+
` : nothing}
|
|
201
|
+
${!this.showDots ? nothing : Array.from({ length: this.pageCount }, (_, i) => html`
|
|
163
202
|
<button part="dot" class="dot"
|
|
164
203
|
aria-label=${Locale.getValue("goToSlide", { n: i + 1 })}
|
|
165
204
|
aria-current=${i === this.currentPage ? "true" : "false"}
|
|
@@ -225,6 +264,8 @@ __decorate([property({ type: Number }), __decorateMetadata("design:type", Object
|
|
|
225
264
|
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "slideCount", void 0);
|
|
226
265
|
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "isDragging", void 0);
|
|
227
266
|
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "dragOffset", void 0);
|
|
267
|
+
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "rotationStopped", void 0);
|
|
268
|
+
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "hovered", void 0);
|
|
228
269
|
UCarousel = __decorate([customElement("u-carousel")], UCarousel);
|
|
229
270
|
//#endregion
|
|
230
271
|
export { UCarousel };
|
|
@@ -72,6 +72,26 @@ var styles = css`
|
|
|
72
72
|
transform: translateY(-50%) scale(0.95);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/* ── Rotation control (autoplay) ── */
|
|
76
|
+
.rotation-button {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
width: 24px;
|
|
81
|
+
height: 24px;
|
|
82
|
+
padding: 0;
|
|
83
|
+
border: none;
|
|
84
|
+
border-radius: var(--u-radius-circle, 50%);
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
color: var(--u-neutral-900, #212121);
|
|
87
|
+
background-color: var(--u-neutral-100, #F5F5F5);
|
|
88
|
+
box-shadow: var(--u-shadow-md, 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05));
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
.rotation-button:hover {
|
|
92
|
+
background-color: var(--u-neutral-200, #EEEEEE);
|
|
93
|
+
}
|
|
94
|
+
|
|
75
95
|
.nav-button.prev { left: 12px; }
|
|
76
96
|
.nav-button.next { right: 12px; }
|
|
77
97
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -60,4 +60,5 @@ import { BrowserStorage } from "./utilities/BrowserStorage.js";
|
|
|
60
60
|
import { Dialog } from "./utilities/Dialog.js";
|
|
61
61
|
import { Theme } from "./utilities/Theme.js";
|
|
62
62
|
import { Toast } from "./utilities/Toast.js";
|
|
63
|
-
|
|
63
|
+
import { decodeTsv, encodeTsv } from "./utilities/tsv.js";
|
|
64
|
+
export { ALERT_STATUSES, BrowserStorage, Dialog, IconCache, IconRegistry, Locale, OverlayManager, Theme, Toast, UAlert, UAvatar, UBadge, UBreadcrumb, UBreadcrumbItem, UButton, UButtonGroup, UCard, UCarousel, UCheckbox, UChip, UCopyButton, UDatePicker, UDialog, UDivider, UDrawer, UElement, UExpander, UField, UFileInput, UFloatingElement, UForm, UFormControlElement, UIcon, UIconButton, UInput, UMenu, UMenuItem, UOption, UOverlayElement, UPanel, UPopover, UProgressBar, UProgressRing, URadio, URating, USelect, USkeleton, USlider, USpinner, USplitPanel, USwitch, UTab, UTabPanel, UTag, UText, UTextarea, UTooltip, UTree, UTreeItem, arrayAttrConverter, booleanAttrConverter, createDevWarner, dateAttrConverter, decodeTsv, devWarnOnce, encodeTsv, formatCurrency, formatDate, formatNumber, getDefaultBaseUrl, getParentElement, isCoarsePointer, isFocusCandidate, isImeComposing, jsonAttrConverter, querySelectorAllWithin, querySelectorDeep, querySelectorWithin, resetDevWarnings, setDefaultBaseUrl, urlAttrConverter };
|
|
@@ -12,7 +12,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
|
|
|
12
12
|
/** 내장 로케일은 자동완성되지만, 임의의 BCP47 태그도 그대로 받는다. */
|
|
13
13
|
export type LocaleTag = SupportedLocale | (string & {});
|
|
14
14
|
/** 라이브러리가 제공하는 chrome 문자열 키. 지금은 검증 메시지뿐이지만 이후 다른 UI 문구도 추가될 수 있다. */
|
|
15
|
-
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'chooseDate' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'breadcrumb' | 'search' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel';
|
|
15
|
+
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'breadcrumb' | 'search' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel';
|
|
16
16
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
17
17
|
/**
|
|
18
18
|
* 한 패키지(또는 앱 영역)의 문자열 묶음.
|
package/dist/utilities/icons.js
CHANGED
|
@@ -15,6 +15,8 @@ import info_circle_fill_svg_default from "../_virtual/_glob-assets_raw/info-circ
|
|
|
15
15
|
import layout_sidebar_svg_default from "../_virtual/_glob-assets_raw/layout-sidebar.svg.3fe5a68f.js";
|
|
16
16
|
import menu_2_svg_default from "../_virtual/_glob-assets_raw/menu-2.svg.d6c83cc4.js";
|
|
17
17
|
import minus_svg_default from "../_virtual/_glob-assets_raw/minus.svg.4610de75.js";
|
|
18
|
+
import player_pause_fill_svg_default from "../_virtual/_glob-assets_raw/player-pause-fill.svg.a756c400.js";
|
|
19
|
+
import player_play_fill_svg_default from "../_virtual/_glob-assets_raw/player-play-fill.svg.768b6efc.js";
|
|
18
20
|
import plus_svg_default from "../_virtual/_glob-assets_raw/plus.svg.d83ead68.js";
|
|
19
21
|
import search_svg_default from "../_virtual/_glob-assets_raw/search.svg.0ba2012d.js";
|
|
20
22
|
import star_fill_svg_default from "../_virtual/_glob-assets_raw/star-fill.svg.f24b5a2d.js";
|
|
@@ -58,6 +60,8 @@ var InternalIconBundle = new Map(Object.entries(/* #__PURE__ */ Object.assign({
|
|
|
58
60
|
"../assets/icons/layout-sidebar.svg": layout_sidebar_svg_default,
|
|
59
61
|
"../assets/icons/menu-2.svg": menu_2_svg_default,
|
|
60
62
|
"../assets/icons/minus.svg": minus_svg_default,
|
|
63
|
+
"../assets/icons/player-pause-fill.svg": player_pause_fill_svg_default,
|
|
64
|
+
"../assets/icons/player-play-fill.svg": player_play_fill_svg_default,
|
|
61
65
|
"../assets/icons/plus.svg": plus_svg_default,
|
|
62
66
|
"../assets/icons/search.svg": search_svg_default,
|
|
63
67
|
"../assets/icons/star-fill.svg": star_fill_svg_default,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 스프레드시트 클립보드 형식(TSV)의 인코더·디코더 — Excel·Google Sheets 와 복사·붙여넣기로 오가는 표.
|
|
3
|
+
*
|
|
4
|
+
* 규칙은 RFC 4180 의 인용 규칙을 탭 구분자에 적용한 것이다(Excel 이 클립보드에 쓰는 형식):
|
|
5
|
+
* - 셀에 탭·줄바꿈·큰따옴표가 있으면 셀 전체를 큰따옴표로 감싸고 안의 큰따옴표는 둘로 적는다.
|
|
6
|
+
* 감싸지 않으면 줄바꿈이 든 셀 하나가 붙여넣는 쪽에서 여러 행으로 쪼개진다.
|
|
7
|
+
* - 인용은 **셀의 첫 글자**가 큰따옴표일 때만 시작한다 — `5" 나사` 처럼 셀 중간의 따옴표는 글자다.
|
|
8
|
+
* - 행은 LF 로 잇고 끝에는 붙이지 않는다(한 셀을 복사해 입력란에 붙여넣을 때 줄바꿈이 따라오지 않게).
|
|
9
|
+
* 읽을 때는 CRLF·CR·LF 를 모두 받고, 스프레드시트가 붙이는 끝의 줄바꿈 **하나**는 새 행으로 세지 않는다.
|
|
10
|
+
* 마지막 행이 빈 셀 하나면 그 행을 잃지 않도록 줄바꿈으로 닫는다 — 그래서
|
|
11
|
+
* `decodeTsv(encodeTsv(rows))` 는 `rows` 와 같다.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 2차원 셀 배열을 스프레드시트에 붙여넣을 수 있는 TSV 로 씁니다.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* encodeTsv([['이름', '비고'], ['가', '첫 줄\n둘째 줄']]);
|
|
18
|
+
* // '이름\t비고\n가\t"첫 줄\n둘째 줄"'
|
|
19
|
+
*/
|
|
20
|
+
export declare function encodeTsv(rows: readonly (readonly string[])[]): string;
|
|
21
|
+
/**
|
|
22
|
+
* 스프레드시트에서 복사한 TSV 를 2차원 셀 배열로 읽습니다. `encodeTsv` 의 역입니다.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* decodeTsv('가\t"첫 줄\r\n둘째 줄"\r\n');
|
|
26
|
+
* // [['가', '첫 줄\r\n둘째 줄']]
|
|
27
|
+
*/
|
|
28
|
+
export declare function decodeTsv(text: string): string[][];
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/utilities/tsv.ts
|
|
2
|
+
/**
|
|
3
|
+
* 스프레드시트 클립보드 형식(TSV)의 인코더·디코더 — Excel·Google Sheets 와 복사·붙여넣기로 오가는 표.
|
|
4
|
+
*
|
|
5
|
+
* 규칙은 RFC 4180 의 인용 규칙을 탭 구분자에 적용한 것이다(Excel 이 클립보드에 쓰는 형식):
|
|
6
|
+
* - 셀에 탭·줄바꿈·큰따옴표가 있으면 셀 전체를 큰따옴표로 감싸고 안의 큰따옴표는 둘로 적는다.
|
|
7
|
+
* 감싸지 않으면 줄바꿈이 든 셀 하나가 붙여넣는 쪽에서 여러 행으로 쪼개진다.
|
|
8
|
+
* - 인용은 **셀의 첫 글자**가 큰따옴표일 때만 시작한다 — `5" 나사` 처럼 셀 중간의 따옴표는 글자다.
|
|
9
|
+
* - 행은 LF 로 잇고 끝에는 붙이지 않는다(한 셀을 복사해 입력란에 붙여넣을 때 줄바꿈이 따라오지 않게).
|
|
10
|
+
* 읽을 때는 CRLF·CR·LF 를 모두 받고, 스프레드시트가 붙이는 끝의 줄바꿈 **하나**는 새 행으로 세지 않는다.
|
|
11
|
+
* 마지막 행이 빈 셀 하나면 그 행을 잃지 않도록 줄바꿈으로 닫는다 — 그래서
|
|
12
|
+
* `decodeTsv(encodeTsv(rows))` 는 `rows` 와 같다.
|
|
13
|
+
*/
|
|
14
|
+
/** 이 셀은 인용해야 하는가 */
|
|
15
|
+
var NEEDS_QUOTE = /[\t\n\r"]/;
|
|
16
|
+
/**
|
|
17
|
+
* 2차원 셀 배열을 스프레드시트에 붙여넣을 수 있는 TSV 로 씁니다.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* encodeTsv([['이름', '비고'], ['가', '첫 줄\n둘째 줄']]);
|
|
21
|
+
* // '이름\t비고\n가\t"첫 줄\n둘째 줄"'
|
|
22
|
+
*/
|
|
23
|
+
function encodeTsv(rows) {
|
|
24
|
+
const lines = rows.map((row) => row.map((cell) => NEEDS_QUOTE.test(cell) ? `"${cell.replace(/"/g, "\"\"")}"` : cell).join(" "));
|
|
25
|
+
const text = lines.join("\n");
|
|
26
|
+
return lines.length > 0 && lines[lines.length - 1] === "" ? `${text}\n` : text;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 스프레드시트에서 복사한 TSV 를 2차원 셀 배열로 읽습니다. `encodeTsv` 의 역입니다.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* decodeTsv('가\t"첫 줄\r\n둘째 줄"\r\n');
|
|
33
|
+
* // [['가', '첫 줄\r\n둘째 줄']]
|
|
34
|
+
*/
|
|
35
|
+
function decodeTsv(text) {
|
|
36
|
+
const rows = [];
|
|
37
|
+
if (text === "") return rows;
|
|
38
|
+
let row = [];
|
|
39
|
+
let cell = "";
|
|
40
|
+
let i = 0;
|
|
41
|
+
const len = text.length;
|
|
42
|
+
let atCellStart = true;
|
|
43
|
+
const endCell = () => {
|
|
44
|
+
row.push(cell);
|
|
45
|
+
cell = "";
|
|
46
|
+
atCellStart = true;
|
|
47
|
+
};
|
|
48
|
+
const endRow = () => {
|
|
49
|
+
endCell();
|
|
50
|
+
rows.push(row);
|
|
51
|
+
row = [];
|
|
52
|
+
};
|
|
53
|
+
while (i < len) {
|
|
54
|
+
const ch = text[i];
|
|
55
|
+
if (atCellStart && ch === "\"") {
|
|
56
|
+
atCellStart = false;
|
|
57
|
+
i++;
|
|
58
|
+
while (i < len) if (text[i] === "\"") {
|
|
59
|
+
if (text[i + 1] === "\"") {
|
|
60
|
+
cell += "\"";
|
|
61
|
+
i += 2;
|
|
62
|
+
} else {
|
|
63
|
+
i++;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
} else cell += text[i++];
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
atCellStart = false;
|
|
70
|
+
if (ch === " ") {
|
|
71
|
+
endCell();
|
|
72
|
+
i++;
|
|
73
|
+
} else if (ch === "\r" || ch === "\n") {
|
|
74
|
+
endRow();
|
|
75
|
+
i += ch === "\r" && text[i + 1] === "\n" ? 2 : 1;
|
|
76
|
+
if (i === len) return rows;
|
|
77
|
+
} else {
|
|
78
|
+
cell += ch;
|
|
79
|
+
i++;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
endRow();
|
|
83
|
+
return rows;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { decodeTsv, encodeTsv };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/components",
|
|
3
3
|
"description": "web-components library based on lit-element made by iyulab",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.53.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"components",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"tabbable": "^6.5.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@lit/react": "
|
|
74
|
-
"react": "
|
|
73
|
+
"@lit/react": "^1.0.8",
|
|
74
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
75
75
|
"glob": ">=13.0.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|
|
@@ -135,6 +135,7 @@ carries the control's role, not on the host element. Native nodes use native `di
|
|
|
135
135
|
- [`elements`](./references/utilities/elements.md) — Shadow-DOM-aware DOM query helpers
|
|
136
136
|
- [`format`](./references/utilities/format.md) — Locale-aware number, currency and date formatting
|
|
137
137
|
- [`keyboard`](./references/utilities/keyboard.md) — `isImeComposing` for Enter handlers that must not fire mid-composition (Korean/Japanese/Chinese input)
|
|
138
|
+
- [`tsv`](./references/utilities/tsv.md) — `encodeTsv` / `decodeTsv`, the spreadsheet clipboard format with RFC 4180 quoting
|
|
138
139
|
- [`OverlayManager`](./references/utilities/overlay-manager.md) — Internal overlay stack and z-index manager
|
|
139
140
|
|
|
140
141
|
---
|
|
@@ -21,6 +21,11 @@ Slide carousel. Each direct child element becomes one slide.
|
|
|
21
21
|
</u-carousel>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
With `autoplay`, the carousel renders a stop/start button as the first control of its indicator
|
|
25
|
+
row (WCAG 2.2.2). Rotation pauses while the mouse is over the carousel and stops when keyboard focus
|
|
26
|
+
moves into it, until the user presses start (WAI-ARIA APG carousel pattern). Slides are
|
|
27
|
+
`aria-live="off"` while rotating and `polite` when stopped.
|
|
28
|
+
|
|
24
29
|
---
|
|
25
30
|
|
|
26
31
|
## Slots
|
|
@@ -61,3 +66,4 @@ Slide carousel. Each direct child element becomes one slide.
|
|
|
61
66
|
| `next-button` | Next navigation button |
|
|
62
67
|
| `indicator` | Pagination indicator wrapper |
|
|
63
68
|
| `dot` | Individual pagination dot |
|
|
69
|
+
| `rotation-button` | Stop/start button (only with `autoplay`, inside the indicator) |
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# tsv
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { encodeTsv, decodeTsv } from '@iyulab/components';
|
|
5
|
+
// or: import { encodeTsv, decodeTsv } from '@iyulab/components/dist/utilities/tsv.js';
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
The clipboard format spreadsheets use for copy and paste (Excel, Google Sheets, LibreOffice): cells
|
|
9
|
+
separated by tabs, rows separated by line breaks, and RFC 4180 quoting.
|
|
10
|
+
|
|
11
|
+
## `encodeTsv(rows: readonly (readonly string[])[]): string`
|
|
12
|
+
|
|
13
|
+
Writes a table that pastes into a spreadsheet cell for cell. A cell containing a tab, a line break, or a
|
|
14
|
+
double quote is wrapped in double quotes, with inner quotes doubled — without that, a cell with a line
|
|
15
|
+
break is split into several rows by the application you paste into. Rows are joined with `\n` and no line
|
|
16
|
+
break follows the last one, so a single copied cell pastes into a text field as just its text. (A last
|
|
17
|
+
row made of one empty cell is closed with `\n` so that it survives the round trip.)
|
|
18
|
+
|
|
19
|
+
## `decodeTsv(text: string): string[][]`
|
|
20
|
+
|
|
21
|
+
Reads what a spreadsheet put on the clipboard. Accepts `\r\n`, `\r` and `\n`; quoting starts only when a
|
|
22
|
+
cell's first character is a double quote (`5" bolt` is plain text); one trailing line break does not open
|
|
23
|
+
a new row, so a row of empty cells is kept. `decodeTsv(encodeTsv(rows))` returns `rows`.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
onCopy(e: ClipboardEvent) {
|
|
27
|
+
e.clipboardData?.setData('text/plain', encodeTsv(selectedCells));
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
}
|
|
30
|
+
onPaste(e: ClipboardEvent) {
|
|
31
|
+
const rows = decodeTsv(e.clipboardData?.getData('text/plain') ?? '');
|
|
32
|
+
// rows[r][c] are strings — convert per column
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`@iyulab/flex-table` and the `u-simple-sheet` / `u-rich-table` of `@iyulab/data-components` use it for
|
|
37
|
+
their clipboard.
|