@0001-labs/design-system-1 0.3.0-alpha.23 → 0.3.0-alpha.25
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/DS1/0-face/shared-words.ts +2 -1
- package/DS1/0-face/translations/da.json +7 -0
- package/DS1/0-face/translations/de.json +7 -0
- package/DS1/0-face/translations/en.json +7 -0
- package/DS1/0-face/translations/es.json +7 -0
- package/DS1/0-face/translations/fi.json +7 -0
- package/DS1/0-face/translations/fr.json +7 -0
- package/DS1/0-face/translations/is.json +7 -0
- package/DS1/0-face/translations/it.json +7 -0
- package/DS1/0-face/translations/ja.json +7 -0
- package/DS1/0-face/translations/ko.json +7 -0
- package/DS1/0-face/translations/nb.json +7 -0
- package/DS1/0-face/translations/pt-BR.json +7 -0
- package/DS1/0-face/translations/pt.json +7 -0
- package/DS1/0-face/translations/sv.json +7 -0
- package/DS1/0-face/translations/zh.json +7 -0
- package/DS1/1-root/cjk.css +1 -1
- package/DS1/1-root/fonts.css +1 -1
- package/DS1/1-root/one.css +1 -1
- package/DS1/1-root/one.semantic.css +1 -1
- package/DS1/1-root/table.css +75 -2
- package/DS1/3-unit/ds-calendar.ts +230 -14
- package/DS1/3-unit/ds-table.ts +323 -7
- package/DS1/3-unit/styles/ds-calendar.css +111 -6
- package/DS1/react/table.ts +53 -0
- package/dist/0-face/shared-words.d.ts +2 -1
- package/dist/0-face/shared-words.d.ts.map +1 -1
- package/dist/0-face/translations/da.json +7 -0
- package/dist/0-face/translations/de.json +7 -0
- package/dist/0-face/translations/en.json +7 -0
- package/dist/0-face/translations/es.json +7 -0
- package/dist/0-face/translations/fi.json +7 -0
- package/dist/0-face/translations/fr.json +7 -0
- package/dist/0-face/translations/is.json +7 -0
- package/dist/0-face/translations/it.json +7 -0
- package/dist/0-face/translations/ja.json +7 -0
- package/dist/0-face/translations/ko.json +7 -0
- package/dist/0-face/translations/nb.json +7 -0
- package/dist/0-face/translations/pt-BR.json +7 -0
- package/dist/0-face/translations/pt.json +7 -0
- package/dist/0-face/translations/sv.json +7 -0
- package/dist/0-face/translations/zh.json +7 -0
- package/dist/3-unit/ds-calendar.d.ts +47 -2
- package/dist/3-unit/ds-calendar.d.ts.map +1 -1
- package/dist/3-unit/ds-calendar.js +225 -15
- package/dist/3-unit/ds-table.d.ts +64 -1
- package/dist/3-unit/ds-table.d.ts.map +1 -1
- package/dist/3-unit/ds-table.js +323 -6
- package/dist/design-system-1.bundle.js +563 -27
- package/dist/design-system-1.bundle.js.map +1 -1
- package/dist/design-system-1.bundle.min.js +4818 -4469
- package/dist/design-system-1.bundle.min.js.map +1 -1
- package/dist/react/table.d.ts +47 -0
- package/dist/react/table.d.ts.map +1 -0
- package/dist/react/table.js +34 -0
- package/dist/{shared-words-DAVSET4Z.js → shared-words-BtRee8xR.js} +122 -17
- package/dist/shared-words-BtRee8xR.js.map +1 -0
- package/dist/{shared-words-CyZYc_De.js → shared-words-CdMDVtXx.js} +106 -1
- package/dist/shared-words-CdMDVtXx.js.map +1 -0
- package/package.json +1 -1
- package/dist/shared-words-CyZYc_De.js.map +0 -1
- package/dist/shared-words-DAVSET4Z.js.map +0 -1
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* again, Undo, Redo, Copy, Copy link, Remove, Rename, Duplicate, Download,
|
|
4
4
|
* Refresh, Open, Send, Clear), Saved, Saving…, Untitled, Account, sign-in,
|
|
5
5
|
* empty states, dates, the settings ds-cycle shows, ds-notice's words, the
|
|
6
|
-
* carousel's and slide's (Carousel, Slide, Previous slide, Next slide, Pause, Play…),
|
|
6
|
+
* carousel's and slide's (Carousel, Slide, Previous slide, Next slide, Pause, Play…), a
|
|
7
|
+
* sheet's moving rows (Move row 3, Row 3 moved to 5), the feedback module's (OK, Copied, Could not copy, Notifications), a meter's
|
|
7
8
|
* words ("7 of 10") and a step's (Done, Failed), the site chrome's (Menu,
|
|
8
9
|
* Contents), the key names keys.ts writes as words (`key.ctrl`, `key.shift` …)
|
|
9
10
|
* and the names of the languages. Keyed by the English sentence,
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} af {count}",
|
|
93
93
|
"Previous slide": "Forrige dias",
|
|
94
94
|
"Next slide": "Næste dias",
|
|
95
|
+
"Move row {index}": "Flyt række {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Række {from} flyttet til {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Afspil",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "Forrige måned",
|
|
113
115
|
"Next month": "Næste måned",
|
|
116
|
+
"Previous year": "Forrige år",
|
|
117
|
+
"Next year": "Næste år",
|
|
118
|
+
"Earlier years": "Tidligere år",
|
|
119
|
+
"Later years": "Senere år",
|
|
120
|
+
"Choose a month and year": "Vælg måned og år",
|
|
114
121
|
"Choose a date": "Vælg en dato",
|
|
115
122
|
"Date": "Dato",
|
|
116
123
|
"W{week}": "U{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} von {count}",
|
|
93
93
|
"Previous slide": "Vorherige Folie",
|
|
94
94
|
"Next slide": "Nächste Folie",
|
|
95
|
+
"Move row {index}": "Zeile {index} verschieben",
|
|
96
|
+
"Row {from} moved to {to}": "Zeile {from} nach {to} verschoben",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Abspielen",
|
|
97
99
|
"Menu": "Menü",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Bild ab",
|
|
112
114
|
"Previous month": "Vorheriger Monat",
|
|
113
115
|
"Next month": "Nächster Monat",
|
|
116
|
+
"Previous year": "Vorheriges Jahr",
|
|
117
|
+
"Next year": "Nächstes Jahr",
|
|
118
|
+
"Earlier years": "Frühere Jahre",
|
|
119
|
+
"Later years": "Spätere Jahre",
|
|
120
|
+
"Choose a month and year": "Monat und Jahr wählen",
|
|
114
121
|
"Choose a date": "Datum wählen",
|
|
115
122
|
"Date": "Datum",
|
|
116
123
|
"W{week}": "KW{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} of {count}",
|
|
93
93
|
"Previous slide": "Previous slide",
|
|
94
94
|
"Next slide": "Next slide",
|
|
95
|
+
"Move row {index}": "Move row {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Row {from} moved to {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Play",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "PgDn",
|
|
112
114
|
"Previous month": "Previous month",
|
|
113
115
|
"Next month": "Next month",
|
|
116
|
+
"Previous year": "Previous year",
|
|
117
|
+
"Next year": "Next year",
|
|
118
|
+
"Earlier years": "Earlier years",
|
|
119
|
+
"Later years": "Later years",
|
|
120
|
+
"Choose a month and year": "Choose a month and year",
|
|
114
121
|
"Choose a date": "Choose a date",
|
|
115
122
|
"Date": "Date",
|
|
116
123
|
"W{week}": "W{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} de {count}",
|
|
93
93
|
"Previous slide": "Diapositiva anterior",
|
|
94
94
|
"Next slide": "Diapositiva siguiente",
|
|
95
|
+
"Move row {index}": "Mover fila {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Fila {from} movida a {to}",
|
|
95
97
|
"Pause": "Pausar",
|
|
96
98
|
"Play": "Reproducir",
|
|
97
99
|
"Menu": "Menú",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Av Pág",
|
|
112
114
|
"Previous month": "Mes anterior",
|
|
113
115
|
"Next month": "Mes siguiente",
|
|
116
|
+
"Previous year": "Año anterior",
|
|
117
|
+
"Next year": "Año siguiente",
|
|
118
|
+
"Earlier years": "Años anteriores",
|
|
119
|
+
"Later years": "Años siguientes",
|
|
120
|
+
"Choose a month and year": "Elegir mes y año",
|
|
114
121
|
"Choose a date": "Elegir una fecha",
|
|
115
122
|
"Date": "Fecha",
|
|
116
123
|
"W{week}": "S{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index}/{count}",
|
|
93
93
|
"Previous slide": "Edellinen dia",
|
|
94
94
|
"Next slide": "Seuraava dia",
|
|
95
|
+
"Move row {index}": "Siirrä riviä {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Rivi {from} siirretty kohtaan {to}",
|
|
95
97
|
"Pause": "Tauko",
|
|
96
98
|
"Play": "Toista",
|
|
97
99
|
"Menu": "Valikko",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "Edellinen kuukausi",
|
|
113
115
|
"Next month": "Seuraava kuukausi",
|
|
116
|
+
"Previous year": "Edellinen vuosi",
|
|
117
|
+
"Next year": "Seuraava vuosi",
|
|
118
|
+
"Earlier years": "Aiemmat vuodet",
|
|
119
|
+
"Later years": "Myöhemmät vuodet",
|
|
120
|
+
"Choose a month and year": "Valitse kuukausi ja vuosi",
|
|
114
121
|
"Choose a date": "Valitse päivämäärä",
|
|
115
122
|
"Date": "Päivämäärä",
|
|
116
123
|
"W{week}": "Vk{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} sur {count}",
|
|
93
93
|
"Previous slide": "Diapositive précédente",
|
|
94
94
|
"Next slide": "Diapositive suivante",
|
|
95
|
+
"Move row {index}": "Déplacer la ligne {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Ligne {from} déplacée en {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Lecture",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page suiv.",
|
|
112
114
|
"Previous month": "Mois précédent",
|
|
113
115
|
"Next month": "Mois suivant",
|
|
116
|
+
"Previous year": "Année précédente",
|
|
117
|
+
"Next year": "Année suivante",
|
|
118
|
+
"Earlier years": "Années précédentes",
|
|
119
|
+
"Later years": "Années suivantes",
|
|
120
|
+
"Choose a month and year": "Choisir le mois et l’année",
|
|
114
121
|
"Choose a date": "Choisir une date",
|
|
115
122
|
"Date": "Date",
|
|
116
123
|
"W{week}": "S{week}",
|
|
@@ -85,6 +85,8 @@
|
|
|
85
85
|
"{index} of {count}": "{index} af {count}",
|
|
86
86
|
"Previous slide": "Fyrri glæra",
|
|
87
87
|
"Next slide": "Næsta glæra",
|
|
88
|
+
"Move row {index}": "Færa röð {index}",
|
|
89
|
+
"Row {from} moved to {to}": "Röð {from} færð í {to}",
|
|
88
90
|
"Pause": "Gera hlé",
|
|
89
91
|
"Play": "Spila",
|
|
90
92
|
"Menu": "Valmynd",
|
|
@@ -104,6 +106,11 @@
|
|
|
104
106
|
"key.pagedown": "Page Down",
|
|
105
107
|
"Previous month": "Fyrri mánuður",
|
|
106
108
|
"Next month": "Næsti mánuður",
|
|
109
|
+
"Previous year": "Fyrra ár",
|
|
110
|
+
"Next year": "Næsta ár",
|
|
111
|
+
"Earlier years": "Fyrri ár",
|
|
112
|
+
"Later years": "Síðari ár",
|
|
113
|
+
"Choose a month and year": "Velja mánuð og ár",
|
|
107
114
|
"Choose a date": "Veldu dagsetningu",
|
|
108
115
|
"Date": "Dagsetning",
|
|
109
116
|
"W{week}": "V{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} di {count}",
|
|
93
93
|
"Previous slide": "Slide precedente",
|
|
94
94
|
"Next slide": "Slide successiva",
|
|
95
|
+
"Move row {index}": "Sposta la riga {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Riga {from} spostata in {to}",
|
|
95
97
|
"Pause": "Pausa",
|
|
96
98
|
"Play": "Riproduci",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Pag giù",
|
|
112
114
|
"Previous month": "Mese precedente",
|
|
113
115
|
"Next month": "Mese successivo",
|
|
116
|
+
"Previous year": "Anno precedente",
|
|
117
|
+
"Next year": "Anno successivo",
|
|
118
|
+
"Earlier years": "Anni precedenti",
|
|
119
|
+
"Later years": "Anni successivi",
|
|
120
|
+
"Choose a month and year": "Scegli mese e anno",
|
|
114
121
|
"Choose a date": "Scegli una data",
|
|
115
122
|
"Date": "Data",
|
|
116
123
|
"W{week}": "S{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{count} 枚中 {index} 枚目",
|
|
93
93
|
"Previous slide": "前のスライド",
|
|
94
94
|
"Next slide": "次のスライド",
|
|
95
|
+
"Move row {index}": "{index} 行目を移動",
|
|
96
|
+
"Row {from} moved to {to}": "{from} 行目を {to} 行目に移動しました",
|
|
95
97
|
"Pause": "一時停止",
|
|
96
98
|
"Play": "再生",
|
|
97
99
|
"Menu": "メニュー",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "前の月",
|
|
113
115
|
"Next month": "次の月",
|
|
116
|
+
"Previous year": "前の年",
|
|
117
|
+
"Next year": "次の年",
|
|
118
|
+
"Earlier years": "前の12年",
|
|
119
|
+
"Later years": "次の12年",
|
|
120
|
+
"Choose a month and year": "年と月を選択",
|
|
114
121
|
"Choose a date": "日付を選択",
|
|
115
122
|
"Date": "日付",
|
|
116
123
|
"W{week}": "第{week}週",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{count}개 중 {index}번째",
|
|
93
93
|
"Previous slide": "이전 슬라이드",
|
|
94
94
|
"Next slide": "다음 슬라이드",
|
|
95
|
+
"Move row {index}": "{index}행 이동",
|
|
96
|
+
"Row {from} moved to {to}": "{from}행을 {to}행으로 이동함",
|
|
95
97
|
"Pause": "일시정지",
|
|
96
98
|
"Play": "재생",
|
|
97
99
|
"Menu": "메뉴",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "이전 달",
|
|
113
115
|
"Next month": "다음 달",
|
|
116
|
+
"Previous year": "이전 연도",
|
|
117
|
+
"Next year": "다음 연도",
|
|
118
|
+
"Earlier years": "이전 연도들",
|
|
119
|
+
"Later years": "다음 연도들",
|
|
120
|
+
"Choose a month and year": "연도와 월 선택",
|
|
114
121
|
"Choose a date": "날짜 선택",
|
|
115
122
|
"Date": "날짜",
|
|
116
123
|
"W{week}": "{week}주",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} av {count}",
|
|
93
93
|
"Previous slide": "Forrige lysbilde",
|
|
94
94
|
"Next slide": "Neste lysbilde",
|
|
95
|
+
"Move row {index}": "Flytt rad {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Rad {from} flyttet til {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Spill av",
|
|
97
99
|
"Menu": "Meny",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "Forrige måned",
|
|
113
115
|
"Next month": "Neste måned",
|
|
116
|
+
"Previous year": "Forrige år",
|
|
117
|
+
"Next year": "Neste år",
|
|
118
|
+
"Earlier years": "Tidligere år",
|
|
119
|
+
"Later years": "Senere år",
|
|
120
|
+
"Choose a month and year": "Velg måned og år",
|
|
114
121
|
"Choose a date": "Velg en dato",
|
|
115
122
|
"Date": "Dato",
|
|
116
123
|
"W{week}": "U{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} de {count}",
|
|
93
93
|
"Previous slide": "Slide anterior",
|
|
94
94
|
"Next slide": "Próximo slide",
|
|
95
|
+
"Move row {index}": "Mover linha {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Linha {from} movida para {to}",
|
|
95
97
|
"Pause": "Pausar",
|
|
96
98
|
"Play": "Reproduzir",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "Mês anterior",
|
|
113
115
|
"Next month": "Próximo mês",
|
|
116
|
+
"Previous year": "Ano anterior",
|
|
117
|
+
"Next year": "Próximo ano",
|
|
118
|
+
"Earlier years": "Anos anteriores",
|
|
119
|
+
"Later years": "Anos seguintes",
|
|
120
|
+
"Choose a month and year": "Escolher mês e ano",
|
|
114
121
|
"Choose a date": "Escolher uma data",
|
|
115
122
|
"Date": "Data",
|
|
116
123
|
"W{week}": "S{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} de {count}",
|
|
93
93
|
"Previous slide": "Diapositivo anterior",
|
|
94
94
|
"Next slide": "Diapositivo seguinte",
|
|
95
|
+
"Move row {index}": "Mover linha {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Linha {from} movida para {to}",
|
|
95
97
|
"Pause": "Pausar",
|
|
96
98
|
"Play": "Reproduzir",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "Mês anterior",
|
|
113
115
|
"Next month": "Mês seguinte",
|
|
116
|
+
"Previous year": "Ano anterior",
|
|
117
|
+
"Next year": "Ano seguinte",
|
|
118
|
+
"Earlier years": "Anos anteriores",
|
|
119
|
+
"Later years": "Anos seguintes",
|
|
120
|
+
"Choose a month and year": "Escolher mês e ano",
|
|
114
121
|
"Choose a date": "Escolher uma data",
|
|
115
122
|
"Date": "Data",
|
|
116
123
|
"W{week}": "S{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} av {count}",
|
|
93
93
|
"Previous slide": "Föregående bild",
|
|
94
94
|
"Next slide": "Nästa bild",
|
|
95
|
+
"Move row {index}": "Flytta rad {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Rad {from} flyttad till {to}",
|
|
95
97
|
"Pause": "Pausa",
|
|
96
98
|
"Play": "Spela upp",
|
|
97
99
|
"Menu": "Meny",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "Föregående månad",
|
|
113
115
|
"Next month": "Nästa månad",
|
|
116
|
+
"Previous year": "Föregående år",
|
|
117
|
+
"Next year": "Nästa år",
|
|
118
|
+
"Earlier years": "Tidigare år",
|
|
119
|
+
"Later years": "Senare år",
|
|
120
|
+
"Choose a month and year": "Välj månad och år",
|
|
114
121
|
"Choose a date": "Välj ett datum",
|
|
115
122
|
"Date": "Datum",
|
|
116
123
|
"W{week}": "V{week}",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "第 {index} 张,共 {count} 张",
|
|
93
93
|
"Previous slide": "上一张",
|
|
94
94
|
"Next slide": "下一张",
|
|
95
|
+
"Move row {index}": "移动第 {index} 行",
|
|
96
|
+
"Row {from} moved to {to}": "第 {from} 行已移到第 {to} 行",
|
|
95
97
|
"Pause": "暂停",
|
|
96
98
|
"Play": "播放",
|
|
97
99
|
"Menu": "菜单",
|
|
@@ -111,6 +113,11 @@
|
|
|
111
113
|
"key.pagedown": "Page Down",
|
|
112
114
|
"Previous month": "上个月",
|
|
113
115
|
"Next month": "下个月",
|
|
116
|
+
"Previous year": "上一年",
|
|
117
|
+
"Next year": "下一年",
|
|
118
|
+
"Earlier years": "更早的年份",
|
|
119
|
+
"Later years": "更晚的年份",
|
|
120
|
+
"Choose a month and year": "选择月份和年份",
|
|
114
121
|
"Choose a date": "选择日期",
|
|
115
122
|
"Date": "日期",
|
|
116
123
|
"W{week}": "第{week}周",
|
package/DS1/1-root/cjk.css
CHANGED
package/DS1/1-root/fonts.css
CHANGED
package/DS1/1-root/one.css
CHANGED
package/DS1/1-root/table.css
CHANGED
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
* while the sheet scrolls both ways inside `.ds-table-scroll`; give the table
|
|
25
25
|
* `--ds-table-columns` (the number of data columns) and the scroll a height
|
|
26
26
|
* with `--ds-table-height`.
|
|
27
|
+
*
|
|
28
|
+
* `data-reorderable` (set by `<ds-table sheet reorderable>`) gives each row
|
|
29
|
+
* number a grip, `.ds-table__handle` with the `handle` icon, in place of the
|
|
30
|
+
* number while the row is hovered or the grip focused. A lifted row
|
|
31
|
+
* (`tr[data-lifted]`) keeps the paper behind it and follows the pointer; while
|
|
32
|
+
* `data-moving` is on the table the other rows step aside in transform alone,
|
|
33
|
+
* a sortable list's 200ms on cubic-bezier(0.2, 0, 0, 1), and never under
|
|
34
|
+
* reduced motion.
|
|
27
35
|
*/
|
|
28
36
|
|
|
29
37
|
.ds-table {
|
|
@@ -172,14 +180,14 @@
|
|
|
172
180
|
.ds-table[data-sheet] thead :is(th, td) {
|
|
173
181
|
position: sticky;
|
|
174
182
|
top: 0;
|
|
175
|
-
z-index:
|
|
183
|
+
z-index: 3;
|
|
176
184
|
background: var(--ds-table-paper);
|
|
177
185
|
}
|
|
178
186
|
.ds-table[data-sheet] thead tr + tr :is(th, td) {
|
|
179
187
|
top: var(--ds-table-row);
|
|
180
188
|
}
|
|
181
189
|
.ds-table[data-sheet] thead .ds-table__number {
|
|
182
|
-
z-index:
|
|
190
|
+
z-index: 4;
|
|
183
191
|
}
|
|
184
192
|
.ds-table[data-sheet] .ds-table__letters td {
|
|
185
193
|
color: var(--ds-title-color, light-dark(#797979, #9a9a9a));
|
|
@@ -198,3 +206,68 @@
|
|
|
198
206
|
overflow: auto;
|
|
199
207
|
overscroll-behavior: contain;
|
|
200
208
|
}
|
|
209
|
+
|
|
210
|
+
/* Rows that move: a grip on the number, the lifted row on paper, the others stepping aside. */
|
|
211
|
+
.ds-table[data-sheet][data-reorderable] tbody .ds-table__number {
|
|
212
|
+
-webkit-user-select: none;
|
|
213
|
+
user-select: none;
|
|
214
|
+
-webkit-touch-callout: none;
|
|
215
|
+
}
|
|
216
|
+
.ds-table__index {
|
|
217
|
+
transition: opacity 100ms ease;
|
|
218
|
+
}
|
|
219
|
+
.ds-table__handle {
|
|
220
|
+
all: unset;
|
|
221
|
+
position: absolute;
|
|
222
|
+
inset: 0;
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: flex-end;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
color: var(--ds-reorder-color, light-dark(#777777, #cccccc));
|
|
227
|
+
cursor: grab;
|
|
228
|
+
opacity: 0;
|
|
229
|
+
transition: opacity 100ms ease;
|
|
230
|
+
}
|
|
231
|
+
.ds-table__handle:hover {
|
|
232
|
+
color: var(--ds-reorder-active-color, light-dark(#333333, #ffffff));
|
|
233
|
+
}
|
|
234
|
+
.ds-table__handle:focus-visible {
|
|
235
|
+
box-shadow: inset 0 0 0 2px var(--ds-focus-ring, Highlight);
|
|
236
|
+
}
|
|
237
|
+
@media (hover: hover) {
|
|
238
|
+
.ds-table[data-reorderable]:not([data-moving]) tbody tr:hover .ds-table__handle { opacity: 1; }
|
|
239
|
+
.ds-table[data-reorderable]:not([data-moving]) tbody tr:hover .ds-table__index { opacity: 0; }
|
|
240
|
+
}
|
|
241
|
+
.ds-table[data-reorderable] tbody tr:is([data-lifted], :has(.ds-table__handle:focus-visible)) .ds-table__handle { opacity: 1; }
|
|
242
|
+
.ds-table[data-reorderable] tbody tr:is([data-lifted], :has(.ds-table__handle:focus-visible)) .ds-table__index { opacity: 0; }
|
|
243
|
+
.ds-table[data-moving] tbody tr {
|
|
244
|
+
transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
|
|
245
|
+
}
|
|
246
|
+
.ds-table[data-moving],
|
|
247
|
+
.ds-table[data-moving] * {
|
|
248
|
+
cursor: grabbing;
|
|
249
|
+
}
|
|
250
|
+
.ds-table[data-sheet] tbody tr[data-lifted] {
|
|
251
|
+
position: relative;
|
|
252
|
+
z-index: 2;
|
|
253
|
+
transition: none;
|
|
254
|
+
}
|
|
255
|
+
.ds-table[data-sheet] tbody tr[data-lifted] > :is(th, td) {
|
|
256
|
+
background: var(--ds-table-paper);
|
|
257
|
+
box-shadow: inset 0 1px var(--ds-table-rule);
|
|
258
|
+
}
|
|
259
|
+
.ds-table__status {
|
|
260
|
+
position: absolute;
|
|
261
|
+
width: 1px;
|
|
262
|
+
height: 1px;
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
clip-path: inset(50%);
|
|
265
|
+
white-space: nowrap;
|
|
266
|
+
}
|
|
267
|
+
@media (prefers-reduced-motion: reduce) {
|
|
268
|
+
.ds-table[data-moving] tbody tr,
|
|
269
|
+
.ds-table__index,
|
|
270
|
+
.ds-table__handle {
|
|
271
|
+
transition: none;
|
|
272
|
+
}
|
|
273
|
+
}
|