Skip to content

Commit 3ce6ad9

Browse files
authored
chore: bump vue-data-ui from 3.14.10 to 3.15.0 (#1455)
1 parent a5b2e9c commit 3ce6ad9

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,12 +1283,14 @@ const chartConfig = computed(() => {
12831283
fullscreen: false,
12841284
table: false,
12851285
tooltip: false,
1286+
altCopy: false, // TODO: set to true to enable the alt copy feature
12861287
},
12871288
buttonTitles: {
12881289
csv: $t('package.trends.download_file', { fileType: 'CSV' }),
12891290
img: $t('package.trends.download_file', { fileType: 'PNG' }),
12901291
svg: $t('package.trends.download_file', { fileType: 'SVG' }),
12911292
annotator: $t('package.trends.toggle_annotator'),
1293+
altCopy: undefined, // TODO: set to proper translation key
12921294
},
12931295
callbacks: {
12941296
img: ({ imageUri }: { imageUri: string }) => {
@@ -1316,6 +1318,10 @@ const chartConfig = computed(() => {
13161318
loadFile(url, buildExportFilename('svg'))
13171319
URL.revokeObjectURL(url)
13181320
},
1321+
// altCopy: ({ dataset: dst, config: cfg }: { dataset: Array<VueUiXyDatasetItem>; config: VueUiXyConfig}) => {
1322+
// // TODO: implement a reusable copy-alt-text-to-clipboard feature based on the dataset & configuration
1323+
// console.log({ dst, cfg})
1324+
// }
13191325
},
13201326
},
13211327
grid: {
@@ -1422,6 +1428,9 @@ const chartConfig = computed(() => {
14221428
selectedColor: accent.value,
14231429
selectedColorOpacity: 0.06,
14241430
frameColor: colors.value.border,
1431+
handleWidth: isMobile.value ? 40 : 20, // does not affect the size of the touch area
1432+
handleBorderColor: colors.value.fgSubtle,
1433+
handleType: 'grab', // 'empty' | 'chevron' | 'arrow' | 'grab'
14251434
},
14261435
preview: {
14271436
fill: transparentizeOklch(accent.value, isDarkMode.value ? 0.95 : 0.92),
@@ -1722,6 +1731,13 @@ watch(selectedMetric, value => {
17221731
aria-hidden="true"
17231732
/>
17241733
</template>
1734+
<template #optionAltCopy>
1735+
<span
1736+
class="i-carbon:accessibility-alt w-6 h-6 text-fg-subtle"
1737+
style="pointer-events: none"
1738+
aria-hidden="true"
1739+
/>
1740+
</template>
17251741
</VueUiXy>
17261742
</div>
17271743

@@ -1768,7 +1784,7 @@ watch(selectedMetric, value => {
17681784
@media screen and (min-width: 767px) {
17691785
#trends-chart .vue-data-ui-refresh-button {
17701786
top: -0.6rem !important;
1771-
left: calc(100% + 2rem) !important;
1787+
left: calc(100% + 4rem) !important;
17721788
}
17731789
}
17741790

app/components/Package/VersionDistribution.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ const chartConfig = computed(() => {
132132
fullscreen: false,
133133
table: false,
134134
tooltip: false,
135+
altCopy: false, // TODO: set to true to enable the alt copy feature
135136
},
136137
buttonTitles: {
137138
csv: $t('package.trends.download_file', { fileType: 'CSV' }),
138139
img: $t('package.trends.download_file', { fileType: 'PNG' }),
139140
svg: $t('package.trends.download_file', { fileType: 'SVG' }),
140141
annotator: $t('package.trends.toggle_annotator'),
142+
altCopy: undefined, // TODO: set to proper translation key
141143
},
142144
callbacks: {
143145
img: ({ imageUri }: { imageUri: string }) => {
@@ -165,6 +167,10 @@ const chartConfig = computed(() => {
165167
loadFile(url, buildExportFilename('svg'))
166168
URL.revokeObjectURL(url)
167169
},
170+
// altCopy: ({ dataset: dst, config: cfg }: { dataset: Array<VueUiXyDatasetItem>; config: VueUiXyConfig}) => {
171+
// // TODO: implement a reusable copy-alt-text-to-clipboard feature based on the dataset & configuration
172+
// console.log({ dst, cfg})
173+
// }
168174
},
169175
},
170176
grid: {
@@ -243,6 +249,9 @@ const chartConfig = computed(() => {
243249
selectedColor: accent.value,
244250
selectedColorOpacity: 0.06,
245251
frameColor: colors.value.border,
252+
handleWidth: isMobile.value ? 40 : 20, // does not affect the size of the touch area
253+
handleBorderColor: colors.value.fgSubtle,
254+
handleType: 'grab', // 'empty' | 'chevron' | 'arrow' | 'grab'
246255
},
247256
preview: {
248257
fill: transparentizeOklch(accent.value, isDarkMode.value ? 0.95 : 0.92),
@@ -663,7 +672,7 @@ const endDate = computed(() => {
663672
@media screen and (min-width: 767px) {
664673
#version-distribution .vue-data-ui-refresh-button {
665674
top: -0.6rem !important;
666-
left: calc(100% + 2rem) !important;
675+
left: calc(100% + 4rem) !important;
667676
}
668677
}
669678
</style>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"vite-plugin-pwa": "1.2.0",
110110
"vite-plus": "0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
111111
"vue": "3.5.27",
112-
"vue-data-ui": "3.14.10"
112+
"vue-data-ui": "3.15.0"
113113
},
114114
"devDependencies": {
115115
"@e18e/eslint-plugin": "0.1.4",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)