@ihabdevteam/core 0.377.0 → 0.379.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 +150 -0
- package/dist/components.cjs.js +182 -182
- package/dist/components.esm.css +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +193 -193
- package/dist/ihabdevteam-core.d.ts +8 -8
- package/dist/packages/core/src/components/Badge.css +0 -76
- package/dist/packages/core/src/components/Badge.d.ts +1 -0
- package/dist/packages/core/src/components/Badge.js +4 -0
- package/dist/packages/core/src/components/BarChart.css +29 -29
- package/dist/packages/core/src/components/BarChart.js +20 -19
- package/dist/packages/core/src/components/BottomNav.js +3 -2
- package/dist/packages/core/src/components/ChartSection.css +70 -45
- package/dist/packages/core/src/components/ChartSection.d.ts +3 -3
- package/dist/packages/core/src/components/ChartSection.js +8 -7
- package/dist/packages/core/src/components/CircleBadge.css +87 -0
- package/dist/packages/core/src/components/CircleBadge.d.ts +1 -0
- package/dist/packages/core/src/components/CircleBadge.js +1 -0
- package/dist/packages/core/src/components/CountTile.js +1 -1
- package/dist/packages/core/src/components/Header.js +3 -2
- package/dist/packages/core/src/components/RingChart.js +6 -5
- package/dist/packages/core/src/components/Section.css +1 -1
- package/dist/packages/core/src/components/SectionHeadFloat.d.ts +1 -1
- package/dist/packages/core/src/components/SectionHeadFloat.js +1 -1
- package/dist/packages/core/src/components/StatChart.css +17 -17
- package/dist/packages/core/src/components/StatChart.d.ts +1 -1
- package/dist/packages/core/src/components/StatChart.js +3 -2
- package/dist/packages/core/src/components/Toolbar.css +1 -1
- package/dist/packages/core/src/components/Tooltip/DescriptionTooltip.css +9 -9
- package/dist/packages/core/src/components/Tooltip/DescriptionTooltip.js +3 -2
- package/dist/packages/core/src/components/Tooltip/InfoTooltip.css +6 -6
- package/dist/packages/core/src/components/Tooltip/InfoTooltip.js +2 -1
- package/dist/packages/core/src/components/Tooltip/MenuTooltip.css +15 -15
- package/dist/packages/core/src/components/Tooltip/MenuTooltip.js +2 -1
- package/dist/packages/core/src/components/Tooltip/TextBoxTooltip.css +15 -15
- package/dist/packages/core/src/components/Tooltip/TextBoxTooltip.js +4 -3
- package/dist/packages/core/src/components/Tooltip/Tooltip.css +21 -21
- package/dist/packages/core/src/components/Tooltip/Tooltip.js +4 -3
- package/dist/packages/core/src/components/Tooltip/TrainingTooltip.css +20 -5
- package/dist/packages/core/src/components/Tooltip/TrainingTooltip.d.ts +1 -1
- package/dist/packages/core/src/components/Tooltip/TrainingTooltip.js +5 -4
- package/dist/packages/core/src/components/Tooltip/WordImageTooltip.css +7 -7
- package/dist/packages/core/src/components/Tooltip/WordImageTooltip.js +5 -4
- package/dist/packages/core/src/components/Training/NoiseSettingsTooltip.css +15 -15
- package/dist/packages/core/src/components/Training/NoiseSettingsTooltip.js +3 -2
- package/dist/packages/core/src/components/Training/TrainingPagePopupBottom.js +1 -1
- package/dist/packages/core/src/components/Training/TrainingStepTextBox.css +1 -1
- package/dist/packages/core/src/components/Training/TrainingStepTitle.js +2 -2
- package/dist/packages/core/src/components/Training/useFloatingFocus.d.ts +1 -1
- package/dist/packages/core/src/components/Training/useFloatingFocus.js +2 -2
- package/dist/packages/core/src/components/Word/wordTablePrint.js +4 -4
- package/dist/packages/core/src/components/WordTable.css +69 -69
- package/dist/packages/core/src/components/WordTable.js +22 -15
- package/dist/packages/core/src/components/barChartTypes.d.ts +1 -1
- package/dist/packages/core/src/components/wordTableLayout.js +2 -2
- package/dist/packages/core/src/hooks/touchToggle.d.ts +1 -1
- package/dist/packages/core/src/hooks/touchToggle.js +2 -2
- package/dist/packages/core/src/utils/legacyBlocks.d.ts +53 -0
- package/dist/packages/core/src/utils/legacyBlocks.js +131 -0
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* ── 콘텐츠(절취선) 영역 ──────────────────────────────── */
|
|
23
|
-
.word-
|
|
23
|
+
.word-table__content {
|
|
24
24
|
position: relative;
|
|
25
25
|
display: grid;
|
|
26
26
|
width: 100%;
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
|
|
44
44
|
그래서 **번호가 있을 때만** 격자가 아래를 그만큼 비운다. 칸은 그만큼 낮아지는데, 그게
|
|
45
45
|
번호가 설 자리다. 번호가 없는 표는 한 픽셀도 안 바뀐다. */
|
|
46
|
-
.word-
|
|
46
|
+
.word-table__content--page-number {
|
|
47
47
|
padding-bottom: 28px;
|
|
48
48
|
}
|
|
49
49
|
/* 절취선 바탕은 **칸이 있는 데까지만** 칠한다 — 안 그러면 비워 둔 띠가 선 색으로 꽉 찬다
|
|
50
50
|
(`--cut-show` 는 격자 바탕을 선 색으로 깔고 칸이 그 위를 덮는 꼴이다). 칸 사이 틈은
|
|
51
51
|
content-box 안이라 그대로 남는다. */
|
|
52
|
-
.word-
|
|
52
|
+
.word-table__content--page-number.word-table__content--cut-show {
|
|
53
53
|
background-clip: content-box;
|
|
54
54
|
}
|
|
55
55
|
/* 외곽선도 칸이 있는 데까지 — 비워 둔 띠까지 두르면 번호가 표 안에 든 것처럼 보인다 */
|
|
56
|
-
.word-
|
|
56
|
+
.word-table__content--page-number.word-table__content--outline::after {
|
|
57
57
|
bottom: 28px;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -91,22 +91,22 @@
|
|
|
91
91
|
**비우는 여백과 테두리 자리는 띠 높이에서 스스로 나온다.** 따로 박아 두었더니 띠만
|
|
92
92
|
키웠을 때 띠가 표를 파고들고(위 −4px · 아래 −6px), 테두리가 칸 없는 빈 자리에 그려졌다.
|
|
93
93
|
한 값에서 나오게 두면 그 둘이 다시 안 어긋난다. */
|
|
94
|
-
.word-
|
|
94
|
+
.word-table__content--brand-top {
|
|
95
95
|
padding-top: calc(var(--wt-band-top-height, 36px) + 4px);
|
|
96
96
|
}
|
|
97
|
-
.word-
|
|
97
|
+
.word-table__content--brand-bottom {
|
|
98
98
|
padding-bottom: calc(var(--wt-band-bottom-height, 28px) + 4px);
|
|
99
99
|
}
|
|
100
100
|
/* 절취선 바탕·외곽선은 칸이 있는 데까지만 — 띠까지 두르면 로고가 표 안에 든 것처럼 보인다 */
|
|
101
|
-
.word-
|
|
102
|
-
.word-
|
|
101
|
+
.word-table__content--brand-top.word-table__content--cut-show,
|
|
102
|
+
.word-table__content--brand-bottom.word-table__content--cut-show {
|
|
103
103
|
background-clip: content-box;
|
|
104
104
|
}
|
|
105
105
|
/* 위 여백과 **같은 셈**이다 — 따로 적지 않는다(그래서 어긋날 수가 없다) */
|
|
106
|
-
.word-
|
|
106
|
+
.word-table__content--brand-top.word-table__content--outline::after {
|
|
107
107
|
top: calc(var(--wt-band-top-height, 36px) + 4px);
|
|
108
108
|
}
|
|
109
|
-
.word-
|
|
109
|
+
.word-table__content--brand-bottom.word-table__content--outline::after {
|
|
110
110
|
bottom: calc(var(--wt-band-bottom-height, 28px) + 4px);
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
.word-table__page-number--center { left: 50%; transform: translateX(-50%); }
|
|
286
286
|
|
|
287
287
|
/* 절취선: 표시 (solid, 내부 선만) */
|
|
288
|
-
.word-
|
|
288
|
+
.word-table__content--cut-show {
|
|
289
289
|
gap: 1px;
|
|
290
290
|
background: var(--color-whiteLine);
|
|
291
291
|
print-color-adjust: exact;
|
|
@@ -293,10 +293,10 @@
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
/* 외곽선 */
|
|
296
|
-
.word-
|
|
296
|
+
.word-table__content--outline {
|
|
297
297
|
position: relative;
|
|
298
298
|
}
|
|
299
|
-
.word-
|
|
299
|
+
.word-table__content--outline::after {
|
|
300
300
|
content: '';
|
|
301
301
|
position: absolute;
|
|
302
302
|
inset: 0;
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/* 절취선: 코너 */
|
|
309
|
-
.word-
|
|
309
|
+
.word-table__content--cut-corner .word-table__card {
|
|
310
310
|
print-color-adjust: exact;
|
|
311
311
|
-webkit-print-color-adjust: exact;
|
|
312
312
|
background:
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
/* ── 카드 ───────────────────────────────────────────────── */
|
|
325
|
-
.word-
|
|
325
|
+
.word-table__card {
|
|
326
326
|
display: flex;
|
|
327
327
|
/* 칸(.word-table-cell)은 투명이고 **이 카드가 면을 쥔다** — 그래서 `--cut-show` 의 선 바탕 위에
|
|
328
328
|
카드가 덮이고 `gap: 1px` 틈으로 선만 남는다. 면은 순백, 선은 선대로. */
|
|
@@ -333,25 +333,25 @@
|
|
|
333
333
|
transition: box-shadow 0.15s;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.word-
|
|
336
|
+
.word-table__card--filler {
|
|
337
337
|
align-items: center;
|
|
338
338
|
justify-content: center;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
.word-
|
|
341
|
+
.word-table__card:not(.word-table__card--filler):hover {
|
|
342
342
|
box-shadow: var(--shadow-dropdown);
|
|
343
343
|
z-index: 1;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
.word-
|
|
346
|
+
.word-table__card--draggable {
|
|
347
347
|
cursor: grab;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
.word-
|
|
350
|
+
.word-table__card--draggable:active {
|
|
351
351
|
cursor: grabbing;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
.word-
|
|
354
|
+
.word-table__card--drag-over {
|
|
355
355
|
outline: 2px solid var(--color-main);
|
|
356
356
|
outline-offset: -2px;
|
|
357
357
|
z-index: 2;
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
touch-action: none 은 **끌기가 익은 뒤에만** 걸린다 — 늘 걸어 두면 표 위에서 화면이
|
|
362
362
|
스크롤되지 않는다. 그래서 이 클래스에만 둔다(막는 몫의 대부분은 WordTable.tsx 가
|
|
363
363
|
passive:false 로 단 touchmove 가 하고, 이건 뒤늦게 오는 손짓을 막는 보탬이다). */
|
|
364
|
-
.word-
|
|
364
|
+
.word-table__card--dragging {
|
|
365
365
|
touch-action: none;
|
|
366
366
|
opacity: 0.6;
|
|
367
367
|
transform: scale(0.97);
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
/* 옮기기 손잡이 — 빼기 단추와 같은 규칙(평소엔 숨고 hover·초점에 드러난다), 자리만 왼쪽이다 */
|
|
374
|
-
.word-
|
|
374
|
+
.word-table__card-handle {
|
|
375
375
|
position: absolute;
|
|
376
376
|
top: 20px;
|
|
377
377
|
left: 20px;
|
|
@@ -381,14 +381,14 @@
|
|
|
381
381
|
cursor: grab;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.word-
|
|
385
|
-
.word-
|
|
386
|
-
.word-
|
|
387
|
-
.word-
|
|
384
|
+
.word-table__card:focus-within .word-table__card-handle,
|
|
385
|
+
.word-table__card-handle:focus-within,
|
|
386
|
+
.word-table__card-handle:focus-visible,
|
|
387
|
+
.word-table__card:hover .word-table__card-handle {
|
|
388
388
|
opacity: 1;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
.word-
|
|
391
|
+
.word-table__card-close {
|
|
392
392
|
position: absolute;
|
|
393
393
|
top: 20px;
|
|
394
394
|
right: 20px;
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
|
|
408
408
|
**자리를 수로 못 박지 않는다** — 쌓으면 몇 개가 들든 붙어 선다. 틈은 왼쪽 기둥과 같은
|
|
409
409
|
0 이라, 재생과 빼기가 같은 높이에 선다. */
|
|
410
|
-
.word-
|
|
410
|
+
.word-table__card-actions {
|
|
411
411
|
position: absolute;
|
|
412
412
|
top: 20px;
|
|
413
413
|
right: 20px;
|
|
@@ -421,8 +421,8 @@
|
|
|
421
421
|
}
|
|
422
422
|
/* 기둥 안에 들면 제 자리를 안 잡는다 — 기둥이 잡아 준다. 편집 모드(`cells`)의 빼기는
|
|
423
423
|
기둥 없이 혼자 서므로 위 규칙이 그대로 산다. */
|
|
424
|
-
.word-
|
|
425
|
-
.word-
|
|
424
|
+
.word-table__card-actions .word-table__card-close,
|
|
425
|
+
.word-table__card-actions .word-table__card-handle {
|
|
426
426
|
position: static;
|
|
427
427
|
top: auto;
|
|
428
428
|
right: auto;
|
|
@@ -431,19 +431,19 @@
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
/* 키보드 대응 — opacity:0인 채로 포커스가 가면 사용자는 보이지 않는 버튼을 누르게 된다 */
|
|
434
|
-
.word-
|
|
435
|
-
.word-
|
|
436
|
-
.word-
|
|
437
|
-
.word-
|
|
434
|
+
.word-table__card:focus-within .word-table__card-actions,
|
|
435
|
+
.word-table__card-actions:focus-within,
|
|
436
|
+
.word-table__card:hover .word-table__card-actions,
|
|
437
|
+
.word-table__card:focus-within .word-table__card-close,
|
|
438
438
|
/* 이 요소들은 **버튼을 감싼 div**라 자신은 포커스를 못 받는다 — :focus-visible이 아니라
|
|
439
439
|
:focus-within으로 봐야 안의 버튼이 포커스를 받았을 때 드러난다(실측으로 확인). */
|
|
440
|
-
.word-
|
|
441
|
-
.word-
|
|
442
|
-
.word-
|
|
440
|
+
.word-table__card-close:focus-within,
|
|
441
|
+
.word-table__card-close:focus-visible,
|
|
442
|
+
.word-table__card:hover .word-table__card-close {
|
|
443
443
|
opacity: 1;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
.word-
|
|
446
|
+
.word-table__pair-divider {
|
|
447
447
|
display: none;
|
|
448
448
|
flex-shrink: 0;
|
|
449
449
|
width: 1px;
|
|
@@ -454,12 +454,12 @@
|
|
|
454
454
|
-webkit-print-color-adjust: exact;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
.word-
|
|
457
|
+
.word-table__content--div-line .word-table__pair-divider {
|
|
458
458
|
display: block;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
/* ── 편집 모드 셀 ──────────────────────────────────────── */
|
|
462
|
-
.word-
|
|
462
|
+
.word-table__edit-cell {
|
|
463
463
|
display: flex;
|
|
464
464
|
flex-direction: row;
|
|
465
465
|
align-items: stretch;
|
|
@@ -470,28 +470,28 @@
|
|
|
470
470
|
transition: box-shadow 0.15s;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
.word-
|
|
473
|
+
.word-table__edit-cell--filled:hover {
|
|
474
474
|
box-shadow: var(--shadow-dropdown);
|
|
475
475
|
z-index: 1;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
.word-
|
|
479
|
-
.word-
|
|
478
|
+
.word-table__edit-cell--filled:focus-within .word-table__card-close,
|
|
479
|
+
.word-table__edit-cell--filled:hover .word-table__card-close {
|
|
480
480
|
opacity: 1;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.word-
|
|
483
|
+
.word-table__edit-cell--empty {
|
|
484
484
|
align-items: center;
|
|
485
485
|
justify-content: center;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
.word-
|
|
488
|
+
.word-table__edit-cell--active {
|
|
489
489
|
background: rgba(var(--color-main-rgb, 73, 156, 223), 0.04);
|
|
490
490
|
outline: 2px solid var(--color-main);
|
|
491
491
|
outline-offset: -2px;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
.word-
|
|
494
|
+
.word-table__content--cut-corner .word-table__edit-cell {
|
|
495
495
|
print-color-adjust: exact;
|
|
496
496
|
-webkit-print-color-adjust: exact;
|
|
497
497
|
background:
|
|
@@ -610,11 +610,11 @@
|
|
|
610
610
|
transition: opacity 0.15s;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
.word-
|
|
614
|
-
.word-
|
|
613
|
+
.word-table__card:hover .word-table-cell__play-button,
|
|
614
|
+
.word-table__edit-cell:focus-within .word-table-cell__play-button,
|
|
615
615
|
.word-table-cell__play-button:focus-within,
|
|
616
616
|
.word-table-cell__play-button:focus-visible,
|
|
617
|
-
.word-
|
|
617
|
+
.word-table__edit-cell:hover .word-table-cell__play-button {
|
|
618
618
|
opacity: 1;
|
|
619
619
|
}
|
|
620
620
|
|
|
@@ -623,20 +623,20 @@
|
|
|
623
623
|
transition: opacity 0.15s;
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
.word-
|
|
627
|
-
.word-
|
|
626
|
+
.word-table__card:hover .word-table-cell__info-button,
|
|
627
|
+
.word-table__edit-cell:focus-within .word-table-cell__info-button,
|
|
628
628
|
.word-table-cell__info-button:focus-within,
|
|
629
629
|
.word-table-cell__info-button:focus-visible,
|
|
630
|
-
.word-
|
|
630
|
+
.word-table__edit-cell:hover .word-table-cell__info-button {
|
|
631
631
|
opacity: 1;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
/* 터치 기기에는 hover 가 없다 — 위 규칙들이 :hover 로만 드러내 손가락으로는 빼기·재생·정보 단추가 보이지 않았다
|
|
635
635
|
(보이지 않는 단추를 짐작으로 눌러야 했다). 늘 보이게만 한다 — 색·모양은 그대로. 인쇄에서는 아래 @media print 가 치운다. */
|
|
636
636
|
@media (hover: none) {
|
|
637
|
-
.word-
|
|
638
|
-
.word-
|
|
639
|
-
.word-
|
|
637
|
+
.word-table__card-close,
|
|
638
|
+
.word-table__card-actions,
|
|
639
|
+
.word-table__card-handle,
|
|
640
640
|
.word-table-cell__play-button,
|
|
641
641
|
.word-table-cell__info-button {
|
|
642
642
|
opacity: 1;
|
|
@@ -646,12 +646,12 @@
|
|
|
646
646
|
/* 움직임을 줄여 달라고 한 사람에게는 끌기 중 움직임 효과를 뺀다 — 자리가 바뀌었다는 것은
|
|
647
647
|
테두리(--drag-over)와 흐려짐만으로도 알 수 있다. 크기가 튀는 것이 어지럼을 부른다. */
|
|
648
648
|
@media (prefers-reduced-motion: reduce) {
|
|
649
|
-
.word-
|
|
650
|
-
.word-
|
|
651
|
-
.word-
|
|
649
|
+
.word-table__card,
|
|
650
|
+
.word-table__card-handle,
|
|
651
|
+
.word-table__card-close {
|
|
652
652
|
transition: none;
|
|
653
653
|
}
|
|
654
|
-
.word-
|
|
654
|
+
.word-table__card--dragging {
|
|
655
655
|
transform: none;
|
|
656
656
|
transition: none;
|
|
657
657
|
}
|
|
@@ -731,9 +731,9 @@
|
|
|
731
731
|
transform: none !important;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
.word-
|
|
735
|
-
.word-
|
|
736
|
-
.word-
|
|
734
|
+
.word-table__card-close,
|
|
735
|
+
.word-table__card-actions,
|
|
736
|
+
.word-table__card-handle { display: none; }
|
|
737
737
|
|
|
738
738
|
.word-table-cell__play-button,
|
|
739
739
|
.word-table-cell__info-button,
|
|
@@ -790,10 +790,10 @@
|
|
|
790
790
|
/* 고른 것은 늘 보인다 — 표를 훑어 "어디를 어떻게 봤는지"가 한눈에 들어와야 한다.
|
|
791
791
|
마우스를 올리거나 포커스를 받으면 셋이 함께 나타나 고를 수 있다. */
|
|
792
792
|
.word-table-cell__score-slot--on,
|
|
793
|
-
.word-
|
|
794
|
-
.word-
|
|
795
|
-
.word-
|
|
796
|
-
.word-
|
|
793
|
+
.word-table__card:hover .word-table-cell__score-slot,
|
|
794
|
+
.word-table__card:focus-within .word-table-cell__score-slot,
|
|
795
|
+
.word-table__edit-cell:hover .word-table-cell__score-slot,
|
|
796
|
+
.word-table__edit-cell:focus-within .word-table-cell__score-slot,
|
|
797
797
|
.word-table-cell__score:focus-within .word-table-cell__score-slot {
|
|
798
798
|
/* 잘라 둔 것을 되돌린다 — 위 다섯 줄을 모두 거둬야 제자리에 선다 */
|
|
799
799
|
position: static;
|
|
@@ -906,8 +906,8 @@
|
|
|
906
906
|
/* 인쇄에는 **고른 표시만** 나간다. 위 규칙이 이미 그렇게 하지만, 인쇄 순간 마우스가
|
|
907
907
|
어느 칸 위에 있으면 그 칸만 단추 셋이 찍힌다 — 호버 규칙을 인쇄에서 끈다. */
|
|
908
908
|
@media print {
|
|
909
|
-
.word-
|
|
910
|
-
.word-
|
|
909
|
+
.word-table__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),
|
|
910
|
+
.word-table__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on) {
|
|
911
911
|
display: none;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
@@ -950,6 +950,6 @@
|
|
|
950
950
|
걸치는 자리는 칸 수에 따라 달라지므로 인라인으로 걸고, 여기서는 면과 결만 쥔다.
|
|
951
951
|
`--filler` 와 달리 속을 가운데로 모으지 않는다 — 속의 `WordCell` 이 제 상자를 꽉 쓴다.
|
|
952
952
|
옮기기·초점 셈에서 이 칸은 빠진다(`WordTable.tsx` 의 카드 쿼리가 `:not()` 으로 뺀다). */
|
|
953
|
-
.word-
|
|
953
|
+
.word-table__card--base {
|
|
954
954
|
align-items: stretch;
|
|
955
955
|
}
|
|
@@ -7,6 +7,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
import './WordTable.css';
|
|
8
8
|
import Button from './Button';
|
|
9
9
|
import Badge from './Badge';
|
|
10
|
+
import { withLegacy } from '../utils/legacyBlocks';
|
|
10
11
|
import Section from './Section';
|
|
11
12
|
import DescriptionTooltip from './Tooltip/DescriptionTooltip';
|
|
12
13
|
import { getTTSUrlResolver, getTTSFallbackUrlResolver } from '../utils/ttsConfig';
|
|
@@ -359,8 +360,8 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
|
|
|
359
360
|
if (to == null)
|
|
360
361
|
return;
|
|
361
362
|
focusTarget.current = null;
|
|
362
|
-
const cells = gridRef.current?.querySelectorAll('.word-
|
|
363
|
-
cells?.[to]?.querySelector('.word-
|
|
363
|
+
const cells = gridRef.current?.querySelectorAll('.word-table__card:not(.word-table__card--filler):not(.word-table__card--base)');
|
|
364
|
+
cells?.[to]?.querySelector('.word-table__card-handle button')?.focus();
|
|
364
365
|
});
|
|
365
366
|
/* 떠날 때 걸어 둔 것을 푼다 — 길게 누르는 중에 팝업이 닫히면 window 리스너와
|
|
366
367
|
타이머가 남아 사라진 화면의 상태를 건드린다(표의 폭 조절에서 겪은 것과 같다). */
|
|
@@ -397,7 +398,7 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
|
|
|
397
398
|
/* 칸 안 단추를 길게 누른 것은 그 단추 몫이다(재생·정보·빼기) — 옮기기 손잡이만 예외.
|
|
398
399
|
안 가르면 발음을 들으려고 꾹 누른 손가락에 칸이 끌려간다. */
|
|
399
400
|
const pressedButton = e.target.closest?.('button');
|
|
400
|
-
if (pressedButton && !pressedButton.closest('.word-
|
|
401
|
+
if (pressedButton && !pressedButton.closest('.word-table__card-handle'))
|
|
401
402
|
return;
|
|
402
403
|
release.current?.();
|
|
403
404
|
const start = { x: e.clientX, y: e.clientY };
|
|
@@ -535,12 +536,12 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
|
|
|
535
536
|
const showTopBand = Boolean(brand?.show) && brand?.top !== false;
|
|
536
537
|
const showBottomBand = Boolean(brand?.show) && brand?.bottom !== false;
|
|
537
538
|
const copyright = brand?.copyright ?? '© IHAB, Inc. All rights reserved.';
|
|
538
|
-
const contentClass = cx('word-
|
|
539
|
+
const contentClass = withLegacy(cx('word-table__content', CUT_CLASS[cutLine], showOutline && 'word-table__content--outline', showDivLine && hasPairs && 'word-table__content--div-line',
|
|
539
540
|
/* 번호가 설 자리를 비운다 — 번호가 없으면 비우지 않는다(표가 공연히 낮아지지 않게) */
|
|
540
|
-
!showBrand && pageNumber && pageNumberPosition !== 'none' && 'word-
|
|
541
|
+
!showBrand && pageNumber && pageNumberPosition !== 'none' && 'word-table__content--page-number',
|
|
541
542
|
/* 띠가 설 자리를 위아래로 비운다 — 같은 까닭으로 띠가 없으면 안 비운다.
|
|
542
543
|
바닥 띠가 쪽 번호 자리를 겸하므로 둘이 겹쳐도 아래는 한 번만 비운다(CSS 가 덮어쓴다). */
|
|
543
|
-
showTopBand && 'word-
|
|
544
|
+
showTopBand && 'word-table__content--brand-top', showBottomBand && 'word-table__content--brand-bottom'));
|
|
544
545
|
// 빈칸(추가버튼)은 스케일 역보정으로 실제 크기 유지
|
|
545
546
|
const counterScale = { transform: `scale(${1 / scale})`, transformOrigin: 'center center' };
|
|
546
547
|
/* **채점 단추는 표와 함께 줄어들면 안 된다.**
|
|
@@ -567,19 +568,19 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
|
|
|
567
568
|
className: cx('word-table', scoring && !canMark && 'word-table--score-readonly', !wrapped && className), style: { width, height, transform: `scale(${scale})`, transformOrigin: 'top left', marginLeft: offset }, children: _jsxs("div", { ref: gridContentRef, className: contentClass, style: {
|
|
568
569
|
gridTemplateColumns: `repeat(${cols}, 1fr)`,
|
|
569
570
|
gridTemplateRows: `repeat(${rows}, 1fr)`,
|
|
570
|
-
}, children: [isEdit ? (_jsx(_Fragment, { children: (editCells ?? []).map((cell, i) => (_jsx("div", { className: cx('word-
|
|
571
|
+
}, children: [isEdit ? (_jsx(_Fragment, { children: (editCells ?? []).map((cell, i) => (_jsx("div", { className: withLegacy(cx('word-table__edit-cell', cell ? 'word-table__edit-cell--filled' : 'word-table__edit-cell--empty', activeCell === i ? 'word-table__edit-cell--active' : '')), style: dotDashStyle(i, cols, rows, cutLine), children: cell ? (_jsxs(_Fragment, { children: [cell.map((e, wi) => (_jsxs(Fragment, { children: [wi > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: e.word, subLabel: e.pronunciation,
|
|
571
572
|
// 편집 칸도 구어체 발음을 넘긴다 — 빠져 있어 '구어체 발음'을 켜도 편집 모드에서만 비었다.
|
|
572
|
-
colloquialLabel: e.colloquialPronunciation, homonum: e.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, buttonSize: buttonSize })] }, wi))), scoring && renderScore(i, cell.map(e => e.word).join(' / ')), onRemoveCell && (_jsx("div", { className: "word-
|
|
573
|
+
colloquialLabel: e.colloquialPronunciation, homonum: e.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, buttonSize: buttonSize })] }, wi))), scoring && renderScore(i, cell.map(e => e.word).join(' / ')), onRemoveCell && (_jsx("div", { className: withLegacy("word-table__card-close"), children: _jsx(Button, { htmlType: "button", size: buttonSize, type: "dot", icon: "x", variant: "transparent-lightGray", useBorder: false, showTooltipInfo: cell.length > 1 ? t('wordPrint.removePair', '대립쌍 빼기') : t('wordPrint.removeWord', '단어 빼기'), ariaLabel: cell.length > 1 ? t('wordPrint.removePair', '대립쌍 빼기') : t('wordPrint.removeWord', '단어 빼기'), onClick: () => onRemoveCell(i) }) }))] })) : (onActivateCell && (_jsx("div", { style: counterScale, children: _jsx(Button, { htmlType: "button", size: "48", type: "bar", icon: "plus", label: t('wordTable.addWord', '추가하기'), onClick: () => onActivateCell(i) }) }))) }, i))) })) : (_jsxs(_Fragment, { children: [hasBase && baseItem && (
|
|
573
574
|
/* 걸치는 자리는 양쪽이 같은 식이다 — 가로면 왼쪽 `half.cols` 열 × 전체 `half.rows` 줄,
|
|
574
575
|
세로면 전체 `half.cols` 열 × 위 `half.rows` 줄. 둘 다 `1 / span` 으로 같게 적힌다. */
|
|
575
|
-
_jsx("div", { className: "word-
|
|
576
|
+
_jsx("div", { className: withLegacy("word-table__card word-table__card--base"), style: {
|
|
576
577
|
gridColumn: `1 / span ${half.cols}`,
|
|
577
578
|
gridRow: `1 / span ${half.rows}`,
|
|
578
579
|
/* 머리 칸과 나머지 절반을 가르는 점선 — 가로면 오른쪽, 세로면 아래쪽 */
|
|
579
580
|
...dotDashStyle(0, orientation === 'landscape' ? 2 : 1, orientation === 'landscape' ? 1 : 2, cutLine),
|
|
580
|
-
}, children: (baseItem.words ?? []).map((w, wi) => (_jsxs(Fragment, { children: [wi > 0 && _jsx("div", { className: "word-
|
|
581
|
+
}, children: (baseItem.words ?? []).map((w, wi) => (_jsxs(Fragment, { children: [wi > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: baseShow.word, showImage: baseShow.image, showPronunciation: baseShow.pron, showColloquial: baseShow.colloq, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, wi))) })), (items ?? []).map((item, index) => (_jsxs("div", { "data-wordtable-cell": onReorder ? index : undefined, className: withLegacy(`word-table__card${onReorder ? ' word-table__card--draggable' : ''}${dragOver === index ? ' word-table__card--drag-over' : ''}${dragging === index ? ' word-table__card--dragging' : ''}`), style: dotDashStyle(index, itemCols, itemRows, cutLine), draggable: !!onReorder, onPointerDown: onReorder ? (e) => longPressDrag(e, index) : undefined, onKeyDown: onReorder ? (e) => moveByKey(e, index) : undefined, onDragStart: onReorder ? () => { dragIndex.current = index; } : undefined, onDragOver: onReorder ? (e) => { e.preventDefault(); setDragOver(index); } : undefined, onDragLeave: onReorder ? () => setDragOver(null) : undefined, onDrop: onReorder ? (e) => { e.preventDefault(); if (dragIndex.current !== null && dragIndex.current !== index) {
|
|
581
582
|
onReorder(dragIndex.current, index);
|
|
582
|
-
} ; dragIndex.current = null; setDragOver(null); } : undefined, onDragEnd: onReorder ? () => { dragIndex.current = null; setDragOver(null); } : undefined, children: [(item.words ?? []).map((w, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("div", { className: "word-
|
|
583
|
+
} ; dragIndex.current = null; setDragOver(null); } : undefined, onDragEnd: onReorder ? () => { dragIndex.current = null; setDragOver(null); } : undefined, children: [(item.words ?? []).map((w, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, i))), scoring && renderScore(index, (item.words ?? []).map(w => w.label).join(' / ')), (renderCellAction || onRemoveItem || onReorder) && (
|
|
583
584
|
/* **오른쪽 기둥** — 빼기 → 부르는 쪽이 얹은 것 → 옮기기 손잡이 차례로 쌓인다
|
|
584
585
|
(말귀 청 (331), 2026-10-28). 전에는 빼기와 얹은 것만 **한 줄**로 서고
|
|
585
586
|
손잡이는 왼쪽 위에 따로 섰다 — 재생 단추와 **같은 자리라 겹쳤다.**
|
|
@@ -589,20 +590,20 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
|
|
|
589
590
|
단어표에 맞춘 것이라 끼어들 단추가 없는 표에서 구멍이 났다(활용표: ✕ 밑이
|
|
590
591
|
48px 비고 손잡이만 홀로 내려가 있었다).
|
|
591
592
|
**자리를 수로 못 박지 않는다** — 쌓아서 세우면 몇 개가 들든 붙어 선다. */
|
|
592
|
-
_jsxs("div", { className: "word-
|
|
593
|
+
_jsxs("div", { className: withLegacy("word-table__card-actions"), children: [onRemoveItem && (_jsx("div", { className: withLegacy("word-table__card-close"), children: _jsx(Button, { htmlType: "button", size: buttonSize, type: "dot", icon: "x", variant: "transparent-lightGray", useBorder: false, showTooltipInfo: (item.words ?? []).length > 1 ? t('wordPrint.removePair', '대립쌍 빼기') : t('wordPrint.removeWord', '단어 빼기'), ariaLabel: (item.words ?? []).length > 1 ? t('wordPrint.removePair', '대립쌍 빼기') : t('wordPrint.removeWord', '단어 빼기'), onClick: () => onRemoveItem(item.id) }) })), renderCellAction?.(index, item), onReorder && (
|
|
593
594
|
/* **옮기기 손잡이.** 키보드로 순서를 바꾸려면 초점이 갈 자리가 있어야 하는데,
|
|
594
595
|
칸 자체를 초점 대상으로 만들면 칸마다 뜻 없는 탭 정지점이 하나씩 늘고
|
|
595
596
|
낭독기는 그것이 무엇인지 말할 수 없다. 이름 붙은 진짜 단추를 둔다 —
|
|
596
597
|
"끌 수 있다"는 것을 눈으로도 알려 주는 몫까지 겸한다.
|
|
597
598
|
기둥 **맨 아래**가 사장님이 이르신 차례다. */
|
|
598
|
-
_jsx("div", { className: "word-
|
|
599
|
+
_jsx("div", { className: withLegacy("word-table__card-handle"), children: _jsx(Button, { htmlType: "button", size: buttonSize, type: "dot", icon: "grip-vertical", variant: "transparent-lightGray", useBorder: false, showTooltipInfo: t('wordTable.reorder.hint', 'Alt + ← → 로 순서 바꾸기'),
|
|
599
600
|
/* 표에 손잡이가 열둘이면 "버튼" 만으로는 어느 칸인지 알 길이 없다 — 낱말을 이름에 넣는다 */
|
|
600
601
|
ariaLabel: t('wordTable.reorder.handle', {
|
|
601
602
|
word: (item.words ?? []).map(w => w.label).join(' / '),
|
|
602
603
|
defaultValue: '{{word}} 순서 바꾸기 (Alt + 화살표)',
|
|
603
604
|
}) }) }))] }))] }, index))), Array.from({ length: Math.max(0, itemCols * itemRows - (items?.length ?? 0)) }).map((_, i) => {
|
|
604
605
|
const isWithinCount = (items?.length ?? 0) + i < (addableCount ?? cellCount);
|
|
605
|
-
return (_jsx("div", { className: "word-
|
|
606
|
+
return (_jsx("div", { className: withLegacy("word-table__card word-table__card--filler"), children: showFillerAdd && onActivateCell && isWithinCount && (_jsx("div", { style: counterScale, children: _jsx(Button, { htmlType: "button", size: buttonSize, type: "bar", icon: "plus", label: t('wordTable.addWord', '추가하기'), onClick: () => onActivateCell((items?.length ?? 0) + i) }) })) }, `filler-${i}`));
|
|
606
607
|
})] })), showTopBand && (_jsx(_Fragment, { children: _jsxs("div", { className: "word-table__band word-table__band--top", children: [_jsx("img", { className: "word-table__brand-logo", src: brand?.topLogo?.src ?? speechearLogo, alt: brand?.topLogo?.alt ?? '말귀' }), (() => {
|
|
607
608
|
/* 표 제목 · 기관 이름 · 표 번호 — 있는 것끼리만 가운뎃점으로 잇는다
|
|
608
609
|
(사용자 지시 2026-09-30). 없는 것 자리에 점이 남으면 안 된다. */
|
|
@@ -622,7 +623,13 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
|
|
|
622
623
|
납작할 때 아래로만 쏠려 보이지 않게. */
|
|
623
624
|
const contents = frameHeight == null ? grid : (_jsx("div", { className: "word-table__frame", style: { height: frameHeight }, children: grid }));
|
|
624
625
|
if (wrapped) {
|
|
625
|
-
return (
|
|
626
|
+
return (
|
|
627
|
+
/* 제목을 주면 `Section` 이 표를 감싼다. 그 테두리의 이름은 **`word-table__section`**
|
|
628
|
+
이다 — 전에는 `word-table-block` 이었는데 그것은 **다른 파일의 다른 컴포넌트**
|
|
629
|
+
(`Word/WordTableBlock.tsx`)의 이름이라, 홀로 선 `<WordTable title=…>` 이 그쪽
|
|
630
|
+
규칙을 함께 받았다(`WordTableBlock.css` 의 `.word-table-block` 은 지금 빈 규칙이라
|
|
631
|
+
탈이 안 났을 뿐이다). 표 그 자체는 안쪽 `.word-table` 이다. */
|
|
632
|
+
_jsx(Section, { type: "page", icon: titleIcon, title: title, disc: disc, className: cx(withLegacy('word-table__section'), className), children: contents }));
|
|
626
633
|
}
|
|
627
634
|
return contents;
|
|
628
635
|
}
|
|
@@ -55,7 +55,7 @@ export interface BarChartProps {
|
|
|
55
55
|
* 줄어든다(2026-09-10 말귀 실측). 이 값은 굵기만 바꾼다. 막대가 많아지면 여기
|
|
56
56
|
* 적은 값을 **위 한계**로 두고 점진 축소하는 것은 그대로다. 아래 한계는 2px(그보다 작은 값은 2 로).
|
|
57
57
|
*
|
|
58
|
-
* CSS 로 덮고 싶으면 `.
|
|
58
|
+
* CSS 로 덮고 싶으면 `.bar-chart__bar`·`-stack` 의 `--bar-width` 를 쓴다 —
|
|
59
59
|
* 굵기는 인라인이 아니라 그 변수로 박혀 있다.
|
|
60
60
|
*/
|
|
61
61
|
barWidth?: number;
|
|
@@ -185,9 +185,9 @@ export function halfGridFor(orientation, count) {
|
|
|
185
185
|
return bestScale > baseScale * 1.05 ? best : base;
|
|
186
186
|
}
|
|
187
187
|
export const CUT_CLASS = {
|
|
188
|
-
show: 'word-
|
|
188
|
+
show: 'word-table__content--cut-show',
|
|
189
189
|
dashed: '',
|
|
190
|
-
corner: 'word-
|
|
190
|
+
corner: 'word-table__content--cut-corner',
|
|
191
191
|
hide: '',
|
|
192
192
|
};
|
|
193
193
|
export const POS_LABEL = {
|
|
@@ -7,7 +7,7 @@ export declare function isTouchPointer(e: {
|
|
|
7
7
|
export declare function recentlyTouched(ms?: number): boolean;
|
|
8
8
|
/**
|
|
9
9
|
* 톡으로 뒤집는 손잡이. `open` 은 지금 열림, `setOpen(next, el)` 은 열기(el 은 앵커)·닫기.
|
|
10
|
-
* `rootRef` 는 트리거를 품은 요소 — 이 밖(툴팁 판 `.
|
|
10
|
+
* `rootRef` 는 트리거를 품은 요소 — 이 밖(툴팁 판 `.tooltip__content` 도 제외)을 톡하면 닫는다.
|
|
11
11
|
*
|
|
12
12
|
* - `touchPress()` — 지금 누름이 이 트리거 위의 **톡**이었으면 뒤집고 true. 켜진 트리거는 click 에서, 막힌 단추(click 이 안 온다)는
|
|
13
13
|
* pointerup 에서 부른다. click 에서 뒤집는 까닭: pointerup 에서 열면 뒤따르는 호환 click 을 툴팁이 "바깥 누름" 으로 받아 곧바로 닫았다.
|
|
@@ -34,7 +34,7 @@ export function recentlyTouched(ms = 1000) {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* 톡으로 뒤집는 손잡이. `open` 은 지금 열림, `setOpen(next, el)` 은 열기(el 은 앵커)·닫기.
|
|
37
|
-
* `rootRef` 는 트리거를 품은 요소 — 이 밖(툴팁 판 `.
|
|
37
|
+
* `rootRef` 는 트리거를 품은 요소 — 이 밖(툴팁 판 `.tooltip__content` 도 제외)을 톡하면 닫는다.
|
|
38
38
|
*
|
|
39
39
|
* - `touchPress()` — 지금 누름이 이 트리거 위의 **톡**이었으면 뒤집고 true. 켜진 트리거는 click 에서, 막힌 단추(click 이 안 온다)는
|
|
40
40
|
* pointerup 에서 부른다. click 에서 뒤집는 까닭: pointerup 에서 열면 뒤따르는 호환 click 을 툴팁이 "바깥 누름" 으로 받아 곧바로 닫았다.
|
|
@@ -65,7 +65,7 @@ export function useTouchToggle(open, setOpen, rootRef, { enabled = true, fallbac
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
openOnPress.current = null;
|
|
68
|
-
if (openRef.current && !(t && t.closest?.('.
|
|
68
|
+
if (openRef.current && !(t && t.closest?.('.tooltip__content')))
|
|
69
69
|
setOpenRef.current(false, root);
|
|
70
70
|
};
|
|
71
71
|
document.addEventListener('pointerdown', onPress, true);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **이름을 바꾼 CSS 이름 — 옛 이름을 한동안 함께 단다.**
|
|
3
|
+
*
|
|
4
|
+
* 클래스 이름은 공개된 겉면이다. 2026-10-28 실측: 말귀가 `word-table-block__card` 를
|
|
5
|
+
* **19곳**, `manager-section` 을 **19 파일**에서 겨누고 있었다. 그냥 바꾸면 그쪽은 올려
|
|
6
|
+
* 받는 순간 깨진다.
|
|
7
|
+
*
|
|
8
|
+
* 그래서 마디가 **두 이름을 다 들고** 선다 — 코어 CSS 는 새 이름만 쓰고, 앱 CSS 가 겨누던
|
|
9
|
+
* 옛 이름도 그대로 맞는다. 소비자가 다 옮겼다고 알려 오면 여기서 지운다.
|
|
10
|
+
*
|
|
11
|
+
* 규약은 `NAMING.md` 에 있다. `npm run audit:class-names` 가 이 표를 읽어, 여기 적힌
|
|
12
|
+
* 옛 이름은 *"어긋난 것"* 이 아니라 *"떼기로 한 것"* 으로 센다.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* `새 이름 → 옛 이름`. **앞머리**를 적는다 — 뒤에 붙는 조각(`__…`)과 꼴(`--…`)은 그대로
|
|
18
|
+
* 따라온다.
|
|
19
|
+
*
|
|
20
|
+
* ```
|
|
21
|
+
* 'menu-tooltip': 'tooltip-menu'
|
|
22
|
+
* menu-tooltip → tooltip-menu
|
|
23
|
+
* menu-tooltip__header → tooltip-menu__header
|
|
24
|
+
* menu-tooltip--small → tooltip-menu--small
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* 앞머리가 **경계에서 끝날 때만** 맞는다(`__` · `--` · 글 끝). 안 그러면 `tooltip` 이
|
|
28
|
+
* `tooltip-menu` 까지 집어삼킨다. 겹치는 앞머리는 **긴 쪽이 이긴다.**
|
|
29
|
+
*
|
|
30
|
+
* 비어 있는 것이 제자리다. 옛 이름을 단 채로 두는 것은 값이 든다 — 마디마다 클래스가
|
|
31
|
+
* 둘이고, 소스를 읽는 사람이 둘 중 어느 것이 진짜인지 묻게 된다.
|
|
32
|
+
*/
|
|
33
|
+
export declare const RENAMED: Readonly<Record<string, string>>;
|
|
34
|
+
/**
|
|
35
|
+
* 주어진 표에서 이 클래스의 옛 이름을 찾는다. 바뀐 적이 없으면 `null`.
|
|
36
|
+
*
|
|
37
|
+
* 표를 **받아서** 보는 꼴로 둔 것은 셀 수 있게 하려는 것이다 — 아래 `legacyNameOf` 는
|
|
38
|
+
* 지금 표에 든 것만 쓸 수 있는데, *"긴 앞머리가 이긴다"* 같은 결은 지금 표에 겹치는 짝이
|
|
39
|
+
* 없으면 **재 봐도 늘 통과한다**(심어 확인했다: 정렬을 빼도 안 울었다).
|
|
40
|
+
*/
|
|
41
|
+
export declare function legacyNameIn(table: Readonly<Record<string, string>>, cls: string): string | null;
|
|
42
|
+
/** 이 클래스의 옛 이름. 바뀐 적이 없으면 `null`. */
|
|
43
|
+
export declare function legacyNameOf(cls: string): string | null;
|
|
44
|
+
/**
|
|
45
|
+
* 클래스 글에 **옛 이름 쌍둥이**를 덧단다.
|
|
46
|
+
*
|
|
47
|
+
* `'menu-tooltip menu-tooltip--small'`
|
|
48
|
+
* → `'menu-tooltip menu-tooltip--small tooltip-menu tooltip-menu--small'`
|
|
49
|
+
*
|
|
50
|
+
* 표에 칸이 스물넷이면 이 함수가 그만큼 돈다 — 그래서 **바뀐 이름이 하나도 없을 때는
|
|
51
|
+
* 받은 글을 그대로 돌려준다**(표가 비면 아래 `for` 가 한 번도 안 돈다).
|
|
52
|
+
*/
|
|
53
|
+
export declare function withLegacy(className: string): string;
|